summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-security/nmap/nmap_7.80.bb
diff options
context:
space:
mode:
authorMingli Yu <mingli.yu@windriver.com>2020-02-15 10:52:20 +0800
committerKhem Raj <raj.khem@gmail.com>2020-02-15 08:05:08 -0800
commit51c6ea0bc08aecf89d013180de3b832cb20f0ecd (patch)
tree480d65de5162d4120826badb306cb65ea952887f /meta-oe/recipes-security/nmap/nmap_7.80.bb
parent056dbf5548a79486a41cfcd14f0aa8815c60dd7e (diff)
downloadmeta-openembedded-51c6ea0bc08aecf89d013180de3b832cb20f0ecd.tar.gz
nmap: make ndiff support python3
The ndiff is python2 compatible now, backport a patch from debian to make ndiff port to python3. Refer to https://sources.debian.org/data/main/n/nmap/7.80+dfsg1-2/debian/patches/0004-Python3-port-of-ndiff.patch Signed-off-by: Mingli Yu <mingli.yu@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-oe/recipes-security/nmap/nmap_7.80.bb')
-rw-r--r--meta-oe/recipes-security/nmap/nmap_7.80.bb12
1 files changed, 10 insertions, 2 deletions
diff --git a/meta-oe/recipes-security/nmap/nmap_7.80.bb b/meta-oe/recipes-security/nmap/nmap_7.80.bb
index 96af17efdf..c76d2324e7 100644
--- a/meta-oe/recipes-security/nmap/nmap_7.80.bb
+++ b/meta-oe/recipes-security/nmap/nmap_7.80.bb
@@ -10,6 +10,8 @@ SRC_URI = "http://nmap.org/dist/${BP}.tar.bz2 \
10 file://nmap-replace-shtool-mkdir-with-coreutils-mkdir-command.patch \ 10 file://nmap-replace-shtool-mkdir-with-coreutils-mkdir-command.patch \
11 file://0001-Include-time.h-header-to-pass-clang-compilation.patch \ 11 file://0001-Include-time.h-header-to-pass-clang-compilation.patch \
12 file://0002-Fix-building-with-libc.patch \ 12 file://0002-Fix-building-with-libc.patch \
13 file://0001-Make-ndiff-support-python3.patch \
14 file://0001-configure.ac-make-ndiff-depend-on-python3.patch \
13 " 15 "
14 16
15SRC_URI[md5sum] = "d37b75b06d1d40f27b76d60db420a1f5" 17SRC_URI[md5sum] = "d37b75b06d1d40f27b76d60db420a1f5"
@@ -28,7 +30,7 @@ PACKAGECONFIG[libz] = "--with-libz=${STAGING_LIBDIR}/.., --without-libz, zlib, z
28#disable/enable packages 30#disable/enable packages
29PACKAGECONFIG[nping] = ",--without-nping," 31PACKAGECONFIG[nping] = ",--without-nping,"
30PACKAGECONFIG[ncat] = ",--without-ncat," 32PACKAGECONFIG[ncat] = ",--without-ncat,"
31PACKAGECONFIG[ndiff] = ",--without-ndiff,python3" 33PACKAGECONFIG[ndiff] = "--with-ndiff=yes,--without-ndiff,python3"
32PACKAGECONFIG[update] = ",--without-nmap-update," 34PACKAGECONFIG[update] = ",--without-nmap-update,"
33 35
34EXTRA_OECONF = "--with-libdnet=included --with-liblinear=included --without-subversion --with-liblua=included" 36EXTRA_OECONF = "--with-libdnet=included --with-liblinear=included --without-subversion --with-liblua=included"
@@ -47,6 +49,12 @@ do_configure() {
47 oe_runconf 49 oe_runconf
48} 50}
49 51
52do_install_append() {
53 if [ -f "${D}${bindir}/ndiff" ]; then
54 sed -i 's@^#!.*$@#!/usr/bin/env python3@g' ${D}${bindir}/ndiff
55 fi
56}
57
50FILES_${PN} += "${PYTHON_SITEPACKAGES_DIR} ${datadir}/ncat" 58FILES_${PN} += "${PYTHON_SITEPACKAGES_DIR} ${datadir}/ncat"
51 59
52RDEPENDS_${PN} = "python3" 60RDEPENDS_${PN} += "python3-core"