rev |
line source |
0dddba11@861
|
1 # SliTaz package receipt.
|
0dddba11@861
|
2
|
0dddba11@861
|
3 PACKAGE="wpa_supplicant"
|
pascal@13116
|
4 VERSION="1.0"
|
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"
|
pascal@13116
|
9 BUILD_DEPENDS="openssl-dev libcrypto libcrypto-dev libnl-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
|
pascal@13467
|
20 sed 's/-lnl/-lnl-3/g' -i ../src/drivers/drivers.mak
|
pascal@13467
|
21 sed 's/-lnl-3-genl/-lnl-genl-3/g' -i ../src/drivers/drivers.mak
|
0dddba11@861
|
22 cp -a ./defconfig ./.config
|
pascal@13467
|
23 cat >> .config << EOF
|
pascal@13467
|
24 CONFIG_LIBNL20=y
|
pascal@13467
|
25 CFLAGS += -I/usr/include/libnl3
|
pascal@13467
|
26 EOF
|
0dddba11@861
|
27 make
|
0dddba11@861
|
28 }
|
0dddba11@861
|
29
|
0dddba11@861
|
30 # Rules to gen a SliTaz package suitable for Tazpkg.
|
0dddba11@861
|
31 genpkg_rules()
|
0dddba11@861
|
32 {
|
0dddba11@861
|
33 mkdir -p $fs/usr/bin
|
0dddba11@861
|
34 mkdir -p $fs/etc
|
jozee@3329
|
35 cp -a $src/$PACKAGE/wpa_cli $fs/usr/bin
|
jozee@3329
|
36 cp -a $src/$PACKAGE/wpa_supplicant $fs/usr/bin
|
pankso@4333
|
37 cp -a $src/$PACKAGE/wpa_passphrase $fs/usr/bin
|
pankso@4333
|
38
|
jozee@3445
|
39 # dont copy the original
|
jozee@3445
|
40 # cp -a $src/$PACKAGE/wpa_supplicant.conf $fs/etc
|
pankso@4333
|
41
|
jozee@3445
|
42 # Startup script and cleaned up wpa_supplicant.conf
|
0dddba11@885
|
43 cp -a stuff/etc $fs
|
pankso@4333
|
44
|
pankso@4333
|
45
|
0dddba11@861
|
46 }
|
0dddba11@861
|
47
|
pascal@938
|
48 # Pre and post install commands for Tazpkg.
|
pascal@938
|
49 post_install()
|
pascal@938
|
50 {
|
pascal@981
|
51 grep -q ^WPA_OPTIONS= $1/etc/daemons.conf || cat >> $1/etc/daemons.conf <<EOT
|
pascal@938
|
52 # wpa_supplicant daemon options
|
pankso@3400
|
53 WPA_OPTIONS="-B -P/var/run/wpa_supplicant.pid -c/etc/wpa_supplicant.conf -i\$(. /etc/network.conf ; echo \$WIFI_INTERFACE)"
|
pascal@938
|
54
|
pascal@938
|
55 EOT
|
pankso@3400
|
56 # 'w' option dont exist anymore with < 0.6.9
|
pankso@3400
|
57 sed -i s/'-Bw'/'-B'/ $1/etc/daemons.conf
|
jozee@3438
|
58 sed -i s/'-B -w'/'-B'/g $1/etc/init.d/network.sh
|
pascal@938
|
59 }
|