aboutsummaryrefslogtreecommitdiffstats
path: root/security/hping
diff options
context:
space:
mode:
authoredwin <edwin@FreeBSD.org>2002-11-18 06:13:12 +0800
committeredwin <edwin@FreeBSD.org>2002-11-18 06:13:12 +0800
commitd7cbbd17cb07aa04451cb48373f2c80ca91da372 (patch)
treefa22cfb3c6fcec11a88b7ef612861512e790e124 /security/hping
parentcf8b161b862cd8e31e39a2e7ab4b8861a40bc927 (diff)
downloadfreebsd-ports-gnome-d7cbbd17cb07aa04451cb48373f2c80ca91da372.tar.gz
freebsd-ports-gnome-d7cbbd17cb07aa04451cb48373f2c80ca91da372.tar.zst
freebsd-ports-gnome-d7cbbd17cb07aa04451cb48373f2c80ca91da372.zip
unbreak on -current
PR: 45374 Submitted by: maintainer
Diffstat (limited to 'security/hping')
-rw-r--r--security/hping/Makefile4
-rw-r--r--security/hping/files/patch-Makefile.in (renamed from security/hping/files/patch-aa)10
-rw-r--r--security/hping/files/patch-configure (renamed from security/hping/files/patch-ab)0
-rw-r--r--security/hping/files/patch-memlockall11
-rw-r--r--security/hping/files/patch-memunlockall11
5 files changed, 30 insertions, 6 deletions
diff --git a/security/hping/Makefile b/security/hping/Makefile
index 21b33c1758d9..f03d3ac04b99 100644
--- a/security/hping/Makefile
+++ b/security/hping/Makefile
@@ -7,7 +7,7 @@
PORTNAME= hping
PORTVERSION= 2.0.0r1
-PORTREVISION= 1
+PORTREVISION= 2
PORTEPOCH= 1
CATEGORIES= security net
MASTER_SITES= http://www.hping.org/
@@ -18,7 +18,7 @@ MAINTAINER= Nicolas.Jombart@hsc-labs.com
WRKSRC= ${WRKDIR}/hping2
GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --force-libpcap
-USE_GMAKE= yes
+USE_GMAKE= yes
MAN8= hping.8
diff --git a/security/hping/files/patch-aa b/security/hping/files/patch-Makefile.in
index 1f243a1a18fe..07e0dd9d3ddc 100644
--- a/security/hping/files/patch-aa
+++ b/security/hping/files/patch-Makefile.in
@@ -1,10 +1,12 @@
---- Makefile.in.orig Fri Sep 14 22:04:05 2001
-+++ Makefile.in Fri Sep 14 22:05:33 2001
-@@ -7,7 +7,7 @@
+--- Makefile.in.orig Wed Aug 15 04:02:53 2001
++++ Makefile.in Mon Nov 18 09:10:12 2002
+@@ -6,8 +6,8 @@
+ # $date: Sun Jul 25 17:56:15 MET DST 1999$
# $rev: 3$
- CC= gcc
+-CC= gcc
-CCOPT= -O2 -Wall @PCAP_INCLUDE@
++CC?= gcc
+CCOPT= -Wall @CFLAGS@ @PCAP_INCLUDE@
DEBUG= -g
#uncomment the following if you need libpcap based build under linux
diff --git a/security/hping/files/patch-ab b/security/hping/files/patch-configure
index b7dda57f7370..b7dda57f7370 100644
--- a/security/hping/files/patch-ab
+++ b/security/hping/files/patch-configure
diff --git a/security/hping/files/patch-memlockall b/security/hping/files/patch-memlockall
new file mode 100644
index 000000000000..e613a3f17a22
--- /dev/null
+++ b/security/hping/files/patch-memlockall
@@ -0,0 +1,11 @@
+--- memlockall.c.orig Sun Nov 17 18:04:44 2002
++++ memlockall.c Sun Nov 17 18:04:43 2002
+@@ -13,7 +13,7 @@
+
+ int memlockall(void)
+ {
+-#ifdef _POSIX_MEMLOCK
++#if _POSIX_MEMLOCK == 1
+ return ( mlockall(MCL_CURRENT|MCL_FUTURE) );
+ #endif
+ return (-1);
diff --git a/security/hping/files/patch-memunlockall b/security/hping/files/patch-memunlockall
new file mode 100644
index 000000000000..4a67466433f7
--- /dev/null
+++ b/security/hping/files/patch-memunlockall
@@ -0,0 +1,11 @@
+--- memunlockall.c.orig Sun Nov 17 18:04:44 2002
++++ memunlockall.c Sun Nov 17 18:04:43 2002
+@@ -13,7 +13,7 @@
+
+ int memunlockall(void)
+ {
+-#ifdef _POSIX_MEMLOCK
++#if _POSIX_MEMLOCK == 1
+ return ( munlockall() );
+ #endif
+ return(-1);