# Contributor: Sören Tempel # Maintainer: Natanael Copa pkgname=wpa_supplicant pkgver=2.7 pkgrel=0 pkgdesc="A utility providing key negotiation for WPA wireless networks" url="https://w1.fi/wpa_supplicant/" arch="all" license="BSD" 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.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 builddir="$srcdir"/$pkgname-$pkgver 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.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="8b6eb5b5f30d351c73db63d73c09f24028a18166246539b4a4f89f0d226fb42751afa2ff72296df33317f615150325d285e8e7bda30e0d88abcdc9637ab731d3 wpa_supplicant-2.7.tar.gz 11eed22f6e793f40c788d586c715deecae03c421d11761b7b4a376660bce812c54cc6f353c7d4d5da9c455aeffd778baefb9e76d380027a729574a756e54ddcc wpa_supplicant.initd cbfc6b80cb47d4e33415018054a0d8ba39acbadbc3e44776afa918cc4c1e4d36ed3dd809b3448332575ac4fa0b82ad77d7530563f0b9f5e1374a5deea73a3b93 wpa_supplicant.confd c3db077fa78dd296d90d07626cb4e684f87618a77ffd51c1ae04b47be7bc0db1e9a3e0f7442acef21c081f6bb782f150cbbd3d0bf245d6ab43f19da3899b53b9 wpa_cli.confd a0ac905ef23af18f1899a797e18157a54fa509c7cc3c59583de768a493d750876bbc0a89237373b67171e7c84259d2350d2c0e33d8e1ea56db9a2e5f27b64128 wpa_cli.initd 2be055dd1f7da5a3d8e79c2f2c0220ddd31df309452da18f290144d2112d6dbde0fc633bb2ad02c386a39d7785323acaf5f70e5969995a1e8303a094eb5fe232 eloop.patch 6707991f9a071f2fcb09d164d31d12b1f52b91fbb5574b70b8d6f9727f72bbe42b03dd66d10fcc2126f5b7e49ac785657dec90e88b4bf54a9aa5638582f6e505 config 212c4265afce2e72b95a32cd785612d6c3e821b47101ead154136d184ac4add01434ada6c87edbb9a98496552e76e1a4d79c6b5840e3a5cfe5e6d602fceae576 wpa_cli.sh"