blob: 23973a6371c7730a0171e82ac0a1c8e6e0485a66 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
MY_P="wireless-regdb-${PV:0:4}.${PV:4:2}.${PV:6:2}"
DESCRIPTION="Binary regulatory database for CRDA"
HOMEPAGE="https://wireless.kernel.org/en/developers/Regulatory"
SRC_URI="https://www.kernel.org/pub/software/network/${PN}/${MY_P}.tar.xz"
LICENSE="ISC"
SLOT="0"
KEYWORDS="alpha amd64 arm ~arm64 ia64 ~mips ppc ppc64 sparc x86"
IUSE=""
S="${WORKDIR}/${MY_P}"
src_compile() {
einfo "Recompiling regulatory.bin from db.txt would break CRDA verify. Installing unmodified binary version."
}
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 sforshee.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
}
|