1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-24 04:33:24 +00:00

unbreak on -current

PR:		45374
Submitted by:	maintainer
This commit is contained in:
Edwin Groothuis 2002-11-17 22:13:12 +00:00
parent dfe039e76f
commit 199e495ede
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=70328
10 changed files with 60 additions and 12 deletions

View File

@ -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

View File

@ -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

View File

@ -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);

View File

@ -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);

View File

@ -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

View File

@ -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

View File

@ -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);

View File

@ -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);