diff options
| author | Mingli Yu <mingli.yu@windriver.com> | 2020-02-15 10:52:20 +0800 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2020-02-15 08:05:08 -0800 |
| commit | 51c6ea0bc08aecf89d013180de3b832cb20f0ecd (patch) | |
| tree | 480d65de5162d4120826badb306cb65ea952887f /meta-oe/recipes-security/nmap/nmap_7.80.bb | |
| parent | 056dbf5548a79486a41cfcd14f0aa8815c60dd7e (diff) | |
| download | meta-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.bb | 12 |
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 | ||
| 15 | SRC_URI[md5sum] = "d37b75b06d1d40f27b76d60db420a1f5" | 17 | SRC_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 |
| 29 | PACKAGECONFIG[nping] = ",--without-nping," | 31 | PACKAGECONFIG[nping] = ",--without-nping," |
| 30 | PACKAGECONFIG[ncat] = ",--without-ncat," | 32 | PACKAGECONFIG[ncat] = ",--without-ncat," |
| 31 | PACKAGECONFIG[ndiff] = ",--without-ndiff,python3" | 33 | PACKAGECONFIG[ndiff] = "--with-ndiff=yes,--without-ndiff,python3" |
| 32 | PACKAGECONFIG[update] = ",--without-nmap-update," | 34 | PACKAGECONFIG[update] = ",--without-nmap-update," |
| 33 | 35 | ||
| 34 | EXTRA_OECONF = "--with-libdnet=included --with-liblinear=included --without-subversion --with-liblua=included" | 36 | EXTRA_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 | ||
| 52 | do_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 | |||
| 50 | FILES_${PN} += "${PYTHON_SITEPACKAGES_DIR} ${datadir}/ncat" | 58 | FILES_${PN} += "${PYTHON_SITEPACKAGES_DIR} ${datadir}/ncat" |
| 51 | 59 | ||
| 52 | RDEPENDS_${PN} = "python3" | 60 | RDEPENDS_${PN} += "python3-core" |
