summaryrefslogtreecommitdiff
path: root/net/wistumbler2
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2006-01-08 21:22:58 +0000
committerjoerg <joerg@pkgsrc.org>2006-01-08 21:22:58 +0000
commit33abffad5ebdf42c60337f55866f4ae7c3cfe845 (patch)
treedc32d907c95fddb190eed043e268e9814bf930ea /net/wistumbler2
parent9bf9b712d54643d1612c5cdb0e928d1ada70ed5a (diff)
downloadpkgsrc-33abffad5ebdf42c60337f55866f4ae7c3cfe845.tar.gz
Add DragonFly support.
Diffstat (limited to 'net/wistumbler2')
-rw-r--r--net/wistumbler2/distinfo6
-rw-r--r--net/wistumbler2/patches/patch-ab21
-rw-r--r--net/wistumbler2/patches/patch-ac15
-rw-r--r--net/wistumbler2/patches/patch-ad13
-rw-r--r--net/wistumbler2/patches/patch-ae20
5 files changed, 74 insertions, 1 deletions
diff --git a/net/wistumbler2/distinfo b/net/wistumbler2/distinfo
index 7cbada43533..40770b5e071 100644
--- a/net/wistumbler2/distinfo
+++ b/net/wistumbler2/distinfo
@@ -1,6 +1,10 @@
-$NetBSD: distinfo,v 1.8 2005/05/31 12:31:59 wiz Exp $
+$NetBSD: distinfo,v 1.9 2006/01/08 21:22:58 joerg Exp $
SHA1 (wistumbler2-2.0pre10.tar.gz) = 1167dfbc53cdf43cca357fefd2153be9f4657669
RMD160 (wistumbler2-2.0pre10.tar.gz) = 27a1539c93560c753d9951c5c236108bf38d8639
Size (wistumbler2-2.0pre10.tar.gz) = 45972 bytes
SHA1 (patch-aa) = 0b5c4409489d334f235373b67dcb3344f7839ea2
+SHA1 (patch-ab) = 87149860de4e4f75609748a3f8e5912320f98575
+SHA1 (patch-ac) = 039363ed35c94c971187d9bf98f97c7560b3fbeb
+SHA1 (patch-ad) = bac9decfec5dde5b870042d4b26b8ff623660e8d
+SHA1 (patch-ae) = 04ff3efea6225917e872522eb3fabcb0a0e83eeb
diff --git a/net/wistumbler2/patches/patch-ab b/net/wistumbler2/patches/patch-ab
new file mode 100644
index 00000000000..a5752da49d4
--- /dev/null
+++ b/net/wistumbler2/patches/patch-ab
@@ -0,0 +1,21 @@
+$NetBSD: patch-ab,v 1.3 2006/01/08 21:22:58 joerg Exp $
+
+--- configure.orig 2006-01-08 21:08:17.000000000 +0000
++++ configure
+@@ -267,7 +267,7 @@ echo "ERROR: ${CPP} cannot parse sources
+
+
+ printf "checking for POSIX threads... "
+-if [ "${TARGET_OS}" = "freebsd" ]; then
++if [ "${TARGET_OS}" = "freebsd" -o "${TARGET_OS}" = "dragonfly" ]; then
+ PTHREAD_LIBS=-pthread ; else
+ PTHREAD_LIBS=-lpthread ; fi
+ echo '#include <pthread.h>' > test.c
+@@ -339,6 +339,7 @@ if [ "$USE_GTK" = 0 ]; then GTK_LDFLAGS=
+ if [ "$USE_GTK" = 0 ]; then GTK_CFLAGS="" ; fi
+ if [ "$USE_GTK" = 0 ]; then GTK_LDFLAGS="" ; fi
+ if [ "${TARGET_OS}" = "netbsd" ]; then OS_OK="1" ; fi ;
++if [ "${TARGET_OS}" = "dragonfly" ]; then OS_OK="1" ; fi ;
+ if [ "${TARGET_OS}" = "freebsd" ]; then OS_OK="1" ; fi ;
+ if [ "${TARGET_OS}" = "openbsd" ]; then OS_OK="1" ; fi ;
+
diff --git a/net/wistumbler2/patches/patch-ac b/net/wistumbler2/patches/patch-ac
new file mode 100644
index 00000000000..2bc18cbfb5e
--- /dev/null
+++ b/net/wistumbler2/patches/patch-ac
@@ -0,0 +1,15 @@
+$NetBSD: patch-ac,v 1.3 2006/01/08 21:22:58 joerg Exp $
+
+--- src/stumbler.h.orig 2006-01-08 21:09:38.000000000 +0000
++++ src/stumbler.h
+@@ -54,6 +54,10 @@
+ #include <net80211/ieee80211.h>
+ #include <net/ethernet.h>
+ #include <dev/wi/if_wavelan_ieee.h>
++#elif defined(__DragonFly__)
++#include <netproto/802_11/ieee80211.h>
++#include <net/ethernet.h>
++#include <netproto/802_11/if_wavelan_ieee.h>
+ #elif defined(__OpenBSD__)
+ #include "cdefs.h"
+ #include <sys/socket.h>
diff --git a/net/wistumbler2/patches/patch-ad b/net/wistumbler2/patches/patch-ad
new file mode 100644
index 00000000000..11075aa1c14
--- /dev/null
+++ b/net/wistumbler2/patches/patch-ad
@@ -0,0 +1,13 @@
+$NetBSD: patch-ad,v 1.3 2006/01/08 21:22:58 joerg Exp $
+
+--- src/speaker.c.orig 2006-01-08 21:10:38.000000000 +0000
++++ src/speaker.c
+@@ -38,7 +38,7 @@
+ #include <stdlib.h>
+
+ #ifdef SPEAKER_PRESENT
+-#ifdef __FreeBSD__
++#if defined(__FreeBSD__) || defined(__DragonFly__)
+ #include <machine/speaker.h>
+ #else
+ #include <machine/spkr.h>
diff --git a/net/wistumbler2/patches/patch-ae b/net/wistumbler2/patches/patch-ae
new file mode 100644
index 00000000000..5da73f001d3
--- /dev/null
+++ b/net/wistumbler2/patches/patch-ae
@@ -0,0 +1,20 @@
+$NetBSD: patch-ae,v 1.1 2006/01/08 21:22:58 joerg Exp $
+
+--- src/sniffer.c.orig 2006-01-08 21:11:22.000000000 +0000
++++ src/sniffer.c
+@@ -8,13 +8,12 @@
+ #include <unistd.h>
+ #include <stdio.h>
+ #include <sys/types.h>
+-#if __FreeBSD__
++#if defined(__FreeBSD__) || defined(__DragonFly__)
+ #include <net/ethernet.h>
+ #else
+ #include <net/route.h>
+ #include <net/if.h>
+-#if __OpenBSD__
+-#else
++#if !defined(__OpenBSD__)
+ #include <net/if_ether.h>
+ #endif
+ #endif