wok-current annotate wpa_supplicant/receipt @ rev 6263
Up: htop to 0.8.3.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Tue Sep 14 14:22:05 2010 +0000 (2010-09-14) |
parents | 35ec83c60e58 |
children | 31ca4dd73d66 |
rev | line source |
---|---|
0dddba11@861 | 1 # SliTaz package receipt. |
0dddba11@861 | 2 |
0dddba11@861 | 3 PACKAGE="wpa_supplicant" |
jozee@3329 | 4 VERSION="0.6.9" |
0dddba11@861 | 5 CATEGORY="utilities" |
0dddba11@861 | 6 SHORT_DESC="WPA Supplicant with support for WPA and WPA2" |
0dddba11@861 | 7 MAINTAINER="0dddba11@googlemail.com" |
pascal@5007 | 8 DEPENDS="libssl slitaz-base-files libcrypto" |
0dddba11@861 | 9 BUILD_DEPENDS="openssl-dev" |
0dddba11@861 | 10 TARBALL="$PACKAGE-$VERSION.tar.gz" |
0dddba11@861 | 11 WEB_SITE="http://hostap.epitest.fi/wpa_supplicant/" |
0dddba11@861 | 12 WGET_URL="http://hostap.epitest.fi/releases/$TARBALL" |
jozee@4976 | 13 TAGS="wireless" |
0dddba11@861 | 14 |
0dddba11@861 | 15 # Rules to configure and make the package. |
0dddba11@861 | 16 compile_rules() |
0dddba11@861 | 17 { |
jozee@3329 | 18 cd $src/$PACKAGE |
0dddba11@861 | 19 cp -a ./defconfig ./.config |
0dddba11@861 | 20 make |
0dddba11@861 | 21 } |
0dddba11@861 | 22 |
0dddba11@861 | 23 # Rules to gen a SliTaz package suitable for Tazpkg. |
0dddba11@861 | 24 genpkg_rules() |
0dddba11@861 | 25 { |
0dddba11@861 | 26 mkdir -p $fs/usr/bin |
0dddba11@861 | 27 mkdir -p $fs/etc |
jozee@3329 | 28 cp -a $src/$PACKAGE/wpa_cli $fs/usr/bin |
jozee@3329 | 29 cp -a $src/$PACKAGE/wpa_supplicant $fs/usr/bin |
pankso@4333 | 30 cp -a $src/$PACKAGE/wpa_passphrase $fs/usr/bin |
pankso@4333 | 31 |
jozee@3445 | 32 # dont copy the original |
jozee@3445 | 33 # cp -a $src/$PACKAGE/wpa_supplicant.conf $fs/etc |
pankso@4333 | 34 |
jozee@3445 | 35 # Startup script and cleaned up wpa_supplicant.conf |
0dddba11@885 | 36 cp -a stuff/etc $fs |
pankso@4333 | 37 |
pankso@4333 | 38 |
0dddba11@861 | 39 } |
0dddba11@861 | 40 |
pascal@938 | 41 # Pre and post install commands for Tazpkg. |
pascal@938 | 42 post_install() |
pascal@938 | 43 { |
pascal@981 | 44 grep -q ^WPA_OPTIONS= $1/etc/daemons.conf || cat >> $1/etc/daemons.conf <<EOT |
pascal@938 | 45 # wpa_supplicant daemon options |
pankso@3400 | 46 WPA_OPTIONS="-B -P/var/run/wpa_supplicant.pid -c/etc/wpa_supplicant.conf -i\$(. /etc/network.conf ; echo \$WIFI_INTERFACE)" |
pascal@938 | 47 |
pascal@938 | 48 EOT |
pankso@3400 | 49 # 'w' option dont exist anymore with < 0.6.9 |
pankso@3400 | 50 sed -i s/'-Bw'/'-B'/ $1/etc/daemons.conf |
jozee@3438 | 51 sed -i s/'-B -w'/'-B'/g $1/etc/init.d/network.sh |
pascal@938 | 52 } |