ports/155276: [PATCH] security/nmap: Fix build on 6.x

chinsan chinsan at FreeBSD.org
Fri Mar 4 21:10:09 UTC 2011


>Number:         155276
>Category:       ports
>Synopsis:       [PATCH] security/nmap: Fix build on 6.x
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri Mar 04 21:10:09 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     chinsan
>Release:        FreeBSD 7.1-STABLE i386
>Organization:
Taiwan
>Environment:
System: FreeBSD chinsan.info 7.1-STABLE FreeBSD 7.1-STABLE #0: Mon Jan 12 01:44:01 CST 2009
>Description:
- Fix build on 6.x
  As nmap/nping needs OpenSSL to supports SHA-256 (ver 0.9.8 or later).
  Check for OPENSSL 0.9.8 in BASE:  If not present require PORT

Port maintainer (ohauer at FreeBSD.org) is cc'd.

Generated with FreeBSD Port Tools 0.99
>How-To-Repeat:
>Fix:

--- nmap-5.51.patch begins here ---
diff -ruN --exclude=CVS /usr/ports/security/nmap/Makefile /usr/home/tinderbox/tinderbox-3.3/portstrees/FreeBSD/ports/security/nmap/Makefile
--- /usr/ports/security/nmap/Makefile	2011-02-14 06:07:34.000000000 +0800
+++ /usr/home/tinderbox/tinderbox-3.3/portstrees/FreeBSD/ports/security/nmap/Makefile	2011-03-05 05:07:04.000000000 +0800
@@ -35,8 +35,21 @@
 MAN1=		nmap.1
 MAN1_EN=	ncat.1 nping.1
 
-.ifndef WITHOUT_SSL
-USE_OPENSSL=	yes
+PORTDOCS=	CHANGELOG HACKING
+EXAMPLES=	docs/sample-script.nse
+PORTEXAMPLES=	${EXAMPLES:T}
+
+.include <bsd.port.pre.mk>
+
+.if !defined(WITHOUT_SSL)
+# nmap/nping needs OpenSSL to supports SHA-256 (ver 0.9.8 or later).
+# Check for OPENSSL 0.9.8 in BASE:  If not present require PORT
+.if ${OSVERSION} < 700019
+WITH_OPENSSL_PORT=	yes
+.else
+WITH_OPENSSL_BASE=	yes
+.endif
+.include "${PORTSDIR}/Mk/bsd.openssl.mk"
 CONFIGURE_ARGS+=	--with-openssl=${OPENSSLBASE}
 CONFIGURE_ENV+=		CFLAGS="${CFLAGS} -I${OPENSSLINC}"
 PLIST_SUB+=		WITHSSL=""
@@ -46,10 +59,6 @@
 PLIST_SUB+=		WITHSSL="@comment "
 .endif
 
-PORTDOCS=	CHANGELOG HACKING
-EXAMPLES=	docs/sample-script.nse
-PORTEXAMPLES=	${EXAMPLES:T}
-
 # XXX limit results if we do a grep in the sources!
 post-extract:
 	@${RM} -rf ${WRKSRC}/mswin32
@@ -71,4 +80,4 @@
 .	endfor
 .endif
 
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
--- nmap-5.51.patch ends here ---

>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list