wok-current view wpa_supplicant/receipt @ rev 938
wpa_supplicant: run as daemon
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Jun 23 16:53:33 2008 +0000 (2008-06-23) |
parents | 12dc6e40feca |
children | d086e9fbb545 |
line source
1 # SliTaz package receipt.
3 PACKAGE="wpa_supplicant"
4 VERSION="0.5.10"
5 CATEGORY="utilities"
6 SHORT_DESC="WPA Supplicant with support for WPA and WPA2"
7 MAINTAINER="0dddba11@googlemail.com"
8 DEPENDS="openssl"
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
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/wpa_cli $fs/usr/bin
28 cp -a $src/wpa_supplicant $fs/usr/bin
29 cp -a $src/wpa_supplicant.conf $fs/etc
31 # Startup script
32 cp -a stuff/etc $fs
33 }
35 # Pre and post install commands for Tazpkg.
36 post_install()
37 {
38 grep -q ^WPA_CONF= $1/etc/daemon.conf || cat >> $1/etc/daemon.conf <<EOT
39 # wpa_supplicant daemon options
40 WPA_CONF="-Bw -P/var/run/wpa_supplicant.pid -c/etc/wpa_supplicant.conf -iwlan0"
42 EOT
43 }