aboutsummaryrefslogtreecommitdiff
path: root/repos/extra/wpa_supplicant
diff options
context:
space:
mode:
Diffstat (limited to 'repos/extra/wpa_supplicant')
-rw-r--r--repos/extra/wpa_supplicant/.checksum2
-rw-r--r--repos/extra/wpa_supplicant/.files19
-rw-r--r--repos/extra/wpa_supplicant/abuild54
-rw-r--r--repos/extra/wpa_supplicant/depends2
-rw-r--r--repos/extra/wpa_supplicant/outdated1
-rwxr-xr-xrepos/extra/wpa_supplicant/run12
6 files changed, 90 insertions, 0 deletions
diff --git a/repos/extra/wpa_supplicant/.checksum b/repos/extra/wpa_supplicant/.checksum
new file mode 100644
index 00000000..e0bfd620
--- /dev/null
+++ b/repos/extra/wpa_supplicant/.checksum
@@ -0,0 +1,2 @@
+61eeca774ddbd43da60c75560cbb8205f80a4aab287d9b1fcddbbfb636557702 run
+3b61ac45430831f5fdc4ef8d00b5415075a2f236f591213eca22c9c7312707c3 wpa_supplicant-2.11.tar.gz
diff --git a/repos/extra/wpa_supplicant/.files b/repos/extra/wpa_supplicant/.files
new file mode 100644
index 00000000..e4bc4fb4
--- /dev/null
+++ b/repos/extra/wpa_supplicant/.files
@@ -0,0 +1,19 @@
+drwxr-xr-x root/root etc/
+drwxr-xr-x root/root etc/sv/
+drwxr-xr-x root/root etc/sv/wpa_supplicant/
+-rwxr-xr-x root/root etc/sv/wpa_supplicant/run.new
+lrwxrwxrwx root/root etc/sv/wpa_supplicant/supervise -> ../../../run/runit/supervise.wpa_supplicant
+-rw-r--r-- root/root etc/wpa_supplicant.conf.new
+drwxr-xr-x root/root usr/
+drwxr-xr-x root/root usr/sbin/
+-rwxr-xr-x root/root usr/sbin/wpa_cli
+-rwxr-xr-x root/root usr/sbin/wpa_passphrase
+-rwxr-xr-x root/root usr/sbin/wpa_supplicant
+drwxr-xr-x root/root usr/share/
+drwxr-xr-x root/root usr/share/man/
+drwxr-xr-x root/root usr/share/man/man5/
+-rw-r--r-- root/root usr/share/man/man5/wpa_supplicant.conf.5.gz
+drwxr-xr-x root/root usr/share/man/man8/
+-rw-r--r-- root/root usr/share/man/man8/wpa_cli.8.gz
+-rw-r--r-- root/root usr/share/man/man8/wpa_passphrase.8.gz
+-rw-r--r-- root/root usr/share/man/man8/wpa_supplicant.8.gz
diff --git a/repos/extra/wpa_supplicant/abuild b/repos/extra/wpa_supplicant/abuild
new file mode 100644
index 00000000..2f952f34
--- /dev/null
+++ b/repos/extra/wpa_supplicant/abuild
@@ -0,0 +1,54 @@
+name=wpa_supplicant
+version=2.11
+release=1
+source="https://w1.fi/releases/$name-$version.tar.gz
+ run"
+sv="run"
+export CFLAGS="$CFLAGS $(pkg-config --cflags libnl-tiny)"
+
+build() {
+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_PEERKEY=y
+CONFIG_LIBNL20=y
+CONFIG_LIBNL_TINY=y
+CONFIG_PKCS12=y
+CONFIG_READLINE=y
+CONFIG_SMARTCARD=y
+CONFIG_WPS=y
+CFLAGS += -I/usr/include/libnl3
+EOF
+
+cd wpa_supplicant
+make BINDIR=/usr/sbin LIBDIR=/usr/lib
+
+mkdir -p $PKG/usr/sbin $PKG/usr/share/man/man5 $PKG/usr/share/man/man8
+install -v -m755 wpa_cli wpa_passphrase wpa_supplicant $PKG/usr/sbin
+install -v -m644 doc/docbook/wpa_supplicant.conf.5 $PKG/usr/share/man/man5/
+install -v -m644 doc/docbook/wpa_cli.8 $PKG/usr/share/man/man8/
+install -v -m644 doc/docbook/wpa_passphrase.8 $PKG/usr/share/man/man8/
+install -v -m644 doc/docbook/wpa_supplicant.8 $PKG/usr/share/man/man8/
+
+mkdir -p $PKG/etc
+cat > $PKG/etc/wpa_supplicant.conf << "EOF"
+ctrl_interface=DIR=/run/wpa_supplicant GROUP=wheel
+update_config=1
+EOF
+}
diff --git a/repos/extra/wpa_supplicant/depends b/repos/extra/wpa_supplicant/depends
new file mode 100644
index 00000000..3f14cc42
--- /dev/null
+++ b/repos/extra/wpa_supplicant/depends
@@ -0,0 +1,2 @@
+libnl-tiny
+readline
diff --git a/repos/extra/wpa_supplicant/outdated b/repos/extra/wpa_supplicant/outdated
new file mode 100644
index 00000000..7c706a4c
--- /dev/null
+++ b/repos/extra/wpa_supplicant/outdated
@@ -0,0 +1 @@
+name=wpa-supplicant
diff --git a/repos/extra/wpa_supplicant/run b/repos/extra/wpa_supplicant/run
new file mode 100755
index 00000000..65049c10
--- /dev/null
+++ b/repos/extra/wpa_supplicant/run
@@ -0,0 +1,12 @@
+#!/bin/sh
+[ -f /etc/rc.conf ] && . /etc/rc.conf
+if [ ! "$WIFI_DEV" ]; then
+ for i in /sys/class/net/*; do
+ [ -e $i/phy80211 ] && {
+ WIFI_DEV=${i##*/}
+ break
+ }
+ done
+fi
+[ "$WIFI_DEV" ] || exit 1
+exec wpa_supplicant -D nl80211 -i $WIFI_DEV -c /etc/wpa_supplicant.conf 2>&1