add patches forgotten in previous commit
Submitted by: maintainer Pointy hat to: leeym
This commit is contained in:
parent
3114b9d27c
commit
201bc6c998
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=89446
3 changed files with 199 additions and 0 deletions
112
security/nmap/files/patch-configure
Normal file
112
security/nmap/files/patch-configure
Normal file
|
@ -0,0 +1,112 @@
|
|||
--- 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
|
||||
|
||||
@@ -3299,7 +3299,7 @@
|
||||
|
||||
|
||||
|
||||
-for ac_header in string.h getopt.h strings.h memory.h sys/param.h sys/sockio.h bstring.h sys/time.h pwd.h unistd.h
|
||||
+for ac_header in string.h strings.h memory.h sys/param.h sys/sockio.h bstring.h sys/time.h pwd.h unistd.h
|
||||
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"
|
20
security/nmap/files/patch-nbase::configure
Normal file
20
security/nmap/files/patch-nbase::configure
Normal file
|
@ -0,0 +1,20 @@
|
|||
--- nbase/configure.orig Sat Sep 20 11:13:26 2003
|
||||
+++ nbase/configure Wed Sep 24 23:10:21 2003
|
||||
@@ -2971,7 +2971,7 @@
|
||||
|
||||
|
||||
|
||||
-for ac_header in string.h getopt.h strings.h memory.h sys/param.h sys/time.h unistd.h bstring.h errno.h sys/types.h sys/socket.h netinet/in.h sys/sockio.h rpc/types.h netdb.h pwd.h arpa/inet.h sys/resource.h sys/stat.h sys/wait.h libiberty.h fcntl.h
|
||||
+for ac_header in string.h strings.h memory.h sys/param.h sys/time.h unistd.h bstring.h errno.h sys/types.h sys/socket.h netinet/in.h sys/sockio.h rpc/types.h netdb.h pwd.h arpa/inet.h sys/resource.h sys/stat.h sys/wait.h libiberty.h fcntl.h
|
||||
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 @@
|
||||
;;
|
||||
*)
|
||||
specialssldir="$with_openssl"
|
||||
- CXXFLAGS="-I$with_openssl/include $CXXFLAGS"
|
||||
+ CPPFLAGS="-I$with_openssl/include $CPPFLAGS"
|
||||
;;
|
||||
esac
|
||||
|
67
security/nmap/files/patch-nsock::src::configure
Normal file
67
security/nmap/files/patch-nsock::src::configure
Normal file
|
@ -0,0 +1,67 @@
|
|||
--- 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 @@
|
||||
;;
|
||||
*)
|
||||
specialssldir="$with_openssl"
|
||||
- CXXFLAGS="-I$with_openssl/include $CXXFLAGS"
|
||||
+ CPPFLAGS="-I$with_openssl/include $CPPFLAGS"
|
||||
;;
|
||||
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
|
Loading…
Reference in a new issue