diff options
| author | Khem Raj <raj.khem@gmail.com> | 2024-09-04 00:12:25 -0700 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2024-09-04 15:35:46 -0700 |
| commit | 68f542b606d7f4755e050e33d3cd28ac549b399b (patch) | |
| tree | 4fd5172debd563a26eea13e93c3eb9d322ea0968 /meta-oe/recipes-security/nmap/nmap_7.95.bb | |
| parent | cf174f190d75736aaa6c3ffe7e82d86d19930420 (diff) | |
| download | meta-openembedded-68f542b606d7f4755e050e33d3cd28ac549b399b.tar.gz | |
nmap: Upgrade to 7.95
License-Update: Use full file for checksum ( COPYING -> LICENSE )
Use system libpcre
Drop py3 support patches, its default now
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-oe/recipes-security/nmap/nmap_7.95.bb')
| -rw-r--r-- | meta-oe/recipes-security/nmap/nmap_7.95.bb | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/meta-oe/recipes-security/nmap/nmap_7.95.bb b/meta-oe/recipes-security/nmap/nmap_7.95.bb new file mode 100644 index 0000000000..d3273dc4e9 --- /dev/null +++ b/meta-oe/recipes-security/nmap/nmap_7.95.bb | |||
| @@ -0,0 +1,61 @@ | |||
| 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=895af8527fe4bcb72f271fd1841fd2f6" | ||
| 7 | |||
| 8 | SRC_URI = "http://nmap.org/dist/${BP}.tar.bz2 \ | ||
| 9 | file://nmap-redefine-the-python-library-dir.patch \ | ||
| 10 | file://nmap-replace-shtool-mkdir-with-coreutils-mkdir-command.patch \ | ||
| 11 | file://0001-Include-time.h-header-to-pass-clang-compilation.patch \ | ||
| 12 | file://0002-Fix-building-with-libc.patch \ | ||
| 13 | " | ||
| 14 | SRC_URI[sha256sum] = "e14ab530e47b5afd88f1c8a2bac7f89cd8fe6b478e22d255c5b9bddb7a1c5778" | ||
| 15 | inherit autotools-brokensep pkgconfig python3native | ||
| 16 | |||
| 17 | PACKAGECONFIG ?= "pcre ncat nping pcap" | ||
| 18 | |||
| 19 | PACKAGECONFIG[pcap] = "--with-pcap=linux, --without-pcap, libpcap, libpcap" | ||
| 20 | PACKAGECONFIG[pcre] = "--with-libpcre=${STAGING_LIBDIR}/.., --with-libpcre=included, libpcre" | ||
| 21 | PACKAGECONFIG[ssl] = "--with-openssl=${STAGING_LIBDIR}/.., --without-openssl, openssl, openssl" | ||
| 22 | PACKAGECONFIG[ssh2] = "--with-openssh2=${STAGING_LIBDIR}/.., --without-openssh2, libssh2, libssh2" | ||
| 23 | PACKAGECONFIG[libz] = "--with-libz=${STAGING_LIBDIR}/.., --without-libz, zlib, zlib" | ||
| 24 | |||
| 25 | #disable/enable packages | ||
| 26 | PACKAGECONFIG[nping] = ",--without-nping," | ||
| 27 | PACKAGECONFIG[ncat] = ",--without-ncat," | ||
| 28 | PACKAGECONFIG[ndiff] = "--with-ndiff=yes,--without-ndiff,python3" | ||
| 29 | PACKAGECONFIG[update] = ",--without-nmap-update," | ||
| 30 | |||
| 31 | EXTRA_OECONF = "--with-libdnet=included --with-liblinear=included --without-subversion --with-liblua=included" | ||
| 32 | |||
| 33 | # zenmap needs python-pygtk which has been removed | ||
| 34 | # it also only works with python2 | ||
| 35 | # disable for now until py3 is supported | ||
| 36 | EXTRA_OECONF += "--without-zenmap" | ||
| 37 | |||
| 38 | export PYTHON_SITEPACKAGES_DIR | ||
| 39 | |||
| 40 | do_configure() { | ||
| 41 | autoconf | ||
| 42 | install -m 0755 ${STAGING_DATADIR_NATIVE}/gnu-config/config.guess ${S} | ||
| 43 | install -m 0755 ${STAGING_DATADIR_NATIVE}/gnu-config/config.sub ${S} | ||
| 44 | oe_runconf | ||
| 45 | } | ||
| 46 | |||
| 47 | do_install:append() { | ||
| 48 | for f in ndiff uninstall_ndiff; do | ||
| 49 | if [ -f ${D}${bindir}/$f ]; then | ||
| 50 | sed -i 's@^#!.*$@#!/usr/bin/env python3@g' ${D}${bindir}/$f | ||
| 51 | fi | ||
| 52 | done | ||
| 53 | } | ||
| 54 | |||
| 55 | FILES:${PN} += "${PYTHON_SITEPACKAGES_DIR} ${datadir}/ncat" | ||
| 56 | |||
| 57 | RDEPENDS:${PN} += " \ | ||
| 58 | python3-difflib \ | ||
| 59 | python3-asyncio \ | ||
| 60 | python3-xml \ | ||
| 61 | " | ||
