-
Notifications
You must be signed in to change notification settings - Fork 2
/
snapcraft.yaml
71 lines (64 loc) · 2.13 KB
/
snapcraft.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
name: nmap
base: core24
adopt-info: nmap
summary: A free and open source utility for network discovery and security auditing
description: |
Nmap is a utility for network exploration or security auditing. It
supports ping scanning (determine which hosts are up), many port
scanning techniques, version detection (determine service protocols
and application versions listening behind ports), and TCP/IP
fingerprinting (remote host OS or device identification). Nmap also
offers flexible target and port specification, decoy/stealth scanning,
sunRPC scanning, and more. Most Unix and Windows platforms are
supported in both GUI and commandline modes.
Once installed, this snap needs manually connecting to some plugs:
sudo snap connect nmap:network-control
Main website: https://nmap.org/
grade: devel
confinement: strict
license: GPL-2.0
icon: meta/gui/icon.png
compression: lzo
slots:
nmap:
interface: content
source:
read:
- $SNAP/usr
apps:
nmap:
command: usr/bin/nmap
environment:
LD_LIBRARY_PATH: $LD_LIBRARY_PATH:$SNAP/usr/lib/$CRAFT_ARCH_TRIPLET/blas
plugs: [network, network-bind, network-control, home]
ncat:
command: usr/bin/ncat
plugs: [network, network-bind, network-control, home]
nping:
command: usr/bin/nping
plugs: [network, network-bind, network-control]
parts:
nmap:
plugin: autotools
autotools-configure-parameters:
- --prefix=/usr
- --with-liblua=included
- --without-zenmap
source: https://github.com/nmap/nmap
source-type: git
source-branch: master
override-pull: |
craftctl default
git -C $CRAFT_PART_SRC tag 7.95 43e70c09d2b310a967fd52352db0ad5fd8877447 # GitHub mirror has no tags or branches :(
craftctl set version=$(git describe --tags --long)
build-packages:
- liblinear-dev
- libpcap0.8-dev
- libssl-dev
- python3-setuptools
- zlib1g-dev
stage-packages:
- liblinear4
- libpcap0.8t64
- libssl3t64
- zlib1g