aboutsummaryrefslogtreecommitdiff
path: root/repos/extra/wpa_supplicant
diff options
context:
space:
mode:
authoremmett1 <emmett1.2miligrams@protonmail.com>2024-06-13 00:25:03 +0800
committeremmett1 <emmett1.2miligrams@protonmail.com>2024-06-13 00:25:03 +0800
commit239ced844ea434e623686094af3de168f90e4391 (patch)
tree541d2c575f3b3832ca1a3087bde3f65dc74a8f89 /repos/extra/wpa_supplicant
parent3f80bb67166389b3acabf8f024ee1ad1a4364c1f (diff)
downloadalicelinux-239ced844ea434e623686094af3de168f90e4391.tar.gz
alicelinux-239ced844ea434e623686094af3de168f90e4391.zip
repos updated
Diffstat (limited to 'repos/extra/wpa_supplicant')
-rw-r--r--repos/extra/wpa_supplicant/abuild (renamed from repos/extra/wpa_supplicant/build)18
-rw-r--r--repos/extra/wpa_supplicant/info7
2 files changed, 14 insertions, 11 deletions
diff --git a/repos/extra/wpa_supplicant/build b/repos/extra/wpa_supplicant/abuild
index a4bf0dba..b4f7c5d0 100644
--- a/repos/extra/wpa_supplicant/build
+++ b/repos/extra/wpa_supplicant/abuild
@@ -1,3 +1,12 @@
+name=wpa_supplicant
+version=2.10
+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
@@ -26,19 +35,20 @@ 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 \ No newline at end of file
+EOF
+}
diff --git a/repos/extra/wpa_supplicant/info b/repos/extra/wpa_supplicant/info
deleted file mode 100644
index 2586e456..00000000
--- a/repos/extra/wpa_supplicant/info
+++ /dev/null
@@ -1,7 +0,0 @@
-name=wpa_supplicant
-version=2.10
-release=1
-source="https://w1.fi/releases/$name-$version.tar.gz
- run"
-sv="run"
-export CFLAGS="$CFLAGS $(pkg-config --cflags libnl-tiny)"