wok-current annotate wpa_supplicant/receipt @ rev 3329
UP ; wpa_supplicant (0.6.9)
author | Rohit Joshi <jozee@slitaz.org> |
---|---|
date | Tue Jun 09 18:18:50 2009 +0000 (2009-06-09) |
parents | ea3033355b0a |
children | 9cc8e4a89170 |
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@982 | 8 DEPENDS="openssl slitaz-base-files" |
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" |
0dddba11@861 | 13 |
0dddba11@861 | 14 # Rules to configure and make the package. |
0dddba11@861 | 15 compile_rules() |
0dddba11@861 | 16 { |
jozee@3329 | 17 cd $src/$PACKAGE |
0dddba11@861 | 18 cp -a ./defconfig ./.config |
0dddba11@861 | 19 make |
0dddba11@861 | 20 } |
0dddba11@861 | 21 |
0dddba11@861 | 22 # Rules to gen a SliTaz package suitable for Tazpkg. |
0dddba11@861 | 23 genpkg_rules() |
0dddba11@861 | 24 { |
0dddba11@861 | 25 mkdir -p $fs/usr/bin |
0dddba11@861 | 26 mkdir -p $fs/etc |
jozee@3329 | 27 cp -a $src/$PACKAGE/wpa_cli $fs/usr/bin |
jozee@3329 | 28 cp -a $src/$PACKAGE/wpa_supplicant $fs/usr/bin |
jozee@3329 | 29 cp -a $src/$PACKAGE/wpa_passphrase $fs/usr/bin |
jozee@3329 | 30 cp -a $src/$PACKAGE/wpa_supplicant.conf $fs/etc |
0dddba11@885 | 31 |
0dddba11@885 | 32 # Startup script |
0dddba11@885 | 33 cp -a stuff/etc $fs |
0dddba11@861 | 34 } |
0dddba11@861 | 35 |
pascal@938 | 36 # Pre and post install commands for Tazpkg. |
pascal@938 | 37 post_install() |
pascal@938 | 38 { |
pascal@981 | 39 grep -q ^WPA_OPTIONS= $1/etc/daemons.conf || cat >> $1/etc/daemons.conf <<EOT |
pascal@938 | 40 # wpa_supplicant daemon options |
pascal@1020 | 41 WPA_OPTIONS="-Bw -P/var/run/wpa_supplicant.pid -c/etc/wpa_supplicant.conf -i\$(. /etc/network.conf ; echo \$WIFI_INTERFACE)" |
pascal@938 | 42 |
pascal@938 | 43 EOT |
pascal@938 | 44 } |