109 lines
4.2 KiB
Bash
109 lines
4.2 KiB
Bash
#!/usr/bin/bash
|
|
# JOBoRun : Jwm OpenBox Obarun RUNit
|
|
# Maintainer : Joe Bo Run <joborun@disroot.org>
|
|
# PkgSource : url="https://gittea.disroot.org/joborun-pkg/jobcore/$pkgname"
|
|
# Website : https://pozol.eu
|
|
#-----------------------------------------| DESCRIPTION |---------------------------------------
|
|
|
|
pkgname=wpa_supplicant
|
|
pkgver=2.11
|
|
pkgrel=02
|
|
epoch=2
|
|
pkgdesc='A utility providing key negotiation for WPA wireless networks'
|
|
url='https://w1.fi/wpa_supplicant/'
|
|
depends=(openssl libdbus readline libnl pcsclite)
|
|
makedepends=(docbook-sgml docbook-utils git perl-sgmls)
|
|
install=wpa_supplicant.install
|
|
#https://w1.fi/releases/${pkgname}-${pkgver}.tar.gz{,.asc}
|
|
source=("git+https://w1.fi/hostap.git?signed#tag=hostap_${pkgver//./_}"
|
|
wpa_supplicant_config
|
|
# More permissive TLS fallback
|
|
0001-Enable-TLSv1.0-by-default.patch
|
|
# https://salsa.debian.org/debian/wpa/-/commit/13e1d28e4f987a220c546df94df86bb9b2371874
|
|
0002-Disable-Werror-for-eapol_test.patch
|
|
# https://lists.infradead.org/pipermail/hostap/2022-May/040511.html
|
|
# https://bugs.archlinux.org/task/76474
|
|
0003-Allow-legacy-renegotiation-to-fix-PEAP-issues-with-s.patch
|
|
# https://lists.infradead.org/pipermail/hostap/2022-January/040178.html
|
|
0007-nl80211-add-extra-ies-only-if-allowed-by-driver.patch)
|
|
|
|
prepare() {
|
|
cd hostap
|
|
|
|
local src
|
|
for src in "${source[@]}"; do
|
|
[[ $src = *.patch ]] || continue
|
|
echo "Applying patch $src..."
|
|
patch -Np1 < "../$src"
|
|
done
|
|
|
|
cp ../wpa_supplicant_config $pkgname/.config
|
|
}
|
|
|
|
_make() {
|
|
local make_options=(
|
|
BINDIR=/usr/bin
|
|
LIBDIR=/usr/lib
|
|
"$@"
|
|
)
|
|
|
|
make "${make_options[@]}"
|
|
}
|
|
|
|
build() {
|
|
cd hostap/$pkgname
|
|
|
|
_make
|
|
_make eapol_test
|
|
_make -C doc/docbook man
|
|
}
|
|
|
|
package() {
|
|
cd hostap/$pkgname
|
|
|
|
_make DESTDIR="$pkgdir" install
|
|
|
|
install -Dm755 eapol_test "$pkgdir/usr/bin/eapol_test"
|
|
|
|
install -dm755 "$pkgdir/etc/wpa_supplicant"
|
|
install -Dm644 wpa_supplicant.conf -t "$pkgdir/usr/share/doc/wpa_supplicant"
|
|
|
|
install -Dm644 dbus/fi.w1.wpa_supplicant1.service \
|
|
-t "$pkgdir/usr/share/dbus-1/system-services"
|
|
|
|
install -Dm644 dbus/dbus-wpa_supplicant.conf \
|
|
"$pkgdir/usr/share/dbus-1/system.d/wpa_supplicant.conf"
|
|
|
|
install -Dm644 doc/docbook/*.5 -t "$pkgdir/usr/share/man/man5"
|
|
install -Dm644 doc/docbook/*.8 -t "$pkgdir/usr/share/man/man8"
|
|
rm "$pkgdir"/usr/share/man/man8/wpa_{priv,gui}.8
|
|
|
|
# install -Dm644 systemd/*.service -t "$pkgdir/usr/lib/systemd/system"
|
|
|
|
install -Dm644 ../README "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
|
|
}
|
|
|
|
#---- arch license gpg-key & sha256sums ----
|
|
|
|
arch=(x86_64)
|
|
|
|
license=(BSD-3-Clause)
|
|
|
|
validpgpkeys=('EC4AA0A991A5F2464582D52D2B6EF432EFC895FA') # Jouni Malinen
|
|
|
|
b2sums=('163d2e6644902f36b3b5f25e328221fa34495d745801e8d3dce874b05366c81370ef75c8f7e0198e206a3d04c5ea4bb501bf97693fa481e15cf5067d80ab0c1e'
|
|
'9785af24e59e3d48dc3ab055cc6b9e5bbf081e801fbbfa70d532c2ad8f7f4e59c2679385c75aa02f856ec387cd5182640ff91d892aed9846c738da57e05574d9'
|
|
'96b82aaa5315e931424150d47e52f70186e2eea3928a5c97792473b69e8f92463863e8044e073bf940d597a3620f63381bd6996a594c85977785cdce4038f768'
|
|
'bd00e0f6c04db9c2dc274763b97dace4d886fb105b0a605bb15877ee84e4a93a7b95ab9a0242b4937c748c8e7991e3dddb795ac4c2b0e99be0f5e48098041b70'
|
|
'aaa7604faf1fede451582c8b981579cc86724a66c783d8368d1c122e0c381b75842d83bd85a982c1d4461d65bc74e62d34768762d15b4005a24a17e1392a109a'
|
|
'28bf078147cc2f3395d3f907d6d900c7976dbd9948a9513f1d7ef32a40b89fee55e243c9302d24eda62dc1f813857fa09ae79e6faf52881e463a163acb437380')
|
|
|
|
sha256sums=(03e3c14c20a89f8978b831fe08d98e6083c058083707871d480553135c109584 # hostap
|
|
1e32af4a1a147ee75358fd0b5636fb41332a7b91ec7a904292178256f735e9d2 # wpa_supplicant_config
|
|
d5b5ca3a468352747e19c4b597ec090b46e08dec4e18de82aea62812b8bdeaae # 0001-Enable-TLSv1.0-by-default.patch
|
|
7c2f3d0123dab97268275702d04e6db7de4ad6b7e8101b82d4f8fd23d0ab9b29 # 0002-Disable-Werror-for-eapol_test.patch
|
|
dce0190b0dd2d55de45ec93a57175ddcd1d10cb8e0a45c75a2dd8802ada989b1 # 0003-Allow-legacy-renegotiation-to-fix-PEAP-issues-with-s.patch
|
|
12f9e3177b6fbe390eda5c97a41768e8c9474ec4b66d9c7a5c5939d993029f97) # 0007-nl80211-add-extra-ies-only-if-allowed-by-driver.patch
|
|
|
|
## 0a621e94173710b89beb4263cc13df7b6ca6c1edb3ac01a63246812d287bb66c wpa_supplicant-2_2.11-02-x86_64.pkg.tar.lz
|
|
|