wok-next annotate wpa_supplicant/receipt @ rev 20095
Update/add packages needed for building MATE desktop:
Add: gnome-keyring3, gtkmm3, libappindicator-gtk[23], libfakekey, libgnome-keyring3, libindicator-gtk[23], libpeas.
Update: atkmm, cairomm, gcr, glibmm, gssdp, gupnp, icon-naming-utils, libcap-ng, libspectre, libwnck3, libxklavier, pangomm, perl-xml-sax.
Add: gnome-keyring3, gtkmm3, libappindicator-gtk[23], libfakekey, libgnome-keyring3, libindicator-gtk[23], libpeas.
Update: atkmm, cairomm, gcr, glibmm, gssdp, gupnp, icon-naming-utils, libcap-ng, libspectre, libwnck3, libxklavier, pangomm, perl-xml-sax.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Sat Oct 28 16:45:22 2017 +0300 (2017-10-28) |
parents | 9e01bc6321ea |
children | 0e7893ac206d |
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/" |
pankso@16027 | 10 HOST_ARCH="i486 arm" |
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 |
0dddba11@861 | 18 # Rules to configure and make the package. |
al@19844 | 19 compile_rules() { |
al@19844 | 20 # http://www.linuxfromscratch.org/blfs/view/stable/basicnet/wpa_supplicant.html |
al@19844 | 21 |
al@19844 | 22 cd $src/wpa_supplicant |
al@19844 | 23 cp -a defconfig .config |
al@19844 | 24 |
pankso@16056 | 25 # Main build configs |
al@19844 | 26 cat >> .config <<EOT |
al@19844 | 27 CONFIG_DEBUG_FILE=y |
al@19844 | 28 CONFIG_DEBUG_SYSLOG=y |
al@19844 | 29 CONFIG_DEBUG_SYSLOG_FACILITY=LOG_DAEMON |
al@19844 | 30 CONFIG_IPV6=y |
al@19844 | 31 CONFIG_LIBNL32=y |
al@19844 | 32 CONFIG_READLINE=y |
al@19844 | 33 CONFIG_WPS=y |
domcox@14382 | 34 CONFIG_AP=y |
domcox@14382 | 35 CONFIG_BGSCAN_SIMPLE=y |
pankso@16056 | 36 EOT |
al@19844 | 37 # Don't use DBUS on ARM arch |
pankso@16056 | 38 case "$ARCH" in |
pankso@16056 | 39 i?86) |
al@19844 | 40 cat >> .config <<EOT |
pankso@16027 | 41 CFLAGS += -I/usr/include/libnl3 |
domcox@14382 | 42 CONFIG_CTRL_IFACE_DBUS=y |
domcox@14382 | 43 CONFIG_CTRL_IFACE_DBUS_NEW=y |
domcox@14382 | 44 CONFIG_CTRL_IFACE_DBUS_INTRO=y |
pankso@16056 | 45 EOT |
pankso@16027 | 46 ;; |
pankso@16027 | 47 arm) |
al@19844 | 48 cat >> .config <<EOT |
pankso@16056 | 49 CFLAGS += -I${sysroot}/usr/include/libnl3 |
pankso@16056 | 50 CFLAGS += -I${sysroot}/usr/include/openssl |
pankso@16056 | 51 LIBS += -L${sysroot}/usr/lib |
pankso@16056 | 52 EOT |
pankso@16056 | 53 ;; |
pankso@16027 | 54 esac |
al@19844 | 55 make BINDIR=/sbin LIBDIR=/lib || exit 1 |
al@19844 | 56 |
al@19844 | 57 # commands |
al@19844 | 58 bindir="$install/sbin" |
al@19844 | 59 mkdir -p $bindir |
al@19844 | 60 install -vm755 wpa_cli $bindir |
al@19844 | 61 install -vm755 wpa_passphrase $bindir |
al@19844 | 62 install -vm755 wpa_supplicant $bindir |
al@19844 | 63 |
al@19844 | 64 cook_pick_manpages \ |
al@19844 | 65 doc/docbook/wpa_supplicant.conf.5 \ |
al@19844 | 66 doc/docbook/wpa_cli.8 \ |
al@19844 | 67 doc/docbook/wpa_passphrase.8 \ |
al@19844 | 68 doc/docbook/wpa_supplicant.8 |
al@19844 | 69 |
al@19844 | 70 mkdir -p $install/usr/share/dbus-1/system-services |
al@19844 | 71 install -vm644 dbus/*.service $install/usr/share/dbus-1/system-services/ |
al@19844 | 72 |
al@19844 | 73 mkdir -p $install/etc/dbus-1/system.d |
al@19844 | 74 install -vm644 dbus/dbus-wpa_supplicant.conf \ |
al@19844 | 75 $install/etc/dbus-1/system.d/wpa_supplicant.conf |
al@19844 | 76 |
al@19844 | 77 # Startup script and cleaned up wpa_empty.conf |
al@19844 | 78 cp -a $stuff/etc $install |
al@19844 | 79 install -vm644 $src/wpa_supplicant/wpa_supplicant.conf $install/etc/wpa |
al@19844 | 80 chown -R root:root $install/etc |
0dddba11@861 | 81 } |
0dddba11@861 | 82 |
0dddba11@861 | 83 # Rules to gen a SliTaz package suitable for Tazpkg. |
al@19844 | 84 genpkg_rules() { |
al@19844 | 85 copy @std |
al@19844 | 86 DEPENDS="dbus libcrypto libnl libssl ncurses readline" |
al@19844 | 87 CONFIG_FILES="/etc/wpa/wpa_supplicant.conf" |
al@19844 | 88 TAGS="wireless wifi network" |
al@19844 | 89 case "$SLITAZ_ARCH" in |
al@19844 | 90 arm*) DEPENDS="libssl libcrypto libnl";; |
al@19844 | 91 esac |
0dddba11@861 | 92 } |
0dddba11@861 | 93 |
pascal@938 | 94 # Pre and post install commands for Tazpkg. |
al@19844 | 95 post_install() { |
al@19844 | 96 grep -qs ^WPA_OPTIONS= $1/etc/daemons.conf || cat >> "$1/etc/daemons.conf" <<"EOT" |
pankso@15914 | 97 |
pascal@938 | 98 # wpa_supplicant daemon options |
al@19844 | 99 WPA_OPTIONS="-B -u -P /var/run/wpa_supplicant.pid -c /etc/wpa/wpa.conf -i $(. /etc/network.conf; echo $WIFI_INTERFACE)" |
pascal@938 | 100 |
pascal@938 | 101 EOT |
pankso@15914 | 102 # We use /etc/wpa/wpa.conf from SliTaz 5.0 |
al@19844 | 103 sed -i 's|/etc/wpa_supplicant.conf|/etc/wpa/wpa.conf|' "$1/etc/daemons.conf" 2>/dev/null |
al@19844 | 104 # 'w' option don't exist anymore with < 0.6.9 |
al@19844 | 105 sed -i 's|-Bw|-B|' "$1/etc/daemons.conf" 2>/dev/null |
al@19844 | 106 sed -i 's|-B -w|-B|g' "$1/etc/init.d/network.sh" 2>/dev/null |
pascal@938 | 107 } |