summaryrefslogtreecommitdiff
path: root/net/hping
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2006-03-14 02:29:11 +0000
committerjoerg <joerg@pkgsrc.org>2006-03-14 02:29:11 +0000
commitac4c47e7ebbe3bace34cb265cefe481e1a0150e7 (patch)
tree79848938891c07f75f34a3f2b62b498873024ec6 /net/hping
parent12f8fa49fb217b5c2ebdbd197f60954a2aa0cae5 (diff)
downloadpkgsrc-ac4c47e7ebbe3bace34cb265cefe481e1a0150e7.tar.gz
DragonFly support.
Diffstat (limited to 'net/hping')
-rw-r--r--net/hping/distinfo5
-rw-r--r--net/hping/patches/patch-ad8
-rw-r--r--net/hping/patches/patch-ae31
3 files changed, 39 insertions, 5 deletions
diff --git a/net/hping/distinfo b/net/hping/distinfo
index 1d7251efd1b..b5b1e866760 100644
--- a/net/hping/distinfo
+++ b/net/hping/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.5 2005/07/13 14:18:22 drochner Exp $
+$NetBSD: distinfo,v 1.6 2006/03/14 02:29:11 joerg Exp $
SHA1 (hping2.0.0-rc2.tar.gz) = ee10aa5cce7431ab0887ca0328b0fed86407cd3c
RMD160 (hping2.0.0-rc2.tar.gz) = e32479f8d1f7408eaeaa9e507c8050618c81825e
@@ -6,4 +6,5 @@ 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
+SHA1 (patch-ad) = 0229fb92f51ec3884a8e16ff9487fd5cfa238f1c
+SHA1 (patch-ae) = 42d25825134ce41a84122d5effc67973c10b37f4
diff --git a/net/hping/patches/patch-ad b/net/hping/patches/patch-ad
index d727e2ec506..bc47f1ad875 100644
--- a/net/hping/patches/patch-ad
+++ b/net/hping/patches/patch-ad
@@ -1,12 +1,14 @@
-$NetBSD: patch-ad,v 1.1 2005/07/13 14:18:22 drochner Exp $
+$NetBSD: patch-ad,v 1.2 2006/03/14 02:29:11 joerg Exp $
---- libpcap_stuff.c.orig 2001-08-23 20:49:39.000000000 +0200
+--- libpcap_stuff.c.orig 2001-08-23 18:49:39.000000000 +0000
+++ libpcap_stuff.c
-@@ -15,8 +15,9 @@
+@@ -15,8 +15,11 @@
#include <stdio.h>
#include <stdlib.h>
#include <sys/ioctl.h>
-#include <pcap.h>
++#include <sys/time.h>
++#include <string.h>
#include <net/bpf.h>
+#define PCAP_DONT_INCLUDE_PCAP_BPF_H
+#include <pcap.h>
diff --git a/net/hping/patches/patch-ae b/net/hping/patches/patch-ae
new file mode 100644
index 00000000000..b522d113359
--- /dev/null
+++ b/net/hping/patches/patch-ae
@@ -0,0 +1,31 @@
+$NetBSD: patch-ae,v 1.1 2006/03/14 02:29:11 joerg Exp $
+
+--- getifname.c.orig 2006-03-14 02:23:00.000000000 +0000
++++ getifname.c
+@@ -15,7 +15,7 @@
+ #include <net/if.h>
+ #include <unistd.h> /* close */
+
+-#if defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__)
++#if defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__) || defined(__DragonFly__)
+ #include <stdlib.h>
+ #include <ifaddrs.h>
+ #endif /* defined(__*BSD__) */
+@@ -23,7 +23,7 @@
+ #include "hping2.h"
+ #include "globals.h"
+
+-#if !defined(__FreeBSD__) && !defined(__OpenBSD__) && !defined(__NetBSD__) && !defined(__linux__) && !defined(__sun__)
++#if !defined(__FreeBSD__) && !defined(__OpenBSD__) && !defined(__NetBSD__) && !defined(__linux__) && !defined(__sun__) && !defined(__DragonFly__)
+ #error Sorry, interface code not implemented.
+ #endif
+
+@@ -169,7 +169,7 @@ int get_if_name(void)
+ return 0;
+ }
+
+-#elif defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__)
++#elif defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__DragonFly__)
+
+ /* return interface informations :
+ - from the specified (-I) interface