diff options
author | drochner <drochner@pkgsrc.org> | 2005-07-13 14:18:22 +0000 |
---|---|---|
committer | drochner <drochner@pkgsrc.org> | 2005-07-13 14:18:22 +0000 |
commit | 074841cd623275bb15452b2a21afcab817504d62 (patch) | |
tree | dfedf3ea311a326db753b92bd5f420fba37fb4a2 /net/hping/patches | |
parent | cdab3d57573655f5d20bb18299a91b6750ead75a (diff) | |
download | pkgsrc-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/patches')
-rw-r--r-- | net/hping/patches/patch-ac | 15 | ||||
-rw-r--r-- | net/hping/patches/patch-ad | 15 |
2 files changed, 30 insertions, 0 deletions
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" + |