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