1 # Maintainer: Bartłomiej Piotrowski <bpiotrowski@archlinux.org>
2 # Contributor: Thomas Bächler <thomas@archlinux.org>
8 pkgdesc='A utility providing key negotiation for WPA wireless networks'
9 url='https://w1.fi/wpa_supplicant/'
12 depends=(openssl libdbus readline libnl)
13 install=wpa_supplicant.install
15 https://w1.fi/releases/${pkgname}-${pkgver}.tar.gz{,.asc}
16 https://w1.fi/security/2020-2/0001-P2P-Fix-copying-of-secondary-device-types-for-P2P-gr.patch
18 tls.patch # More permissive TLS fallback
19 systemd.patch # Unit improvements from Ubuntu
20 roam-properties.patch # https://bugs.archlinux.org/task/65482
23 validpgpkeys=('EC4AA0A991A5F2464582D52D2B6EF432EFC895FA') # Jouni Malinen
24 sha256sums=('fcbdee7b4a64bea8177973299c8c824419c413ec2e3a95db63dd6a5dc3541f17'
26 'c4d65cc13863e0237d0644198558e2c47b4ed91e2b2be4516ff590724187c4a5'
27 'bf91a135e717265969f1ab0319297c9d2e6f695928a17e3b3fa5accc8ef7b297'
28 '449c7dad67b246b5b93e796f57c2f90c5c32cfc5b16f7aa4f17802dc260d3414'
29 'dd14f99618bb4db40eadfaf4ced29d6139ccf319429a1eef54c2c08c80924742'
30 '1ad3b61397c4a1dbafbf89059bccdda07cfe7eaff9f23ee25bed7bdd82c2bd87'
31 '6f71a04875465178992e78216603d3c4735ee717a31738a6e30702c7a81c6c4e')
34 cd "$srcdir/$pkgname-$pkgver"
36 for src in "${source[@]}"; do
39 [[ $src = *.patch ]] || continue
40 echo "Applying patch $src..."
41 patch -Np1 < "../$src"
44 cd "$srcdir/$pkgname-$pkgver/$pkgname"
45 cp "$srcdir/config" ./.config
49 cd "$srcdir/$pkgname-$pkgver/$pkgname"
51 make LIBDIR=/usr/lib BINDIR=/usr/bin
52 make LIBDIR=/usr/lib BINDIR=/usr/bin eapol_test
56 cd "$srcdir/$pkgname-$pkgver/$pkgname"
57 make LIBDIR=/usr/lib BINDIR=/usr/bin DESTDIR="$pkgdir" install
58 install -Dm755 eapol_test "$pkgdir/usr/bin/eapol_test"
60 install -d -m755 "$pkgdir/etc/wpa_supplicant"
61 install -Dm644 wpa_supplicant.conf \
62 "$pkgdir/usr/share/doc/wpa_supplicant/wpa_supplicant.conf"
65 install -d -m755 "$pkgdir"/usr/share/dbus-1/{system.d,system-services}
67 dbus/fi.w1.wpa_supplicant1.service \
68 "$pkgdir/usr/share/dbus-1/system-services/"
70 install -Dm644 dbus/dbus-wpa_supplicant.conf \
71 "$pkgdir/usr/share/dbus-1/system.d/wpa_supplicant.conf"
73 install -d -m755 "$pkgdir/usr/share/man/man"{5,8}
74 install -m644 doc/docbook/*.5 "$pkgdir/usr/share/man/man5/"
75 install -m644 doc/docbook/*.8 "$pkgdir/usr/share/man/man8/"
76 rm -f "$pkgdir/usr/share/man/man8/wpa_"{priv,gui}.8
78 install -d -m755 "$pkgdir/usr/lib/systemd/system"
79 install -m644 systemd/*.service "$pkgdir/usr/lib/systemd/system/"