wok-current view wpa_supplicant/receipt @ rev 10628
gambas2: fix last commit
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Thu May 26 22:24:08 2011 +0200 (2011-05-26) |
parents | 31ca4dd73d66 |
children | eba86f42424e |
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 CONFIG_FILES="/etc/wpa_supplicant.conf"
14 TAGS="wireless"
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 cd $src/$PACKAGE
20 cp -a ./defconfig ./.config
21 make
22 }
24 # Rules to gen a SliTaz package suitable for Tazpkg.
25 genpkg_rules()
26 {
27 mkdir -p $fs/usr/bin
28 mkdir -p $fs/etc
29 cp -a $src/$PACKAGE/wpa_cli $fs/usr/bin
30 cp -a $src/$PACKAGE/wpa_supplicant $fs/usr/bin
31 cp -a $src/$PACKAGE/wpa_passphrase $fs/usr/bin
33 # dont copy the original
34 # cp -a $src/$PACKAGE/wpa_supplicant.conf $fs/etc
36 # Startup script and cleaned up wpa_supplicant.conf
37 cp -a stuff/etc $fs
40 }
42 # Pre and post install commands for Tazpkg.
43 post_install()
44 {
45 grep -q ^WPA_OPTIONS= $1/etc/daemons.conf || cat >> $1/etc/daemons.conf <<EOT
46 # wpa_supplicant daemon options
47 WPA_OPTIONS="-B -P/var/run/wpa_supplicant.pid -c/etc/wpa_supplicant.conf -i\$(. /etc/network.conf ; echo \$WIFI_INTERFACE)"
49 EOT
50 # 'w' option dont exist anymore with < 0.6.9
51 sed -i s/'-Bw'/'-B'/ $1/etc/daemons.conf
52 sed -i s/'-B -w'/'-B'/g $1/etc/init.d/network.sh
53 }