From c90a37409178c53d745b722247e904b814db9606 Mon Sep 17 00:00:00 2001 From: reinoud Date: Thu, 21 Oct 2004 21:25:23 +0000 Subject: Fixes : non i386 dont have needs first --- net/wistumbler2/distinfo | 5 ++++- net/wistumbler2/patches/patch-aa | 15 +++++++++++++++ net/wistumbler2/patches/patch-ab | 30 ++++++++++++++++++++++++++++++ net/wistumbler2/patches/patch-ac | 19 +++++++++++++++++++ 4 files changed, 68 insertions(+), 1 deletion(-) create mode 100644 net/wistumbler2/patches/patch-aa create mode 100644 net/wistumbler2/patches/patch-ab create mode 100644 net/wistumbler2/patches/patch-ac (limited to 'net/wistumbler2') 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 + #else + #if __NetBSD_Version__ > 106220000 ++#include + #include + #else ++#include + #include + #include + #include 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 + #include +@@ -101,3 +106,3 @@ void do_beep(pc) + fclose(fd); + } +- ++#endif /* DSPEAKER_PRESENT */ -- cgit v1.2.3