55 lines
2.2 KiB
Bash
55 lines
2.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=wireless-regdb
|
|
pkgver=2023.09.01
|
|
pkgrel=01
|
|
pkgdesc="Central Regulatory Domain Database"
|
|
url="https://wireless.wiki.kernel.org/en/developers/regulatory/wireless-regdb"
|
|
replaces=(crda)
|
|
provides=(crda)
|
|
conflicts=(crda)
|
|
backup=(etc/conf.d/wireless-regdom)
|
|
depends=(bash iw)
|
|
source=(https://www.kernel.org/pub/software/network/wireless-regdb/${pkgname}-${pkgver}.tar.{xz,sign}
|
|
wireless-regdom
|
|
set-wireless-regdom
|
|
85-regulatory.rules)
|
|
|
|
package() {
|
|
install -Dm644 wireless-regdom -t "${pkgdir}"/etc/conf.d
|
|
install -Dm644 85-regulatory.rules -t "${pkgdir}"/usr/lib/udev/rules.d
|
|
install -Dm755 set-wireless-regdom -t "${pkgdir}"/usr/bin
|
|
|
|
cd ${pkgname}-${pkgver}
|
|
make install DESTDIR="${pkgdir}" MANDIR=usr/share/man FIRMWARE_PATH=usr/lib/firmware
|
|
|
|
for dom in $(grep ^country db.txt | cut -d' ' -f2 | sed 's|:||g'); do
|
|
echo "#WIRELESS_REGDOM=\"${dom}\"" >> "${pkgdir}"/etc/conf.d/wireless-regdom.tmp
|
|
done
|
|
sort -u "${pkgdir}"/etc/conf.d/wireless-regdom.tmp >> "${pkgdir}"/etc/conf.d/wireless-regdom
|
|
rm "${pkgdir}"/etc/conf.d/wireless-regdom.tmp
|
|
|
|
install -D -m644 "${srcdir}"/${pkgname}-${pkgver}/LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
|
|
}
|
|
|
|
#---- arch license gpg-key & sha256sums ----
|
|
|
|
arch=(x86_64)
|
|
|
|
license=('custom')
|
|
|
|
validpgpkeys=('2ABCA7498D83E1D32D51D3B5AB4800A62DB9F73A') # Seth Forshee <seth.forshee@canonical.com>
|
|
|
|
sha256sums=(26d4c2a727cc59239b84735aad856b7c7d0b04e30aa5c235c4f7f47f5f053491 # wireless-regdb-2023.09.01.tar.xz
|
|
02e79401a349025cd8a89846cb66f18d331782bd4d3cf13d222c2be8c236bce7 # wireless-regdb-2023.09.01.tar.sign
|
|
192428fd959806705356107bffc97b8b379854e79bd013c4ee140e5202326e2b # wireless-regdom
|
|
603ce97da5cce3f5337e99007ce04e2f295bb33a36b308794884011f7bcabaf3 # set-wireless-regdom
|
|
f5055dfe7584757a11b419836320bcdcd1d3d1e5caf26e20c63a0c64779f3376) # 85-regulatory.rules
|
|
|
|
## 5740753dda9627897ef62a730a3914aef3294af683093d47a9a70c7bff3b5714 wireless-regdb-2023.09.01-01-x86_64.pkg.tar.lz
|
|
|