diff options
author | Richard Purdie <richard@openedhand.com> | 2006-07-21 10:10:31 +0000 |
---|---|---|
committer | Richard Purdie <richard@openedhand.com> | 2006-07-21 10:10:31 +0000 |
commit | b2f192faabe412adce79534e22efe9fb69ee40e2 (patch) | |
tree | 7076c49d4286f8a1733650bd8fbc7161af200d57 /meta/packages/wireless-tools | |
parent | 2cf0eadf9f730027833af802d7e6c90b44248f80 (diff) | |
download | poky-b2f192faabe412adce79534e22efe9fb69ee40e2.tar.gz |
Rename /openembedded/ -> /meta/
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@530 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'meta/packages/wireless-tools')
6 files changed, 290 insertions, 0 deletions
diff --git a/meta/packages/wireless-tools/wireless-tools/fixheaders.patch b/meta/packages/wireless-tools/wireless-tools/fixheaders.patch new file mode 100644 index 0000000000..670804e502 --- /dev/null +++ b/meta/packages/wireless-tools/wireless-tools/fixheaders.patch | |||
@@ -0,0 +1,34 @@ | |||
1 | Index: wireless_tools.27/wireless.17.h | ||
2 | =================================================================== | ||
3 | --- wireless_tools.27.orig/wireless.17.h 2004-08-27 15:04:41.000000000 -0400 | ||
4 | +++ wireless_tools.27/wireless.17.h 2005-01-19 21:13:25.343064024 -0500 | ||
5 | @@ -71,9 +71,9 @@ | ||
6 | |||
7 | /* To minimise problems in user space, I might remove those headers | ||
8 | * at some point. Jean II */ | ||
9 | -#include <linux/types.h> /* for "caddr_t" et al */ | ||
10 | -#include <linux/socket.h> /* for "struct sockaddr" et al */ | ||
11 | -#include <linux/if.h> /* for IFNAMSIZ and co... */ | ||
12 | +#include <asm/types.h> /* for "caddr_t" et al */ | ||
13 | +#include <sys/socket.h> /* for "struct sockaddr" et al */ | ||
14 | +#include <net/if.h> /* for IFNAMSIZ and co... */ | ||
15 | |||
16 | /***************************** VERSION *****************************/ | ||
17 | /* | ||
18 | Index: wireless_tools.27/iwlib.h | ||
19 | =================================================================== | ||
20 | --- wireless_tools.27.orig/iwlib.h 2004-10-28 20:09:47.000000000 -0400 | ||
21 | +++ wireless_tools.27/iwlib.h 2005-01-19 21:13:47.438704976 -0500 | ||
22 | @@ -123,9 +123,9 @@ | ||
23 | #endif /* LIBC5_HEADERS */ | ||
24 | |||
25 | /* Those 3 headers were previously included in wireless.h */ | ||
26 | -#include <linux/types.h> /* for "caddr_t" et al */ | ||
27 | -#include <linux/socket.h> /* for "struct sockaddr" et al */ | ||
28 | -#include <linux/if.h> /* for IFNAMSIZ and co... */ | ||
29 | +#include <asm/types.h> /* for "caddr_t" et al */ | ||
30 | +#include <sys/socket.h> /* for "struct sockaddr" et al */ | ||
31 | +#include <net/if.h> /* for IFNAMSIZ and co... */ | ||
32 | |||
33 | /* Private copy of Wireless extensions */ | ||
34 | #include <wireless.h> | ||
diff --git a/meta/packages/wireless-tools/wireless-tools/man.patch b/meta/packages/wireless-tools/wireless-tools/man.patch new file mode 100644 index 0000000000..fd8cf42773 --- /dev/null +++ b/meta/packages/wireless-tools/wireless-tools/man.patch | |||
@@ -0,0 +1,13 @@ | |||
1 | --- wireless_tools.26/Makefile.orig 2003-06-18 03:38:58.000000000 +0200 | ||
2 | +++ wireless_tools.26/Makefile 2004-07-03 23:35:29.000000000 +0200 | ||
3 | @@ -57,8 +57,8 @@ | ||
4 | # Install directories | ||
5 | INSTALL_DIR= $(PREFIX)/sbin/ | ||
6 | INSTALL_LIB= $(PREFIX)/lib/ | ||
7 | -INSTALL_INC= $(PREFIX)/include/ | ||
8 | -INSTALL_MAN= $(PREFIX)/man/ | ||
9 | +INSTALL_INC= $(PREFIX)/usr/include/ | ||
10 | +INSTALL_MAN= $(PREFIX)/usr/share/man/ | ||
11 | |||
12 | # Use local header if the version of wireless extensions is specified | ||
13 | ifdef FORCE_WEXT_VERSION | ||
diff --git a/meta/packages/wireless-tools/wireless-tools/wireless-tools.if-pre-up b/meta/packages/wireless-tools/wireless-tools/wireless-tools.if-pre-up new file mode 100755 index 0000000000..11fbced462 --- /dev/null +++ b/meta/packages/wireless-tools/wireless-tools/wireless-tools.if-pre-up | |||
@@ -0,0 +1,122 @@ | |||
1 | #!/bin/sh | ||
2 | |||
3 | case "$METHOD" in loopback) exit 0 ;; esac | ||
4 | |||
5 | IWCONFIG=/sbin/iwconfig | ||
6 | IWPRIV=/sbin/iwpriv | ||
7 | |||
8 | if [ ! -x $IWCONFIG ]; then | ||
9 | exit 0 | ||
10 | fi | ||
11 | |||
12 | # Detect and do nothing for linux-wlan-ng interfaces; | ||
13 | # which are configured by thier own if-pre-up script. | ||
14 | if [ -n "$IF_WIRELESS_TYPE" -a "$IF_WIRELESS_TYPE" = "wlan-ng" ]; then | ||
15 | exit 0 | ||
16 | fi | ||
17 | |||
18 | if [ -n "$IF_NEEDS_RESET" ]; then | ||
19 | $IWPRIV "$IFACE" reset 1 | ||
20 | sleep 1 | ||
21 | fi | ||
22 | |||
23 | if [ -n "$IF_NEEDS_FIRMWARE" ]; then | ||
24 | $IF_NEEDS_FIRMWARE "$IFACE" | ||
25 | fi | ||
26 | |||
27 | if [ -n "$IF_WIRELESS_SENS" ]; then | ||
28 | $IWCONFIG "$IFACE" sens $IF_WIRELESS_SENS | ||
29 | fi | ||
30 | |||
31 | if [ -n "$IF_WIRELESS_RATE" ]; then | ||
32 | $IWCONFIG "$IFACE" rate $IF_WIRELESS_RATE | ||
33 | fi | ||
34 | |||
35 | if [ -n "$IF_WIRELESS_RTS" ]; then | ||
36 | $IWCONFIG "$IFACE" rts $IF_WIRELESS_RTS | ||
37 | fi | ||
38 | |||
39 | if [ -n "$IF_WIRELESS_FRAG" ]; then | ||
40 | $IWCONFIG "$IFACE" frag $IF_WIRELESS_FRAG | ||
41 | fi | ||
42 | |||
43 | if [ -n "$IF_WIRELESS_POWER" ]; then | ||
44 | $IWCONFIG "$IFACE" power $IF_WIRELESS_POWER | ||
45 | fi | ||
46 | |||
47 | if [ -n "$IF_WIRELESS_POWERPERIOD" ]; then | ||
48 | $IWCONFIG "$IFACE" power period $IF_WIRELESS_POWERPERIOD | ||
49 | fi | ||
50 | |||
51 | if [ -n "$IF_WIRELESS_POWERTIMEOUT" ]; then | ||
52 | $IWCONFIG "$IFACE" power timeout $IF_WIRELESS_POWERTIMEOUT | ||
53 | fi | ||
54 | |||
55 | if [ -n "$IF_WIRELESS_TXPOWER" ]; then | ||
56 | $IWCONFIG "$IFACE" txpower $IF_WIRELESS_TXPOWER | ||
57 | fi | ||
58 | |||
59 | if [ -n "$IF_WIRELESS_RETRY" ]; then | ||
60 | $IWCONFIG "$IFACE" retry $IF_WIRELESS_RETRY | ||
61 | fi | ||
62 | |||
63 | if [ -n "$IF_WIRELESS_ESSID" ]; then | ||
64 | $IWCONFIG "$IFACE" essid "$IF_WIRELESS_ESSID" | ||
65 | fi | ||
66 | |||
67 | if [ -n "$IF_WIRELESS_NICK" ]; then | ||
68 | $IWCONFIG "$IFACE" nick "$IF_WIRELESS_NICK" | ||
69 | fi | ||
70 | |||
71 | if [ -n "$IF_WIRELESS_NWID" ]; then | ||
72 | $IWCONFIG "$IFACE" nwid "$IF_WIRELESS_NWID" | ||
73 | fi | ||
74 | |||
75 | if [ -n "$IF_WIRELESS_ENC" ]; then | ||
76 | eval $IWCONFIG "$IFACE" enc $IF_WIRELESS_ENC | ||
77 | fi | ||
78 | |||
79 | if [ -n "$IF_WIRELESS_KEY" ]; then | ||
80 | eval $IWCONFIG "$IFACE" key $IF_WIRELESS_KEY | ||
81 | fi | ||
82 | |||
83 | if [ -n "$IF_WIRELESS_KEY1" ]; then | ||
84 | $IWCONFIG "$IFACE" key [1] "$IF_WIRELESS_KEY1" | ||
85 | fi | ||
86 | |||
87 | if [ -n "$IF_WIRELESS_KEY2" ]; then | ||
88 | $IWCONFIG "$IFACE" key [2] "$IF_WIRELESS_KEY2" | ||
89 | fi | ||
90 | |||
91 | if [ -n "$IF_WIRELESS_KEY3" ]; then | ||
92 | $IWCONFIG "$IFACE" key [3] "$IF_WIRELESS_KEY3" | ||
93 | fi | ||
94 | |||
95 | if [ -n "$IF_WIRELESS_KEY4" ]; then | ||
96 | $IWCONFIG "$IFACE" key [4] "$IF_WIRELESS_KEY4" | ||
97 | fi | ||
98 | |||
99 | if [ -n "$IF_WIRELESS_DEFAULTKEY" ]; then | ||
100 | $IWCONFIG "$IFACE" key ["$IF_WIRELESS_DEFAULTKEY"] | ||
101 | fi | ||
102 | |||
103 | if [ -n "$IF_WIRELESS_KEYMODE" ]; then | ||
104 | $IWCONFIG "$IFACE" key "$IF_WIRELESS_KEYMODE" | ||
105 | fi | ||
106 | |||
107 | if [ -n "$IF_WIRELESS_MODE" ]; then | ||
108 | $IWCONFIG "$IFACE" mode $IF_WIRELESS_MODE | ||
109 | fi | ||
110 | |||
111 | if [ -n "$IF_WIRELESS_FREQ" ]; then | ||
112 | $IWCONFIG "$IFACE" freq $IF_WIRELESS_FREQ | ||
113 | fi | ||
114 | |||
115 | if [ -n "$IF_WIRELESS_CHANNEL" ]; then | ||
116 | $IWCONFIG "$IFACE" channel $IF_WIRELESS_CHANNEL | ||
117 | fi | ||
118 | |||
119 | if [ -n "$IF_WIRELESS_COMMIT" ]; then | ||
120 | $IWCONFIG "$IFACE" commit | ||
121 | fi | ||
122 | |||
diff --git a/meta/packages/wireless-tools/wireless-tools/zzz-wireless.if-pre-up b/meta/packages/wireless-tools/wireless-tools/zzz-wireless.if-pre-up new file mode 100644 index 0000000000..4c8e95bf2a --- /dev/null +++ b/meta/packages/wireless-tools/wireless-tools/zzz-wireless.if-pre-up | |||
@@ -0,0 +1,34 @@ | |||
1 | #!/bin/sh | ||
2 | # | ||
3 | # /etc/network/if-pre-up.d/zzz-wireless | ||
4 | # by Stefan Tomanek (stefan@pico.ruhr.de) | ||
5 | |||
6 | |||
7 | IWCONFIG=/sbin/iwconfig | ||
8 | IFCONFIG=/sbin/ifconfig | ||
9 | GREP=/bin/grep | ||
10 | LOGGER=/usr/bin/logger | ||
11 | SLEEP=/bin/sleep | ||
12 | |||
13 | # How long do we wait for association? | ||
14 | RETRIES=15 | ||
15 | SLEEPTIME=1 | ||
16 | |||
17 | # Only sleep if we use DHCP (add others methods seperated by spaces) | ||
18 | ONLY_FOR="static dhcp" | ||
19 | |||
20 | if [ -z "$IF_WIRELESS_TYPE" ] && echo "$ONLY_FOR" | grep -q "$METHOD" ; then | ||
21 | $IFCONFIG $IFACE up | ||
22 | $LOGGER Checking for WLAN association... | ||
23 | while ( [ $RETRIES -gt 0 ] && ($IWCONFIG "$IFACE" | $GREP -q "Access Point: Not-Associated") ); do | ||
24 | $LOGGER No association yet, $RETRIES retries until timeout | ||
25 | RETRIES=$(($RETRIES-1)) | ||
26 | $SLEEP $SLEEPTIME | ||
27 | done | ||
28 | |||
29 | if [ $RETRIES -eq 0 ]; then | ||
30 | $LOGGER Timeout waiting for association, continuing anyway... | ||
31 | else | ||
32 | $LOGGER Found association! | ||
33 | fi | ||
34 | fi | ||
diff --git a/meta/packages/wireless-tools/wireless-tools_28-pre6.bb b/meta/packages/wireless-tools/wireless-tools_28-pre6.bb new file mode 100644 index 0000000000..f230cd307b --- /dev/null +++ b/meta/packages/wireless-tools/wireless-tools_28-pre6.bb | |||
@@ -0,0 +1,43 @@ | |||
1 | DESCRIPTION = "Tools for the Linux Standard Wireless Extension Subsystem" | ||
2 | HOMEPAGE = "http://www.hpl.hp.com/personal/Jean_Tourrilhes/Linux/Tools.html" | ||
3 | SECTION = "base" | ||
4 | PRIORITY = "optional" | ||
5 | MAINTAINER = "Michael 'Mickey' Lauer <mickey@Vanille.de>" | ||
6 | LICENSE = "GPL" | ||
7 | PR = "r1" | ||
8 | |||
9 | SRC_URI = "http://www.hpl.hp.com/personal/Jean_Tourrilhes/Linux/wireless_tools.28.pre6.tar.gz \ | ||
10 | file://man.patch;patch=1 \ | ||
11 | file://fixheaders.patch;patch=1 \ | ||
12 | file://wireless-tools.if-pre-up" | ||
13 | S = "${WORKDIR}/wireless_tools.28" | ||
14 | |||
15 | CFLAGS =+ "-I${S}" | ||
16 | EXTRA_OEMAKE = "-e 'BUILD_SHARED=y' \ | ||
17 | 'INSTALL_DIR=${D}${base_sbindir}' \ | ||
18 | 'INSTALL_LIB=${D}${libdir}' \ | ||
19 | 'INSTALL_INC=${D}${includedir}' \ | ||
20 | 'INSTALL_MAN=${D}${mandir}'" | ||
21 | |||
22 | do_compile() { | ||
23 | oe_runmake all libiw.a | ||
24 | } | ||
25 | |||
26 | do_stage () { | ||
27 | install -m 0644 wireless.h ${STAGING_INCDIR}/ | ||
28 | install -m 0644 iwlib.h ${STAGING_INCDIR}/ | ||
29 | oe_libinstall -a -so libiw ${STAGING_LIBDIR}/ | ||
30 | } | ||
31 | |||
32 | do_install() { | ||
33 | oe_runmake PREFIX=${D} install-iwmulticall install-dynamic | ||
34 | install -d ${D}${sysconfdir}/network/if-pre-up.d | ||
35 | install ${WORKDIR}/wireless-tools.if-pre-up ${D}${sysconfdir}/network/if-pre-up.d/wireless-tools | ||
36 | } | ||
37 | |||
38 | PACKAGES = "libiw libiw-dev libiw-doc ${PN} ${PN}-doc" | ||
39 | FILES_libiw = "${libdir}/*.so.*" | ||
40 | FILES_libiw-dev = "${libdir}/*.a ${libdir}/*.so ${includedir}" | ||
41 | FILES_libiw-doc = "${mandir}/man7" | ||
42 | FILES_${PN} = "${bindir} ${sbindir} ${base_sbindir} ${base_bindir} ${sysconfdir}/network" | ||
43 | FILES_${PN}-doc = "${mandir}/man8" | ||
diff --git a/meta/packages/wireless-tools/wireless-tools_29-pre10.bb b/meta/packages/wireless-tools/wireless-tools_29-pre10.bb new file mode 100644 index 0000000000..c961a25f83 --- /dev/null +++ b/meta/packages/wireless-tools/wireless-tools_29-pre10.bb | |||
@@ -0,0 +1,44 @@ | |||
1 | DESCRIPTION = "Tools for the Linux Standard Wireless Extension Subsystem" | ||
2 | HOMEPAGE = "http://www.hpl.hp.com/personal/Jean_Tourrilhes/Linux/Tools.html" | ||
3 | SECTION = "base" | ||
4 | PRIORITY = "optional" | ||
5 | MAINTAINER = "Michael 'Mickey' Lauer <mickey@Vanille.de>" | ||
6 | LICENSE = "GPL" | ||
7 | PR = "r1" | ||
8 | |||
9 | SRC_URI = "http://www.hpl.hp.com/personal/Jean_Tourrilhes/Linux/wireless_tools.28.pre13.tar.gz \ | ||
10 | file://man.patch;patch=1 \ | ||
11 | file://wireless-tools.if-pre-up \ | ||
12 | file://zzz-wireless.if-pre-up" | ||
13 | S = "${WORKDIR}/wireless_tools.28" | ||
14 | |||
15 | CFLAGS =+ "-I${S}" | ||
16 | EXTRA_OEMAKE = "-e 'BUILD_SHARED=y' \ | ||
17 | 'INSTALL_DIR=${D}${base_sbindir}' \ | ||
18 | 'INSTALL_LIB=${D}${libdir}' \ | ||
19 | 'INSTALL_INC=${D}${includedir}' \ | ||
20 | 'INSTALL_MAN=${D}${mandir}'" | ||
21 | |||
22 | do_compile() { | ||
23 | oe_runmake all libiw.a | ||
24 | } | ||
25 | |||
26 | do_stage() { | ||
27 | install -m 0644 wireless.h ${STAGING_INCDIR}/ | ||
28 | install -m 0644 iwlib.h ${STAGING_INCDIR}/ | ||
29 | oe_libinstall -a -so libiw ${STAGING_LIBDIR}/ | ||
30 | } | ||
31 | |||
32 | do_install() { | ||
33 | oe_runmake PREFIX=${D} install-iwmulticall install-dynamic | ||
34 | install -d ${D}${sysconfdir}/network/if-pre-up.d | ||
35 | install ${WORKDIR}/wireless-tools.if-pre-up ${D}${sysconfdir}/network/if-pre-up.d/wireless-tools | ||
36 | install ${WORKDIR}/zzz-wireless.if-pre-up ${D}${sysconfdir}/network/if-pre-up.d/zzz-wireless | ||
37 | } | ||
38 | |||
39 | PACKAGES = "libiw libiw-dev libiw-doc ${PN} ${PN}-doc" | ||
40 | FILES_libiw = "${libdir}/*.so.*" | ||
41 | FILES_libiw-dev = "${libdir}/*.a ${libdir}/*.so ${includedir}" | ||
42 | FILES_libiw-doc = "${mandir}/man7" | ||
43 | FILES_${PN} = "${bindir} ${sbindir} ${base_sbindir} ${base_bindir} ${sysconfdir}/network" | ||
44 | FILES_${PN}-doc = "${mandir}/man8" | ||