mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-24 18:58:08 -07:00
net-wireless/wireless-regdb: add 20251007
Signed-off-by: David Ruth <druth@google.com> Part-of: https://github.com/gentoo/gentoo/pull/44191 Closes: https://github.com/gentoo/gentoo/pull/44191 Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
DIST wireless-regdb-2024.05.08.tar.xz 27716 BLAKE2B 223268c6ba9e3f616b28a9317d62ac687cd09c9ff3cc8e0d0827b3a59efa7b3bc64c0c094b70aaceb87cffba7d36d36d550c001d0778238adcf2ac5cbe3f6b93 SHA512 edb562d708be7119e80bb48d7520c11e409b81178168f9c6873ea97a2e4d9277d02d3b72b1af9f0302ba2e252d94d14c4468ee4cc1a6bb186a17d74c57d7594d
|
||||
DIST wireless-regdb-2025.02.20.tar.xz 30900 BLAKE2B ae089e9bfb92c0643f537aed8aab7907a0179aedc0a0356f9ec483063d677d999839cffa8e6574e50d7fff82f5824466d4a23ca780bbe386c4c4be6b975a2bd6 SHA512 d7ccdd10d7258ef5470f90e0bb9aacd80f55e315e9703e2d765cdc09cdbf72179fe0a7ca1340b6338bc25c8d423401d1666a1243a4a118f03eafdb4b8c4a921b
|
||||
DIST wireless-regdb-2025.07.10.tar.xz 31192 BLAKE2B b5b38d03fd5dccddabb23580e982b0deec7641a91a641388136ae25bc965dbe352615d8115bd6ba216223f51bad35efdc12d7cf7760489d1a1e65b7b76dbaff3 SHA512 9ec9c2cc4d7fd17b1b768ad081011ebf471ec69c996106f46187a398267267795b0d1839bd403bf8f7822db6861c4f46a4139a60b0e0a84263194cfacddf810c
|
||||
DIST wireless-regdb-2025.10.07.tar.xz 31468 BLAKE2B 655c637ca2a9269b6b17bc374c7d09dcbbc5228aaefcbe60cd0c24dc78d778a56848a338f830cac8deed7930100a0fffcfdc2d694513c4afa5d537ccf9397f97 SHA512 9635ba89a45742449a60dd776f1d4b062a11bf11ee5011a7141382042ed24065df8214d9b244644c27bdfe4fa46d18fa467b8674392f28ba68b86cd8994cecd4
|
||||
|
||||
62
net-wireless/wireless-regdb/wireless-regdb-20251007.ebuild
Normal file
62
net-wireless/wireless-regdb/wireless-regdb-20251007.ebuild
Normal file
@@ -0,0 +1,62 @@
|
||||
# Copyright 1999-2025 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.wiki.kernel.org/en/developers/regulatory/wireless-regdb"
|
||||
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
|
||||
}
|
||||
Reference in New Issue
Block a user