[arch-commits] Commit in wireless-regdb/repos (5 files)
Tobias Powalowski
tpowa at gemini.archlinux.org
Sun Apr 3 11:24:13 UTC 2022
Date: Sunday, April 3, 2022 @ 11:24:12
Author: tpowa
Revision: 441403
archrelease: copy trunk to testing-any
Added:
wireless-regdb/repos/testing-any/
wireless-regdb/repos/testing-any/85-regulatory.rules
(from rev 441402, wireless-regdb/trunk/85-regulatory.rules)
wireless-regdb/repos/testing-any/PKGBUILD
(from rev 441402, wireless-regdb/trunk/PKGBUILD)
wireless-regdb/repos/testing-any/set-wireless-regdom
(from rev 441402, wireless-regdb/trunk/set-wireless-regdom)
wireless-regdb/repos/testing-any/wireless-regdom
(from rev 441402, wireless-regdb/trunk/wireless-regdom)
---------------------+
85-regulatory.rules | 3 +++
PKGBUILD | 41 +++++++++++++++++++++++++++++++++++++++++
set-wireless-regdom | 5 +++++
wireless-regdom | 4 ++++
4 files changed, 53 insertions(+)
Copied: wireless-regdb/repos/testing-any/85-regulatory.rules (from rev 441402, wireless-regdb/trunk/85-regulatory.rules)
===================================================================
--- testing-any/85-regulatory.rules (rev 0)
+++ testing-any/85-regulatory.rules 2022-04-03 11:24:12 UTC (rev 441403)
@@ -0,0 +1,3 @@
+# Set wireless regulatory domain at device creation
+
+ACTION=="add", SUBSYSTEM=="module", DEVPATH=="/module/cfg80211", RUN+="/usr/bin/set-wireless-regdom"
Copied: wireless-regdb/repos/testing-any/PKGBUILD (from rev 441402, wireless-regdb/trunk/PKGBUILD)
===================================================================
--- testing-any/PKGBUILD (rev 0)
+++ testing-any/PKGBUILD 2022-04-03 11:24:12 UTC (rev 441403)
@@ -0,0 +1,41 @@
+# Maintainer: Thomas Bächler <thomas at archlinux.org>
+
+pkgname=wireless-regdb
+pkgver=2022.02.18
+pkgrel=3
+pkgdesc="Central Regulatory Domain Database"
+arch=('any')
+url="https://wireless.wiki.kernel.org/en/developers/regulatory/wireless-regdb"
+license=('custom')
+depends=('bash' 'iw')
+replaces=('crda')
+provides=('crda')
+conflicts=('crda')
+backup=(etc/conf.d/wireless-regdom)
+source=(https://www.kernel.org/pub/software/network/wireless-regdb/${pkgname}-${pkgver}.tar.{xz,sign}
+ wireless-regdom
+ set-wireless-regdom
+ 85-regulatory.rules)
+sha256sums=('8828c25a4ee25020044004f57374bb9deac852809fad70f8d3d01770bf9ac97f'
+ 'SKIP'
+ '192428fd959806705356107bffc97b8b379854e79bd013c4ee140e5202326e2b'
+ '603ce97da5cce3f5337e99007ce04e2f295bb33a36b308794884011f7bcabaf3'
+ 'f5055dfe7584757a11b419836320bcdcd1d3d1e5caf26e20c63a0c64779f3376')
+validpgpkeys=('2ABCA7498D83E1D32D51D3B5AB4800A62DB9F73A') #Seth Forshee <seth.forshee at canonical.com>
+
+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"
+}
Copied: wireless-regdb/repos/testing-any/set-wireless-regdom (from rev 441402, wireless-regdb/trunk/set-wireless-regdom)
===================================================================
--- testing-any/set-wireless-regdom (rev 0)
+++ testing-any/set-wireless-regdom 2022-04-03 11:24:12 UTC (rev 441403)
@@ -0,0 +1,5 @@
+#!/bin/bash
+
+unset WIRELESS_REGDOM
+. /etc/conf.d/wireless-regdom
+[ -n "${WIRELESS_REGDOM}" ] && iw reg set ${WIRELESS_REGDOM}
Copied: wireless-regdb/repos/testing-any/wireless-regdom (from rev 441402, wireless-regdb/trunk/wireless-regdom)
===================================================================
--- testing-any/wireless-regdom (rev 0)
+++ testing-any/wireless-regdom 2022-04-03 11:24:12 UTC (rev 441403)
@@ -0,0 +1,4 @@
+#
+# Wireless regulatory domain configuration
+#
+
More information about the arch-commits
mailing list