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