wok view wpa_supplicant/receipt @ rev 5007
[s-w]*: update depends
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Feb 28 17:49:32 2010 +0100 (2010-02-28) |
parents | 35ec83c60e58 |
children | 31ca4dd73d66 |
line source
1 # SliTaz package receipt.
3 PACKAGE="wpa_supplicant"
4 VERSION="0.6.9"
5 CATEGORY="utilities"
6 SHORT_DESC="WPA Supplicant with support for WPA and WPA2"
7 MAINTAINER="0dddba11@googlemail.com"
8 DEPENDS="libssl slitaz-base-files libcrypto"
9 BUILD_DEPENDS="openssl-dev"
10 TARBALL="$PACKAGE-$VERSION.tar.gz"
11 WEB_SITE="http://hostap.epitest.fi/wpa_supplicant/"
12 WGET_URL="http://hostap.epitest.fi/releases/$TARBALL"
13 TAGS="wireless"
15 # Rules to configure and make the package.
16 compile_rules()
17 {
18 cd $src/$PACKAGE
19 cp -a ./defconfig ./.config
20 make
21 }
23 # Rules to gen a SliTaz package suitable for Tazpkg.
24 genpkg_rules()
25 {
26 mkdir -p $fs/usr/bin
27 mkdir -p $fs/etc
28 cp -a $src/$PACKAGE/wpa_cli $fs/usr/bin
29 cp -a $src/$PACKAGE/wpa_supplicant $fs/usr/bin
30 cp -a $src/$PACKAGE/wpa_passphrase $fs/usr/bin
32 # dont copy the original
33 # cp -a $src/$PACKAGE/wpa_supplicant.conf $fs/etc
35 # Startup script and cleaned up wpa_supplicant.conf
36 cp -a stuff/etc $fs
39 }
41 # Pre and post install commands for Tazpkg.
42 post_install()
43 {
44 grep -q ^WPA_OPTIONS= $1/etc/daemons.conf || cat >> $1/etc/daemons.conf <<EOT
45 # wpa_supplicant daemon options
46 WPA_OPTIONS="-B -P/var/run/wpa_supplicant.pid -c/etc/wpa_supplicant.conf -i\$(. /etc/network.conf ; echo \$WIFI_INTERFACE)"
48 EOT
49 # 'w' option dont exist anymore with < 0.6.9
50 sed -i s/'-Bw'/'-B'/ $1/etc/daemons.conf
51 sed -i s/'-B -w'/'-B'/g $1/etc/init.d/network.sh
52 }