wok-current annotate wpa_supplicant/receipt @ rev 21867

compile scilab with gcc83
author Hans-G?nter Theisgen
date Tue Sep 24 16:35:35 2019 +0100 (2019-09-24)
parents e25ff83b65ed
children def8459358ed
rev   line source
0dddba11@861 1 # SliTaz package receipt.
0dddba11@861 2
0dddba11@861 3 PACKAGE="wpa_supplicant"
mojo@20131 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"
0dddba11@861 9 TARBALL="$PACKAGE-$VERSION.tar.gz"
0dddba11@861 10 WEB_SITE="http://hostap.epitest.fi/wpa_supplicant/"
0dddba11@861 11 WGET_URL="http://hostap.epitest.fi/releases/$TARBALL"
al@18599 12 CONFIG_FILES="/etc/wpa/wpa_supplicant.conf"
pankso@16054 13 TAGS="wireless wifi network"
pankso@16027 14 HOST_ARCH="i486 arm"
pankso@16027 15
pascal@19844 16 DEPENDS="libssl libcrypto libnl dbus pcsc-lite"
pascal@19844 17 BUILD_DEPENDS="openssl-dev libcrypto-dev libnl-dev dbus-dev pcsc-lite-dev"
0dddba11@861 18
pankso@16056 19 # Arch install
pankso@16056 20 case "$SLITAZ_ARCH" in
pankso@16056 21 arm*) DEPENDS="libssl libcrypto libnl" ;;
pankso@16056 22 esac
pankso@16056 23
pankso@16027 24 # Cross compile
pankso@16027 25 case "$ARCH" in
pankso@16056 26 arm*) BUILD_DEPENDS="openssl-dev libcrypto-dev libnl-dev" ;;
pankso@16027 27 esac
domcox@14382 28
0dddba11@861 29 # Rules to configure and make the package.
0dddba11@861 30 compile_rules()
0dddba11@861 31 {
mojo@20131 32 for i in $stuff/*.patch
mojo@20131 33 do
mojo@20131 34 if [ -f done.$(basename $i) ]; then
mojo@20131 35 continue
mojo@20131 36 else
mojo@20131 37 patch -p1 < $i && touch done.$(basename $i) || return 1
mojo@20131 38 fi
mojo@20131 39 done
mojo@20131 40 cd $src/$PACKAGE
0dddba11@861 41 cp -a ./defconfig ./.config
pankso@16056 42 sed 's/-lnl/-lnl-3/g' -i ../src/drivers/drivers.mak
pankso@16056 43 sed 's/-lnl-3-genl/-lnl-genl-3/g' -i ../src/drivers/drivers.mak
pankso@16056 44 # Main build configs
pankso@16056 45 cat >> .config << EOT
domcox@14382 46 CONFIG_AP=y
domcox@14382 47 CONFIG_BGSCAN_SIMPLE=y
pankso@16027 48 CONFIG_LIBNL20=y
pankso@16056 49 EOT
pankso@16056 50 # Dont use DBUS on ARM arch
pankso@16056 51 case "$ARCH" in
pankso@16056 52 i?86)
pankso@16056 53 cat >> .config << EOT
pankso@16027 54 CFLAGS += -I/usr/include/libnl3
domcox@14382 55 CONFIG_CTRL_IFACE_DBUS=y
domcox@14382 56 CONFIG_CTRL_IFACE_DBUS_NEW=y
domcox@14382 57 CONFIG_CTRL_IFACE_DBUS_INTRO=y
pascal@19844 58 CONFIG_EAP_SIM=y
pascal@19844 59 CONFIG_PCSC=y
pankso@16056 60 EOT
pankso@16027 61 ;;
pankso@16027 62 arm)
pankso@16056 63 cat >> .config << EOT
pankso@16056 64 CFLAGS += -I${sysroot}/usr/include/libnl3
pankso@16056 65 CFLAGS += -I${sysroot}/usr/include/openssl
pankso@16056 66 LIBS += -L${sysroot}/usr/lib
pankso@16056 67 EOT
pankso@16056 68 ;;
pankso@16027 69 esac
domcox@14382 70 make BINDIR=/usr/bin LIBDIR=/lib
0dddba11@861 71 }
0dddba11@861 72
0dddba11@861 73 # Rules to gen a SliTaz package suitable for Tazpkg.
0dddba11@861 74 genpkg_rules()
0dddba11@861 75 {
domcox@14382 76 # commands
0dddba11@861 77 mkdir -p $fs/usr/bin
domcox@14382 78 install -v -m755 $src/$PACKAGE/wpa_cli $fs/usr/bin
domcox@14382 79 install -v -m755 $src/$PACKAGE/wpa_supplicant $fs/usr/bin
domcox@14382 80 install -v -m755 $src/$PACKAGE/wpa_passphrase $fs/usr/bin
pankso@4333 81
domcox@14382 82 # D-Bus control
domcox@14382 83 mkdir -p $fs/usr/share/dbus-1/system-services
domcox@14382 84 install -v -m644 \
domcox@14382 85 $src/wpa_supplicant/dbus/fi.epitest.hostap.WPASupplicant.service \
domcox@14382 86 $fs/usr/share/dbus-1/system-services
domcox@14382 87 install -v -m644 \
domcox@14382 88 $src/wpa_supplicant/dbus/fi.w1.wpa_supplicant1.service \
domcox@14382 89 $fs/usr/share/dbus-1/system-services
domcox@14382 90
domcox@14382 91 mkdir -p $fs/etc/dbus-1/system.d
domcox@14382 92 install -v -m644 \
domcox@14382 93 $src/wpa_supplicant/dbus/dbus-wpa_supplicant.conf \
domcox@14382 94 $fs/etc/dbus-1/system.d/wpa_supplicant.conf
pankso@4333 95
pankso@15914 96 # Startup script and cleaned up wpa_empty.conf
pankso@15914 97 cp -a $stuff/etc $fs
al@17925 98 install -m644 -oroot -groot $src/$PACKAGE/wpa_supplicant.conf $fs/etc/wpa
0dddba11@861 99 }
0dddba11@861 100
pascal@938 101 # Pre and post install commands for Tazpkg.
pascal@938 102 post_install()
pascal@938 103 {
pascal@18730 104 grep -qs ^WPA_OPTIONS= $1/etc/daemons.conf || cat >> "$1/etc/daemons.conf" << EOT
pankso@15914 105
pascal@938 106 # wpa_supplicant daemon options
pankso@15914 107 WPA_OPTIONS="-B -u -P /var/run/wpa_supplicant.pid -c /etc/wpa/wpa.conf -i \$(. /etc/network.conf ; echo \$WIFI_INTERFACE)"
pascal@938 108
pascal@938 109 EOT
pankso@15914 110 # We use /etc/wpa/wpa.conf from SliTaz 5.0
pascal@18730 111 sed -i s'#/etc/wpa_supplicant.conf#/etc/wpa/wpa.conf#'/ "$1/etc/daemons.conf" 2> /dev/null
pankso@3400 112 # 'w' option dont exist anymore with < 0.6.9
pascal@18730 113 sed -i s/'-Bw'/'-B'/ "$1/etc/daemons.conf" 2> /dev/null
pascal@18730 114 sed -i s/'-B -w'/'-B'/g "$1/etc/init.d/network.sh" 2> /dev/null
pascal@938 115 }