summaryrefslogtreecommitdiff
path: root/net/arp-scan
diff options
context:
space:
mode:
authormarino <marino@pkgsrc.org>2012-08-07 18:21:30 +0000
committermarino <marino@pkgsrc.org>2012-08-07 18:21:30 +0000
commit910e26eabc723af4bb5a0894a2031a061791a93e (patch)
treeae1a8f7c80d6f0827a582361f97fc87b4f575f7a /net/arp-scan
parentba52038d988cecee2ee5c1c2f8fe0ecba693b495 (diff)
downloadpkgsrc-910e26eabc723af4bb5a0894a2031a061791a93e.tar.gz
net/arp-scan: Fix build on DragonFly
1. Add DragonFly to BSD list on configure 2. Prevent inclusion of both pcap/bpf.h and net/bpf.h on DragonFly Patches will be sent upstream.
Diffstat (limited to 'net/arp-scan')
-rw-r--r--net/arp-scan/distinfo4
-rw-r--r--net/arp-scan/patches/patch-configure13
-rw-r--r--net/arp-scan/patches/patch-link-bpf.c17
3 files changed, 33 insertions, 1 deletions
diff --git a/net/arp-scan/distinfo b/net/arp-scan/distinfo
index 25e96369418..54a7d8acc61 100644
--- a/net/arp-scan/distinfo
+++ b/net/arp-scan/distinfo
@@ -1,5 +1,7 @@
-$NetBSD: distinfo,v 1.1.1.1 2012/01/08 15:14:23 wiz Exp $
+$NetBSD: distinfo,v 1.2 2012/08/07 18:21:30 marino Exp $
SHA1 (arp-scan-1.8.tar.gz) = 26ebf18eff367aaf99307841bec9e8b9e596c3bb
RMD160 (arp-scan-1.8.tar.gz) = 2cf60da998cd8bf49767938187426f83ba0582f1
Size (arp-scan-1.8.tar.gz) = 430221 bytes
+SHA1 (patch-configure) = 3bb0dcc707f6639491d0577d68a456edf0dded32
+SHA1 (patch-link-bpf.c) = 22f00ac7c027ba7d2e66874d0d374a671ee2292b
diff --git a/net/arp-scan/patches/patch-configure b/net/arp-scan/patches/patch-configure
new file mode 100644
index 00000000000..6449629e028
--- /dev/null
+++ b/net/arp-scan/patches/patch-configure
@@ -0,0 +1,13 @@
+$NetBSD: patch-configure,v 1.1 2012/08/07 18:21:30 marino Exp $
+
+--- configure.orig 2011-03-01 14:11:09.000000000 +0000
++++ configure
+@@ -6093,7 +6093,7 @@ done
+ esac
+
+ ;;
+- *freebsd* | *darwin* | *openbsd* | *netbsd* )
++ *freebsd* | *darwin* | *openbsd* | *netbsd* | *dragonfly* )
+ { echo "$as_me:$LINENO: Using BPF link layer implementation." >&5
+ echo "$as_me: Using BPF link layer implementation." >&6;};
+
diff --git a/net/arp-scan/patches/patch-link-bpf.c b/net/arp-scan/patches/patch-link-bpf.c
new file mode 100644
index 00000000000..3a04d4793fa
--- /dev/null
+++ b/net/arp-scan/patches/patch-link-bpf.c
@@ -0,0 +1,17 @@
+$NetBSD: patch-link-bpf.c,v 1.1 2012/08/07 18:21:30 marino Exp $
+
+DragonFly's pcap.h includes pcap/bpf.h which clashes with net/bpf.h
+pcap.h is included by arp-scan.h
+
+--- link-bpf.c.orig 2011-01-09 10:37:09.000000000 +0000
++++ link-bpf.c
+@@ -32,6 +32,9 @@
+ *
+ */
+
++#ifdef __DragonFly__
++#define PCAP_DONT_INCLUDE_PCAP_BPF_H
++#endif
+ #include "arp-scan.h"
+
+ #ifdef HAVE_FCNTL_H