diff options
Diffstat (limited to 'recipes-security/nmap/nmap_7.12.bb')
-rw-r--r-- | recipes-security/nmap/nmap_7.12.bb | 23 |
1 files changed, 9 insertions, 14 deletions
diff --git a/recipes-security/nmap/nmap_7.12.bb b/recipes-security/nmap/nmap_7.12.bb index 47cd7b6..dadff3d 100644 --- a/recipes-security/nmap/nmap_7.12.bb +++ b/recipes-security/nmap/nmap_7.12.bb | |||
@@ -10,10 +10,10 @@ SRC_URI = "http://nmap.org/dist/${BP}.tar.bz2" | |||
10 | SRC_URI[md5sum] = "0764f4dabe7cccda3c49fc3990b62a8a" | 10 | SRC_URI[md5sum] = "0764f4dabe7cccda3c49fc3990b62a8a" |
11 | SRC_URI[sha256sum] = "63df082a87c95a189865d37304357405160fc6333addcf5b84204c95e0539b04" | 11 | SRC_URI[sha256sum] = "63df082a87c95a189865d37304357405160fc6333addcf5b84204c95e0539b04" |
12 | 12 | ||
13 | inherit autotools-brokensep pkgconfig distro_features_check | 13 | inherit autotools-brokensep pkgconfig python-dir distro_features_check |
14 | 14 | ||
15 | PACKAGECONFIG = "ncat nping ndiff pcap" | 15 | PACKAGECONFIG ?= "ncat nping ndiff pcap" |
16 | PACKAGECONFIG += " ${@bb.utils.contains("IMAGE_FEATURES", "x11-base", "zenmap", "", d)}" | 16 | PACKAGECONFIG += " ${@bb.utils.contains('IMAGE_FEATURES', 'x11-base', 'zenmap', '', d)}" |
17 | 17 | ||
18 | PACKAGECONFIG[pcap] = "--with-pcap=linux, --without-pcap, libpcap, libpcap" | 18 | PACKAGECONFIG[pcap] = "--with-pcap=linux, --without-pcap, libpcap, libpcap" |
19 | PACKAGECONFIG[ssl] = "--with-openssl=${STAGING_LIBDIR}/.., --without-openssl, openssl, openssl" | 19 | PACKAGECONFIG[ssl] = "--with-openssl=${STAGING_LIBDIR}/.., --without-openssl, openssl, openssl" |
@@ -38,19 +38,14 @@ do_configure() { | |||
38 | oe_runconf | 38 | oe_runconf |
39 | } | 39 | } |
40 | 40 | ||
41 | do_install_append () { | ||
42 | # remove python dir, its not used or installed | ||
43 | rm -fr ${D}/${libdir} | ||
44 | } | ||
41 | 45 | ||
42 | PACKAGES = "${PN} ${PN}-dbg ${PN}-doc" | 46 | PACKAGES += "${@bb.utils.contains('PACKAGECONFIG', 'zenmap', '${PN}-zenmap', '', d)}" |
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 | 47 | ||
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)}" | 48 | FILES_${PN}-zenmap = "${@bb.utils.contains("PACKAGECONFIG", "zenmap", "${bindir}/*zenmap ${bindir}/xnmap ${datadir}/applications/* ${bindir}/nmapfe ${datadir}/zenmap/* ${PYTHON_SITEPACKAGES_DIR}/radialnet/* ${PYTHON_SITEPACKAGES_DIR}/zenmap*", "", d)}" |
54 | 49 | ||
55 | RDEPENDS_${PN} = "python" | 50 | RDEPENDS_${PN} = "python" |
56 | RDEPENDS_${PN}-zenmap = "nmap" | 51 | RDEPENDS_${PN}-zenmap = "nmap" |