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