diff options
author | davidovski <david@davidovski.xyz> | 2022-01-31 23:00:55 +0000 |
---|---|---|
committer | davidovski <david@davidovski.xyz> | 2022-01-31 23:00:55 +0000 |
commit | aec7900318d241ca2b7b64c8bfb7d5bcee69175f (patch) | |
tree | 88ed1d4ad08716a7aef426426982f69596de3308 /repo/util/wpa_supplicant.xibuild | |
parent | b3ac5bfd3855f97ef1b6cd3b43b1621ea7fda7c4 (diff) |
added wpa_supplicant
Diffstat (limited to 'repo/util/wpa_supplicant.xibuild')
-rw-r--r-- | repo/util/wpa_supplicant.xibuild | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/repo/util/wpa_supplicant.xibuild b/repo/util/wpa_supplicant.xibuild new file mode 100644 index 0000000..902743e --- /dev/null +++ b/repo/util/wpa_supplicant.xibuild @@ -0,0 +1,63 @@ +#!/bin/bash + +MAKEDEPS=(make libxml2) +DEPS=(libnl openssl readline dbus) + +PKG_VER=2.10 + +SOURCE=https://w1.fi/releases/wpa_supplicant-$PKG_VER.tar.gz +DESC="A utility providng key negotiation for WPA wireless networks" + +prepare () { + 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 + +} + +build () { + cd wpa_supplicant && + make BINDIR=/usr/sbin LIBDIR=/usr/lib +} + +package () { + install -v -m755 wpa_{cli,passphrase,supplicant} $PKG_DEST/usr/sbin/ && + install -v -m644 doc/docbook/wpa_supplicant.conf.5 $PKG_DEST/usr/share/man/man5/ && + install -v -m644 doc/docbook/wpa_{cli,passphrase,supplicant}.8 $PKG_DEST/usr/share/man/man8/ + install -v -m644 dbus/fi.w1.wpa_supplicant1.service \ + $PKG_DEST/usr/share/dbus-1/system-services/ && + install -v -d -m755 $PKG_DEST/etc/dbus-1/system.d && + install -v -m644 dbus/dbus-wpa_supplicant.conf \ + $PKG_DEST/etc/dbus-1/system.d/wpa_supplicant.conf + + +} + + |