wok-next annotate 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 |
rev | line source |
---|---|
al@19844 | 1 # SliTaz package receipt v2. |
0dddba11@861 | 2 |
0dddba11@861 | 3 PACKAGE="wpa_supplicant" |
al@21085 | 4 VERSION="2.7" |
0dddba11@861 | 5 CATEGORY="utilities" |
al@21085 | 6 SHORT_DESC="WPA/WPA2/IEEE 802.1X Supplicant" |
al@21020 | 7 MAINTAINER="devel@slitaz.org" |
pascal@15002 | 8 LICENSE="GPL2" |
al@19844 | 9 WEB_SITE="http://w1.fi/wpa_supplicant/" |
al@21017 | 10 LFS="http://www.linuxfromscratch.org/blfs/view/svn/basicnet/wpa_supplicant.html" |
al@20883 | 11 REPOLOGY="wpa-supplicant" |
pankso@16027 | 12 |
al@19844 | 13 TARBALL="$PACKAGE-$VERSION.tar.gz" |
al@19844 | 14 WGET_URL="http://w1.fi/releases/$TARBALL" |
al@21085 | 15 TARBALL_SHA1="3c3c2c6bc493fb32b919d9b410768324f3729e25" |
0dddba11@861 | 16 |
al@19844 | 17 BUILD_DEPENDS="libnl-dev dbus-dev openssl-dev readline-dev" |
al@21085 | 18 DEPENDS="dbus libnl openssl readline ncurses" |
al@21085 | 19 |
al@21085 | 20 CONFIG_FILES="/etc/wpa/wpa_supplicant.conf" |
al@21085 | 21 TAGS="wireless Wi-Fi network" |
domcox@14382 | 22 |
al@19844 | 23 compile_rules() { |
al@19844 | 24 cd $src/wpa_supplicant |
al@19844 | 25 |
al@21085 | 26 cp $stuff/.config . |
al@21020 | 27 make BINDIR=/sbin LIBDIR=/lib || return 1 |
al@19844 | 28 |
al@21085 | 29 mkdir -p $install/sbin/ |
al@21085 | 30 install -m755 wpa_cli wpa_passphrase wpa_supplicant $install/sbin/ |
al@19844 | 31 |
al@19844 | 32 cook_pick_manpages \ |
al@19844 | 33 doc/docbook/wpa_supplicant.conf.5 \ |
al@19844 | 34 doc/docbook/wpa_cli.8 \ |
al@19844 | 35 doc/docbook/wpa_passphrase.8 \ |
al@19844 | 36 doc/docbook/wpa_supplicant.8 |
al@19844 | 37 |
al@21085 | 38 mkdir -p $install/usr/share/dbus-1/system-services/ |
al@21085 | 39 install -m644 dbus/*.service $install/usr/share/dbus-1/system-services/ |
al@19844 | 40 |
al@21085 | 41 install -Dm644 dbus/dbus-wpa_supplicant.conf \ |
al@19844 | 42 $install/etc/dbus-1/system.d/wpa_supplicant.conf |
al@19844 | 43 |
al@21085 | 44 install -Dm755 $stuff/wpa_supplicant $install/etc/init.d/wpa_supplicant |
al@21085 | 45 install -Dm644 $stuff/wpa_empty.conf $install/etc/wpa/wpa_empty.conf |
al@21085 | 46 install -m644 wpa_supplicant.conf $install/etc/wpa/wpa_supplicant.conf |
0dddba11@861 | 47 } |
0dddba11@861 | 48 |
al@19844 | 49 post_install() { |
al@19844 | 50 grep -qs ^WPA_OPTIONS= $1/etc/daemons.conf || cat >> "$1/etc/daemons.conf" <<"EOT" |
pankso@15914 | 51 |
pascal@938 | 52 # wpa_supplicant daemon options |
al@19844 | 53 WPA_OPTIONS="-B -u -P /var/run/wpa_supplicant.pid -c /etc/wpa/wpa.conf -i $(. /etc/network.conf; echo $WIFI_INTERFACE)" |
pascal@938 | 54 |
pascal@938 | 55 EOT |
pankso@15914 | 56 # We use /etc/wpa/wpa.conf from SliTaz 5.0 |
al@19844 | 57 sed -i 's|/etc/wpa_supplicant.conf|/etc/wpa/wpa.conf|' "$1/etc/daemons.conf" 2>/dev/null |
al@19844 | 58 # 'w' option don't exist anymore with < 0.6.9 |
al@19844 | 59 sed -i 's|-Bw|-B|' "$1/etc/daemons.conf" 2>/dev/null |
al@19844 | 60 sed -i 's|-B -w|-B|g' "$1/etc/init.d/network.sh" 2>/dev/null |
pascal@938 | 61 } |