wok-6.x view wpa_supplicant/receipt @ rev 9372

Up: seamonkey to 2.0.13.
author Christopher Rogers <slaxemulator@gmail.com>
date Thu Mar 24 20:06:45 2011 +0000 (2011-03-24)
parents 4897058add72
children 105fefc7657f
line source
1 # SliTaz package receipt.
3 PACKAGE="wpa_supplicant"
4 VERSION="0.7.3"
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 libcrypto libcrypto-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 }