ports/57646: [MAINTAINER] port security/nmap: update to version 3.48

Marius Strobl marius at alchemy.franken.de
Mon Oct 6 19:30:21 UTC 2003


The following reply was made to PR ports/57646; it has been noted by GNATS.

From: Marius Strobl <marius at alchemy.franken.de>
To: eikemeier at fillmore-labs.com
Cc: freebsd-gnats-submit at FreeBSD.org
Subject: Re: ports/57646: [MAINTAINER] port security/nmap: update to version 3.48
Date: Mon, 6 Oct 2003 21:25:28 +0200

 --gMR3gsNFwZpnI/Ts
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: inline
 
 
 Hi,
 
 I still can't build Nmap using the OpenSSL port with this update (actually,
 the stock Nmap 3.48 still has bugs in the --with-openssl support):
 
 ===>  Extracting for nmap-3.48
 >> Checksum OK for nmap-3.48.tar.bz2.
 ===>  Patching for nmap-3.48
 ===>  Applying FreeBSD patches for nmap-3.48
 ===>   nmap-3.48 depends on shared library: pcre.0 - found
 ===>   nmap-3.48 depends on shared library: crypto.3 - found
 ===>  Configuring for nmap-3.48
 <...>
 configure: configuring in nbase
 configure: running /bin/sh './configure' --prefix=/usr/local  '--without-localdi
 rs' '--with-libpcre=/usr/local' '--with-openssl=/usr/local' '--without-nmapfe' '
 --prefix=/usr/local' '--build=sparc64-portbld-freebsd5.1' 'LDFLAGS= -rpath=/usr/
 local/lib' 'CFLAGS=-O -pipe ' 'CXX=c++' 'build_alias=sparc64-portbld-freebsd5.1'
  'CC=cc' 'CXXFLAGS=-O -pipe' --cache-file=/dev/null --srcdir=.
 <...>
 ===>  Building for nmap-3.48
 Compiling libnbase
 cd nbase && make
 cc -O -pipe  -Wall    -DHAVE_CONFIG_H -DNCRACK_VERSION=\"\" -DHAVE_CONFIG_H=1  -
 c snprintf.c
 cc -O -pipe  -Wall    -DHAVE_CONFIG_H -DNCRACK_VERSION=\"\" -DHAVE_CONFIG_H=1  -
 c getopt.c
 cc -O -pipe  -Wall    -DHAVE_CONFIG_H -DNCRACK_VERSION=\"\" -DHAVE_CONFIG_H=1  -
 c getopt1.c
 cc -O -pipe  -Wall    -DHAVE_CONFIG_H -DNCRACK_VERSION=\"\" -DHAVE_CONFIG_H=1  -
 c nbase_str.c
 cc -O -pipe  -Wall    -DHAVE_CONFIG_H -DNCRACK_VERSION=\"\" -DHAVE_CONFIG_H=1  -
 c nbase_misc.c
 cc -O -pipe  -Wall    -DHAVE_CONFIG_H -DNCRACK_VERSION=\"\" -DHAVE_CONFIG_H=1  -
 c nbase_memalloc.c
 cc -O -pipe  -Wall    -DHAVE_CONFIG_H -DNCRACK_VERSION=\"\" -DHAVE_CONFIG_H=1  -
 c nbase_rnd.c
 nbase_rnd.c:96:26: openssl/rand.h: No such file or directory
 nbase_rnd.c: In function `get_random_bytes':
 nbase_rnd.c:118: warning: implicit declaration of function `RAND_bytes'
 nbase_rnd.c:120: warning: implicit declaration of function `RAND_pseudo_bytes'
 nbase_rnd.c:165: warning: implicit declaration of function `RAND_seed'
 nbase_rnd.c:166: warning: implicit declaration of function `RAND_status'
 *** Error code 1
 
 Attached is a revised version of the update which fixes this. It's
 essentially your patch with small additions in patch-nbase::configure
 and patch-nsock::src::configure (nbase and nsock are C source so they
 get compiled with CC which means the OpenSSL include path has to be
 added to CFLAGS and not CXXFLAGS).
 
 
 --gMR3gsNFwZpnI/Ts
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: attachment; filename="security::nmap.diff6"
 
 Index: Makefile
 ===================================================================
 RCS file: /usr/data/bsd/cvs/fbsd/ports/security/nmap/Makefile,v
 retrieving revision 1.73
 diff -u -r1.73 Makefile
 --- Makefile	25 Sep 2003 16:19:24 -0000	1.73
 +++ Makefile	6 Oct 2003 17:47:04 -0000
 @@ -6,9 +6,10 @@
  #
  
  PORTNAME?=	nmap
 -PORTVERSION=	3.46
 +PORTVERSION=	3.48
  CATEGORIES=	security ipv6
 -MASTER_SITES=	http://download.insecure.org/nmap/dist/
 +MASTER_SITES=	http://download.insecure.org/nmap/dist/ \
 +		http://www.mirrors.wiretapped.net/security/network-mapping/nmap/
  DISTNAME=	nmap-${PORTVERSION}
  
  MAINTAINER=	eikemeier at fillmore-labs.com
 @@ -24,6 +25,8 @@
  .ifndef BUILD_NMAPFE
  
  MAN1=		nmap.1
 +MANLANG=	"" de.ISO8859-1 es.ISO8859-1 fr.ISO8859-1 it.ISO8859-15 \
 +		lt.ISO8859-13 pt.ISO8859-1 ru.KOI8-R
  
  LIB_DEPENDS=	pcre.0:${PORTSDIR}/devel/pcre
  
 @@ -42,7 +45,13 @@
  INSTALL_TARGET=	install-nmap
  
  post-install:
 -	@${STRIP_CMD} ${PREFIX}/bin/nmap
 +	@for lang in de.ISO8859-1=german es.ISO8859-1=spanish fr.ISO8859-1=french it.ISO8859-15=italian \
 +		lt.ISO8859-13=lithuanian pt.ISO8859-1=portuguese ru.KOI8-R=russian; do \
 +		llang="`expr $${lang} : '\([^=]*\)'`"; \
 +		elang="`expr $${lang} : '.*=\([^=]*\)'`"; \
 +		${MKDIR} ${MAN1PREFIX}/man/$${llang}/man1; \
 +		${INSTALL_MAN} ${WRKSRC}/docs/nmap_$${elang}.1 ${MAN1PREFIX}/man/$${llang}/man1/nmap.1; \
 +	done
  .ifndef NOPORTDOCS
  	@${MKDIR} ${DOCSDIR}
  	@for doc in CHANGELOG HACKING docs/nmap.dtd; do \
 @@ -69,9 +78,6 @@
  
  ALL_TARGET=	nbase/libnbase.a nmapfe/nmapfe
  INSTALL_TARGET=	install-nmapfe
 -
 -post-install:
 -	@${STRIP_CMD} ${PREFIX}/bin/nmapfe
  
  .endif
  
 Index: distinfo
 ===================================================================
 RCS file: /usr/data/bsd/cvs/fbsd/ports/security/nmap/distinfo,v
 retrieving revision 1.45
 diff -u -r1.45 distinfo
 --- distinfo	25 Sep 2003 16:19:24 -0000	1.45
 +++ distinfo	6 Oct 2003 17:47:04 -0000
 @@ -1 +1 @@
 -MD5 (nmap-3.46.tar.bz2) = 58974b2d4059752a9f66adc4659f7878
 +MD5 (nmap-3.48.tar.bz2) = 8c38559a863efd476c5b042123f1ee3a
 Index: files/patch-Makefile.in
 ===================================================================
 RCS file: /usr/data/bsd/cvs/fbsd/ports/security/nmap/files/patch-Makefile.in,v
 retrieving revision 1.2
 diff -u -r1.2 patch-Makefile.in
 --- files/patch-Makefile.in	25 Sep 2003 16:19:24 -0000	1.2
 +++ files/patch-Makefile.in	6 Oct 2003 17:47:04 -0000
 @@ -1,5 +1,5 @@
 ---- Makefile.in.orig	Sat Sep 20 11:00:04 2003
 -+++ Makefile.in	Wed Sep 24 23:59:42 2003
 +--- Makefile.in.orig	Mon Oct  6 12:57:49 2003
 ++++ Makefile.in	Mon Oct  6 12:58:00 2003
  @@ -9,7 +9,7 @@
   mandir = @mandir@
   srcdir = @srcdir@
 @@ -9,11 +9,3 @@
   
   NBASEDIR=@NBASEDIR@
   NSOCKDIR=@NSOCKDIR@
 -@@ -23,6 +23,7 @@
 - # For mtrace debugging -- see MTRACE define in main.cc for instructions
 - # Should only be enabled during debugging and not in any real release.
 - # DEFS += -DMTRACE=1
 -+CPPFLAGS = @CPPFLAGS@
 - CXXFLAGS = @CXXFLAGS@ $(CCOPT) $(DEFS) $(INCLS)
 - # CFLAGS = $(CXXFLAGS)
 - # CFLAGS = $(DEFS) $(INCLS)
 Index: files/patch-configure
 ===================================================================
 RCS file: /usr/data/bsd/cvs/fbsd/ports/security/nmap/files/patch-configure,v
 retrieving revision 1.3
 diff -u -r1.3 patch-configure
 --- files/patch-configure	26 Sep 2003 12:05:12 -0000	1.3
 +++ files/patch-configure	6 Oct 2003 17:47:04 -0000
 @@ -1,14 +1,5 @@
 ---- configure.orig	Sat Sep 20 09:06:56 2003
 -+++ configure	Wed Sep 24 23:09:21 2003
 -@@ -1302,7 +1302,7 @@
 -      fi
 -    if test -d /usr/local/include; then
 -      CFLAGS="$CFLAGS -I/usr/local/include"
 --     CXXFLAGS="$CFLAGS -I/usr/local/include"
 -+     CXXFLAGS="$CXXFLAGS -I/usr/local/include"
 -    fi
 - fi
 - 
 +--- configure.orig	Mon Oct  6 13:03:26 2003
 ++++ configure	Mon Oct  6 13:03:38 2003
  @@ -3299,7 +3299,7 @@
   
   
 @@ -18,95 +9,3 @@
   do
   as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
   if eval "test \"\${$as_ac_Header+set}\" = set"; then
 -@@ -4319,7 +4319,7 @@
 -     ;;
 -   *)
 -     specialssldir="$with_openssl"
 --    CXXFLAGS="$CXXFLAGS -I$with_openssl/include"
 -+    CPPFLAGS="$CPPFLAGS -I$with_openssl/include"
 -     LDFLAGS="$LDFLAGS -L$with_openssl/lib"
 -     ;;
 -   esac
 -@@ -5105,10 +5105,10 @@
 - 
 -     ;;
 -   *)
 --    _cppflags=$CXXFLAGS
 -+    _cppflags=$CPPFLAGS
 -     _ldflags=$LDFLAGS
 - 
 --    CXXFLAGS="-I$with_libpcap/include $CXXFLAGS"
 -+    CPPFLAGS="-I$with_libpcap/include $CPPFLAGS"
 -     LDFLAGS="-L$with_libpcap/lib $LDFLAGS"
 - 
 -     if test "${ac_cv_header_pcap_h+set}" = set; then
 -@@ -5307,7 +5307,7 @@
 - 
 - 
 -     LDFLAGS=$_ldflags
 --    CXXFLAGS=$_cppflags
 -+    CPPFLAGS=$_cppflags
 -     ;;
 -   esac
 - 
 -@@ -5323,10 +5323,10 @@
 - 
 - if test $have_libpcap = yes; then
 -   if test "${LIBPCAP_INC+set}" = "set"; then
 --    _cflags=$CXXFLAGS
 -+    _cppflags=$CPPFLAGS
 -     _ldflags=$LDFLAGS
 - 
 --    CXXFLAGS="-I$LIBPCAP_INC $CXXFLAGS"
 -+    CPPFLAGS="-I$LIBPCAP_INC $CPPFLAGS"
 -     LDFLAGS="-L$LIBPCAP_LIB $LDFLAGS"
 -   fi
 - 
 -@@ -5336,6 +5336,8 @@
 -   echo "$as_me:$LINENO: result: no" >&5
 - echo "${ECHO_T}no" >&6; have_libpcap=no
 - else
 -+  ac_check_lib_save_LIBS=$LIBS
 -+LIBS="-lpcap  $LIBS"
 -   cat >conftest.$ac_ext <<_ACEOF
 - #line $LINENO "configure"
 - /* confdefs.h.  */
 -@@ -5391,6 +5393,7 @@
 - echo "${ECHO_T}no" >&6; have_libpcap=no
 - fi
 - rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 -+LIBS=$ac_check_lib_save_LIBS
 - fi
 - fi
 - 
 -@@ -5406,10 +5409,10 @@
 - else
 -   if test "${LIBPCAP_INC+set}" = "set"; then
 -     LDFLAGS="-L$libpcapdir $_ldflags"
 --    CXXFLAGS="$_cflags -I$libpcapdir"
 -+    CPPFLAGS="$_cppflags -I$libpcapdir"
 -   else
 -     LDFLAGS="-L$libpcapdir $LDFLAGS"
 --    CXXFLAGS="$CXXFLAGS -I$libpcapdir"
 -+    CPPFLAGS="$CPPFLAGS -I$libpcapdir"
 -   fi
 -   PCAP_DEPENDS='$(LIBPCAPDIR)/libpcap.a'
 -   PCAP_CLEAN="pcap_clean"
 -@@ -5433,7 +5436,7 @@
 -   yes)
 -     ;;
 -   *)
 --    CXXFLAGS="-I$with_libpcre/include $CXXFLAGS"
 -+    CPPFLAGS="-I$with_libpcre/include $CPPFLAGS"
 -     LDFLAGS="-L$with_libpcre/lib $LDFLAGS"
 -     have_pcre=yes
 -     ;;
 -@@ -5844,7 +5847,7 @@
 - 
 - subdirs="$subdirs libpcre "
 - 
 --  CXXFLAGS="-I$LIBPCREDIR $CXXFLAGS"
 -+  CPPFLAGS="-I$LIBPCREDIR $CPPFLAGS"
 -   LIBPCRE_LIB="$LIBPCREDIR"
 -   LIBS="$LIBS $LIBPCRE_LIB/libpcre.a"
 -   PCRE_DEPENDS="$LIBPCRE_LIB/libpcre.a"
 Index: files/patch-nbase::configure
 ===================================================================
 RCS file: /usr/data/bsd/cvs/fbsd/ports/security/nmap/files/patch-nbase::configure,v
 retrieving revision 1.3
 diff -u -r1.3 patch-nbase::configure
 --- files/patch-nbase::configure	26 Sep 2003 12:05:12 -0000	1.3
 +++ files/patch-nbase::configure	6 Oct 2003 19:01:54 -0000
 @@ -1,5 +1,5 @@
 ---- nbase/configure.orig	Sat Sep 20 11:13:26 2003
 -+++ nbase/configure	Wed Sep 24 23:10:21 2003
 +--- nbase/configure.orig	Fri Oct  3 10:33:24 2003
 ++++ nbase/configure	Mon Oct  6 20:51:17 2003
  @@ -2971,7 +2971,7 @@
   
   
 @@ -9,12 +9,12 @@
   do
   as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
   if eval "test \"\${$as_ac_Header+set}\" = set"; then
 -@@ -5905,7 +5905,7 @@
 +@@ -5908,7 +5908,7 @@
       ;;
     *)
       specialssldir="$with_openssl"
  -    CXXFLAGS="-I$with_openssl/include $CXXFLAGS"
 -+    CPPFLAGS="-I$with_openssl/include $CPPFLAGS"
 ++    CFLAGS="-I$with_openssl/include $CFLAGS"
       ;;
     esac
   
 Index: files/patch-nmapfe::Makefile.in
 ===================================================================
 RCS file: /usr/data/bsd/cvs/fbsd/ports/security/nmap/files/patch-nmapfe::Makefile.in,v
 retrieving revision 1.1
 diff -u -r1.1 patch-nmapfe::Makefile.in
 --- files/patch-nmapfe::Makefile.in	1 Jul 2003 03:38:04 -0000	1.1
 +++ files/patch-nmapfe::Makefile.in	6 Oct 2003 17:47:04 -0000
 @@ -1,11 +1,11 @@
 ---- nmapfe/Makefile.in.orig	Mon Jan  1 22:22:37 2001
 -+++ nmapfe/Makefile.in	Fri Mar 16 16:56:47 2001
 -@@ -75 +75 @@
 +--- nmapfe/Makefile.in.orig	Mon Oct  6 13:00:32 2003
 ++++ nmapfe/Makefile.in	Mon Oct  6 13:01:05 2003
 +@@ -72,7 +72,7 @@
 + CONFIG_CLEAN_FILES = 
 + PROGRAMS =  $(bin_PROGRAMS)
 + 
  -DEFS = @DEFS@ -DVERSION=\"$(VERSION)\" -DHAVE_CONFIG_H=1 -I$(srcdir) 
 -+DEFS = @DEFS@ -DVERSION=\"$(VERSION)\" -DHAVE_CONFIG_H=1 -I$(srcdir) -DNMAP_PATH=\"$(bindir)/\"
 -@@ -236 +236 @@
 --%.o: %.c
 -+.c.o:
 -@@ -240 +240 @@
 --%.lo: %.c
 -+.c.lo:
 ++DEFS = @DEFS@ -DVERSION=\"$(VERSION)\" -DHAVE_CONFIG_H=1 -DNMAP_PATH=\"$(bindir)/\" -I$(srcdir)
 + CPPFLAGS = @CPPFLAGS@
 + STATIC =
 + LDFLAGS = @LDFLAGS@ $(STATIC)
 Index: files/patch-nmapfe::nmapfe_sig.c
 ===================================================================
 RCS file: /usr/data/bsd/cvs/fbsd/ports/security/nmap/files/patch-nmapfe::nmapfe_sig.c,v
 retrieving revision 1.1
 diff -u -r1.1 patch-nmapfe::nmapfe_sig.c
 --- files/patch-nmapfe::nmapfe_sig.c	1 Jul 2003 03:38:04 -0000	1.1
 +++ files/patch-nmapfe::nmapfe_sig.c	6 Oct 2003 17:47:04 -0000
 @@ -1,6 +1,6 @@
 ---- nmapfe/nmapfe_sig.c	Mon Jun 30 18:23:48 2003
 -+++ nmapfe/nmapfe_sig.c.new	Mon Jun 30 18:26:03 2003
 -@@ -372,7 +372,7 @@
 +--- nmapfe/nmapfe_sig.c.orig	Mon Oct  6 12:59:49 2003
 ++++ nmapfe/nmapfe_sig.c	Mon Oct  6 13:00:06 2003
 +@@ -410,7 +410,7 @@
     if (size > command_size)
       command = realloc(command, size);
   
 @@ -8,4 +8,4 @@
  +  strcpy(command, NMAP_PATH "nmap ");
    
     /* select the scan type */
 -   if (opt.scanValue == CONNECT_SCAN) {
 \ No newline at end of file
 +   if (opt.scanValue == CONNECT_SCAN) {
 Index: files/patch-nsock::src::configure
 ===================================================================
 RCS file: /usr/data/bsd/cvs/fbsd/ports/security/nmap/files/patch-nsock::src::configure,v
 retrieving revision 1.1
 diff -u -r1.1 patch-nsock::src::configure
 --- files/patch-nsock::src::configure	26 Sep 2003 12:05:12 -0000	1.1
 +++ files/patch-nsock::src::configure	6 Oct 2003 19:00:37 -0000
 @@ -1,67 +1,11 @@
 ---- nsock/src/configure.orig	Sat Sep 20 09:07:00 2003
 -+++ nsock/src/configure	Wed Sep 24 22:05:32 2003
 -@@ -3169,27 +3169,6 @@
 - 
 - 
 - 
 --# Check whether --with-libnbase or --without-libnbase was given.
 --if test "${with_libnbase+set}" = set; then
 --  withval="$with_libnbase"
 --    case "$with_libnbase" in
 --  yes)
 --    ;;
 --  *)
 --    NBASEDIR="$with_libnbase"
 --    ;;
 --  esac
 --else
 --  NBASEDIR="../../nbase"
 --
 --fi;
 --
 --LDFLAGS="$LDFLAGS -L$NBASEDIR"
 --CFLAGS="$CFLAGS -I$NBASEDIR"
 --LIBS="$LIBS -lnbase"
 --
 --
 --
 - # First we test whether they specified openssl desires explicitly
 - use_openssl="yes"
 - specialssldir=""
 -@@ -3206,7 +3185,7 @@
 +--- nsock/src/configure.orig	Mon Oct  6 20:59:44 2003
 ++++ nsock/src/configure	Mon Oct  6 21:00:01 2003
 +@@ -3207,7 +3207,7 @@
       ;;
     *)
       specialssldir="$with_openssl"
  -    CXXFLAGS="-I$with_openssl/include $CXXFLAGS"
 -+    CPPFLAGS="-I$with_openssl/include $CPPFLAGS"
 ++    CFLAGS="-I$with_openssl/include $CFLAGS"
       ;;
     esac
   
 -@@ -3856,6 +3835,27 @@
 - _ACEOF
 - 
 - fi
 -+
 -+
 -+# Check whether --with-libnbase or --without-libnbase was given.
 -+if test "${with_libnbase+set}" = set; then
 -+  withval="$with_libnbase"
 -+    case "$with_libnbase" in
 -+  yes)
 -+    ;;
 -+  *)
 -+    NBASEDIR="$with_libnbase"
 -+    ;;
 -+  esac
 -+else
 -+  NBASEDIR="../../nbase"
 -+
 -+fi;
 -+
 -+LDFLAGS="$LDFLAGS -L$NBASEDIR"
 -+CFLAGS="$CFLAGS -I$NBASEDIR"
 -+LIBS="$LIBS -lnbase"
 -+
 - 
 - 
 - echo "$as_me:$LINENO: checking struct ip" >&5
 
 --gMR3gsNFwZpnI/Ts--



More information about the freebsd-ports-bugs mailing list