diff options
author | Sören Tempel <soeren+git@soeren-tempel.net> | 2018-02-28 20:45:14 +0100 |
---|---|---|
committer | Sören Tempel <soeren+git@soeren-tempel.net> | 2018-02-28 21:09:01 +0100 |
commit | ea4db75da410dcc6daffb6b6d019baf3af4a2160 (patch) | |
tree | e7ec34192085443f7632b4a08267904473be9a1e | |
parent | 8f60fe1bf6e069c26db5fe8cd6c95b4935497f72 (diff) | |
download | aports-ea4db75da410dcc6daffb6b6d019baf3af4a2160.tar.bz2 aports-ea4db75da410dcc6daffb6b6d019baf3af4a2160.tar.xz |
main/wpa_supplicant: add OpenRC runscript for wpa_cli
-rw-r--r-- | main/wpa_supplicant/APKBUILD | 11 | ||||
-rw-r--r-- | main/wpa_supplicant/wpa_cli.confd | 1 | ||||
-rwxr-xr-x | main/wpa_supplicant/wpa_cli.initd | 9 |
3 files changed, 21 insertions, 0 deletions
diff --git a/main/wpa_supplicant/APKBUILD b/main/wpa_supplicant/APKBUILD index efe5ab87c5..5d983e7f46 100644 --- a/main/wpa_supplicant/APKBUILD +++ b/main/wpa_supplicant/APKBUILD @@ -21,6 +21,9 @@ source="http://w1.fi/releases/$pkgname-$pkgver.tar.gz wpa_supplicant.initd wpa_supplicant.confd + wpa_cli.confd + wpa_cli.initd + libressl.patch eloop.patch @@ -82,10 +85,16 @@ package() { install fi.epitest.hostap.WPASupplicant.service \ "$pkgdir"/usr/share/dbus-1/system-services install -d "$pkgdir"/var/run/wpa_supplicant + + # openrc runscripts install -Dm755 "$srcdir"/wpa_supplicant.initd \ "$pkgdir"/etc/init.d/wpa_supplicant install -Dm644 "$srcdir"/wpa_supplicant.confd \ "$pkgdir"/etc/conf.d/wpa_supplicant + install -Dm755 "$srcdir"/wpa_cli.initd \ + "$pkgdir"/etc/init.d/wpa_cli + install -Dm644 "$srcdir"/wpa_cli.confd \ + "$pkgdir"/etc/conf.d/wpa_cli } sha512sums="46442cddb6ca043b8b08d143908f149954c238e0f3a57a0df73ca4fab9c1acd91b078f3f26375a1d99cd1d65625986328018c735d8705882c8f91e389cad28a6 wpa_supplicant-2.6.tar.gz @@ -99,6 +108,8 @@ a6382d8e84b4829be33c46bf2f4c6f3232c9d924a4547a21dfe023bf5be8ee1c635920295f52be28 fc84edd8b30305cc42053c872554098f3f077292ec980ed6a442f37884087ff2f055738fd55977ed792bef1887dcc8c4626586465d78dd0258edb83dcd50a65a rebased-v2.6-0008-FT-Do-not-allow-multiple-Reassociation-Response-fram.patch 11eed22f6e793f40c788d586c715deecae03c421d11761b7b4a376660bce812c54cc6f353c7d4d5da9c455aeffd778baefb9e76d380027a729574a756e54ddcc wpa_supplicant.initd 29103161ec2b9631fca9e8d9a97fafd60ffac3fe78cf613b834395ddcaf8be1e253c22e060d7d9f9b974b2d7ce794caa932a2125e29f6494b75bce475f7b30e1 wpa_supplicant.confd +c3db077fa78dd296d90d07626cb4e684f87618a77ffd51c1ae04b47be7bc0db1e9a3e0f7442acef21c081f6bb782f150cbbd3d0bf245d6ab43f19da3899b53b9 wpa_cli.confd +a0ac905ef23af18f1899a797e18157a54fa509c7cc3c59583de768a493d750876bbc0a89237373b67171e7c84259d2350d2c0e33d8e1ea56db9a2e5f27b64128 wpa_cli.initd e98edc1ecec91335d515c50cac8816e3f6eef139aba574bcf0c6c20c131ef0de40aa657a33d07af09ab28245471a09cb6b3e29b306e48f46d335a0c47a0a56c4 libressl.patch 2be055dd1f7da5a3d8e79c2f2c0220ddd31df309452da18f290144d2112d6dbde0fc633bb2ad02c386a39d7785323acaf5f70e5969995a1e8303a094eb5fe232 eloop.patch 6707991f9a071f2fcb09d164d31d12b1f52b91fbb5574b70b8d6f9727f72bbe42b03dd66d10fcc2126f5b7e49ac785657dec90e88b4bf54a9aa5638582f6e505 config diff --git a/main/wpa_supplicant/wpa_cli.confd b/main/wpa_supplicant/wpa_cli.confd new file mode 100644 index 0000000000..aa481ac271 --- /dev/null +++ b/main/wpa_supplicant/wpa_cli.confd @@ -0,0 +1 @@ +WPACLI_OPTS="-a /etc/wpa_supplicant/wpa_cli.sh" diff --git a/main/wpa_supplicant/wpa_cli.initd b/main/wpa_supplicant/wpa_cli.initd new file mode 100755 index 0000000000..e9139c02b1 --- /dev/null +++ b/main/wpa_supplicant/wpa_cli.initd @@ -0,0 +1,9 @@ +#!/sbin/openrc-run + +command="/sbin/wpa_cli" +pidfile="/var/run/${SVCNAME}.pid" +command_args="${WPACLI_OPTS} -B -P ${pidfile} >/dev/null" + +depend() { + need wpa_supplicant +} |