From 95fcb2763a63065d737533e4e38e37b9fbf51959 Mon Sep 17 00:00:00 2001 From: Fredrik Fornwall Date: Tue, 15 Dec 2015 20:15:33 -0500 Subject: [PATCH] nmap: Update from 6.49BETA4 to 7.01 --- packages/nmap/build.sh | 4 ++-- packages/nmap/nmap_dns.cc.patch | 15 +++++++++++++++ 2 files changed, 17 insertions(+), 2 deletions(-) create mode 100644 packages/nmap/nmap_dns.cc.patch diff --git a/packages/nmap/build.sh b/packages/nmap/build.sh index 36075bece..8274933e5 100644 --- a/packages/nmap/build.sh +++ b/packages/nmap/build.sh @@ -1,8 +1,8 @@ TERMUX_PKG_HOMEPAGE=https://nmap.org/ TERMUX_PKG_DESCRIPTION="Utility for network discovery and security auditing" -TERMUX_PKG_VERSION=6.49BETA4 +TERMUX_PKG_VERSION=7.01 TERMUX_PKG_SRCURL=https://nmap.org/dist/nmap-${TERMUX_PKG_VERSION}.tar.bz2 -TERMUX_PKG_DEPENDS="libpcap, pcre, openssl" +TERMUX_PKG_DEPENDS="libpcap, pcre, openssl, resolv-conf" # --without-nmap-update to avoid linking against libsvn_client: # --without-zenmap to avoid python scripts for graphical gtk frontend: # --with-liblua=included to use internal liblua, since only lua 5.2 supported: diff --git a/packages/nmap/nmap_dns.cc.patch b/packages/nmap/nmap_dns.cc.patch new file mode 100644 index 000000000..13cc3a553 --- /dev/null +++ b/packages/nmap/nmap_dns.cc.patch @@ -0,0 +1,15 @@ +diff -u -r ../nmap-7.01/nmap_dns.cc ./nmap_dns.cc +--- ../nmap-7.01/nmap_dns.cc 2015-10-07 13:49:24.000000000 -0400 ++++ ./nmap_dns.cc 2015-12-15 18:49:27.994641597 -0500 +@@ -959,9 +959,9 @@ + char fmt[32]; + char ipaddr[INET6_ADDRSTRLEN+1]; + +- fp = fopen("/etc/resolv.conf", "r"); ++ fp = fopen("@TERMUX_PREFIX@/etc/resolv.conf", "r"); + if (fp == NULL) { +- if (firstrun) error("mass_dns: warning: Unable to open /etc/resolv.conf. Try using --system-dns or specify valid servers with --dns-servers"); ++ if (firstrun) error("mass_dns: warning: Unable to open $PREFIX/etc/resolv.conf. Try using --system-dns or specify valid servers with --dns-servers"); + return; + } +