wok annotate wpa_supplicant/receipt @ rev 10555

pam_ssh: update bdeps (again)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed May 25 21:36:35 2011 +0200 (2011-05-25)
parents 31ca4dd73d66
children eba86f42424e
rev   line source
0dddba11@861 1 # SliTaz package receipt.
0dddba11@861 2
0dddba11@861 3 PACKAGE="wpa_supplicant"
slaxemulator@6278 4 VERSION="0.7.3"
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"
slaxemulator@6278 9 BUILD_DEPENDS="openssl-dev libcrypto libcrypto-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"
pascal@10343 13 CONFIG_FILES="/etc/wpa_supplicant.conf"
jozee@4976 14 TAGS="wireless"
0dddba11@861 15
0dddba11@861 16 # Rules to configure and make the package.
0dddba11@861 17 compile_rules()
0dddba11@861 18 {
jozee@3329 19 cd $src/$PACKAGE
0dddba11@861 20 cp -a ./defconfig ./.config
0dddba11@861 21 make
0dddba11@861 22 }
0dddba11@861 23
0dddba11@861 24 # Rules to gen a SliTaz package suitable for Tazpkg.
0dddba11@861 25 genpkg_rules()
0dddba11@861 26 {
0dddba11@861 27 mkdir -p $fs/usr/bin
0dddba11@861 28 mkdir -p $fs/etc
jozee@3329 29 cp -a $src/$PACKAGE/wpa_cli $fs/usr/bin
jozee@3329 30 cp -a $src/$PACKAGE/wpa_supplicant $fs/usr/bin
pankso@4333 31 cp -a $src/$PACKAGE/wpa_passphrase $fs/usr/bin
pankso@4333 32
jozee@3445 33 # dont copy the original
jozee@3445 34 # cp -a $src/$PACKAGE/wpa_supplicant.conf $fs/etc
pankso@4333 35
jozee@3445 36 # Startup script and cleaned up wpa_supplicant.conf
0dddba11@885 37 cp -a stuff/etc $fs
pankso@4333 38
pankso@4333 39
0dddba11@861 40 }
0dddba11@861 41
pascal@938 42 # Pre and post install commands for Tazpkg.
pascal@938 43 post_install()
pascal@938 44 {
pascal@981 45 grep -q ^WPA_OPTIONS= $1/etc/daemons.conf || cat >> $1/etc/daemons.conf <<EOT
pascal@938 46 # wpa_supplicant daemon options
pankso@3400 47 WPA_OPTIONS="-B -P/var/run/wpa_supplicant.pid -c/etc/wpa_supplicant.conf -i\$(. /etc/network.conf ; echo \$WIFI_INTERFACE)"
pascal@938 48
pascal@938 49 EOT
pankso@3400 50 # 'w' option dont exist anymore with < 0.6.9
pankso@3400 51 sed -i s/'-Bw'/'-B'/ $1/etc/daemons.conf
jozee@3438 52 sed -i s/'-B -w'/'-B'/g $1/etc/init.d/network.sh
pascal@938 53 }