diff options
Diffstat (limited to 'meta-oe/recipes-security/nmap')
| -rw-r--r-- | meta-oe/recipes-security/nmap/nmap_7.92.bb | 66 | ||||
| -rw-r--r-- | meta-oe/recipes-security/nmap/nmap_7.99.bb (renamed from meta-oe/recipes-security/nmap/nmap_7.95.bb) | 8 |
2 files changed, 2 insertions, 72 deletions
diff --git a/meta-oe/recipes-security/nmap/nmap_7.92.bb b/meta-oe/recipes-security/nmap/nmap_7.92.bb deleted file mode 100644 index 98969fe001..0000000000 --- a/meta-oe/recipes-security/nmap/nmap_7.92.bb +++ /dev/null | |||
| @@ -1,66 +0,0 @@ | |||
| 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-only" | ||
| 5 | |||
| 6 | LIC_FILES_CHKSUM = "file://LICENSE;md5=b8823a06822788010eae05b4f5e921b3" | ||
| 7 | |||
| 8 | SRC_URI = "http://nmap.org/dist/${BP}.tar.bz2 \ | ||
| 9 | file://0001-redefine-the-python-library-install-dir.patch \ | ||
| 10 | file://0002-replace-.-shtool-mkdir-with-coreutils-mkdir-command.patch \ | ||
| 11 | file://0003-Include-time.h-header-to-pass-clang-compilation.patch \ | ||
| 12 | file://0004-Fix-building-with-libc.patch \ | ||
| 13 | file://0005-fix-racing-between-build-ncat-and-build-lua.patch \ | ||
| 14 | file://0006-Fix-build-with-libpcap-1.10.5.patch \ | ||
| 15 | " | ||
| 16 | SRC_URI[sha256sum] = "a5479f2f8a6b0b2516767d2f7189c386c1dc858d997167d7ec5cfc798c7571a1" | ||
| 17 | |||
| 18 | UPSTREAM_CHECK_REGEX = "nmap-(?P<pver>\d+(\.\d+)+)\.tar" | ||
| 19 | |||
| 20 | inherit autotools-brokensep pkgconfig python3native | ||
| 21 | |||
| 22 | PACKAGECONFIG ?= "pcre ncat nping pcap" | ||
| 23 | |||
| 24 | PACKAGECONFIG[pcap] = "--with-pcap=linux, --without-pcap, libpcap, libpcap" | ||
| 25 | PACKAGECONFIG[pcre] = "--with-libpcre=${STAGING_LIBDIR}/.., --with-libpcre=included, libpcre" | ||
| 26 | PACKAGECONFIG[ssl] = "--with-openssl=${STAGING_LIBDIR}/.., --without-openssl, openssl, openssl" | ||
| 27 | PACKAGECONFIG[ssh2] = "--with-openssh2=${STAGING_LIBDIR}/.., --without-openssh2, libssh2, libssh2" | ||
| 28 | PACKAGECONFIG[libz] = "--with-libz=${STAGING_LIBDIR}/.., --without-libz, zlib, zlib" | ||
| 29 | |||
| 30 | # disable/enable packages | ||
| 31 | PACKAGECONFIG[nping] = ",--without-nping," | ||
| 32 | PACKAGECONFIG[ncat] = ",--without-ncat," | ||
| 33 | PACKAGECONFIG[ndiff] = "--with-ndiff=yes,--without-ndiff,python3 python3-setuptools-native" | ||
| 34 | PACKAGECONFIG[update] = ",--without-nmap-update," | ||
| 35 | |||
| 36 | EXTRA_OECONF = "--with-libdnet=included --with-liblinear=included --without-subversion --with-liblua=included" | ||
| 37 | |||
| 38 | # zenmap needs python-pygtk which has been removed | ||
| 39 | # it also only works with python2 | ||
| 40 | # disable for now until py3 is supported | ||
| 41 | EXTRA_OECONF += "--without-zenmap" | ||
| 42 | |||
| 43 | export PYTHON_SITEPACKAGES_DIR | ||
| 44 | |||
| 45 | do_configure() { | ||
| 46 | autoconf | ||
| 47 | install -m 0755 ${STAGING_DATADIR_NATIVE}/gnu-config/config.guess ${S} | ||
| 48 | install -m 0755 ${STAGING_DATADIR_NATIVE}/gnu-config/config.sub ${S} | ||
| 49 | oe_runconf | ||
| 50 | } | ||
| 51 | |||
| 52 | do_install:append() { | ||
| 53 | for f in ndiff uninstall_ndiff; do | ||
| 54 | if [ -f ${D}${bindir}/$f ]; then | ||
| 55 | sed -i 's@^#!.*$@#!/usr/bin/env python3@g' ${D}${bindir}/$f | ||
| 56 | fi | ||
| 57 | done | ||
| 58 | } | ||
| 59 | |||
| 60 | FILES:${PN} += "${PYTHON_SITEPACKAGES_DIR} ${datadir}/ncat" | ||
| 61 | |||
| 62 | RDEPENDS:${PN} += " \ | ||
| 63 | python3-difflib \ | ||
| 64 | python3-asyncio \ | ||
| 65 | python3-xml \ | ||
| 66 | " | ||
diff --git a/meta-oe/recipes-security/nmap/nmap_7.95.bb b/meta-oe/recipes-security/nmap/nmap_7.99.bb index a892c1e910..b38c0ae925 100644 --- a/meta-oe/recipes-security/nmap/nmap_7.95.bb +++ b/meta-oe/recipes-security/nmap/nmap_7.99.bb | |||
| @@ -13,7 +13,7 @@ SRC_URI = "http://nmap.org/dist/${BP}.tar.bz2 \ | |||
| 13 | file://0003-Fix-off-by-one-overflow-in-the-IP-protocol-table.patch \ | 13 | file://0003-Fix-off-by-one-overflow-in-the-IP-protocol-table.patch \ |
| 14 | file://0001-fix-racing-between-build-ncat-and-build-lua.patch \ | 14 | file://0001-fix-racing-between-build-ncat-and-build-lua.patch \ |
| 15 | " | 15 | " |
| 16 | SRC_URI[sha256sum] = "e14ab530e47b5afd88f1c8a2bac7f89cd8fe6b478e22d255c5b9bddb7a1c5778" | 16 | SRC_URI[sha256sum] = "df512492ffd108e53a27a06f26d8635bbe89e0e569455dc8ffef058c035d51b2" |
| 17 | 17 | ||
| 18 | UPSTREAM_CHECK_REGEX = "nmap-(?P<pver>\d+(\.\d+)+)\.tar" | 18 | UPSTREAM_CHECK_REGEX = "nmap-(?P<pver>\d+(\.\d+)+)\.tar" |
| 19 | 19 | ||
| @@ -59,8 +59,4 @@ do_install:append() { | |||
| 59 | 59 | ||
| 60 | FILES:${PN} += "${PYTHON_SITEPACKAGES_DIR} ${datadir}/ncat" | 60 | FILES:${PN} += "${PYTHON_SITEPACKAGES_DIR} ${datadir}/ncat" |
| 61 | 61 | ||
| 62 | RDEPENDS:${PN} += " \ | 62 | RDEPENDS:${PN} += "${@bb.utils.contains('PACKAGECONFIG', 'ndiff', 'python3-difflib python3-asyncio python3-xml', '', d)}" |
| 63 | python3-difflib \ | ||
| 64 | python3-asyncio \ | ||
| 65 | python3-xml \ | ||
| 66 | " | ||
