Gentoo Archives: gentoo-commits

From: Ben Kohler <bkohler@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-wireless/iwd/
Date: Tue, 26 Apr 2022 12:48:42
Message-Id: 1650977290.b5280ce0bee066cc87db273d9c0295234e6f8247.bkohler@gentoo
1 commit: b5280ce0bee066cc87db273d9c0295234e6f8247
2 Author: Ben Kohler <bkohler <AT> gentoo <DOT> org>
3 AuthorDate: Tue Apr 26 12:48:10 2022 +0000
4 Commit: Ben Kohler <bkohler <AT> gentoo <DOT> org>
5 CommitDate: Tue Apr 26 12:48:10 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b5280ce0
7
8 net-wireless/iwd: drop 1.20
9
10 Signed-off-by: Ben Kohler <bkohler <AT> gentoo.org>
11
12 net-wireless/iwd/Manifest | 1 -
13 net-wireless/iwd/iwd-1.20.ebuild | 182 ---------------------------------------
14 2 files changed, 183 deletions(-)
15
16 diff --git a/net-wireless/iwd/Manifest b/net-wireless/iwd/Manifest
17 index 4197473ae8f3..028d93f6e9f2 100644
18 --- a/net-wireless/iwd/Manifest
19 +++ b/net-wireless/iwd/Manifest
20 @@ -1,3 +1,2 @@
21 -DIST iwd-1.20.tar.xz 973964 BLAKE2B 750368aec999b988aaaed34454a1a15a75fa9c37ce4523715156c1bc89e343aad62c0d0f0ef5f798a75b19a271175f05517e641f3e2a6e502d932da8e1cfff63 SHA512 1a272492d101bd6ec22df16d98895ce03aa8470b35a7b3c36e5431239e519f74fae81f8bee25e52ce7705459b42e37298778f671a39e98787ddb1b9881521847
22 DIST iwd-1.26.tar.xz 1005532 BLAKE2B 8e12ecdf77e6d6a99477605aa727609f55a652af2d1f3a028812d352ea8aef5465c6c6063a6f9ef92ce940a34c44ce7bf77dcd6895173422d984eb3e61636d72 SHA512 b3fc002ca1da4edaeaec88142226b978991fa93dc65b7a79057514a4eb88e620e08a9ea22b49f8efe6707dcd94dd556fbaafcee46de2de19ee9163bd9e95d197
23 DIST iwd-1.27.tar.xz 1007432 BLAKE2B 0df0e5a8cec660521c44ae37102465bcc45e76805e65c76e48d6325b40484cd30d436db8c656d2f9bbd937c3f614de59d3a066642aa83f48002124bf334dbd62 SHA512 9027b20e22ae89a188b428eb84c5266ae242d8cfda452ad93db0cced8713d4f861dd1daf761632d4d2e9732d754db3a708d403a57f10c9ba3d76e23b7585f0c6
24
25 diff --git a/net-wireless/iwd/iwd-1.20.ebuild b/net-wireless/iwd/iwd-1.20.ebuild
26 deleted file mode 100644
27 index 311a92a70d1c..000000000000
28 --- a/net-wireless/iwd/iwd-1.20.ebuild
29 +++ /dev/null
30 @@ -1,182 +0,0 @@
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.46"
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 ~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 - net-wireless/wireless-regdb
67 - crda? ( net-wireless/crda )
68 - standalone? (
69 - systemd? ( sys-apps/systemd )
70 - !systemd? ( virtual/resolvconf )
71 - )
72 -"
73 -
74 -BDEPEND="
75 - virtual/pkgconfig
76 -"
77 -
78 -[[ ${PV} == *9999* ]] && BDEPEND+=" dev-python/docutils"
79 -
80 -pkg_setup() {
81 - CONFIG_CHECK="
82 - ~ASYMMETRIC_KEY_TYPE
83 - ~ASYMMETRIC_PUBLIC_KEY_SUBTYPE
84 - ~CFG80211
85 - ~CRYPTO_AES
86 - ~CRYPTO_CBC
87 - ~CRYPTO_CMAC
88 - ~CRYPTO_DES
89 - ~CRYPTO_ECB
90 - ~CRYPTO_HMAC
91 - ~CRYPTO_MD4
92 - ~CRYPTO_MD5
93 - ~CRYPTO_RSA
94 - ~CRYPTO_SHA1
95 - ~CRYPTO_SHA256
96 - ~CRYPTO_SHA512
97 - ~CRYPTO_USER_API_HASH
98 - ~CRYPTO_USER_API_SKCIPHER
99 - ~KEY_DH_OPERATIONS
100 - ~PKCS7_MESSAGE_PARSER
101 - ~RFKILL
102 - ~X509_CERTIFICATE_PARSER
103 - "
104 - if use crda;then
105 - CONFIG_CHECK="${CONFIG_CHECK} ~CFG80211_CRDA_SUPPORT"
106 - WARNING_CFG80211_CRDA_SUPPORT="REGULATORY DOMAIN PROBLEM: please enable CFG80211_CRDA_SUPPORT for proper regulatory domain support"
107 - fi
108 -
109 - if use amd64;then
110 - CONFIG_CHECK="${CONFIG_CHECK} ~CRYPTO_DES3_EDE_X86_64"
111 - WARNING_CRYPTO_DES3_EDE_X86_64="CRYPTO_DES3_EDE_X86_64: enable for increased performance"
112 - fi
113 -
114 - if use cpu_flags_x86_aes;then
115 - CONFIG_CHECK="${CONFIG_CHECK} ~CRYPTO_AES_NI_INTEL"
116 - WARNING_CRYPTO_AES_NI_INTEL="CRYPTO_AES_NI_INTEL: enable for increased performance"
117 - fi
118 -
119 - if use cpu_flags_x86_ssse3 && use amd64; then
120 - CONFIG_CHECK="${CONFIG_CHECK} ~CRYPTO_SHA1_SSSE3 ~CRYPTO_SHA256_SSSE3 ~CRYPTO_SHA512_SSSE3"
121 - WARNING_CRYPTO_SHA1_SSSE3="CRYPTO_SHA1_SSSE3: enable for increased performance"
122 - WARNING_CRYPTO_SHA256_SSSE3="CRYPTO_SHA256_SSSE3: enable for increased performance"
123 - WARNING_CRYPTO_SHA512_SSSE3="CRYPTO_SHA512_SSSE3: enable for increased performance"
124 - fi
125 -
126 - if use kernel_linux && kernel_is -ge 4 20; then
127 - CONFIG_CHECK="${CONFIG_CHECK} ~PKCS8_PRIVATE_KEY_PARSER"
128 - fi
129 -
130 - check_extra_config
131 -
132 - if ! use crda; then
133 - if use kernel_linux && kernel_is -lt 4 15; then
134 - ewarn "POSSIBLE REGULATORY DOMAIN PROBLEM:"
135 - ewarn "Regulatory domain support for kernels older than 4.15 requires crda."
136 - fi
137 - if linux_config_exists && linux_chkconfig_builtin CFG80211 &&
138 - [[ $(linux_chkconfig_string EXTRA_FIRMWARE) != *regulatory.db* ]]
139 - then
140 - ewarn ""
141 - ewarn "REGULATORY DOMAIN PROBLEM:"
142 - ewarn "With CONFIG_CFG80211=y (built-in), the driver won't be able to load regulatory.db from"
143 - ewarn " /lib/firmware, resulting in broken regulatory domain support. Please set CONFIG_CFG80211=m"
144 - ewarn " or add regulatory.db and regulatory.db.p7s to CONFIG_EXTRA_FIRMWARE."
145 - ewarn ""
146 - fi
147 - fi
148 -}
149 -
150 -src_unpack() {
151 - if [[ ${PV} == *9999* ]] ; then
152 - EGIT_REPO_URI=${IWD_EGIT_REPO_URI} git-r3_src_unpack
153 - EGIT_REPO_URI=${ELL_EGIT_REPO_URI} EGIT_CHECKOUT_DIR=${WORKDIR}/ell git-r3_src_unpack
154 - else
155 - default
156 - fi
157 -}
158 -
159 -src_prepare() {
160 - default
161 - if [[ ${PV} == *9999* ]] ; then
162 - eautoreconf
163 - fi
164 -}
165 -
166 -src_configure() {
167 - append-cflags "-fsigned-char"
168 - local myeconfargs=(
169 - --sysconfdir="${EPREFIX}"/etc/iwd --localstatedir="${EPREFIX}"/var
170 - $(use_enable client)
171 - $(use_enable monitor)
172 - $(use_enable ofono)
173 - $(use_enable wired)
174 - --enable-systemd-service
175 - --with-systemd-unitdir="$(systemd_get_systemunitdir)"
176 - --with-systemd-modloaddir="${EPREFIX}/usr/lib/modules-load.d"
177 - --with-systemd-networkdir="$(systemd_get_utildir)/network"
178 - )
179 - [[ ${PV} == *9999* ]] || myeconfargs+=(--enable-external-ell)
180 - econf "${myeconfargs[@]}"
181 -}
182 -
183 -src_compile() {
184 - emake ${MYRST2MAN}
185 -}
186 -
187 -src_install() {
188 - emake DESTDIR="${D}" ${MYRST2MAN} install
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 -}