ports/155723: [patch] security/nmap does not build on FreeBSD 6.x
Eugene Grosbein
eugen at rdtc.ru
Sun Mar 20 15:30:04 UTC 2011
>Number: 155723
>Category: ports
>Synopsis: [patch] security/nmap does not build on FreeBSD 6.x
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Sun Mar 20 15:30:02 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator: Eugene Grosbein
>Release: FreeBSD 6.4-STABLE i386
>Organization:
RDTC JSC
>Environment:
System: FreeBSD hq.delikates-nk.ru 6.4-STABLE FreeBSD 6.4-STABLE #8: Mon Feb 1 22:28:06 KRAT 2010 root at hq.delikates-nk.ru:/usr/local/obj/usr/local/src/sys/HQ i386
>Description:
nmap-5.51 builds nping that depends on openssl-0.9.8 or newer
and fails to clearly state it at configure stage due to a bug
in it's configure script.
>How-To-Repeat:
Try to build the port security/nmap under FreeBSD 6.4 with stock openssl-0.9.7 only.
>Fix:
For 6.x, the port should depend on newer openssl version from Ports Collection.
diff -urN nmap.orig/Makefile nmap/Makefile
--- nmap.orig/Makefile 2011-03-20 20:56:53.000000000 +0600
+++ nmap/Makefile 2011-03-20 21:04:12.000000000 +0600
@@ -71,4 +71,10 @@
. endfor
.endif
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ( ${OSVERSION} < 700019 )
+WITH_OPENSSL_PORT=yes
+.endif
+
+.include <bsd.port.post.mk>
diff -urN nmap.orig/files/patch-nping-configure nmap/files/patch-nping-configure
--- nmap.orig/files/patch-nping-configure 1970-01-01 07:00:00.000000000 +0700
+++ nmap/files/patch-nping-configure 2011-03-20 20:40:58.000000000 +0600
@@ -0,0 +1,11 @@
+--- nping/configure.orig 2011-03-20 20:39:52.000000000 +0600
++++ nping/configure 2011-03-20 20:40:08.000000000 +0600
+@@ -4885,7 +4885,7 @@
+ if test "x$ac_cv_func_EVP_sha256" = x""yes; then :
+
+ else
+- as_fn_error "Your version of OpenSSL does not support SHA-256. Please install OpenSSL 0.9.8 or later." "$LINENO" 5
++ as_fn_error $? "Your version of OpenSSL does not support SHA-256. Please install OpenSSL 0.9.8 or later." "$LINENO" 5
+ fi
+
+ LIBS="$LIBS_TMP"
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list