diff options
author | Koen Kooi <koen@openembedded.org> | 2006-05-16 11:57:41 +0000 |
---|---|---|
committer | OpenEmbedded Project <openembedded-devel@lists.openembedded.org> | 2006-05-16 11:57:41 +0000 |
commit | 4a9541b06b24af6ec9850fe907a7d5ca57e67212 (patch) | |
tree | 433c1cb9a279d8cabc7c8d9f8f3b9b301402c68c /packages/wifi-radar | |
parent | 807691a38f65b92267342db8ba4feac9b35d5758 (diff) |
add wifiradar, closes #992
Diffstat (limited to 'packages/wifi-radar')
-rw-r--r-- | packages/wifi-radar/.mtn2git_empty | 0 | ||||
-rw-r--r-- | packages/wifi-radar/files/.mtn2git_empty | 0 | ||||
-rw-r--r-- | packages/wifi-radar/files/wifi-radar.patch | 37 | ||||
-rw-r--r-- | packages/wifi-radar/files/wifi-radar_destktop.patch | 13 | ||||
-rw-r--r-- | packages/wifi-radar/wifi-radar_1.9.6.bb | 35 |
5 files changed, 85 insertions, 0 deletions
diff --git a/packages/wifi-radar/.mtn2git_empty b/packages/wifi-radar/.mtn2git_empty new file mode 100644 index 0000000000..e69de29bb2 --- /dev/null +++ b/packages/wifi-radar/.mtn2git_empty diff --git a/packages/wifi-radar/files/.mtn2git_empty b/packages/wifi-radar/files/.mtn2git_empty new file mode 100644 index 0000000000..e69de29bb2 --- /dev/null +++ b/packages/wifi-radar/files/.mtn2git_empty diff --git a/packages/wifi-radar/files/wifi-radar.patch b/packages/wifi-radar/files/wifi-radar.patch new file mode 100644 index 0000000000..da34dfb50c --- /dev/null +++ b/packages/wifi-radar/files/wifi-radar.patch @@ -0,0 +1,37 @@ +--- wifi-radar-1.9.6/wifi-radar 2006-03-28 00:41:40.000000000 +0200 ++++ wifi-radar-1.9.6/wifi-radar.new 2006-05-14 22:50:25.000000000 +0200 +@@ -73,7 +73,7 @@ + # + # List of supported DHCP clients in order of preference + # +-POSSIBLE_DHCP_CLIENTS = "dhcpcd dhclient pump" ++POSSIBLE_DHCP_CLIENTS = "udhcpc dhcpcd dhclient pump" + DHCP_TIMEOUT = 30 + HOSTNAME = socket.gethostname() + +@@ -81,7 +81,13 @@ + DHCP_COMMAND = which( i ) + if DHCP_COMMAND: + +- if i == "dhcpcd": ++ if i == "udhcpc": ++ DHCP_PIDFILE = "/var/run/udhcpc.%s.pid" % INTERFACE ++ DHCP_ARGS = "-p " + DHCP_PIDFILE + " -i" ++ DHCP_KILL_COMMAND = "" # no kill command available ++ break ++ ++ elif i == "dhcpcd": + DHCP_PIDFILE = "/var/run/dhcpcd-%s.pid" % INTERFACE + # + # See "man dhcpcd-bin" or "man dhcpcd" for additional options. +@@ -138,8 +144,8 @@ + # WPA_SUPPLICANT + WPA_SUPPLICANT_COMMAND = "/usr/sbin/wpa_supplicant" + WPA_SUPPLICANT_KILL_COMMAND="" +-WPA_SUPPLICANT_CONF="/etc/wpa_supplicant/wpa_supplicant.conf" +-WPA_DRIVER="ipw" ++WPA_SUPPLICANT_CONF="/etc/wpa_supplicant.conf" ++WPA_DRIVER="hostap" + WPA_SUPPLICANT_PIDFILE = "/var/run/wpa_supplicant.pid" + WPA_SUPPLICANT_ARGS = "-B -i " + INTERFACE + " -c " + WPA_SUPPLICANT_CONF + " -D " + WPA_DRIVER + " -p " + WPA_SUPPLICANT_PIDFILE + diff --git a/packages/wifi-radar/files/wifi-radar_destktop.patch b/packages/wifi-radar/files/wifi-radar_destktop.patch new file mode 100644 index 0000000000..ce0dd91464 --- /dev/null +++ b/packages/wifi-radar/files/wifi-radar_destktop.patch @@ -0,0 +1,13 @@ +--- wifi-radar-1.9.6/wifi-radar.desktop 2006-02-08 23:27:46.000000000 +0100 ++++ wifi-radar-1.9.6/wifi-radar.desktop.new 2006-05-14 22:06:29.000000000 +0200 +@@ -5,8 +5,8 @@ + Name=Wifi-radar + GenericName=Wireless tool + Comment=Tool for connecting to wireless networks +-Icon=wifi-radar.svg ++Icon=wifi-radar.png + FilePattern=wifi-radar + TryExec=wifi-radar +-Exec=gksudo -S wifi-radar ++Exec=wifi-radar + Categories=Application;Network; diff --git a/packages/wifi-radar/wifi-radar_1.9.6.bb b/packages/wifi-radar/wifi-radar_1.9.6.bb new file mode 100644 index 0000000000..70e913e086 --- /dev/null +++ b/packages/wifi-radar/wifi-radar_1.9.6.bb @@ -0,0 +1,35 @@ +SECTION = "x11/network" +DESCRIPTION="WiFi Radar is a Python/PyGTK2 utility for managing WiFi profiles." +HOMEPAGE="http://www.bitbuilder.com/wifi_radar/" +LICENSE = "GPL" + +PACKAGE_ARCH = "all" + +RDEPENDS = "python-core python-pygtk2 python-re python-io" + +SRC_URI="http://wifi-radar.systemimager.org/pub/${PN}-${PV}.tar.bz2 \ + file://wifi-radar.patch;patch=1 \ + file://wifi-radar_destktop.patch;patch=1 " + + +S = "${WORKDIR}/${PN}-${PV}" + +do_install() { + oe_runmake sbindir=${D}${sbindir} initdir=${D}${sysconfdir}/init.d sysconfdir=${D}${sysconfdir} mandir=${D}${mandir} pixmapsdir=${D}${datadir}/pixmaps appsdir=${D}${datadir}/applications install + + #sbindir = /usr/sbin + #initdir = /etc/init.d + #sysconfdir = /etc/wifi-radar + #mandir = /usr/share/man + #pixmapsdir = /usr/share/pixmaps + #appsdir = /usr/share/applications +} + +pkg_postinst() { +#!/bin/sh +# post installation script +echo "*******************************************" +echo "Please edit /etc/wifi-radar.conf" +echo "to match your wifi card name (wlan0, eth0, ...)" +echo "*******************************************" +} |