1 |
commit: 4d46c2c6ded34dc86725c3350376de2038f63e69 |
2 |
Author: Ben Kohler <bkohler <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Sep 8 20:54:34 2020 +0000 |
4 |
Commit: Ben Kohler <bkohler <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Sep 8 20:54:53 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4d46c2c6 |
7 |
|
8 |
net-wireless/iwd: copy all recent changes to 9999 |
9 |
|
10 |
Package-Manager: Portage-3.0.6, Repoman-3.0.1 |
11 |
Signed-off-by: Ben Kohler <bkohler <AT> gentoo.org> |
12 |
|
13 |
net-wireless/iwd/iwd-9999.ebuild | 39 +++++++++++++++++++++++++++++++-------- |
14 |
1 file changed, 31 insertions(+), 8 deletions(-) |
15 |
|
16 |
diff --git a/net-wireless/iwd/iwd-9999.ebuild b/net-wireless/iwd/iwd-9999.ebuild |
17 |
index 55d9df110e1..604e376346d 100644 |
18 |
--- a/net-wireless/iwd/iwd-9999.ebuild |
19 |
+++ b/net-wireless/iwd/iwd-9999.ebuild |
20 |
@@ -21,19 +21,30 @@ HOMEPAGE="https://git.kernel.org/pub/scm/network/wireless/iwd.git/" |
21 |
|
22 |
LICENSE="GPL-2" |
23 |
SLOT="0" |
24 |
-IUSE="+client +crda +monitor ofono wired cpu_flags_x86_aes cpu_flags_x86_ssse3" |
25 |
+IUSE="+client +crda +monitor ofono wired cpu_flags_x86_aes cpu_flags_x86_ssse3 |
26 |
+standalone systemd" |
27 |
|
28 |
-COMMON_DEPEND="sys-apps/dbus |
29 |
- client? ( sys-libs/readline:0= )" |
30 |
+COMMON_DEPEND=" |
31 |
+ sys-apps/dbus |
32 |
+ client? ( sys-libs/readline:0= ) |
33 |
+" |
34 |
|
35 |
-[[ -z "${ELL_REQ}" ]] || COMMON_DEPEND+=" >=dev-libs/ell-${ELL_REQ}" |
36 |
+[[ -z "${ELL_REQ}" ]] || COMMON_DEPEND+=" ~dev-libs/ell-${ELL_REQ}" |
37 |
|
38 |
-RDEPEND="${COMMON_DEPEND} |
39 |
+RDEPEND=" |
40 |
+ ${COMMON_DEPEND} |
41 |
net-wireless/wireless-regdb |
42 |
- crda? ( net-wireless/crda )" |
43 |
+ crda? ( net-wireless/crda ) |
44 |
+ standalone? ( |
45 |
+ systemd? ( sys-apps/systemd ) |
46 |
+ !systemd? ( virtual/resolvconf ) |
47 |
+ ) |
48 |
+" |
49 |
|
50 |
-DEPEND="${COMMON_DEPEND} |
51 |
- virtual/pkgconfig" |
52 |
+DEPEND=" |
53 |
+ ${COMMON_DEPEND} |
54 |
+ virtual/pkgconfig |
55 |
+" |
56 |
|
57 |
[[ ${PV} == *9999* ]] && DEPEND+=" dev-python/docutils" |
58 |
|
59 |
@@ -91,6 +102,10 @@ pkg_setup() { |
60 |
check_extra_config |
61 |
|
62 |
if ! use crda; then |
63 |
+ if use kernel_linux && kernel_is -lt 4 15; then |
64 |
+ ewarn "POSSIBLE REGULATORY DOMAIN PROBLEM:" |
65 |
+ ewarn "Regulatory domain support for kernels older than 4.15 requires crda." |
66 |
+ fi |
67 |
if linux_config_exists && linux_chkconfig_builtin CFG80211 && |
68 |
[[ $(linux_chkconfig_string EXTRA_FIRMWARE) != *regulatory.db* ]] |
69 |
then |
70 |
@@ -151,4 +166,12 @@ src_install() { |
71 |
exeinto /usr/share/iwd/scripts/ |
72 |
doexe test/* |
73 |
fi |
74 |
+ |
75 |
+ if use standalone ; then |
76 |
+ dodir /etc/iwd |
77 |
+ echo "[General]" > ${ED}/etc/iwd/main.conf |
78 |
+ echo "EnableNetworkConfiguration=true" >> "${ED}"/etc/iwd/main.conf |
79 |
+ echo "NameResolvingService=$(usex systemd systemd resolvconf)" >> "${ED}"/etc/iwd/main.conf |
80 |
+ echo "rc_provide=\"net\"" > ${ED}/etc/conf.d/iwd |
81 |
+ fi |
82 |
} |