Make nmap work with INET4-only kernels:

- add new FreeBSD-specific patch;
- remove invalid comment from Makefile (it did build but produced run-time error);
- bump PORTREVISION.

PR:		217558
Approved by:	ohauer (maintainer timeout, 10 weeks), vsevolod (mentor)
This commit is contained in:
Eugene Grosbein 2017-05-19 09:46:16 +00:00
parent 9db72d2b3c
commit bd4ff80337
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=441214
2 changed files with 12 additions and 1 deletions

View File

@ -3,6 +3,7 @@
PORTNAME= nmap
DISTVERSION= 7.40
PORTREVISION= 1
CATEGORIES= security ipv6
MASTER_SITES= http://nmap.org/dist/ \
LOCAL/ohauer
@ -24,7 +25,6 @@ LIB_DEPENDS= libpcre.so:devel/pcre
USES= tar:bzip2 gmake cpe
GNU_CONFIGURE= yes
# Note: nmap does no longer build agains custom kernel without IPv6!
OPTIONS_SUB= yes
OPTIONS_DEFINE= DOCS SSL
OPTIONS_DEFAULT=SSL

View File

@ -0,0 +1,11 @@
--- libdnet-stripped/src/intf.c.orig 2017-03-05 16:19:13.768984000 +0700
+++ libdnet-stripped/src/intf.c 2017-03-05 16:16:48.337379000 +0700
@@ -163,7 +163,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
return (intf_close(intf));
}