net-wireless/wireless-regdb: Add 20260530

Signed-off-by: David Ruth <druth@google.com>
Part-of: https://github.com/gentoo/gentoo/pull/46547
Closes: https://github.com/gentoo/gentoo/pull/46547
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
David Ruth
2026-07-10 21:18:04 -04:00
committed by Sam James
parent 251911da81
commit 4de53cd9ea
2 changed files with 63 additions and 0 deletions

View File

@@ -1,3 +1,4 @@
DIST wireless-regdb-2025.10.07.tar.xz 31468 BLAKE2B 655c637ca2a9269b6b17bc374c7d09dcbbc5228aaefcbe60cd0c24dc78d778a56848a338f830cac8deed7930100a0fffcfdc2d694513c4afa5d537ccf9397f97 SHA512 9635ba89a45742449a60dd776f1d4b062a11bf11ee5011a7141382042ed24065df8214d9b244644c27bdfe4fa46d18fa467b8674392f28ba68b86cd8994cecd4
DIST wireless-regdb-2026.02.04.tar.xz 31656 BLAKE2B 51b528effd27bef82337babc911e85586a105efce758264d52065b8b2137f08a803e0962ef07a600fec36fd110eecacd1b88d2569aa73ad2a289702164d88581 SHA512 5c4da6cd94a3f0d3b1265e3aee493c04cc7c3675fedec2982af34a60f6837faf78c2aa112a740a5cb60eeb830043c9ef0c27247c33c686052ab8812c7232f6c9
DIST wireless-regdb-2026.03.18.tar.xz 31760 BLAKE2B 2d4f1154be1b41911a62ffbcf10b42529282ce1964897af50aa49ac49b17f06a8a9583b5a42d1b8875a12df04e436679c6af3846ea2cc3c9df7fc29daec7f1ce SHA512 e5b1cc0f8696205e977c9a84ac835994f93dbadeb30725f0a3976cd5a734db44c9df7f98c6acef937814ebc6804312dc516d6bff12e3cbf02814bddea8b2588e
DIST wireless-regdb-2026.05.30.tar.xz 32044 BLAKE2B 81aa422097580319e6088d0a52a2c4007696331df175c3aed1ce6b6c750e9b7bda08a4aa4ee6249abaa3f283f8a942803eefca8334020de68c33f5e7e35a57e0 SHA512 db06f3115051c030f749419f074543309e24626ebdd59d468c56ac3130f38a6c9e4a69ecebbc3bf65d0cdf9876d9c0de0703e00fc9afb402ab2b1a8a0ca1e146

View File

@@ -0,0 +1,62 @@
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit linux-info
MY_P="wireless-regdb-${PV:0:4}.${PV:4:2}.${PV:6:2}"
DESCRIPTION="Wireless Regulatory database for Linux"
HOMEPAGE="https://wireless.docs.kernel.org/en/latest/en/developers/regulatory/wireless-regdb.html"
SRC_URI="https://mirrors.edge.kernel.org/pub/software/network/${PN}/${MY_P}.tar.xz"
S="${WORKDIR}/${MY_P}"
LICENSE="ISC"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86"
REQUIRED_USE="kernel_linux"
pkg_pretend() {
if kernel_is -ge 4 15; then
if linux_config_exists; then
if linux_chkconfig_builtin CFG80211 &&
[[ $(linux_chkconfig_string EXTRA_FIRMWARE) != *regulatory.db* ]]; then
ewarn "REGULATORY DOMAIN PROBLEM:"
ewarn " With CONFIG_CFG80211=y (built-in), the driver(s) won't be able to load regulatory.db from"
ewarn " /lib/firmware, resulting in broken regulatory domain support. Please set CONFIG_CFG80211=m"
ewarn " or add regulatory.db and regulatory.db.p7s to CONFIG_EXTRA_FIRMWARE."
fi
if ! linux_chkconfig_present CFG80211; then
ewarn "REGULATORY DOMAIN PROBLEM:"
ewarn " With CONFIG_CFG80211 unset, the driver(s) won't be able to load the regulatory.db from"
ewarn " /lib/firmware, resulting in broken regulatory domain support. Please set CONFIG_CFG80211=m."
fi
if linux_chkconfig_present EXPERT && linux_chkconfig_present CFG80211_CRDA_SUPPORT; then
ewarn "You can safely disable CFG80211_CRDA_SUPPORT"
fi
fi
else
CONFIG_CHECK="~CFG80211_CRDA_SUPPORT"
WARNING_CFG80211_CRDA_SUPPORT="REGULATORY DOMAIN PROBLEM: \
please enable CFG80211_CRDA_SUPPORT for proper regulatory domain support"
fi
check_extra_config
}
src_compile() {
einfo "Recompiling regulatory database(s) from db.txt would break signature verification."
einfo "Installing unmodified binary version."
}
src_install() {
# install the files the kernel needs unconditionally,
# they are small and kernels get upgraded
insinto /lib/firmware
doins regulatory.db regulatory.db.p7s
echo '.so man5/regulatory.bin.5' > regulatory.db.5 || die
# without -i18n= workaround regulatory.db.5 is installed as db/man5/regulatory.5
doman -i18n= regulatory.db.5 regulatory.bin.5
dodoc README db.txt
}