diff options
| author | Armin Kuster <akuster808@gmail.com> | 2016-03-30 17:29:20 -0700 |
|---|---|---|
| committer | Armin Kuster <akuster808@gmail.com> | 2016-04-23 08:02:42 -0700 |
| commit | 6b96adf479e0041623d72b4ff136ebe5e3668392 (patch) | |
| tree | bb1f178c5bd189f31a77eb028174e2a0e6d08193 /recipes-security/nmap/nmap_7.12.bb | |
| parent | f6aaf4560415c70e0434749408b3f3861a44eeb9 (diff) | |
| download | meta-security-6b96adf479e0041623d72b4ff136ebe5e3668392.tar.gz | |
nmap: update to 7.12
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Diffstat (limited to 'recipes-security/nmap/nmap_7.12.bb')
| -rw-r--r-- | recipes-security/nmap/nmap_7.12.bb | 56 |
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 @@ | |||
| 1 | SUMMARY = "network auditing tool" | ||
| 2 | DESCRIPTION = "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" | ||
| 3 | SECTION = "security" | ||
| 4 | LICENSE = "GPL-2.0" | ||
| 5 | |||
| 6 | LIC_FILES_CHKSUM = "file://COPYING;beginline=7;endline=12;md5=51f7052ac85aaf1a2127f7803de1261e" | ||
| 7 | |||
| 8 | SRC_URI = "http://nmap.org/dist/${BP}.tar.bz2" | ||
| 9 | |||
| 10 | SRC_URI[md5sum] = "0764f4dabe7cccda3c49fc3990b62a8a" | ||
| 11 | SRC_URI[sha256sum] = "63df082a87c95a189865d37304357405160fc6333addcf5b84204c95e0539b04" | ||
| 12 | |||
| 13 | inherit autotools-brokensep pkgconfig distro_features_check | ||
| 14 | |||
| 15 | PACKAGECONFIG = "ncat nping ndiff pcap" | ||
| 16 | PACKAGECONFIG += " ${@bb.utils.contains("IMAGE_FEATURES", "x11-base", "zenmap", "", d)}" | ||
| 17 | |||
| 18 | PACKAGECONFIG[pcap] = "--with-pcap=linux, --without-pcap, libpcap, libpcap" | ||
| 19 | PACKAGECONFIG[ssl] = "--with-openssl=${STAGING_LIBDIR}/.., --without-openssl, openssl, openssl" | ||
| 20 | |||
| 21 | #disable/enable packages | ||
| 22 | PACKAGECONFIG[nping] = ",--without-nping," | ||
| 23 | PACKAGECONFIG[ncat] = ",--without-ncat," | ||
| 24 | PACKAGECONFIG[ndiff] = ",--without-ndiff," | ||
| 25 | |||
| 26 | PACKAGECONFIG[pcre] = "--with-libpcre=${STAGING_LIBDIR}/.., --with-libpcre=included, libpre" | ||
| 27 | |||
| 28 | #Add gui | ||
| 29 | PACKAGECONFIG[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 | |||
| 31 | EXTRA_OECONF = "--with-libdnet=included --with-liblinear=included --without-subversion --with-liblua=included" | ||
| 32 | |||
| 33 | do_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 | |||
| 42 | PACKAGES = "${PN} ${PN}-dbg ${PN}-doc" | ||
| 43 | |||
| 44 | FILES_${PN} = "${bindir}/nmap ${datadir}/nmap/* ${bindir}/uninstall_ndiff" | ||
| 45 | |||
| 46 | # append packages if enabled | ||
| 47 | FILES_${PN} += "${@bb.utils.contains("PACKAGECONFIG", "ncat", "${bindir}/ncat ${target_datadir}/ncat", "", d)}" | ||
| 48 | FILES_${PN} += "${@bb.utils.contains("PACKAGECONFIG", "nping", "${bindir}/nping", "", d)}" | ||
| 49 | FILES_${PN} += "${@bb.utils.contains("PACKAGECONFIG", "ndiff", "${bindir}/ndiff ${libdir}/python${PYTHON_BASEVERSION}/site-packages/ndiff.py*", "", d)}" | ||
| 50 | |||
| 51 | PACKAGES += "${@bb.utils.contains("PACKAGECONFIG", "zenmap", "${PN}-zenmap", "", d)}" | ||
| 52 | |||
| 53 | FILES_${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 | |||
| 55 | RDEPENDS_${PN} = "python" | ||
| 56 | RDEPENDS_${PN}-zenmap = "nmap" | ||
