wok-next rev 2855

Fix: wicd for udhcpc
author Rohit Joshi <jozee@slitaz.org>
date Fri May 01 12:08:02 2009 +0000 (2009-05-01)
parents 49f0bd2ae6ad
children ea3033355b0a
files wicd/receipt wicd/stuff/dhclient
line diff
     1.1 --- a/wicd/receipt	Fri May 01 17:30:29 2009 +0200
     1.2 +++ b/wicd/receipt	Fri May 01 12:08:02 2009 +0000
     1.3 @@ -5,7 +5,7 @@
     1.4  CATEGORY="misc"
     1.5  SHORT_DESC="Network connection manager"
     1.6  MAINTAINER="jozee@slitaz.org"
     1.7 -DEPENDS="python dbus-python ethtool"
     1.8 +DEPENDS="python dbus-python ethtool wpa_supplicant"
     1.9  BUILD_DEPENDS="python-dev dbus-python-dev python"
    1.10  TARBALL="$PACKAGE-$VERSION.tar.gz"
    1.11  WEB_SITE="http://heanet.dl.sourceforge.net/sourceforge/wicd/"
    1.12 @@ -37,5 +37,21 @@
    1.13      cp -a $_pkg/usr/share/icons/hicolor/32x32 $fs/usr/share/icons/hicolor
    1.14      mkdir -p $fs/etc/init.d
    1.15      cp -a stuff/wicd $fs/etc/init.d
    1.16 -    cp -a stuff/wpa_passphrase $fs/usr/bin        
    1.17 +	# dhclient as fake udhcpc wrapper
    1.18 +  	cp -a stuff/dhclient $fs/usr/bin 
    1.19 +	# set permissions
    1.20 +	chmod +x $fs/usr/bin/dhclient
    1.21 +	
    1.22  }
    1.23 +
    1.24 +# edit daemons.conf.
    1.25 +post_install()
    1.26 +{
    1.27 +	local root
    1.28 +	root=$1
    1.29 +	if ! grep -q ^WICD_OPTIONS $root/etc/daemons.conf; then
    1.30 +		echo '# wicd options.' >> $root/etc/daemons.conf
    1.31 +		echo 'WICD_OPTIONS=""' >> $root/etc/daemons.conf
    1.32 +		echo '' >> $root/etc/daemons.conf
    1.33 +	fi
    1.34 +}
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/wicd/stuff/dhclient	Fri May 01 12:08:02 2009 +0000
     2.3 @@ -0,0 +1,3 @@
     2.4 +#!/bin/sh
     2.5 +# wrapper script
     2.6 +/sbin/udhcpc -b -i $1