From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 759001584F2 for ; Thu, 20 Mar 2025 00:06:34 +0000 (UTC) Received: from lists.gentoo.org (bobolink.gentoo.org [140.211.166.189]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) (Authenticated sender: relay-lists.gentoo.org@gentoo.org) by smtp.gentoo.org (Postfix) with ESMTPSA id 5F4F934311C for ; Thu, 20 Mar 2025 00:06:34 +0000 (UTC) Received: from bobolink.gentoo.org (localhost [127.0.0.1]) by bobolink.gentoo.org (Postfix) with ESMTP id 60D8311037F; Thu, 20 Mar 2025 00:06:33 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by bobolink.gentoo.org (Postfix) with ESMTPS id 518B111037F for ; Thu, 20 Mar 2025 00:06:33 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id F2C9B343079 for ; Thu, 20 Mar 2025 00:06:32 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 83FFE1C96 for ; Thu, 20 Mar 2025 00:06:31 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1742428870.521ac32673a1a454420ab24908cd07b09cd0e0c2.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-wireless/wireless-regdb/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-wireless/wireless-regdb/Manifest net-wireless/wireless-regdb/wireless-regdb-20250220.ebuild X-VCS-Directories: net-wireless/wireless-regdb/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 521ac32673a1a454420ab24908cd07b09cd0e0c2 X-VCS-Branch: master Date: Thu, 20 Mar 2025 00:06:31 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: a4a122b6-1126-4af2-8794-86b8299bd0fd X-Archives-Hash: 64237a543cf1ad61f7f730a5347ca05f commit: 521ac32673a1a454420ab24908cd07b09cd0e0c2 Author: David Ruth google com> AuthorDate: Wed Mar 19 17:57:40 2025 +0000 Commit: Sam James gentoo org> CommitDate: Thu Mar 20 00:01:10 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=521ac326 net-wireless/wireless-regdb: add 20250220 Signed-off-by: David Ruth google.com> Closes: https://github.com/gentoo/gentoo/pull/41175 Signed-off-by: Sam James gentoo.org> net-wireless/wireless-regdb/Manifest | 1 + .../wireless-regdb/wireless-regdb-20250220.ebuild | 61 ++++++++++++++++++++++ 2 files changed, 62 insertions(+) diff --git a/net-wireless/wireless-regdb/Manifest b/net-wireless/wireless-regdb/Manifest index b7c60c2a5733..0f2aa34e7539 100644 --- a/net-wireless/wireless-regdb/Manifest +++ b/net-wireless/wireless-regdb/Manifest @@ -1 +1,2 @@ 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 diff --git a/net-wireless/wireless-regdb/wireless-regdb-20250220.ebuild b/net-wireless/wireless-regdb/wireless-regdb-20250220.ebuild new file mode 100644 index 000000000000..fa93e758c660 --- /dev/null +++ b/net-wireless/wireless-regdb/wireless-regdb-20250220.ebuild @@ -0,0 +1,61 @@ +# Copyright 1999-2024 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 + + # regulatory.db.5 is a reference to regulatory.bin.5 so you need both unconditionally + doman -i18n= regulatory.db.5 regulatory.bin.5 + dodoc README db.txt +}