wok-current view wpa_supplicant/receipt @ rev 14050

mapserver: add CFLAGS
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Feb 19 12:45:48 2013 +0100 (2013-02-19)
parents 393a37db48f8
children 01ad1e61b761
line source
1 # SliTaz package receipt.
3 PACKAGE="wpa_supplicant"
4 VERSION="1.0"
5 CATEGORY="utilities"
6 SHORT_DESC="WPA Supplicant with support for WPA and WPA2"
7 MAINTAINER="0dddba11@googlemail.com"
8 DEPENDS="libssl slitaz-base-files libcrypto libnl"
9 BUILD_DEPENDS="openssl-dev libcrypto libcrypto-dev libnl-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"
13 CONFIG_FILES="/etc/wpa_supplicant.conf"
14 TAGS="wireless"
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 cd $src/$PACKAGE
20 sed 's/-lnl/-lnl-3/g' -i ../src/drivers/drivers.mak
21 sed 's/-lnl-3-genl/-lnl-genl-3/g' -i ../src/drivers/drivers.mak
22 cp -a ./defconfig ./.config
23 cat >> .config << EOF
24 CONFIG_LIBNL20=y
25 CFLAGS += -I/usr/include/libnl3
26 EOF
27 make
28 }
30 # Rules to gen a SliTaz package suitable for Tazpkg.
31 genpkg_rules()
32 {
33 mkdir -p $fs/usr/bin
34 mkdir -p $fs/etc
35 cp -a $src/$PACKAGE/wpa_cli $fs/usr/bin
36 cp -a $src/$PACKAGE/wpa_supplicant $fs/usr/bin
37 cp -a $src/$PACKAGE/wpa_passphrase $fs/usr/bin
39 # dont copy the original
40 # cp -a $src/$PACKAGE/wpa_supplicant.conf $fs/etc
42 # Startup script and cleaned up wpa_supplicant.conf
43 cp -a stuff/etc $fs
46 }
48 # Pre and post install commands for Tazpkg.
49 post_install()
50 {
51 grep -q ^WPA_OPTIONS= $1/etc/daemons.conf || cat >> $1/etc/daemons.conf <<EOT
52 # wpa_supplicant daemon options
53 WPA_OPTIONS="-B -P/var/run/wpa_supplicant.pid -c/etc/wpa_supplicant.conf -i\$(. /etc/network.conf ; echo \$WIFI_INTERFACE)"
55 EOT
56 # 'w' option dont exist anymore with < 0.6.9
57 sed -i s/'-Bw'/'-B'/ $1/etc/daemons.conf
58 sed -i s/'-B -w'/'-B'/g $1/etc/init.d/network.sh
59 }