diff --git a/security/nmap-devel/Makefile b/security/nmap-devel/Makefile index 108bf3a940b9..a42f4373b950 100644 --- a/security/nmap-devel/Makefile +++ b/security/nmap-devel/Makefile @@ -1,90 +1,90 @@ PORTNAME= nmap PORTVERSION= 7.95.${NMAP_COMMIT_DATE} CATEGORIES= security PKGNAMESUFFIX= -devel MAINTAINER?= cy@FreeBSD.org COMMENT?= Port scanning utility for large networks WWW= https://nmap.org/ # nmap-6.47 => svn.nmap.org/nmap-releases/nmap-6.47 (r33605) # https://nmap.org/book/man-legal.html # Install the nmap modified license because of # http://insecure.org/news/download-com-fiasco.html LICENSE= NPSL LICENSE_NAME= Nmap Public Source License LICENSE_FILE= ${WRKSRC}/LICENSE LICENSE_PERMS= auto-accept dist-mirror pkg-mirror pkg-sell .if !defined(MASTERDIR) LIB_DEPENDS= libpcre2-16.so:devel/pcre2 USES= gmake cpe libtool # XXX limit results if we do a grep in the sources! EXTRACT_AFTER_ARGS= --exclude ${GH_PROJECT_DEFAULT}-${GH_TAGNAME_EXTRACT}/mswin32 \ --no-same-owner --no-same-permissions USE_GITHUB= yes -GH_TAGNAME= 4ab57093d -NMAP_COMMIT_DATE= 20250323 +GH_TAGNAME= eddc779a0 +NMAP_COMMIT_DATE= 20250430 GNU_CONFIGURE= yes CONFIGURE_ARGS=--without-localdirs \ --without-zenmap \ --without-ndiff \ --with-libpcre=${LOCALBASE} \ --with-liblua=included \ --without-nmap-update MAKE_JOBS_UNSAFE= yes GNU_CONFIGURE_MANPREFIX=${PREFIX}/share OPTIONS_DEFINE= DOCS NLS PCAP SSH2 SSL OPTIONS_DEFAULT=NLS SSH2 SSL OPTIONS_SUB= yes PCAP_DESC= Build with libpcap from nmap SSH2_DESC= SSH2 protocol support NLS_CONFIGURE_ENABLE= nls PCAP_CONFIGURE_ON= --with-libpcap=included SSH2_IMPLIES= SSL SSH2_CONFIGURE_ON= --with-libssh2=included SSH2_CONFIGURE_OFF= --without-libssh2 SSL_USES= ssl SSL_CONFIGURE_ON= --with-openssl=${OPENSSLBASE} SSL_CONFIGURE_OFF= --without-openssl SSL_CFLAGS= -I${OPENSSLINC} SSL_VARS= STRIP_FILES+=ncat DOCS= CHANGELOG HACKING STRIP_FILES+= nmap nping .include .if exists(/usr/lib/libibverbs.a) # Link with libibverbs is needed by static libpcap post-patch-PCAP-on: @${REINPLACE_CMD} -E -e "s|(PCAP_LIBS=['\"].*)(['\"])$$|\1 -libverbs\2|" \ ${WRKSRC}/configure \ ${WRKSRC}/nping/configure \ ${WRKSRC}/ncat/configure .endif post-configure: @${REINPLACE_CMD} -e "s|^DESTDIR *=|& ${DESTDIR}|" ${WRKSRC}/Makefile pre-install: ${FIND} ${WRKSRC} -type f \( -name \*.orig -o -name \*.bak \) -delete post-install: ${STRIP_CMD} ${STRIP_FILES:S|^|${STAGEDIR}${PREFIX}/bin/|} post-install-DOCS-on: @${MKDIR} ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${DOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR} .endif .include diff --git a/security/nmap-devel/distinfo b/security/nmap-devel/distinfo index e37f4264abf9..8098b0d35901 100644 --- a/security/nmap-devel/distinfo +++ b/security/nmap-devel/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1743051294 -SHA256 (nmap-nmap-7.95.20250323-4ab57093d_GH0.tar.gz) = 14cfca5207b5770c8d7556561f29d2a4d76ec8a5639ee8f339e073f7003173c9 -SIZE (nmap-nmap-7.95.20250323-4ab57093d_GH0.tar.gz) = 15445384 +TIMESTAMP = 1746453321 +SHA256 (nmap-nmap-7.95.20250430-eddc779a0_GH0.tar.gz) = 4050bd2f708e25d8f3d95ad6dd74f5becf682d447e78f314cfdbb86fb56b00db +SIZE (nmap-nmap-7.95.20250430-eddc779a0_GH0.tar.gz) = 15802043 diff --git a/security/nmap-devel/files/patch-libdnet-stripped_configure b/security/nmap-devel/files/patch-libdnet-stripped_configure index 74170ec491a6..06520638f3ea 100644 --- a/security/nmap-devel/files/patch-libdnet-stripped_configure +++ b/security/nmap-devel/files/patch-libdnet-stripped_configure @@ -1,26 +1,12 @@ ---- libdnet-stripped/configure.orig 2017-08-02 18:48:27 UTC +--- libdnet-stripped/configure.orig 2025-04-30 19:58:18 UTC +++ libdnet-stripped/configure -@@ -764,6 +764,9 @@ ac_includes_default="\ - #ifdef HAVE_STDINT_H - # include +@@ -650,6 +650,9 @@ ac_includes_default="\ + #ifdef HAVE_SYS_STAT_H + # include #endif +#ifdef HAVE_SYS_SOCKET_H +# include +#endif #ifdef HAVE_UNISTD_H # include #endif" -@@ -11828,11 +11831,8 @@ $as_echo_n "checking for Berkeley Packet Filter... " > - if ${ac_cv_dnet_bsd_bpf+:} false; then : - $as_echo_n "(cached) " >&6 - else -- if test -c /dev/bpf0 ; then -- ac_cv_dnet_bsd_bpf=yes -- else -- ac_cv_dnet_bsd_bpf=no -- fi -+# PR ports/154353 : support building in FreeBSD jail -+ ac_cv_dnet_bsd_bpf=yes - fi - - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_dnet_bsd_bpf" >&5 diff --git a/security/nmap-devel/files/patch-libdnet-stripped_src_eth-bsd.c b/security/nmap-devel/files/patch-libdnet-stripped_src_eth-bsd.c deleted file mode 100644 index 24d538b095f8..000000000000 --- a/security/nmap-devel/files/patch-libdnet-stripped_src_eth-bsd.c +++ /dev/null @@ -1,11 +0,0 @@ ---- libdnet-stripped/src/eth-bsd.c.orig 2009-11-09 04:49:32 UTC -+++ libdnet-stripped/src/eth-bsd.c -@@ -45,7 +45,7 @@ eth_open(const char *device) - int i; - - if ((e = calloc(1, sizeof(*e))) != NULL) { -- for (i = 0; i < 128; i++) { -+ for (i = 0; i < 1024; i++) { - snprintf(file, sizeof(file), "/dev/bpf%d", i); - /* This would be O_WRONLY, but Mac OS X 10.6 has a bug - where that prevents other users of the interface diff --git a/security/nmap-devel/files/patch-libdnet-stripped_src_intf.c b/security/nmap-devel/files/patch-libdnet-stripped_src_intf.c index 188374dfaaee..649d6bedb578 100644 --- a/security/nmap-devel/files/patch-libdnet-stripped_src_intf.c +++ b/security/nmap-devel/files/patch-libdnet-stripped_src_intf.c @@ -1,11 +1,11 @@ ---- libdnet-stripped/src/intf.c.orig 2016-07-27 20:11:27 UTC +--- libdnet-stripped/src/intf.c.orig 2025-04-30 19:58:18 UTC +++ libdnet-stripped/src/intf.c -@@ -163,7 +163,7 @@ intf_open(void) +@@ -178,7 +178,7 @@ intf_open(void) #if defined(SIOCGLIFCONF) || defined(SIOCGIFNETMASK_IN6) || defined(SIOCGIFNETMASK6) if ((intf->fd6 = socket(AF_INET6, SOCK_DGRAM, 0)) < 0) { # ifdef EPROTONOSUPPORT - if (errno != EPROTONOSUPPORT) + if (errno != EPROTONOSUPPORT && errno != EAFNOSUPPORT) - # endif + #endif return (intf_close(intf)); } diff --git a/security/nmap-devel/files/patch-liblua_Makefile b/security/nmap-devel/files/patch-liblua_Makefile index 5ff1968b2350..d21c7f3f7947 100644 --- a/security/nmap-devel/files/patch-liblua_Makefile +++ b/security/nmap-devel/files/patch-liblua_Makefile @@ -1,13 +1,13 @@ ---- liblua/Makefile.orig 2016-07-02 17:02:27 UTC +--- liblua/Makefile.orig 2025-04-30 19:58:18 UTC +++ liblua/Makefile -@@ -6,8 +6,8 @@ +@@ -6,8 +6,8 @@ PLAT= guess # Your platform. See PLATS for possible values. - PLAT= none + PLAT= guess -CC= gcc -std=gnu99 -CFLAGS= -O2 -Wall -Wextra -DLUA_COMPAT_5_3 $(SYSCFLAGS) $(MYCFLAGS) +CC?= gcc -std=gnu99 +CFLAGS= -Wall -Wextra -DLUA_COMPAT_5_3 $(SYSCFLAGS) $(MYCFLAGS) LDFLAGS= $(SYSLDFLAGS) $(MYLDFLAGS) LIBS= -lm $(SYSLIBS) $(MYLIBS) diff --git a/security/nmap-devel/files/patch-libpcap_Makefile.in b/security/nmap-devel/files/patch-libpcap_Makefile.in index 91bae33073bf..60dcc4e7d17e 100644 --- a/security/nmap-devel/files/patch-libpcap_Makefile.in +++ b/security/nmap-devel/files/patch-libpcap_Makefile.in @@ -1,13 +1,11 @@ ---- libpcap/Makefile.in.orig 2022-08-31 11:39:55.000000000 -0700 -+++ libpcap/Makefile.in 2022-09-28 08:38:02.131119000 -0700 -@@ -70,8 +70,8 @@ - EXTRA_NETWORK_LIBS=@EXTRA_NETWORK_LIBS@ +--- libpcap/Makefile.in.orig 2025-04-30 19:58:18 UTC ++++ libpcap/Makefile.in +@@ -69,7 +69,7 @@ INSTALL_RPCAPD=@INSTALL_RPCAPD@ + INSTALL_RPCAPD=@INSTALL_RPCAPD@ # Standard CFLAGS for building members of a shared library -FULL_CFLAGS = $(CCOPT) @V_LIB_CCOPT_FAT@ $(SHLIB_CCOPT) $(INCLS) $(DEFS) $(CFLAGS) --CXXFLAGS = $(CCOPT) @V_LIB_CCOPT_FAT@ $(SHLIB_CCOPT) $(INCLS) $(DEFS) $(CFLAGS) +FULL_CFLAGS = -I. $(CCOPT) @V_LIB_CCOPT_FAT@ $(SHLIB_CCOPT) $(INCLS) $(DEFS) $(CFLAGS) -+CXXFLAGS = -I. $(CCOPT) @V_LIB_CCOPT_FAT@ $(SHLIB_CCOPT) $(INCLS) $(DEFS) $(CFLAGS) INSTALL = @INSTALL@ INSTALL_PROGRAM = @INSTALL_PROGRAM@