wok-current view wpa_supplicant/receipt @ rev 4446

Up: ndiswrapper-driver, utils;fix WGET_URL
author Rohit Joshi <jozee@slitaz.org>
date Thu Nov 05 19:41:12 2009 +0000 (2009-11-05)
parents d80bbe920b1e
children 35ec83c60e58
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"
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"
14 # Rules to configure and make the package.
15 compile_rules()
16 {
17 cd $src/$PACKAGE
18 cp -a ./defconfig ./.config
19 make
20 }
22 # Rules to gen a SliTaz package suitable for Tazpkg.
23 genpkg_rules()
24 {
25 mkdir -p $fs/usr/bin
26 mkdir -p $fs/etc
27 cp -a $src/$PACKAGE/wpa_cli $fs/usr/bin
28 cp -a $src/$PACKAGE/wpa_supplicant $fs/usr/bin
29 cp -a $src/$PACKAGE/wpa_passphrase $fs/usr/bin
31 # dont copy the original
32 # cp -a $src/$PACKAGE/wpa_supplicant.conf $fs/etc
34 # Startup script and cleaned up wpa_supplicant.conf
35 cp -a stuff/etc $fs
38 }
40 # Pre and post install commands for Tazpkg.
41 post_install()
42 {
43 grep -q ^WPA_OPTIONS= $1/etc/daemons.conf || cat >> $1/etc/daemons.conf <<EOT
44 # wpa_supplicant daemon options
45 WPA_OPTIONS="-B -P/var/run/wpa_supplicant.pid -c/etc/wpa_supplicant.conf -i\$(. /etc/network.conf ; echo \$WIFI_INTERFACE)"
47 EOT
48 # 'w' option dont exist anymore with < 0.6.9
49 sed -i s/'-Bw'/'-B'/ $1/etc/daemons.conf
50 sed -i s/'-B -w'/'-B'/g $1/etc/init.d/network.sh
51 }