1 |
commit: bcfcd96b5d19af50996e897cd3abc14e73f388a0 |
2 |
Author: Ben Kohler <bkohler <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Sep 8 17:37:44 2022 +0000 |
4 |
Commit: Ben Kohler <bkohler <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Sep 9 12:57:36 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bcfcd96b |
7 |
|
8 |
net-wireless/iwd: add 1.30 |
9 |
|
10 |
Signed-off-by: Ben Kohler <bkohler <AT> gentoo.org> |
11 |
|
12 |
net-wireless/iwd/Manifest | 1 + |
13 |
net-wireless/iwd/iwd-1.30.ebuild | 183 +++++++++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 184 insertions(+) |
15 |
|
16 |
diff --git a/net-wireless/iwd/Manifest b/net-wireless/iwd/Manifest |
17 |
index a1e949397def..2563b0e5a355 100644 |
18 |
--- a/net-wireless/iwd/Manifest |
19 |
+++ b/net-wireless/iwd/Manifest |
20 |
@@ -1,2 +1,3 @@ |
21 |
DIST iwd-1.28.tar.xz 1014588 BLAKE2B 2ca8edf3b9e038cf8a7549d76253bce42f66b4f63644433b84dad75cd51a817efdbf1437ec9c65731619d48d549cd1e89396a2609a9e31b5c73f6a16fb73e104 SHA512 adde7772787840e0a46e0068fe0bf5f22191fd32b2f16bcb10dbaf5e9c410ae1caa1479a9851bfefe264a8b29ca24ed6d58457b9351316afea62244de2d6e08a |
22 |
DIST iwd-1.29.tar.xz 1016596 BLAKE2B 9c996e8b8da8ed3e0c20c5e2c94c0e219a1f6322498aa480e0ee5d085c2ddd03b18e38d1985d9ce3b6950be2019c66321b5781ad50d812010dc8a5f65f209327 SHA512 fb9d68ab487b03b7982155d77990749f1e21362b5851baed9e599a95fb2805a9529f9e8ae31a159b384789682b0352b87e6b2183d2321f0410b1cd7cb6c14452 |
23 |
+DIST iwd-1.30.tar.xz 1026436 BLAKE2B 02382181d8e40d0d88c6c752c480db1036142c91b2547499456763bb9c157c7113f9c496d5dd0ae688110fab251e7f99374ea560450a12701e5d72ec7eae784c SHA512 8cf705bd6cf2c69bb6fef0274f3a59f64e7a88071bf97fe3f291ebe523d38f1381299918370d7017b4e635fd1907005c530e8e693eff94d99ac5b89aebf9f815 |
24 |
|
25 |
diff --git a/net-wireless/iwd/iwd-1.30.ebuild b/net-wireless/iwd/iwd-1.30.ebuild |
26 |
new file mode 100644 |
27 |
index 000000000000..cf333398377f |
28 |
--- /dev/null |
29 |
+++ b/net-wireless/iwd/iwd-1.30.ebuild |
30 |
@@ -0,0 +1,183 @@ |
31 |
+# Copyright 1999-2022 Gentoo Authors |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+ |
34 |
+EAPI=7 |
35 |
+inherit flag-o-matic linux-info systemd |
36 |
+ |
37 |
+#Set this variable to the required external ell version |
38 |
+ELL_REQ="0.53" |
39 |
+ |
40 |
+if [[ ${PV} == *9999* ]]; then |
41 |
+ inherit autotools git-r3 |
42 |
+ IWD_EGIT_REPO_URI="https://git.kernel.org/pub/scm/network/wireless/iwd.git" |
43 |
+ ELL_EGIT_REPO_URI="https://git.kernel.org/pub/scm/libs/ell/ell.git" |
44 |
+else |
45 |
+ SRC_URI="https://www.kernel.org/pub/linux/network/wireless/${P}.tar.xz" |
46 |
+ KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86" |
47 |
+ MYRST2MAN="RST2MAN=:" |
48 |
+fi |
49 |
+ |
50 |
+DESCRIPTION="Wireless daemon for linux" |
51 |
+HOMEPAGE="https://git.kernel.org/pub/scm/network/wireless/iwd.git/" |
52 |
+ |
53 |
+LICENSE="GPL-2" |
54 |
+SLOT="0" |
55 |
+IUSE="+client cpu_flags_x86_aes cpu_flags_x86_ssse3 +crda +monitor ofono standalone systemd wired" |
56 |
+ |
57 |
+DEPEND=" |
58 |
+ sys-apps/dbus |
59 |
+ client? ( sys-libs/readline:0= ) |
60 |
+" |
61 |
+ |
62 |
+[[ -z "${ELL_REQ}" ]] || DEPEND+=" ~dev-libs/ell-${ELL_REQ}" |
63 |
+ |
64 |
+RDEPEND=" |
65 |
+ ${DEPEND} |
66 |
+ acct-group/netdev |
67 |
+ net-wireless/wireless-regdb |
68 |
+ crda? ( net-wireless/crda ) |
69 |
+ standalone? ( |
70 |
+ systemd? ( sys-apps/systemd ) |
71 |
+ !systemd? ( virtual/resolvconf ) |
72 |
+ ) |
73 |
+" |
74 |
+ |
75 |
+BDEPEND=" |
76 |
+ virtual/pkgconfig |
77 |
+" |
78 |
+ |
79 |
+[[ ${PV} == *9999* ]] && BDEPEND+=" dev-python/docutils" |
80 |
+ |
81 |
+pkg_setup() { |
82 |
+ CONFIG_CHECK=" |
83 |
+ ~ASYMMETRIC_KEY_TYPE |
84 |
+ ~ASYMMETRIC_PUBLIC_KEY_SUBTYPE |
85 |
+ ~CFG80211 |
86 |
+ ~CRYPTO_AES |
87 |
+ ~CRYPTO_CBC |
88 |
+ ~CRYPTO_CMAC |
89 |
+ ~CRYPTO_DES |
90 |
+ ~CRYPTO_ECB |
91 |
+ ~CRYPTO_HMAC |
92 |
+ ~CRYPTO_MD4 |
93 |
+ ~CRYPTO_MD5 |
94 |
+ ~CRYPTO_RSA |
95 |
+ ~CRYPTO_SHA1 |
96 |
+ ~CRYPTO_SHA256 |
97 |
+ ~CRYPTO_SHA512 |
98 |
+ ~CRYPTO_USER_API_HASH |
99 |
+ ~CRYPTO_USER_API_SKCIPHER |
100 |
+ ~KEY_DH_OPERATIONS |
101 |
+ ~PKCS7_MESSAGE_PARSER |
102 |
+ ~RFKILL |
103 |
+ ~X509_CERTIFICATE_PARSER |
104 |
+ " |
105 |
+ if use crda;then |
106 |
+ CONFIG_CHECK="${CONFIG_CHECK} ~CFG80211_CRDA_SUPPORT" |
107 |
+ WARNING_CFG80211_CRDA_SUPPORT="REGULATORY DOMAIN PROBLEM: please enable CFG80211_CRDA_SUPPORT for proper regulatory domain support" |
108 |
+ fi |
109 |
+ |
110 |
+ if use amd64;then |
111 |
+ CONFIG_CHECK="${CONFIG_CHECK} ~CRYPTO_DES3_EDE_X86_64" |
112 |
+ WARNING_CRYPTO_DES3_EDE_X86_64="CRYPTO_DES3_EDE_X86_64: enable for increased performance" |
113 |
+ fi |
114 |
+ |
115 |
+ if use cpu_flags_x86_aes;then |
116 |
+ CONFIG_CHECK="${CONFIG_CHECK} ~CRYPTO_AES_NI_INTEL" |
117 |
+ WARNING_CRYPTO_AES_NI_INTEL="CRYPTO_AES_NI_INTEL: enable for increased performance" |
118 |
+ fi |
119 |
+ |
120 |
+ if use cpu_flags_x86_ssse3 && use amd64; then |
121 |
+ CONFIG_CHECK="${CONFIG_CHECK} ~CRYPTO_SHA1_SSSE3 ~CRYPTO_SHA256_SSSE3 ~CRYPTO_SHA512_SSSE3" |
122 |
+ WARNING_CRYPTO_SHA1_SSSE3="CRYPTO_SHA1_SSSE3: enable for increased performance" |
123 |
+ WARNING_CRYPTO_SHA256_SSSE3="CRYPTO_SHA256_SSSE3: enable for increased performance" |
124 |
+ WARNING_CRYPTO_SHA512_SSSE3="CRYPTO_SHA512_SSSE3: enable for increased performance" |
125 |
+ fi |
126 |
+ |
127 |
+ if use kernel_linux && kernel_is -ge 4 20; then |
128 |
+ CONFIG_CHECK="${CONFIG_CHECK} ~PKCS8_PRIVATE_KEY_PARSER" |
129 |
+ fi |
130 |
+ |
131 |
+ check_extra_config |
132 |
+ |
133 |
+ if ! use crda; then |
134 |
+ if use kernel_linux && kernel_is -lt 4 15; then |
135 |
+ ewarn "POSSIBLE REGULATORY DOMAIN PROBLEM:" |
136 |
+ ewarn "Regulatory domain support for kernels older than 4.15 requires crda." |
137 |
+ fi |
138 |
+ if linux_config_exists && linux_chkconfig_builtin CFG80211 && |
139 |
+ [[ $(linux_chkconfig_string EXTRA_FIRMWARE) != *regulatory.db* ]] |
140 |
+ then |
141 |
+ ewarn "" |
142 |
+ ewarn "REGULATORY DOMAIN PROBLEM:" |
143 |
+ ewarn "With CONFIG_CFG80211=y (built-in), the driver won't be able to load regulatory.db from" |
144 |
+ ewarn " /lib/firmware, resulting in broken regulatory domain support. Please set CONFIG_CFG80211=m" |
145 |
+ ewarn " or add regulatory.db and regulatory.db.p7s to CONFIG_EXTRA_FIRMWARE." |
146 |
+ ewarn "" |
147 |
+ fi |
148 |
+ fi |
149 |
+} |
150 |
+ |
151 |
+src_unpack() { |
152 |
+ if [[ ${PV} == *9999* ]] ; then |
153 |
+ EGIT_REPO_URI=${IWD_EGIT_REPO_URI} git-r3_src_unpack |
154 |
+ EGIT_REPO_URI=${ELL_EGIT_REPO_URI} EGIT_CHECKOUT_DIR=${WORKDIR}/ell git-r3_src_unpack |
155 |
+ else |
156 |
+ default |
157 |
+ fi |
158 |
+} |
159 |
+ |
160 |
+src_prepare() { |
161 |
+ default |
162 |
+ if [[ ${PV} == *9999* ]] ; then |
163 |
+ eautoreconf |
164 |
+ fi |
165 |
+} |
166 |
+ |
167 |
+src_configure() { |
168 |
+ append-cflags "-fsigned-char" |
169 |
+ local myeconfargs=( |
170 |
+ --sysconfdir="${EPREFIX}"/etc/iwd --localstatedir="${EPREFIX}"/var |
171 |
+ $(use_enable client) |
172 |
+ $(use_enable monitor) |
173 |
+ $(use_enable ofono) |
174 |
+ $(use_enable wired) |
175 |
+ --enable-systemd-service |
176 |
+ --with-systemd-unitdir="$(systemd_get_systemunitdir)" |
177 |
+ --with-systemd-modloaddir="${EPREFIX}/usr/lib/modules-load.d" |
178 |
+ --with-systemd-networkdir="$(systemd_get_utildir)/network" |
179 |
+ ) |
180 |
+ [[ ${PV} == *9999* ]] || myeconfargs+=(--enable-external-ell) |
181 |
+ econf "${myeconfargs[@]}" |
182 |
+} |
183 |
+ |
184 |
+src_compile() { |
185 |
+ emake ${MYRST2MAN} |
186 |
+} |
187 |
+ |
188 |
+src_install() { |
189 |
+ emake DESTDIR="${D}" ${MYRST2MAN} install |
190 |
+ keepdir /var/lib/${PN} |
191 |
+ |
192 |
+ newinitd "${FILESDIR}/iwd.initd-r1" iwd |
193 |
+ |
194 |
+ if use wired;then |
195 |
+ newinitd "${FILESDIR}/ead.initd" ead |
196 |
+ fi |
197 |
+ |
198 |
+ if [[ ${PV} == *9999* ]] ; then |
199 |
+ exeinto /usr/share/iwd/scripts/ |
200 |
+ doexe test/* |
201 |
+ fi |
202 |
+ |
203 |
+ if use standalone ; then |
204 |
+ local iwdconf="${ED}/etc/iwd/main.conf" |
205 |
+ dodir /etc/iwd |
206 |
+ echo "[General]" > "${iwdconf}" |
207 |
+ echo "EnableNetworkConfiguration=true" >> "${iwdconf}" |
208 |
+ echo "[Network]" >> "${iwdconf}" |
209 |
+ echo "NameResolvingService=$(usex systemd systemd resolvconf)" >> "${iwdconf}" |
210 |
+ dodir /etc/conf.d |
211 |
+ echo "rc_provide=\"net\"" > "${ED}"/etc/conf.d/iwd |
212 |
+ fi |
213 |
+} |