From owner-svn-ports-all@freebsd.org Fri May 19 09:46:17 2017 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C0357D74A4A; Fri, 19 May 2017 09:46:17 +0000 (UTC) (envelope-from eugen@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 772271504; Fri, 19 May 2017 09:46:17 +0000 (UTC) (envelope-from eugen@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id v4J9kGpj039772; Fri, 19 May 2017 09:46:16 GMT (envelope-from eugen@FreeBSD.org) Received: (from eugen@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id v4J9kGD1039770; Fri, 19 May 2017 09:46:16 GMT (envelope-from eugen@FreeBSD.org) Message-Id: <201705190946.v4J9kGD1039770@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: eugen set sender to eugen@FreeBSD.org using -f From: Eugene Grosbein Date: Fri, 19 May 2017 09:46:16 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r441214 - in head/security/nmap: . files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 19 May 2017 09:46:17 -0000 Author: eugen Date: Fri May 19 09:46:16 2017 New Revision: 441214 URL: https://svnweb.freebsd.org/changeset/ports/441214 Log: 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) Added: head/security/nmap/files/patch-intf.c (contents, props changed) Modified: head/security/nmap/Makefile Modified: head/security/nmap/Makefile ============================================================================== --- head/security/nmap/Makefile Fri May 19 09:25:13 2017 (r441213) +++ head/security/nmap/Makefile Fri May 19 09:46:16 2017 (r441214) @@ -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 Added: head/security/nmap/files/patch-intf.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/security/nmap/files/patch-intf.c Fri May 19 09:46:16 2017 (r441214) @@ -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)); + }