wok-next view wpa_supplicant/receipt @ rev 21727
created recipe for vbindiff
author | Hans-G?nter Theisgen |
---|---|
date | Sat Nov 21 14:32:44 2020 +0100 (2020-11-21) |
parents | d5aab818505e |
children |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="wpa_supplicant"
4 VERSION="2.7"
5 CATEGORY="utilities"
6 SHORT_DESC="WPA/WPA2/IEEE 802.1X Supplicant"
7 MAINTAINER="devel@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="http://w1.fi/wpa_supplicant/"
10 LFS="http://www.linuxfromscratch.org/blfs/view/svn/basicnet/wpa_supplicant.html"
11 REPOLOGY="wpa-supplicant"
13 TARBALL="$PACKAGE-$VERSION.tar.gz"
14 WGET_URL="http://w1.fi/releases/$TARBALL"
15 TARBALL_SHA1="3c3c2c6bc493fb32b919d9b410768324f3729e25"
17 BUILD_DEPENDS="libnl-dev dbus-dev openssl-dev readline-dev"
18 DEPENDS="dbus libnl openssl readline ncurses"
20 CONFIG_FILES="/etc/wpa/wpa_supplicant.conf"
21 TAGS="wireless Wi-Fi network"
23 compile_rules() {
24 cd $src/wpa_supplicant
26 cp $stuff/.config .
27 make BINDIR=/sbin LIBDIR=/lib || return 1
29 mkdir -p $install/sbin/
30 install -m755 wpa_cli wpa_passphrase wpa_supplicant $install/sbin/
32 cook_pick_manpages \
33 doc/docbook/wpa_supplicant.conf.5 \
34 doc/docbook/wpa_cli.8 \
35 doc/docbook/wpa_passphrase.8 \
36 doc/docbook/wpa_supplicant.8
38 mkdir -p $install/usr/share/dbus-1/system-services/
39 install -m644 dbus/*.service $install/usr/share/dbus-1/system-services/
41 install -Dm644 dbus/dbus-wpa_supplicant.conf \
42 $install/etc/dbus-1/system.d/wpa_supplicant.conf
44 install -Dm755 $stuff/wpa_supplicant $install/etc/init.d/wpa_supplicant
45 install -Dm644 $stuff/wpa_empty.conf $install/etc/wpa/wpa_empty.conf
46 install -m644 wpa_supplicant.conf $install/etc/wpa/wpa_supplicant.conf
47 }
49 post_install() {
50 grep -qs ^WPA_OPTIONS= $1/etc/daemons.conf || cat >> "$1/etc/daemons.conf" <<"EOT"
52 # wpa_supplicant daemon options
53 WPA_OPTIONS="-B -u -P /var/run/wpa_supplicant.pid -c /etc/wpa/wpa.conf -i $(. /etc/network.conf; echo $WIFI_INTERFACE)"
55 EOT
56 # We use /etc/wpa/wpa.conf from SliTaz 5.0
57 sed -i 's|/etc/wpa_supplicant.conf|/etc/wpa/wpa.conf|' "$1/etc/daemons.conf" 2>/dev/null
58 # 'w' option don't exist anymore with < 0.6.9
59 sed -i 's|-Bw|-B|' "$1/etc/daemons.conf" 2>/dev/null
60 sed -i 's|-B -w|-B|g' "$1/etc/init.d/network.sh" 2>/dev/null
61 }