1 |
commit: 24d498e29e240b8aafb552649ef81ac0a213abb3 |
2 |
Author: Ben Kohler <bkohler <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Feb 9 13:26:46 2020 +0000 |
4 |
Commit: Ben Kohler <bkohler <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Feb 9 13:32:11 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=24d498e2 |
7 |
|
8 |
net-wireless/iwd: bump to 1.5 |
9 |
|
10 |
Package-Manager: Portage-2.3.88, Repoman-2.3.20 |
11 |
Signed-off-by: Ben Kohler <bkohler <AT> gentoo.org> |
12 |
|
13 |
net-wireless/iwd/Manifest | 1 + |
14 |
net-wireless/iwd/iwd-1.5.ebuild | 153 ++++++++++++++++++++++++++++++++++++++++ |
15 |
2 files changed, 154 insertions(+) |
16 |
|
17 |
diff --git a/net-wireless/iwd/Manifest b/net-wireless/iwd/Manifest |
18 |
index a65fe0cc1c9..592af807161 100644 |
19 |
--- a/net-wireless/iwd/Manifest |
20 |
+++ b/net-wireless/iwd/Manifest |
21 |
@@ -1 +1,2 @@ |
22 |
DIST iwd-1.4.tar.xz 830548 BLAKE2B 2d03767a5308c72206aefbafce39a241e353c1ef8751758d0a336a7ad5b86ef02062da037db423b805810eb45a9467628cd241682a63835b63e3ea920f39ace9 SHA512 3b06fa24666e7cf37353d95d0e9abc41b8be921ae7313c014f20f704fe7919d154d6a5441c6d87d4cd08ee65e15218ec01f4ff4aafc7e4a358faf3ca4a6dcb18 |
23 |
+DIST iwd-1.5.tar.xz 834688 BLAKE2B b3d585963c93954e4038dd85e5d57b60d8baaa7028edb79b54d8650a400a149666140f6ba438ccccb5be2d67fc7b842f6272b5efc61d75a7d4dae333410625bb SHA512 55017941f2e100d644864d2ed0528c67a486da6ba2bf7782e9df019727ce0af53cdff37c53f6625e536aa756387dd4e0d20a169710da8c3ce00f615040c9da32 |
24 |
|
25 |
diff --git a/net-wireless/iwd/iwd-1.5.ebuild b/net-wireless/iwd/iwd-1.5.ebuild |
26 |
new file mode 100644 |
27 |
index 00000000000..b2e8a422b11 |
28 |
--- /dev/null |
29 |
+++ b/net-wireless/iwd/iwd-1.5.ebuild |
30 |
@@ -0,0 +1,153 @@ |
31 |
+# Copyright 1999-2020 Gentoo Authors |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+ |
34 |
+EAPI=6 |
35 |
+inherit flag-o-matic linux-info systemd |
36 |
+ |
37 |
+#Set this variable to the required external ell version |
38 |
+ELL_REQ="0.28" |
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 ~ppc ~ppc64 ~sparc ~x86" |
47 |
+fi |
48 |
+ |
49 |
+DESCRIPTION="Wireless daemon for linux" |
50 |
+HOMEPAGE="https://git.kernel.org/pub/scm/network/wireless/iwd.git/" |
51 |
+ |
52 |
+LICENSE="GPL-2" |
53 |
+SLOT="0" |
54 |
+IUSE="+client +crda +monitor ofono wired cpu_flags_x86_aes cpu_flags_x86_ssse3" |
55 |
+ |
56 |
+COMMON_DEPEND="sys-apps/dbus |
57 |
+ client? ( sys-libs/readline:0= )" |
58 |
+ |
59 |
+[[ -z "${ELL_REQ}" ]] || COMMON_DEPEND+=" ~dev-libs/ell-${ELL_REQ}" |
60 |
+ |
61 |
+RDEPEND="${COMMON_DEPEND} |
62 |
+ net-wireless/wireless-regdb |
63 |
+ crda? ( net-wireless/crda )" |
64 |
+ |
65 |
+DEPEND="${COMMON_DEPEND} |
66 |
+ virtual/pkgconfig" |
67 |
+ |
68 |
+[[ ${PV} == *9999* ]] && DEPEND+=" dev-python/docutils" |
69 |
+ |
70 |
+pkg_pretend() { |
71 |
+ CONFIG_CHECK=" |
72 |
+ ~ASYMMETRIC_KEY_TYPE |
73 |
+ ~ASYMMETRIC_PUBLIC_KEY_SUBTYPE |
74 |
+ ~CFG80211 |
75 |
+ ~CRYPTO_AES |
76 |
+ ~CRYPTO_ARC4 |
77 |
+ ~CRYPTO_CBC |
78 |
+ ~CRYPTO_CMAC |
79 |
+ ~CRYPTO_DES |
80 |
+ ~CRYPTO_ECB |
81 |
+ ~CRYPTO_HMAC |
82 |
+ ~CRYPTO_MD4 |
83 |
+ ~CRYPTO_MD5 |
84 |
+ ~CRYPTO_RSA |
85 |
+ ~CRYPTO_SHA1 |
86 |
+ ~CRYPTO_SHA256 |
87 |
+ ~CRYPTO_SHA512 |
88 |
+ ~CRYPTO_USER_API_HASH |
89 |
+ ~CRYPTO_USER_API_SKCIPHER |
90 |
+ ~KEY_DH_OPERATIONS |
91 |
+ ~PKCS7_MESSAGE_PARSER |
92 |
+ ~X509_CERTIFICATE_PARSER |
93 |
+ " |
94 |
+ if use crda;then |
95 |
+ CONFIG_CHECK="${CONFIG_CHECK} ~CFG80211_CRDA_SUPPORT" |
96 |
+ WARNING_CFG80211_CRDA_SUPPORT="REGULATORY DOMAIN PROBLEM: please enable CFG80211_CRDA_SUPPORT for proper regulatory domain support" |
97 |
+ fi |
98 |
+ |
99 |
+ if use amd64;then |
100 |
+ CONFIG_CHECK="${CONFIG_CHECK} ~CRYPTO_DES3_EDE_X86_64" |
101 |
+ WARNING_CRYPTO_DES3_EDE_X86_64="CRYPTO_DES3_EDE_X86_64: enable for increased performance" |
102 |
+ fi |
103 |
+ |
104 |
+ if use cpu_flags_x86_aes;then |
105 |
+ CONFIG_CHECK="${CONFIG_CHECK} ~CRYPTO_AES_NI_INTEL" |
106 |
+ WARNING_CRYPTO_AES_NI_INTEL="CRYPTO_AES_NI_INTEL: enable for increased performance" |
107 |
+ fi |
108 |
+ |
109 |
+ if use cpu_flags_x86_ssse3 && use amd64; then |
110 |
+ CONFIG_CHECK="${CONFIG_CHECK} ~CRYPTO_SHA1_SSSE3 ~CRYPTO_SHA256_SSSE3 ~CRYPTO_SHA512_SSSE3" |
111 |
+ WARNING_CRYPTO_SHA1_SSSE3="CRYPTO_SHA1_SSSE3: enable for increased performance" |
112 |
+ WARNING_CRYPTO_SHA256_SSSE3="CRYPTO_SHA256_SSSE3: enable for increased performance" |
113 |
+ WARNING_CRYPTO_SHA512_SSSE3="CRYPTO_SHA512_SSSE3: enable for increased performance" |
114 |
+ fi |
115 |
+ |
116 |
+ if use kernel_linux && kernel_is -ge 4 20; then |
117 |
+ CONFIG_CHECK="${CONFIG_CHECK} ~PKCS8_PRIVATE_KEY_PARSER" |
118 |
+ fi |
119 |
+ |
120 |
+ check_extra_config |
121 |
+ |
122 |
+ if ! use crda; then |
123 |
+ if linux_config_exists && linux_chkconfig_builtin CFG80211 && |
124 |
+ [[ $(linux_chkconfig_string EXTRA_FIRMWARE) != *regulatory.db* ]] |
125 |
+ then |
126 |
+ ewarn "" |
127 |
+ ewarn "REGULATORY DOMAIN PROBLEM:" |
128 |
+ ewarn "With CONFIG_CFG80211=y (built-in), the driver won't be able to load regulatory.db from" |
129 |
+ ewarn " /lib/firmware, resulting in broken regulatory domain support. Please set CONFIG_CFG80211=m" |
130 |
+ ewarn " or add regulatory.db and regulatory.db.p7s to CONFIG_EXTRA_FIRMWARE." |
131 |
+ ewarn "" |
132 |
+ fi |
133 |
+ fi |
134 |
+} |
135 |
+ |
136 |
+src_unpack() { |
137 |
+ if [[ ${PV} == *9999* ]] ; then |
138 |
+ EGIT_REPO_URI=${IWD_EGIT_REPO_URI} git-r3_src_unpack |
139 |
+ EGIT_REPO_URI=${ELL_EGIT_REPO_URI} EGIT_CHECKOUT_DIR=${WORKDIR}/ell git-r3_src_unpack |
140 |
+ else |
141 |
+ default |
142 |
+ fi |
143 |
+} |
144 |
+ |
145 |
+src_prepare() { |
146 |
+ default |
147 |
+ if [[ ${PV} == *9999* ]] ; then |
148 |
+ eautoreconf |
149 |
+ fi |
150 |
+} |
151 |
+ |
152 |
+src_configure() { |
153 |
+ append-cflags "-fsigned-char" |
154 |
+ local myeconfargs=( |
155 |
+ --sysconfdir="${EPREFIX}"/etc/iwd --localstatedir="${EPREFIX}"/var |
156 |
+ $(use_enable client) |
157 |
+ $(use_enable monitor) |
158 |
+ $(use_enable ofono) |
159 |
+ $(use_enable wired) |
160 |
+ --enable-systemd-service |
161 |
+ --with-systemd-unitdir="$(systemd_get_systemunitdir)" |
162 |
+ --with-systemd-modloaddir="${EPREFIX}/usr/lib/modules-load.d" |
163 |
+ --with-systemd-networkdir="$(systemd_get_utildir)/network" |
164 |
+ ) |
165 |
+ [[ ${PV} == *9999* ]] || myeconfargs+=(--enable-external-ell) |
166 |
+ econf "${myeconfargs[@]}" |
167 |
+} |
168 |
+ |
169 |
+src_install() { |
170 |
+ default |
171 |
+ keepdir /var/lib/${PN} |
172 |
+ |
173 |
+ newinitd "${FILESDIR}/iwd.initd-r1" iwd |
174 |
+ |
175 |
+ if use wired;then |
176 |
+ newinitd "${FILESDIR}/ead.initd" ead |
177 |
+ fi |
178 |
+ |
179 |
+ if [[ ${PV} == *9999* ]] ; then |
180 |
+ exeinto /usr/share/iwd/scripts/ |
181 |
+ doexe test/* |
182 |
+ fi |
183 |
+} |