wok-next diff wpa_supplicant/receipt @ rev 938

wpa_supplicant: run as daemon
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Jun 23 16:53:33 2008 +0000 (2008-06-23)
parents 12dc6e40feca
children d086e9fbb545
line diff
     1.1 --- a/wpa_supplicant/receipt	Sat Jun 07 22:29:41 2008 +0000
     1.2 +++ b/wpa_supplicant/receipt	Mon Jun 23 16:53:33 2008 +0000
     1.3 @@ -5,7 +5,7 @@
     1.4  CATEGORY="utilities"
     1.5  SHORT_DESC="WPA Supplicant with support for WPA and WPA2"
     1.6  MAINTAINER="0dddba11@googlemail.com"
     1.7 -DEPENDS=""
     1.8 +DEPENDS="openssl"
     1.9  BUILD_DEPENDS="openssl-dev"
    1.10  TARBALL="$PACKAGE-$VERSION.tar.gz"
    1.11  WEB_SITE="http://hostap.epitest.fi/wpa_supplicant/"
    1.12 @@ -32,3 +32,12 @@
    1.13  	cp -a stuff/etc $fs
    1.14  }
    1.15  
    1.16 +# Pre and post install commands for Tazpkg.
    1.17 +post_install()
    1.18 +{
    1.19 +	grep -q ^WPA_CONF= $1/etc/daemon.conf || cat >> $1/etc/daemon.conf <<EOT
    1.20 +# wpa_supplicant daemon options
    1.21 +WPA_CONF="-Bw -P/var/run/wpa_supplicant.pid -c/etc/wpa_supplicant.conf -iwlan0"
    1.22 +
    1.23 +EOT
    1.24 +}