Gentoo Archives: gentoo-commits

From: Tony Vroon <chainsaw@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-wireless/wireless-regdb/
Date: Mon, 29 Jan 2018 09:55:48
Message-Id: 1517219712.a2dfb50194b70d205c86c8c4809a1e45a46b0f7a.chainsaw@gentoo
1 commit: a2dfb50194b70d205c86c8c4809a1e45a46b0f7a
2 Author: Tony Vroon <chainsaw <AT> gentoo <DOT> org>
3 AuthorDate: Mon Jan 29 09:55:12 2018 +0000
4 Commit: Tony Vroon <chainsaw <AT> gentoo <DOT> org>
5 CommitDate: Mon Jan 29 09:55:12 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a2dfb501
7
8 net-wireless/wireless-regdb: regulatory.db support
9
10 As reported by Mike Lothian in bug #643520 and implemented
11 by "Cyrillic", 4.15 kernels require both regulatory.db and
12 the corresponding PKCS#7 signature.
13 Straight to stable as per the precedent set by previous
14 commits from Richard "Zero-Chaos" Farina.
15
16 Closes: https://bugs.gentoo.org/643520
17 Package-Manager: Portage-2.3.19, Repoman-2.3.6
18 RepoMan-Options: --force
19
20 .../wireless-regdb-20171223-r1.ebuild | 39 ++++++++++++++++++++++
21 1 file changed, 39 insertions(+)
22
23 diff --git a/net-wireless/wireless-regdb/wireless-regdb-20171223-r1.ebuild b/net-wireless/wireless-regdb/wireless-regdb-20171223-r1.ebuild
24 new file mode 100644
25 index 00000000000..23973a6371c
26 --- /dev/null
27 +++ b/net-wireless/wireless-regdb/wireless-regdb-20171223-r1.ebuild
28 @@ -0,0 +1,39 @@
29 +# Copyright 1999-2018 Gentoo Foundation
30 +# Distributed under the terms of the GNU General Public License v2
31 +
32 +EAPI=6
33 +
34 +MY_P="wireless-regdb-${PV:0:4}.${PV:4:2}.${PV:6:2}"
35 +DESCRIPTION="Binary regulatory database for CRDA"
36 +HOMEPAGE="https://wireless.kernel.org/en/developers/Regulatory"
37 +SRC_URI="https://www.kernel.org/pub/software/network/${PN}/${MY_P}.tar.xz"
38 +
39 +LICENSE="ISC"
40 +SLOT="0"
41 +KEYWORDS="alpha amd64 arm ~arm64 ia64 ~mips ppc ppc64 sparc x86"
42 +IUSE=""
43 +
44 +S="${WORKDIR}/${MY_P}"
45 +
46 +src_compile() {
47 + einfo "Recompiling regulatory.bin from db.txt would break CRDA verify. Installing unmodified binary version."
48 +}
49 +
50 +src_install() {
51 + # This file is not ABI-specific, and crda itself always hardcodes
52 + # this path. So install into a common location for all ABIs to use.
53 + insinto /usr/lib/crda
54 + doins regulatory.bin
55 +
56 + insinto /etc/wireless-regdb/pubkeys
57 + doins sforshee.key.pub.pem
58 +
59 + # Linux 4.15 now complains if the firmware loader
60 + # can't find these files #643520
61 + insinto /lib/firmware
62 + doins regulatory.db
63 + doins regulatory.db.p7s
64 +
65 + doman regulatory.bin.5
66 + dodoc README db.txt
67 +}