summaryrefslogtreecommitdiffstats
path: root/recipes-security/nmap/nmap_7.12.bb
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-security/nmap/nmap_7.12.bb')
-rw-r--r--recipes-security/nmap/nmap_7.12.bb56
1 files changed, 56 insertions, 0 deletions
diff --git a/recipes-security/nmap/nmap_7.12.bb b/recipes-security/nmap/nmap_7.12.bb
new file mode 100644
index 0000000..47cd7b6
--- /dev/null
+++ b/recipes-security/nmap/nmap_7.12.bb
@@ -0,0 +1,56 @@
1SUMMARY = "network auditing tool"
2DESCRIPTION = "Nmap ("Network Mapper") is a free and open source (license) utility for network discovery and security auditing.\nGui support via appending to IMAGE_FEATURES x11-base in local.conf"
3SECTION = "security"
4LICENSE = "GPL-2.0"
5
6LIC_FILES_CHKSUM = "file://COPYING;beginline=7;endline=12;md5=51f7052ac85aaf1a2127f7803de1261e"
7
8SRC_URI = "http://nmap.org/dist/${BP}.tar.bz2"
9
10SRC_URI[md5sum] = "0764f4dabe7cccda3c49fc3990b62a8a"
11SRC_URI[sha256sum] = "63df082a87c95a189865d37304357405160fc6333addcf5b84204c95e0539b04"
12
13inherit autotools-brokensep pkgconfig distro_features_check
14
15PACKAGECONFIG = "ncat nping ndiff pcap"
16PACKAGECONFIG += " ${@bb.utils.contains("IMAGE_FEATURES", "x11-base", "zenmap", "", d)}"
17
18PACKAGECONFIG[pcap] = "--with-pcap=linux, --without-pcap, libpcap, libpcap"
19PACKAGECONFIG[ssl] = "--with-openssl=${STAGING_LIBDIR}/.., --without-openssl, openssl, openssl"
20
21#disable/enable packages
22PACKAGECONFIG[nping] = ",--without-nping,"
23PACKAGECONFIG[ncat] = ",--without-ncat,"
24PACKAGECONFIG[ndiff] = ",--without-ndiff,"
25
26PACKAGECONFIG[pcre] = "--with-libpcre=${STAGING_LIBDIR}/.., --with-libpcre=included, libpre"
27
28#Add gui
29PACKAGECONFIG[zenmap] = "--with-zenmap, --without-zenmap, gtk+ python-core python-codecs python-io python-logging python-unittest python-xml python-netclient python-doctest python-subprocess python-pygtk, python-core python-codecs python-io python-logging python-netclient python-xml python-unittest python-doctest python-subprocess python-pygtk gtk+"
30
31EXTRA_OECONF = "--with-libdnet=included --with-liblinear=included --without-subversion --with-liblua=included"
32
33do_configure() {
34 # strip hard coded python2#
35 sed -i -e 's=python2\.*=python=g' ${S}/configure.ac
36 sed -i -e 's=python2\.*=python=g' ${S}/configure
37 autoconf
38 oe_runconf
39}
40
41
42PACKAGES = "${PN} ${PN}-dbg ${PN}-doc"
43
44FILES_${PN} = "${bindir}/nmap ${datadir}/nmap/* ${bindir}/uninstall_ndiff"
45
46# append packages if enabled
47FILES_${PN} += "${@bb.utils.contains("PACKAGECONFIG", "ncat", "${bindir}/ncat ${target_datadir}/ncat", "", d)}"
48FILES_${PN} += "${@bb.utils.contains("PACKAGECONFIG", "nping", "${bindir}/nping", "", d)}"
49FILES_${PN} += "${@bb.utils.contains("PACKAGECONFIG", "ndiff", "${bindir}/ndiff ${libdir}/python${PYTHON_BASEVERSION}/site-packages/ndiff.py*", "", d)}"
50
51PACKAGES += "${@bb.utils.contains("PACKAGECONFIG", "zenmap", "${PN}-zenmap", "", d)}"
52
53FILES_${PN}-zenmap = "${@bb.utils.contains("PACKAGECONFIG", "zenmap", "${bindir}/*zenmap ${bindir}/xnmap ${datadir}/applications/* ${bindir}/nmapfe ${datadir}/zenmap/* ${libdir}/python${PYTHON_BASEVERSION}/site-packages/radialnet/* ${libdir}/python${PYTHON_BASEVERSION}/site-packages/zenmap*", "", d)}"
54
55RDEPENDS_${PN} = "python"
56RDEPENDS_${PN}-zenmap = "nmap"