wireless-regdb: add in some possible fun stuff

This commit is contained in:
Rick Farina (Zero_Chaos) 2022-08-11 23:03:35 -04:00
parent 14adb32e2e
commit 0331a2d6d1
No known key found for this signature in database
GPG key ID: A29433C0AA431DDC
5 changed files with 62 additions and 95 deletions

View file

@ -1 +1 @@
DIST wireless-regdb-master-2009-11-25.tar.gz 13670 BLAKE2B 7e1322ee959e547370a3edc0874a550ef160fc13fad615e3feb1db412d629a554ceab97352ce288e4bd54f8aa0cf81afdf043708d54de8c2b11cf18e0fe79976 SHA512 8297100e1ba519f0780a63be45fd36a38113876d5ea8f75c71991381e1e1acfd6a9a9bc4c16c840d5e6f4cedf01fe9602e6f5ef043d069f684cf4fb8df8fb7fe
DIST wireless-regdb-2022.06.06.tar.xz 26636 BLAKE2B e7695b1d4173ec239645a1f9c0bdd8f9cef92da86d918f3b2a7904487787b1a8b6fce5a75d0b7fad7d8a25f1419a4771e509977a5e3b13dff03bc53e976609f6 SHA512 ee6e79eeef3bf995120d31741bac9592771cbf918401f83d0ee059ba4119f7d9667607c5218bd9eeb0011dd7083264cf39a1a0ad3ebfd37dcfd957b01f248e0d

View file

@ -1,51 +0,0 @@
diff -Naur wireless-regdb-2009.08.17-orig/db.txt wireless-regdb-2009.08.17/db.txt
--- wireless-regdb-2009.08.17-orig/db.txt 2009-08-17 09:25:16.000000000 -0400
+++ wireless-regdb-2009.08.17/db.txt 2009-09-07 20:44:51.000000000 -0400
@@ -579,6 +579,13 @@
country VN:
(2402 - 2482 @ 40), (N/A, 20)
+country XN:
+ (2182 - 7010 @ 40), (N/A, 40)
+
+country XX:
+ (2182 - 7010 @ 40), (N/A, 30), PASSIVE-SCAN, NO-IBSS
+
+
country YE:
(2402 - 2482 @ 40), (N/A, 20)
diff -Naur wireless-regdb-2009.08.17-orig/Makefile wireless-regdb-2009.08.17/Makefile
--- wireless-regdb-2009.08.17-orig/Makefile 2009-08-17 09:25:16.000000000 -0400
+++ wireless-regdb-2009.08.17/Makefile 2009-09-07 20:45:53.000000000 -0400
@@ -18,8 +18,8 @@
echo custom-distro; \
fi)
-DISTRO_PRIVKEY ?= ~/.wireless-regdb-$(LSB_ID).key.priv.pem
-DISTRO_PUBKEY ?= ~/.wireless-regdb-$(LSB_ID).key.priv.pem
+DISTRO_PRIVKEY ?= wireless-regdb-$(LSB_ID).key.priv.pem
+DISTRO_PUBKEY ?= wireless-regdb-$(LSB_ID).key.priv.pem
REGDB_AUTHOR ?= $(shell if [ -f $(DISTRO_PRIVKEY) ]; then \
echo $(LSB_ID) ; \
@@ -29,7 +29,7 @@
echo custom-user; \
fi)
-REGDB_PRIVKEY ?= ~/.wireless-regdb-$(REGDB_AUTHOR).key.priv.pem
+REGDB_PRIVKEY ?= wireless-regdb-$(REGDB_AUTHOR).key.priv.pem
REGDB_PUBKEY ?= $(REGDB_AUTHOR).key.pub.pem
REGDB_UPSTREAM_PUBKEY ?= linville.key.pub.pem
@@ -91,8 +91,8 @@
# Distributions packagers should do only once:
# make install-distro-key
# This will create a private key for you and install it into
-# ~/.wireless-regdb-$(LSB_ID).key.priv.pem
-# To make new releaes just do:
+# wireless-regdb-$(LSB_ID).key.priv.pem
+# To make new releases just do:
# make maintainer-clean
# make
# sudo make install

View file

@ -0,0 +1,12 @@
diff -Naur wireless-regdb-2022.06.06/db.txt wireless-regdb-2022.06.06-open/db.txt
--- wireless-regdb-2022.06.06/db.txt 2022-06-06 10:46:02.000000000 -0400
+++ wireless-regdb-2022.06.06-open/db.txt 2022-08-09 22:50:42.336770529 -0400
@@ -1727,7 +1727,7 @@
(5850 - 5895 @ 40), (27), NO-OUTDOOR, AUTO-BW, NO-IR
# 6g band
# https://www.federalregister.gov/documents/2020/05/26/2020-11236/unlicensed-use-of-the-6ghz-band
- (5925 - 7125 @ 320), (12), NO-OUTDOOR, NO-IR
+ (5925 - 7125 @ 320), (12), NO-OUTDOOR
# 60g band
# reference: section IV-D https://docs.fcc.gov/public/attachments/FCC-16-89A1.pdf
# channels 1-6 EIRP=40dBm(43dBm peak)

View file

@ -1,43 +0,0 @@
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
MY_P="wireless-regdb-master-${PV:0:4}-${PV:4:2}-${PV:6:2}"
DESCRIPTION="Binary regulatory database for CRDA"
HOMEPAGE="http://wireless.kernel.org/en/developers/Regulatory"
#SRC_URI="http://wireless.kernel.org/download/wireless-regdb/${MY_P}.tar.bz2"
SRC_URI="https://git.kernel.org/pub/scm/linux/kernel/git/sforshee/wireless-regdb.git/snapshot/${MY_P}.tar.gz"
#https://git.kernel.org/pub/scm/linux/kernel/git/sforshee/wireless-regdb.git/snapshot/wireless-regdb-master-2021-04-21.tar.gz
LICENSE="as-is"
SLOT="0"
KEYWORDS="amd64 ~ppc ~ppc64 x86"
IUSE=""
DEPEND="dev-libs/openssl
dev-python/m2crypto"
S="${WORKDIR}/${MY_P}"
src_unpack() {
unpack ${A}
cd "${S}"
}
src_prepare() {
eapply "${FILESDIR}"/extra-monitor-${PV}.patch
eapply_user
}
#TODO: add pentoo use flag to not patch the regdb, maybe adjust deps
src_compile() {
emake install-distro-key || die "make install-distro-key failed"
emake || die "emake failed"
}
src_install() {
insinto /usr/$(get_libdir)/crda/
doins regulatory.bin
doins *.key.pub.pem
}

View file

@ -0,0 +1,49 @@
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
MY_P="wireless-regdb-${PV:0:4}.${PV:4:2}.${PV:6:2}"
DESCRIPTION="Binary regulatory database for CRDA"
HOMEPAGE="https://wireless.wiki.kernel.org/en/developers/regulatory/wireless-regdb"
SRC_URI="https://www.kernel.org/pub/software/network/${PN}/${MY_P}.tar.xz"
S="${WORKDIR}/${MY_P}"
IUSE="pentoo"
LICENSE="ISC"
SLOT="0"
KEYWORDS="~alpha amd64 arm arm64 ~ia64 ~loong ~mips ppc ppc64 ~riscv sparc x86"
src_prepare() {
eapply "${FILESDIR}"/no-no-ir.patch
eapply_user
}
#TODO: add pentoo use flag to not patch the regdb, maybe adjust deps
src_compile() {
if use pentoo; then
emake install-distro-key || die "make install-distro-key failed"
emake || die "emake failed"
fi
true
}
src_install() {
# 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 *.key.pub.pem
# Linux 4.15 now complains if the firmware loader
# can't find these files #643520
insinto /lib/firmware
doins regulatory.db
doins regulatory.db.p7s
doman regulatory.bin.5
dodoc README db.txt
}