2019-08-06 08:49:39 +00:00
|
|
|
# Forked from Alpine until this is merged:
|
|
|
|
# https://github.com/alpinelinux/aports/pull/9894
|
|
|
|
pkgname=wpa_supplicant
|
|
|
|
pkgver=2.8
|
2019-08-06 09:56:21 +00:00
|
|
|
pkgrel=2
|
2019-08-06 08:49:39 +00:00
|
|
|
pkgdesc="A utility providing key negotiation for WPA wireless networks"
|
|
|
|
url="https://w1.fi/wpa_supplicant/"
|
|
|
|
arch="all"
|
|
|
|
license="BSD-3-Clause"
|
|
|
|
subpackages="$pkgname-doc $pkgname-openrc"
|
|
|
|
makedepends="linux-headers openssl-dev dbus-dev libnl3-dev pcsc-lite-dev"
|
|
|
|
source="https://w1.fi/releases/$pkgname-$pkgver.tar.gz
|
|
|
|
|
|
|
|
wpa_supplicant.initd
|
|
|
|
wpa_supplicant.confd
|
|
|
|
wpa_cli.confd
|
|
|
|
wpa_cli.initd
|
|
|
|
|
|
|
|
eloop.patch
|
|
|
|
|
|
|
|
config
|
|
|
|
wpa_cli.sh"
|
|
|
|
|
|
|
|
# secfixes:
|
|
|
|
# 2.8-r0:
|
|
|
|
# - CVE-2019-11555
|
|
|
|
# 2.7-r3:
|
|
|
|
# - CVE-2019-11555
|
|
|
|
# 2.7-r2:
|
|
|
|
# - CVE-2019-9494
|
|
|
|
# - CVE-2019-9495
|
|
|
|
# - CVE-2019-9497
|
|
|
|
# - CVE-2019-9498
|
|
|
|
# - CVE-2019-9499
|
|
|
|
# 2.7-r0:
|
|
|
|
# - CVE-2017-13077
|
|
|
|
# - CVE-2017-13078
|
|
|
|
# - CVE-2017-13079
|
|
|
|
# - CVE-2017-13080
|
|
|
|
# - CVE-2017-13081
|
|
|
|
# - CVE-2017-13082
|
|
|
|
# - CVE-2017-13086
|
|
|
|
# - CVE-2017-13087
|
|
|
|
# - CVE-2017-13088
|
|
|
|
# 2.6-r14:
|
|
|
|
# - CVE-2018-14526
|
|
|
|
# 2.6-r7:
|
|
|
|
# - CVE-2017-13077
|
|
|
|
# - CVE-2017-13078
|
|
|
|
# - CVE-2017-13079
|
|
|
|
# - CVE-2017-13080
|
|
|
|
# - CVE-2017-13081
|
|
|
|
# - CVE-2017-13082
|
|
|
|
# - CVE-2017-13086
|
|
|
|
# - CVE-2017-13087
|
|
|
|
# - CVE-2017-13088
|
|
|
|
|
|
|
|
prepare() {
|
|
|
|
cd "$builddir"
|
|
|
|
default_prepare
|
|
|
|
|
|
|
|
# Copy our configuration file to the build directory
|
|
|
|
cp "$srcdir"/config "$builddir"/wpa_supplicant/.config
|
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
|
|
|
cd "$builddir"/wpa_supplicant
|
|
|
|
make LIBDIR=/lib BINDIR=/sbin
|
|
|
|
}
|
|
|
|
|
|
|
|
check() {
|
|
|
|
cd "$builddir"/wpa_supplicant
|
|
|
|
make eapol_test
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
cd "$builddir"/wpa_supplicant
|
|
|
|
make DESTDIR="$pkgdir" LIBDIR=/lib BINDIR=/sbin install
|
|
|
|
install -Dm644 wpa_supplicant.conf \
|
|
|
|
"$pkgdir"/usr/share/doc/wpa_supplicant/examples/wpa_supplicant.conf
|
|
|
|
install -Dm755 "$srcdir"/wpa_cli.sh \
|
|
|
|
"$pkgdir"/etc/wpa_supplicant/wpa_cli.sh
|
|
|
|
|
|
|
|
local man=
|
|
|
|
for man in doc/docbook/*.?; do
|
|
|
|
install -Dm644 "$man" \
|
|
|
|
"$pkgdir"/usr/share/man/man${man##*.}/${man##*/}
|
|
|
|
done
|
|
|
|
install -Dm755 eapol_test "$pkgdir"/sbin/eapol_test
|
|
|
|
|
|
|
|
# dbus
|
|
|
|
cd dbus
|
|
|
|
install -d "$pkgdir"/etc/dbus-1/system.d
|
|
|
|
install -m644 dbus-wpa_supplicant.conf \
|
|
|
|
"$pkgdir"/etc/dbus-1/system.d/wpa_supplicant.conf
|
|
|
|
install -d "$pkgdir"/usr/share/dbus-1/system-services
|
|
|
|
install fi.w1.wpa_supplicant1.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="b37d254d32a4b7a1f95fcb18ec1be0ffb9d025e0b21c42c53acc4cd839be355df1b125b32cc073f9fe09b746807321e23dbe25dc2fc8a7cafa1e71add69f245b wpa_supplicant-2.8.tar.gz
|
|
|
|
4d2d3e34bc21305eab08880552c5ffe3548a1459549ec2393f5d417ec1240fab7731b028e7fa7de5d7b3804b91952ff7d209a42c1091efadf43c0724bc3469b0 wpa_supplicant.initd
|
|
|
|
cbfc6b80cb47d4e33415018054a0d8ba39acbadbc3e44776afa918cc4c1e4d36ed3dd809b3448332575ac4fa0b82ad77d7530563f0b9f5e1374a5deea73a3b93 wpa_supplicant.confd
|
|
|
|
c3db077fa78dd296d90d07626cb4e684f87618a77ffd51c1ae04b47be7bc0db1e9a3e0f7442acef21c081f6bb782f150cbbd3d0bf245d6ab43f19da3899b53b9 wpa_cli.confd
|
|
|
|
a0ac905ef23af18f1899a797e18157a54fa509c7cc3c59583de768a493d750876bbc0a89237373b67171e7c84259d2350d2c0e33d8e1ea56db9a2e5f27b64128 wpa_cli.initd
|
|
|
|
2be055dd1f7da5a3d8e79c2f2c0220ddd31df309452da18f290144d2112d6dbde0fc633bb2ad02c386a39d7785323acaf5f70e5969995a1e8303a094eb5fe232 eloop.patch
|
|
|
|
6707991f9a071f2fcb09d164d31d12b1f52b91fbb5574b70b8d6f9727f72bbe42b03dd66d10fcc2126f5b7e49ac785657dec90e88b4bf54a9aa5638582f6e505 config
|
|
|
|
212c4265afce2e72b95a32cd785612d6c3e821b47101ead154136d184ac4add01434ada6c87edbb9a98496552e76e1a4d79c6b5840e3a5cfe5e6d602fceae576 wpa_cli.sh"
|