public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Rick Farina" <zerochaos@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: net-wireless/wireless-regdb/
Date: Thu,  9 May 2024 00:38:37 +0000 (UTC)	[thread overview]
Message-ID: <1715215106.24cb30eaccfccc142525b69dfc2b5ff3f33ab84e.zerochaos@gentoo> (raw)

commit:     24cb30eaccfccc142525b69dfc2b5ff3f33ab84e
Author:     Rick Farina <zerochaos <AT> gentoo <DOT> org>
AuthorDate: Thu May  9 00:37:28 2024 +0000
Commit:     Rick Farina <zerochaos <AT> gentoo <DOT> org>
CommitDate: Thu May  9 00:38:26 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=24cb30ea

net-wireless/wireless-regdb: add 20240508

Signed-off-by: Rick Farina <zerochaos <AT> gentoo.org>

 net-wireless/wireless-regdb/Manifest               |  1 +
 .../wireless-regdb/wireless-regdb-20240508.ebuild  | 61 ++++++++++++++++++++++
 2 files changed, 62 insertions(+)

diff --git a/net-wireless/wireless-regdb/Manifest b/net-wireless/wireless-regdb/Manifest
index 82e5206f1dc5..db755680880a 100644
--- a/net-wireless/wireless-regdb/Manifest
+++ b/net-wireless/wireless-regdb/Manifest
@@ -1,2 +1,3 @@
 DIST wireless-regdb-2022.06.06.tar.xz 26636 BLAKE2B e7695b1d4173ec239645a1f9c0bdd8f9cef92da86d918f3b2a7904487787b1a8b6fce5a75d0b7fad7d8a25f1419a4771e509977a5e3b13dff03bc53e976609f6 SHA512 ee6e79eeef3bf995120d31741bac9592771cbf918401f83d0ee059ba4119f7d9667607c5218bd9eeb0011dd7083264cf39a1a0ad3ebfd37dcfd957b01f248e0d
 DIST wireless-regdb-2023.05.03.tar.xz 27260 BLAKE2B e880be3bacd7409719ede3e104ea6af870e0fb4edaefa6c61615ca74a8169a159348d631a4c296e273f6cc6e01ced2089e56c10080dd15a7439d8b4510eff7b8 SHA512 9de4852a1d351c11399ca55ea2ad61be23f488c61595b5c5afa3498d76488adc8120c6c77644275c460efcd1bb5bb68fa25597e73bec22ae847321bb55f7af27
+DIST wireless-regdb-2024.05.08.tar.xz 27716 BLAKE2B 223268c6ba9e3f616b28a9317d62ac687cd09c9ff3cc8e0d0827b3a59efa7b3bc64c0c094b70aaceb87cffba7d36d36d550c001d0778238adcf2ac5cbe3f6b93 SHA512 edb562d708be7119e80bb48d7520c11e409b81178168f9c6873ea97a2e4d9277d02d3b72b1af9f0302ba2e252d94d14c4468ee4cc1a6bb186a17d74c57d7594d

diff --git a/net-wireless/wireless-regdb/wireless-regdb-20240508.ebuild b/net-wireless/wireless-regdb/wireless-regdb-20240508.ebuild
new file mode 100644
index 000000000000..8860373ea93f
--- /dev/null
+++ b/net-wireless/wireless-regdb/wireless-regdb-20240508.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 ~ia64 ~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 "REGULARTORY 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
+}


             reply	other threads:[~2024-05-09  0:38 UTC|newest]

Thread overview: 43+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-05-09  0:38 Rick Farina [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-12-01 12:42 [gentoo-commits] repo/gentoo:master commit in: net-wireless/wireless-regdb/ Sam James
2024-12-01 11:51 Sam James
2024-10-02 20:52 Sam James
2024-01-21  9:42 David Seifert
2023-08-23 20:27 Rick Farina
2023-08-19 20:58 Rick Farina
2023-08-19 16:52 Rick Farina
2023-08-19 16:52 Rick Farina
2023-08-19 16:52 Rick Farina
2023-08-19 16:52 Rick Farina
2023-06-17 15:13 Sam James
2023-03-19 23:10 Sam James
2022-06-06 16:56 Rick Farina
2022-06-06 16:56 Rick Farina
2022-05-05 23:48 WANG Xuerui
2022-04-08 16:48 Rick Farina
2022-04-04 14:56 Rick Farina
2022-04-04 14:56 Rick Farina
2021-10-04 20:40 Sam James
2021-05-18 15:52 Rick Farina
2021-05-18 15:52 Rick Farina
2021-05-18 15:52 Rick Farina
2021-02-27  3:56 Sam James
2021-02-26 15:56 Rick Farina
2021-02-12 10:33 Sam James
2021-02-03  9:56 Tony Vroon
2020-08-14 18:19 Rick Farina
2019-06-04  2:14 Rick Farina
2019-05-23  6:39 Aaron Bauman
2019-03-01 22:07 Rick Farina
2018-10-25  3:39 Richard Farina
2018-09-07 19:20 Richard Farina
2018-05-31 15:19 Richard Farina
2018-05-10 16:42 Richard Farina
2018-01-29  9:55 Tony Vroon
2018-01-26 18:05 Richard Farina
2017-03-08 22:46 Richard Farina
2016-06-10 15:46 Richard Farina
2016-05-02 22:18 Richard Farina
2016-02-08 22:47 Richard Farina
2015-10-22 17:00 Richard Farina
2015-09-30 17:30 Richard Farina

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1715215106.24cb30eaccfccc142525b69dfc2b5ff3f33ab84e.zerochaos@gentoo \
    --to=zerochaos@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox