summaryrefslogtreecommitdiff
path: root/recipes/void11
diff options
context:
space:
mode:
authorDenys Dmytriyenko <denis@denix.org>2009-03-17 14:32:59 -0400
committerDenys Dmytriyenko <denis@denix.org>2009-03-17 14:32:59 -0400
commit709c4d66e0b107ca606941b988bad717c0b45d9b (patch)
tree37ee08b1eb308f3b2b6426d5793545c38396b838 /recipes/void11
parentfa6cd5a3b993f16c27de4ff82b42684516d433ba (diff)
rename packages/ to recipes/ per earlier agreement
See links below for more details: http://thread.gmane.org/gmane.comp.handhelds.openembedded/21326 http://thread.gmane.org/gmane.comp.handhelds.openembedded/21816 Signed-off-by: Denys Dmytriyenko <denis@denix.org> Acked-by: Mike Westerhof <mwester@dls.net> Acked-by: Philip Balister <philip@balister.org> Acked-by: Khem Raj <raj.khem@gmail.com> Acked-by: Marcin Juszkiewicz <hrw@openembedded.org> Acked-by: Koen Kooi <koen@openembedded.org> Acked-by: Frans Meulenbroeks <fransmeulenbroeks@gmail.com>
Diffstat (limited to 'recipes/void11')
-rw-r--r--recipes/void11/files/oezc.patch112
-rw-r--r--recipes/void11/void11_0.2.0.bb26
2 files changed, 138 insertions, 0 deletions
diff --git a/recipes/void11/files/oezc.patch b/recipes/void11/files/oezc.patch
new file mode 100644
index 0000000000..998f14c44e
--- /dev/null
+++ b/recipes/void11/files/oezc.patch
@@ -0,0 +1,112 @@
+diff -urN void11-0.2.0/console/Makefile void11-0.2.0-zc/console/Makefile
+--- void11-0.2.0/console/Makefile 2004-01-08 05:05:56.000000000 -0500
++++ void11-0.2.0-zc/console/Makefile 2007-03-04 12:47:44.000000000 -0500
+@@ -11,7 +11,6 @@
+
+ $(PROG): $(PROGOBJ)
+ $(CC) $(CFLAGS) $(PROGOBJ) $(LIB) -o $@
+- $(STRIP) $@
+
+ clean:
+ $(RM) $(PROGOBJ) $(PROG) *~
+diff -urN void11-0.2.0/console/void11_hopper void11-0.2.0-zc/console/void11_hopper
+--- void11-0.2.0/console/void11_hopper 2003-03-14 22:25:02.000000000 -0500
++++ void11-0.2.0-zc/console/void11_hopper 2007-03-04 12:50:20.000000000 -0500
+@@ -1,3 +1,8 @@
+ #!/bin/sh
++iwconfig wlan0 essid test
++smallsleep 0.5
++iwpriv wlan0 hostapd 1
++smallsleep 0.5
+ iwconfig wlan0 mode master
+-while(true); do for i in $(seq 1 14); do iwconfig wlan0 channel $i; sleep 0.2; echo -n "$i. "; done; done 2>/dev/null
++#while(true); do for i in $(seq 1 14); do iwconfig wlan0 channel $i; sleep 0.2; echo -n "$i. "; done; done 2>/dev/null
++while(true); do for i in $(seq 1 11); do iwconfig wlan0 channel $i; smallsleep 0.2; echo -n "$i. "; done; done
+diff -urN void11-0.2.0/lib/Makefile void11-0.2.0-zc/lib/Makefile
+--- void11-0.2.0/lib/Makefile 2004-01-08 05:04:37.000000000 -0500
++++ void11-0.2.0-zc/lib/Makefile 2007-03-04 13:19:18.000000000 -0500
+@@ -11,7 +11,7 @@
+
+ $(LIB): $(LIBOBJ) $(HEADER)
+ rm -f $@ || true
+- gcc -shared -o $@ $(LIBOBJ)
++ ${CC} -shared -o $@ $(LIBOBJ)
+
+ clean:
+ $(RM) $(PROGOBJ) $(LIBOBJ) $(LIB) *~
+diff -urN void11-0.2.0/Makefile void11-0.2.0-zc/Makefile
+--- void11-0.2.0/Makefile 2004-01-08 06:49:00.000000000 -0500
++++ void11-0.2.0-zc/Makefile 2007-03-04 13:13:58.000000000 -0500
+@@ -2,7 +2,7 @@
+
+ include $(VOID11_TOPDIR)/Rules.make
+
+-SUBDIRS = lib
++SUBDIRS = lib smallsleep
+ CONFIG =
+
+ ifdef USECONSOLE
+@@ -19,6 +19,9 @@
+ lib:
+ @$(MAKE) -C $(VOID11_TOPDIR)/$@ -f Makefile VOID11_TOPDIR=$(VOID11_TOPDIR)
+
++smallsleep:
++ @$(MAKE) -C $(VOID11_TOPDIR)/$@ -f Makefile VOID11_TOPDIR=$(VOID11_TOPDIR)
++
+ console: lib
+ @$(MAKE) -C $(VOID11_TOPDIR)/$@ -f Makefile VOID11_TOPDIR=$(VOID11_TOPDIR)
+
+diff -urN void11-0.2.0/Rules.make void11-0.2.0-zc/Rules.make
+--- void11-0.2.0/Rules.make 2004-01-08 05:03:40.000000000 -0500
++++ void11-0.2.0-zc/Rules.make 2007-03-04 13:18:14.000000000 -0500
+@@ -11,5 +11,4 @@
+
+ MKDIR = mkdir -p
+ CP = cp -f
+-STRIP = strip -x
+-CC = gcc
++# CC = gcc
+diff -urN void11-0.2.0/smallsleep/Makefile void11-0.2.0-zc/smallsleep/Makefile
+--- void11-0.2.0/smallsleep/Makefile 1969-12-31 19:00:00.000000000 -0500
++++ void11-0.2.0-zc/smallsleep/Makefile 2007-03-04 12:57:27.000000000 -0500
+@@ -0,0 +1,10 @@
++CFLAGS = -g -O3 -Wall
++
++all: smallsleep
++
++smallsleep: smallsleep.c
++ $(CC) $(CFLAGS) smallsleep.c -o smallsleep
++
++install:
++ install -d /sbin
++ install -m 755 smallsleep /sbin
+diff -urN void11-0.2.0/smallsleep/smallsleep.c void11-0.2.0-zc/smallsleep/smallsleep.c
+--- void11-0.2.0/smallsleep/smallsleep.c 1969-12-31 19:00:00.000000000 -0500
++++ void11-0.2.0-zc/smallsleep/smallsleep.c 2007-03-04 12:57:27.000000000 -0500
+@@ -0,0 +1,26 @@
++#include <unistd.h> // for usleep
++#include <stdio.h> // for printf()
++#include <stdlib.h> // for atof()
++
++/* compile with
++gcc -g -Wall -o smallsleep smallsleep.c
++*/
++
++#define MICROSECONDS_IN_SECONDS 1000000
++
++int main (int argc, const char *argv[])
++{
++ if (argc != 2) {
++ fprintf (stderr, "usage: %s time-in-seconds\n", argv[0]);
++ fprintf (stderr, " (decimal values are OK for the time)\n");
++ return (1);
++ }
++
++ float fraction;
++ fraction = atof (argv[1]);
++
++ usleep (fraction * MICROSECONDS_IN_SECONDS);
++
++ return (0);
++
++} // main
diff --git a/recipes/void11/void11_0.2.0.bb b/recipes/void11/void11_0.2.0.bb
new file mode 100644
index 0000000000..2f4d5f2af9
--- /dev/null
+++ b/recipes/void11/void11_0.2.0.bb
@@ -0,0 +1,26 @@
+DESCRIPTION = "void11"
+HOMEPAGE = "http://www.wlsec.net/void11"
+SECTION = "console/network"
+LICENSE = "GPL"
+FILES_${PN} += "${libdir}/libvoid11.so"
+
+SRC_URI = "http://www.wirelessdefence.org/Contents/Files/void11-0.2.0.tar.bz2;md5sum=1c5b3e3e70916de74c2932c7f3e46d9e \
+ http://hostap.epitest.fi/releases/hostapd-0.1.3.tar.gz;md5sum=54563fb51f143c4bf26ddec2516e8f9f \
+ file://oezc.patch;patch=1;pnum=1"
+
+S = "${WORKDIR}/void11-0.2.0"
+
+inherit autotools
+
+do_compile () {
+ oe_runmake USECONSOLE=1 HOSTAPD_PATH=${WORKDIR}/hostapd-0.1.3
+}
+
+do_install () {
+ install -d ${D}/${sbindir}
+ install -d ${D}/${libdir}
+ install -m 0755 lib/libvoid11.so ${D}/${libdir}
+ install -m 0755 console/void11_hopper ${D}/${sbindir}
+ install -m 0755 smallsleep/smallsleep ${D}/${sbindir}
+ install -m 0755 console/void11_penetration ${D}/${sbindir}
+}