Line 0
Link Here
|
0 |
- |
1 |
# Copyright 1999-2021 Gentoo Authors |
|
|
2 |
# Distributed under the terms of the GNU General Public License v2 |
3 |
|
4 |
EAPI=7 |
5 |
|
6 |
MY_P="wireless-regdb-${PV:0:4}.${PV:4:2}.${PV:6:2}" |
7 |
DESCRIPTION="Binary regulatory database for CRDA" |
8 |
HOMEPAGE="https://wireless.kernel.org/en/developers/Regulatory" |
9 |
SRC_URI="https://www.kernel.org/pub/software/network/${PN}/${MY_P}.tar.xz" |
10 |
|
11 |
LICENSE="ISC" |
12 |
SLOT="0" |
13 |
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86" |
14 |
|
15 |
S="${WORKDIR}/${MY_P}" |
16 |
|
17 |
src_compile() { |
18 |
einfo "Recompiling regulatory.bin from db.txt would break CRDA verify. Installing unmodified binary version." |
19 |
} |
20 |
|
21 |
src_install() { |
22 |
# This file is not ABI-specific, and crda itself always hardcodes |
23 |
# this path. So install into a common location for all ABIs to use. |
24 |
insinto /usr/lib/crda |
25 |
doins regulatory.bin |
26 |
|
27 |
insinto /etc/wireless-regdb/pubkeys |
28 |
doins sforshee.key.pub.pem |
29 |
|
30 |
# Linux 4.15 now complains if the firmware loader |
31 |
# can't find these files #643520 |
32 |
insinto /lib/firmware |
33 |
doins regulatory.db |
34 |
doins regulatory.db.p7s |
35 |
|
36 |
doman regulatory.bin.5 |
37 |
dodoc README db.txt |
38 |
} |