wok-next annotate wpa_supplicant/receipt @ rev 20443
The rest of my "home work" for update many packages (up to Xorg, GTK and Openbox) for Next and mainly for Next64. Since this point this repository is open for commits. Many errors are expected due to harfbuzz-freetype dependency loop...
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Sat Feb 24 16:17:33 2018 +0200 (2018-02-24) |
parents | 0ed344a8daed |
children | e6615350078d |
rev | line source |
---|---|
al@19844 | 1 # SliTaz package receipt v2. |
0dddba11@861 | 2 |
0dddba11@861 | 3 PACKAGE="wpa_supplicant" |
al@19844 | 4 VERSION="2.6" |
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@15002 | 8 LICENSE="GPL2" |
al@19844 | 9 WEB_SITE="http://w1.fi/wpa_supplicant/" |
al@20443 | 10 LFS="http://www.linuxfromscratch.org/blfs/view/stable/basicnet/wpa_supplicant.html" |
pankso@16027 | 11 |
al@19844 | 12 TARBALL="$PACKAGE-$VERSION.tar.gz" |
al@19844 | 13 WGET_URL="http://w1.fi/releases/$TARBALL" |
0dddba11@861 | 14 |
al@19844 | 15 BUILD_DEPENDS_arm="openssl-dev libcrypto-dev libnl-dev" |
al@19844 | 16 BUILD_DEPENDS="libnl-dev dbus-dev openssl-dev readline-dev" |
domcox@14382 | 17 |
al@19844 | 18 compile_rules() { |
al@19844 | 19 cd $src/wpa_supplicant |
al@19844 | 20 cp -a defconfig .config |
al@19844 | 21 |
pankso@16056 | 22 # Main build configs |
al@19844 | 23 cat >> .config <<EOT |
al@19844 | 24 CONFIG_DEBUG_FILE=y |
al@19844 | 25 CONFIG_DEBUG_SYSLOG=y |
al@19844 | 26 CONFIG_DEBUG_SYSLOG_FACILITY=LOG_DAEMON |
al@19844 | 27 CONFIG_IPV6=y |
al@19844 | 28 CONFIG_LIBNL32=y |
al@19844 | 29 CONFIG_READLINE=y |
al@19844 | 30 CONFIG_WPS=y |
domcox@14382 | 31 CONFIG_AP=y |
domcox@14382 | 32 CONFIG_BGSCAN_SIMPLE=y |
pankso@16056 | 33 EOT |
al@19844 | 34 # Don't use DBUS on ARM arch |
pankso@16056 | 35 case "$ARCH" in |
al@20443 | 36 arm) |
al@20443 | 37 cat >> .config <<EOT |
al@20443 | 38 CFLAGS += -I${sysroot}/usr/include/libnl3 |
al@20443 | 39 CFLAGS += -I${sysroot}/usr/include/openssl |
al@20443 | 40 LIBS += -L${sysroot}/usr/lib |
al@20443 | 41 EOT |
al@20443 | 42 ;; |
al@20443 | 43 i?86|x86_64) |
al@19844 | 44 cat >> .config <<EOT |
pankso@16027 | 45 CFLAGS += -I/usr/include/libnl3 |
domcox@14382 | 46 CONFIG_CTRL_IFACE_DBUS=y |
domcox@14382 | 47 CONFIG_CTRL_IFACE_DBUS_NEW=y |
domcox@14382 | 48 CONFIG_CTRL_IFACE_DBUS_INTRO=y |
pankso@16056 | 49 EOT |
pankso@16027 | 50 ;; |
pankso@16027 | 51 esac |
al@19844 | 52 make BINDIR=/sbin LIBDIR=/lib || exit 1 |
al@19844 | 53 |
al@19844 | 54 # commands |
al@19844 | 55 bindir="$install/sbin" |
al@19844 | 56 mkdir -p $bindir |
al@19844 | 57 install -vm755 wpa_cli $bindir |
al@19844 | 58 install -vm755 wpa_passphrase $bindir |
al@19844 | 59 install -vm755 wpa_supplicant $bindir |
al@19844 | 60 |
al@19844 | 61 cook_pick_manpages \ |
al@19844 | 62 doc/docbook/wpa_supplicant.conf.5 \ |
al@19844 | 63 doc/docbook/wpa_cli.8 \ |
al@19844 | 64 doc/docbook/wpa_passphrase.8 \ |
al@19844 | 65 doc/docbook/wpa_supplicant.8 |
al@19844 | 66 |
al@19844 | 67 mkdir -p $install/usr/share/dbus-1/system-services |
al@19844 | 68 install -vm644 dbus/*.service $install/usr/share/dbus-1/system-services/ |
al@19844 | 69 |
al@19844 | 70 mkdir -p $install/etc/dbus-1/system.d |
al@19844 | 71 install -vm644 dbus/dbus-wpa_supplicant.conf \ |
al@19844 | 72 $install/etc/dbus-1/system.d/wpa_supplicant.conf |
al@19844 | 73 |
al@19844 | 74 # Startup script and cleaned up wpa_empty.conf |
al@19844 | 75 cp -a $stuff/etc $install |
al@19844 | 76 install -vm644 $src/wpa_supplicant/wpa_supplicant.conf $install/etc/wpa |
al@19844 | 77 chown -R root:root $install/etc |
0dddba11@861 | 78 } |
0dddba11@861 | 79 |
al@19844 | 80 genpkg_rules() { |
al@19844 | 81 copy @std |
al@19844 | 82 DEPENDS="dbus libcrypto libnl libssl ncurses readline" |
al@19844 | 83 CONFIG_FILES="/etc/wpa/wpa_supplicant.conf" |
al@19844 | 84 TAGS="wireless wifi network" |
al@19844 | 85 case "$SLITAZ_ARCH" in |
al@19844 | 86 arm*) DEPENDS="libssl libcrypto libnl";; |
al@19844 | 87 esac |
0dddba11@861 | 88 } |
0dddba11@861 | 89 |
al@19844 | 90 post_install() { |
al@19844 | 91 grep -qs ^WPA_OPTIONS= $1/etc/daemons.conf || cat >> "$1/etc/daemons.conf" <<"EOT" |
pankso@15914 | 92 |
pascal@938 | 93 # wpa_supplicant daemon options |
al@19844 | 94 WPA_OPTIONS="-B -u -P /var/run/wpa_supplicant.pid -c /etc/wpa/wpa.conf -i $(. /etc/network.conf; echo $WIFI_INTERFACE)" |
pascal@938 | 95 |
pascal@938 | 96 EOT |
pankso@15914 | 97 # We use /etc/wpa/wpa.conf from SliTaz 5.0 |
al@19844 | 98 sed -i 's|/etc/wpa_supplicant.conf|/etc/wpa/wpa.conf|' "$1/etc/daemons.conf" 2>/dev/null |
al@19844 | 99 # 'w' option don't exist anymore with < 0.6.9 |
al@19844 | 100 sed -i 's|-Bw|-B|' "$1/etc/daemons.conf" 2>/dev/null |
al@19844 | 101 sed -i 's|-B -w|-B|g' "$1/etc/init.d/network.sh" 2>/dev/null |
pascal@938 | 102 } |