diff options
author | reinoud <reinoud@pkgsrc.org> | 2004-10-21 21:25:23 +0000 |
---|---|---|
committer | reinoud <reinoud@pkgsrc.org> | 2004-10-21 21:25:23 +0000 |
commit | c90a37409178c53d745b722247e904b814db9606 (patch) | |
tree | f8ea9711687fa35c73d414dd297f2c181e88e50e /net/wistumbler2 | |
parent | 91af1070841cfa4c62dac68d31c097e2be0dcfdd (diff) | |
download | pkgsrc-c90a37409178c53d745b722247e904b814db9606.tar.gz |
Fixes :
non i386 dont have <machine/spkr.h>
<net/ieee81102.h> needs <net/if.h> first
Diffstat (limited to 'net/wistumbler2')
-rw-r--r-- | net/wistumbler2/distinfo | 5 | ||||
-rw-r--r-- | net/wistumbler2/patches/patch-aa | 15 | ||||
-rw-r--r-- | net/wistumbler2/patches/patch-ab | 30 | ||||
-rw-r--r-- | net/wistumbler2/patches/patch-ac | 19 |
4 files changed, 68 insertions, 1 deletions
diff --git a/net/wistumbler2/distinfo b/net/wistumbler2/distinfo index 2b95c9bf871..3f33e647eed 100644 --- a/net/wistumbler2/distinfo +++ b/net/wistumbler2/distinfo @@ -1,4 +1,7 @@ -$NetBSD: distinfo,v 1.3 2004/10/20 22:17:31 xtraeme Exp $ +$NetBSD: distinfo,v 1.4 2004/10/21 21:25:23 reinoud Exp $ SHA1 (wistumbler2.00-pre9.tar.gz) = c33709bdc9ff7c7ec6bb23132f2594ec4a143a71 Size (wistumbler2.00-pre9.tar.gz) = 40641 bytes +SHA1 (patch-aa) = 26313441ad1686f42d505b5823101b51abe425be +SHA1 (patch-ab) = 6efc148573cb17d5ca149f1d5bd1265753f2ca58 +SHA1 (patch-ac) = 00e6e6cd043f39265d960ef1c113dd077939813b diff --git a/net/wistumbler2/patches/patch-aa b/net/wistumbler2/patches/patch-aa new file mode 100644 index 00000000000..613dc52e571 --- /dev/null +++ b/net/wistumbler2/patches/patch-aa @@ -0,0 +1,15 @@ +$NetBSD: patch-aa,v 1.1 2004/10/21 21:25:23 reinoud Exp $ + +--- src/stumbler.h.orig 2004-07-03 19:55:01.000000000 +0200 ++++ src/stumbler.h +@@ -60,8 +60,10 @@ + #include <dev/ic/if_wi_ieee.h> + #else + #if __NetBSD_Version__ > 106220000 ++#include <net/if.h> + #include <net80211/ieee80211.h> + #else ++#include <net/if.h> + #include <net/if_ieee80211.h> + #include <sys/types.h> + #include <sys/socket.h> diff --git a/net/wistumbler2/patches/patch-ab b/net/wistumbler2/patches/patch-ab new file mode 100644 index 00000000000..938359f660a --- /dev/null +++ b/net/wistumbler2/patches/patch-ab @@ -0,0 +1,30 @@ +$NetBSD: patch-ab,v 1.1 2004/10/21 21:25:23 reinoud Exp $ + +--- configure.orig 2003-11-30 00:39:01.000000000 +0100 ++++ configure +@@ -95,6 +95,16 @@ if [ "${USE_GTK}" = "0" ]; then + GTK=0; + fi + ++printf "[*] Checking for beeper...\t\t\t" ++if [ -f /usr/include/machine/spkr.h -o -f /usr/include/machine/speaker.h ]; then ++ SPEAKER=1 ++ echo "OK" ++else ++ SPEAKER=0 ++ echo "NOT PRESENT" ++fi ++ ++ + # Clean exit + printf "\n== Configuration done. Now type 'make' ==\n\n" + echo "PREFIX=${PREFIX}" > CONFIG +@@ -115,4 +125,8 @@ else + echo "CFLAGS+=-DUSE_PCAP" >> CONFIG + echo "LDFLAGS+=-lpcap" >> CONFIG + fi ++if [ "${SPEAKER}" = "1" ]; then ++ echo "CFLAGS+=-DSPEAKER_PRESENT" >> CONFIG ++fi ++ + exit 0 diff --git a/net/wistumbler2/patches/patch-ac b/net/wistumbler2/patches/patch-ac new file mode 100644 index 00000000000..17b5ae9209d --- /dev/null +++ b/net/wistumbler2/patches/patch-ac @@ -0,0 +1,19 @@ +$NetBSD: patch-ac,v 1.1 2004/10/21 21:25:23 reinoud Exp $ + +--- src/speaker.c.orig 2003-11-17 21:47:38.000000000 +0100 ++++ src/speaker.c +@@ -32,4 +32,9 @@ + */ + ++#ifndef DSPEAKER_PRESENT ++ void swap_beep(void) {}; ++ void do_beep(int pc) {}; ++#else /* DSPEAKER_PRESENT */ ++ + #include <stdio.h> + #include <string.h> +@@ -101,3 +106,3 @@ void do_beep(pc) + fclose(fd); + } +- ++#endif /* DSPEAKER_PRESENT */ |