1 |
1 |
# Copyright 1999-2023 Gentoo Authors
|
2 |
2 |
# Distributed under the terms of the GNU General Public License v2
|
3 |
3 |
|
4 |
|
EAPI=7
|
|
4 |
EAPI=8
|
5 |
5 |
|
6 |
|
PYTHON_COMPAT=( python3_{9..11} )
|
|
6 |
PYTHON_COMPAT=( python3_{10..12} )
|
7 |
7 |
inherit toolchain-funcs python-any-r1 udev
|
8 |
8 |
|
9 |
9 |
DESCRIPTION="Central Regulatory Domain Agent for wireless networks"
|
... | ... | |
12 |
12 |
|
13 |
13 |
LICENSE="ISC"
|
14 |
14 |
SLOT="0"
|
15 |
|
KEYWORDS="~alpha amd64 arm arm64 ~ia64 ~loong ~mips ppc ppc64 ~riscv sparc x86"
|
16 |
|
IUSE="gcrypt"
|
|
15 |
KEYWORDS="~alpha amd64 arm arm64 ~ia64 ~loong ~mips ~ppc ppc64 ~riscv sparc x86"
|
|
16 |
IUSE="gcrypt test"
|
|
17 |
RESTRICT="!test? ( test )"
|
17 |
18 |
|
18 |
|
RDEPEND="!gcrypt? (
|
19 |
|
dev-libs/openssl:0=
|
20 |
|
)
|
21 |
|
gcrypt? ( dev-libs/libgcrypt:0= )
|
|
19 |
RDEPEND="
|
22 |
20 |
dev-libs/libnl:3
|
23 |
|
net-wireless/wireless-regdb"
|
|
21 |
net-wireless/wireless-regdb
|
|
22 |
!gcrypt? (
|
|
23 |
dev-libs/openssl:=
|
|
24 |
)
|
|
25 |
gcrypt? ( dev-libs/libgcrypt:= )
|
|
26 |
"
|
24 |
27 |
DEPEND="${RDEPEND}"
|
25 |
|
BDEPEND="${PYTHON_DEPS}
|
|
28 |
BDEPEND="
|
|
29 |
${PYTHON_DEPS}
|
26 |
30 |
$(python_gen_any_dep 'dev-python/m2crypto[${PYTHON_USEDEP}]')
|
27 |
|
virtual/pkgconfig"
|
28 |
|
|
29 |
|
python_check_deps() {
|
30 |
|
has_version -b "dev-python/m2crypto[${PYTHON_USEDEP}]"
|
31 |
|
}
|
|
31 |
test? ( net-wireless/wireless-regdb[crda(+)] )
|
|
32 |
virtual/pkgconfig
|
|
33 |
"
|
32 |
34 |
|
33 |
35 |
PATCHES=(
|
34 |
|
"${FILESDIR}"/${PN}-no-ldconfig.patch
|
35 |
36 |
"${FILESDIR}"/${PN}-no-werror.patch
|
36 |
37 |
"${FILESDIR}"/${PN}-cflags.patch
|
37 |
|
"${FILESDIR}"/${PN}-libreg-link.patch #542436
|
38 |
38 |
"${FILESDIR}"/${PN}-4.14-python-3.patch
|
39 |
|
"${FILESDIR}"/${PN}-4.14-openssl-1.1.0-compatibility.patch #652428
|
40 |
|
"${FILESDIR}"/${PN}-ldflags.patch
|
|
39 |
"${FILESDIR}"/${PN}-4.14-openssl-1.1.0-compatibility.patch # bug #652428
|
41 |
40 |
"${FILESDIR}"/${PN}-4.14-do-not-compress-doc.patch
|
|
41 |
"${FILESDIR}"/${PN}-4.15-no-ldconfig.patch
|
|
42 |
"${FILESDIR}"/${PN}-4.15-libreg-link.patch # bug #542436
|
|
43 |
"${FILESDIR}"/${PN}-4.15-ldflags.patch
|
42 |
44 |
)
|
43 |
45 |
|
|
46 |
python_check_deps() {
|
|
47 |
python_has_version "dev-python/m2crypto[${PYTHON_USEDEP}]"
|
|
48 |
}
|
|
49 |
|
44 |
50 |
src_prepare() {
|
45 |
51 |
default
|
46 |
52 |
sed -i \
|
... | ... | |
80 |
86 |
_emake DESTDIR="${D}" install
|
81 |
87 |
keepdir /etc/wireless-regdb/pubkeys
|
82 |
88 |
}
|
|
89 |
|
|
90 |
pkg_postinst() {
|
|
91 |
udev_reload
|
|
92 |
}
|
|
93 |
|
|
94 |
pkg_postrm() {
|
|
95 |
udev_reload
|
|
96 |
}
|