summaryrefslogtreecommitdiff
path: root/net/hping
diff options
context:
space:
mode:
authordrochner <drochner@pkgsrc.org>2005-07-13 14:18:22 +0000
committerdrochner <drochner@pkgsrc.org>2005-07-13 14:18:22 +0000
commit074841cd623275bb15452b2a21afcab817504d62 (patch)
treedfedf3ea311a326db753b92bd5f420fba37fb4a2 /net/hping
parentcdab3d57573655f5d20bb18299a91b6750ead75a (diff)
downloadpkgsrc-074841cd623275bb15452b2a21afcab817504d62.tar.gz
this uses libpcap, so include the buildlink file,
and add some fixes to allow building against pkgsrc libpcap
Diffstat (limited to 'net/hping')
-rw-r--r--net/hping/Makefile6
-rw-r--r--net/hping/distinfo4
-rw-r--r--net/hping/patches/patch-ac15
-rw-r--r--net/hping/patches/patch-ad15
4 files changed, 38 insertions, 2 deletions
diff --git a/net/hping/Makefile b/net/hping/Makefile
index 43ca88a70dd..177a7eba38a 100644
--- a/net/hping/Makefile
+++ b/net/hping/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.5 2005/06/17 03:50:25 jlam Exp $
+# $NetBSD: Makefile,v 1.6 2005/07/13 14:18:22 drochner Exp $
#
DISTNAME= hping2.0.0-rc2
@@ -19,10 +19,14 @@ NOT_FOR_PLATFORM= NetBSD-0.* NetBSD-1.[0-4]*
BINMODE= 4755
INSTALLATION_DIRS= man/man8 sbin
+CONFIGURE_ENV+= PCAPINCDIR=${BUILDLINK_PREFIX.libpcap}/include
+CONFIGURE_ENV+= PCAPLIBDIR=${BUILDLINK_PREFIX.libpcap}/lib
+
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/hping2 ${PREFIX}/sbin
${LN} -s ../sbin/hping2 ${PREFIX}/sbin/hping
${INSTALL_MAN} ${WRKSRC}/docs/hping2.8 ${PREFIX}/man/man8
${LN} -s ../../man/man8/hping2.8 ${PREFIX}/man/man8/hping.8
+.include "../../net/libpcap/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
diff --git a/net/hping/distinfo b/net/hping/distinfo
index 1df23e9c96c..1d7251efd1b 100644
--- a/net/hping/distinfo
+++ b/net/hping/distinfo
@@ -1,7 +1,9 @@
-$NetBSD: distinfo,v 1.4 2005/02/24 12:13:49 agc Exp $
+$NetBSD: distinfo,v 1.5 2005/07/13 14:18:22 drochner Exp $
SHA1 (hping2.0.0-rc2.tar.gz) = ee10aa5cce7431ab0887ca0328b0fed86407cd3c
RMD160 (hping2.0.0-rc2.tar.gz) = e32479f8d1f7408eaeaa9e507c8050618c81825e
Size (hping2.0.0-rc2.tar.gz) = 100501 bytes
SHA1 (patch-aa) = f0b60b33df37c5b5f332c4dd5b668c87f2f00780
SHA1 (patch-ab) = 7862d487c5fa9940a51c82154e5427f426c93270
+SHA1 (patch-ac) = b39369c28ca8932f13d9500509b84e28a1db6058
+SHA1 (patch-ad) = 2bae52bcd2e0faa9aab0475175ab43a9a8a37158
diff --git a/net/hping/patches/patch-ac b/net/hping/patches/patch-ac
new file mode 100644
index 00000000000..ce113fee1bc
--- /dev/null
+++ b/net/hping/patches/patch-ac
@@ -0,0 +1,15 @@
+$NetBSD: patch-ac,v 1.1 2005/07/13 14:18:22 drochner Exp $
+
+--- configure.orig 2005-07-13 15:30:53.000000000 +0200
++++ configure
+@@ -61,8 +61,8 @@ if [ "$CONFIGOSTYPE" = "LINUX" ]; then
+ PCAP=""
+ PCAP_INCLUDE=""
+ else
+- PCAP="PCAP=-lpcap"
+- PCAP_INCLUDE=""
++ PCAP="PCAP=-L$PCAPLIBDIR -lpcap"
++ PCAP_INCLUDE="-I$PCAPINCDIR"
+ fi
+
+ for ARG in $*; do
diff --git a/net/hping/patches/patch-ad b/net/hping/patches/patch-ad
new file mode 100644
index 00000000000..d727e2ec506
--- /dev/null
+++ b/net/hping/patches/patch-ad
@@ -0,0 +1,15 @@
+$NetBSD: patch-ad,v 1.1 2005/07/13 14:18:22 drochner Exp $
+
+--- libpcap_stuff.c.orig 2001-08-23 20:49:39.000000000 +0200
++++ libpcap_stuff.c
+@@ -15,8 +15,9 @@
+ #include <stdio.h>
+ #include <stdlib.h>
+ #include <sys/ioctl.h>
+-#include <pcap.h>
+ #include <net/bpf.h>
++#define PCAP_DONT_INCLUDE_PCAP_BPF_H
++#include <pcap.h>
+
+ #include "globals.h"
+