summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-security/nmap/nmap_7.95.bb
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2024-09-04 00:12:25 -0700
committerKhem Raj <raj.khem@gmail.com>2024-09-04 15:35:46 -0700
commit68f542b606d7f4755e050e33d3cd28ac549b399b (patch)
tree4fd5172debd563a26eea13e93c3eb9d322ea0968 /meta-oe/recipes-security/nmap/nmap_7.95.bb
parentcf174f190d75736aaa6c3ffe7e82d86d19930420 (diff)
downloadmeta-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.bb61
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 @@
1SUMMARY = "network auditing tool"
2DESCRIPTION = "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"
3SECTION = "security"
4LICENSE = "GPL-2.0-only"
5
6LIC_FILES_CHKSUM = "file://LICENSE;md5=895af8527fe4bcb72f271fd1841fd2f6"
7
8SRC_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 "
14SRC_URI[sha256sum] = "e14ab530e47b5afd88f1c8a2bac7f89cd8fe6b478e22d255c5b9bddb7a1c5778"
15inherit autotools-brokensep pkgconfig python3native
16
17PACKAGECONFIG ?= "pcre ncat nping pcap"
18
19PACKAGECONFIG[pcap] = "--with-pcap=linux, --without-pcap, libpcap, libpcap"
20PACKAGECONFIG[pcre] = "--with-libpcre=${STAGING_LIBDIR}/.., --with-libpcre=included, libpcre"
21PACKAGECONFIG[ssl] = "--with-openssl=${STAGING_LIBDIR}/.., --without-openssl, openssl, openssl"
22PACKAGECONFIG[ssh2] = "--with-openssh2=${STAGING_LIBDIR}/.., --without-openssh2, libssh2, libssh2"
23PACKAGECONFIG[libz] = "--with-libz=${STAGING_LIBDIR}/.., --without-libz, zlib, zlib"
24
25#disable/enable packages
26PACKAGECONFIG[nping] = ",--without-nping,"
27PACKAGECONFIG[ncat] = ",--without-ncat,"
28PACKAGECONFIG[ndiff] = "--with-ndiff=yes,--without-ndiff,python3"
29PACKAGECONFIG[update] = ",--without-nmap-update,"
30
31EXTRA_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
36EXTRA_OECONF += "--without-zenmap"
37
38export PYTHON_SITEPACKAGES_DIR
39
40do_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
47do_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
55FILES:${PN} += "${PYTHON_SITEPACKAGES_DIR} ${datadir}/ncat"
56
57RDEPENDS:${PN} += " \
58 python3-difflib \
59 python3-asyncio \
60 python3-xml \
61"