net-wireless/wireless-regdb: remove USE=crda

Signed-off-by: David Seifert <soap@gentoo.org>
This commit is contained in:
David Seifert
2024-01-21 10:42:07 +01:00
parent 91d807c5ca
commit 4d4f238411
2 changed files with 1 additions and 24 deletions

View File

@@ -6,7 +6,4 @@
<name>Rick Farina</name>
</maintainer>
<stabilize-allarches/>
<use>
<flag name="crda">Use obsolete <pkg>net-wireless/crda</pkg> for regulatory domain loading instead of in-kernel (4.15+) support</flag>
</use>
</pkgmetadata>

View File

@@ -1,4 +1,4 @@
# Copyright 1999-2023 Gentoo Authors
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@@ -14,11 +14,6 @@ S="${WORKDIR}/${MY_P}"
LICENSE="ISC"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~loong ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86"
IUSE="crda"
#PDEPEND is required here or crda test dep causes circular deps
PDEPEND="crda? ( net-wireless/crda )"
REQUIRED_USE="kernel_linux"
pkg_pretend() {
@@ -40,12 +35,6 @@ pkg_pretend() {
ewarn "You can safely disable CFG80211_CRDA_SUPPORT"
fi
fi
if has_version net-wireless/crda || use crda; then
ewarn "Starting from kernel version 4.15 net-wireless/crda is no longer needed."
ewarn "The crda USE flag will be removed on or after Feb 01, 2024"
fi
else
CONFIG_CHECK="~CFG80211_CRDA_SUPPORT"
WARNING_CFG80211_CRDA_SUPPORT="REGULATORY DOMAIN PROBLEM: \
@@ -61,15 +50,6 @@ src_compile() {
}
src_install() {
if use crda; then
# This file is not ABI-specific, and crda itself always hardcodes
# this path. So install into a common location for all ABIs to use.
insinto /usr/lib/crda
doins regulatory.bin
insinto /etc/wireless-regdb/pubkeys
doins sforshee.key.pub.pem
fi
# install the files the kernel needs unconditionally,
# they are small and kernels get upgraded
insinto /lib/firmware