milis/talimatname/genel/wpa-supplicant/talimat

55 lines
1.5 KiB
Plaintext

# Description: A utility providing key negotiation for WPA wireless networks
# URL: http://hostap.epitest.fi/wpa_supplicant
# Packager: pierre at nutyx dot org
# Depends on: libnl dbus libxml2
name=wpa-supplicant
version=2.5
release=1
source=(http://hostap.epitest.fi/releases/wpa_supplicant-$version.tar.gz)
build() {
cd wpa_supplicant-$version
cat > wpa_supplicant/.config << "EOF"
CONFIG_BACKEND=file
CONFIG_CTRL_IFACE=y
CONFIG_DEBUG_FILE=y
CONFIG_DEBUG_SYSLOG=y
CONFIG_DEBUG_SYSLOG_FACILITY=LOG_DAEMON
CONFIG_DRIVER_NL80211=y
CONFIG_DRIVER_WEXT=y
CONFIG_DRIVER_WIRED=y
CONFIG_EAP_GTC=y
CONFIG_EAP_LEAP=y
CONFIG_EAP_MD5=y
CONFIG_EAP_MSCHAPV2=y
CONFIG_EAP_OTP=y
CONFIG_EAP_PEAP=y
CONFIG_EAP_TLS=y
CONFIG_EAP_TTLS=y
CONFIG_IEEE8021X_EAPOL=y
CONFIG_IPV6=y
CONFIG_LIBNL32=y
CONFIG_PEERKEY=y
CONFIG_PKCS12=y
CONFIG_READLINE=y
CONFIG_SMARTCARD=y
CONFIG_WPS=y
CFLAGS += -I/usr/include/libnl3
CONFIG_CTRL_IFACE_DBUS=y
CONFIG_CTRL_IFACE_DBUS_NEW=y
CONFIG_CTRL_IFACE_DBUS_INTRO=y
EOF
cd wpa_supplicant &&
make BINDIR=/sbin LIBDIR=/lib
mkdir -p $PKG/{etc/dbus-1/system.d,sbin,usr/share/{dbus-1/system-services,man/man{5,8}}}
install -v -m755 wpa_{cli,passphrase,supplicant} $PKG/sbin
install -v -m644 doc/docbook/wpa_supplicant.conf.5 $PKG/usr/share/man/man5
install -v -m644 doc/docbook/wpa_{cli,passphrase,supplicant}.8 $PKG/usr/share/man/man8
install -v -m644 dbus/fi.{epitest.hostap.WPASupplicant,w1.wpa_supplicant1}.service \
$PKG/usr/share/dbus-1/system-services
install -v -m644 dbus/dbus-wpa_supplicant.conf \
$PKG/etc/dbus-1/system.d/wpa_supplicant.conf
}