1 |
commit: 58a86ca18609bc67bfddc39d51f5744737605c71 |
2 |
Author: Matthew Thode <prometheanfire <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Jul 1 02:10:52 2022 +0000 |
4 |
Commit: Matthew Thode <prometheanfire <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Jul 1 02:10:52 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=58a86ca1 |
7 |
|
8 |
app-emulation/cloud-init: cleanup |
9 |
|
10 |
Package-Manager: Portage-3.0.30, Repoman-3.0.3 |
11 |
Signed-off-by: Matthew Thode <prometheanfire <AT> gentoo.org> |
12 |
|
13 |
app-emulation/cloud-init/Manifest | 4 - |
14 |
app-emulation/cloud-init/cloud-init-20.4.ebuild | 93 --------------------- |
15 |
app-emulation/cloud-init/cloud-init-21.2.ebuild | 93 --------------------- |
16 |
app-emulation/cloud-init/cloud-init-22.1-r1.ebuild | 88 -------------------- |
17 |
app-emulation/cloud-init/cloud-init-22.2-r1.ebuild | 94 ---------------------- |
18 |
app-emulation/cloud-init/cloud-init-22.2.ebuild | 83 ------------------- |
19 |
6 files changed, 455 deletions(-) |
20 |
|
21 |
diff --git a/app-emulation/cloud-init/Manifest b/app-emulation/cloud-init/Manifest |
22 |
index 6d04e1bfaced..683f977d1154 100644 |
23 |
--- a/app-emulation/cloud-init/Manifest |
24 |
+++ b/app-emulation/cloud-init/Manifest |
25 |
@@ -1,5 +1 @@ |
26 |
-DIST cloud-init-20.4.tar.gz 1228898 BLAKE2B c5697af31e7219a060a82732fbae2e89dd00786e5b0feb638f1f64f6ce861df041ef687a6095cc3bdb5478f4f4c1504286155808102aea9cae853caa97d4ba1b SHA512 da2fa4673b253468380c4472795fd449809c8ac84d8f13ec1472b9b7e7d54e187ae06e5a81a36774793b05f4e1212dca57bc19aa8955b4c7fa7183cb100bfbb9 |
27 |
-DIST cloud-init-21.2.tar.gz 1278878 BLAKE2B 74e07649a24fc85df54aafcd72797a05f0bdbcceb90fe90c6af7024da09e876780b67bb1d7963cd164d03e3151715944b1f3fd5709d3557ac341a09061409fcc SHA512 8cc24945efc6f16b3c64411c5e7e5b83582d337f1c3f546163d52c14a6177ff752e91ba1fec04b7ade800f921c2b79c04d032df62c2b4171930ca1fb74c49a7d |
28 |
-DIST cloud-init-22.1.tar.gz 1313034 BLAKE2B ca55378db822cdf58808de1bd2b519861c50ad8b08ed699212827833e0134fdc0968b76a4c2a13f39eae1d20ef8b22a99ff99b85ef77e496fd41593f4e2f2d55 SHA512 485e358777379a22dd2b0f6aa7afb1751eb44831c6e03ecbbd9c6823eaa20535e6e83fc245818ce1bb207425976839b356dadcfa3cfe62385b9d340b08ff21ab |
29 |
DIST cloud-init-22.2.2.tar.gz 1349451 BLAKE2B fdb6669e9762984614fefe787834f20f056345d304327679fa8bc7b4d6566509a23ecc4a7ac4e6368b9b9078a72fe6fe35533a67e7aeb0c0accbf5ad014f8aae SHA512 18b75ebbb5e808e19df5ceddb6402cc881c33443fb169f736f54837254ba43836994f2392a26febbd8df3342b3467ee72759b6942cfeb96d07c0e452c11dd0bf |
30 |
-DIST cloud-init-22.2.tar.gz 1348736 BLAKE2B ae95bf04a0229ed0c7bbf6dc6889793eb020ffe6e6223b02f4003b3f38253781a1ed22a41f535b5064a8ba4bde20b197d58eb5d55789d4decd9b39aabd46d1c3 SHA512 07fec2f1d6eab20a1161672bb339a0c6b2826540bcb03936f95458b179fcb1b3142773c9a4038fe02b30bb05a5ca48a4153b6b0f59015b43bd6c6602832f9d6f |
31 |
|
32 |
diff --git a/app-emulation/cloud-init/cloud-init-20.4.ebuild b/app-emulation/cloud-init/cloud-init-20.4.ebuild |
33 |
deleted file mode 100644 |
34 |
index 31a7326ac086..000000000000 |
35 |
--- a/app-emulation/cloud-init/cloud-init-20.4.ebuild |
36 |
+++ /dev/null |
37 |
@@ -1,93 +0,0 @@ |
38 |
-# Copyright 1999-2022 Gentoo Authors |
39 |
-# Distributed under the terms of the GNU General Public License v2 |
40 |
- |
41 |
-EAPI=7 |
42 |
-PYTHON_COMPAT=( python3_{7,8} ) |
43 |
-DISTUTILS_USE_SETUPTOOLS=rdepend |
44 |
- |
45 |
-inherit distutils-r1 |
46 |
- |
47 |
-if [[ ${PV} == *9999 ]];then |
48 |
- inherit git-r3 |
49 |
- EGIT_REPO_URI="https://git.launchpad.net/cloud-init" |
50 |
-else |
51 |
- SRC_URI="https://launchpad.net/${PN}/trunk/${PV}/+download/${P}.tar.gz" |
52 |
- KEYWORDS="~amd64 ~arm64 ~x86" |
53 |
-fi |
54 |
- |
55 |
-DESCRIPTION="Cloud instance initialisation magic" |
56 |
-HOMEPAGE="https://launchpad.net/cloud-init" |
57 |
- |
58 |
-LICENSE="GPL-3" |
59 |
-SLOT="0" |
60 |
-IUSE="test" |
61 |
-RESTRICT="!test? ( test )" |
62 |
- |
63 |
-CDEPEND=" |
64 |
- dev-python/jinja[${PYTHON_USEDEP}] |
65 |
- dev-python/oauthlib[${PYTHON_USEDEP}] |
66 |
- dev-python/pyserial[${PYTHON_USEDEP}] |
67 |
- >=dev-python/configobj-5.0.2[${PYTHON_USEDEP}] |
68 |
- dev-python/pyyaml[${PYTHON_USEDEP}] |
69 |
- dev-python/requests[${PYTHON_USEDEP}] |
70 |
- dev-python/jsonpatch[${PYTHON_USEDEP}] |
71 |
- dev-python/jsonschema[${PYTHON_USEDEP}] |
72 |
-" |
73 |
-DEPEND=" |
74 |
- test? ( |
75 |
- ${CDEPEND} |
76 |
- >=dev-python/httpretty-0.7.1[${PYTHON_USEDEP}] |
77 |
- dev-python/mock[${PYTHON_USEDEP}] |
78 |
- dev-python/pytest[${PYTHON_USEDEP}] |
79 |
- dev-python/coverage[${PYTHON_USEDEP}] |
80 |
- ) |
81 |
-" |
82 |
-RDEPEND=" |
83 |
- ${CDEPEND} |
84 |
- net-analyzer/macchanger |
85 |
- sys-apps/iproute2 |
86 |
- sys-fs/growpart |
87 |
- virtual/logger |
88 |
-" |
89 |
- |
90 |
-PATCHES=( |
91 |
- # Fix Gentoo support |
92 |
- # https://code.launchpad.net/~gilles-dartiguelongue/cloud-init/+git/cloud-init/+merge/358777 |
93 |
- "${FILESDIR}/${PN}-18.4-fix-packages-module.patch" |
94 |
- "${FILESDIR}/${PN}-20.4-gentoo-support-upstream-templates.patch" |
95 |
- "${FILESDIR}"/18.4-fix-filename-for-storing-locale.patch |
96 |
- "${FILESDIR}"/18.4-fix-update_package_sources-function.patch |
97 |
- "${FILESDIR}"/18.4-add-support-for-package_upgrade.patch |
98 |
-) |
99 |
- |
100 |
-python_prepare_all() { |
101 |
- # Fix location of documentation installation |
102 |
- sed -i "s:USR + '/share/doc/cloud-init:USR + '/share/doc/${PF}:" setup.py || die |
103 |
- sed -i 's/version=get_version(),/version=9999,/g' setup.py || die |
104 |
- distutils-r1_python_prepare_all |
105 |
-} |
106 |
- |
107 |
-python_test() { |
108 |
- # Do not use Makefile target as it does not setup environment correctly |
109 |
- esetup.py pytest -v cloudinit/ tests/unittests || die |
110 |
-} |
111 |
- |
112 |
-python_install() { |
113 |
- distutils-r1_python_install --init-system=sysvinit_openrc,systemd --distro gentoo |
114 |
-} |
115 |
- |
116 |
-python_install_all() { |
117 |
- keepdir /etc/cloud |
118 |
- |
119 |
- distutils-r1_python_install_all |
120 |
- |
121 |
- # installs as non-executable |
122 |
- chmod +x "${D}"/etc/init.d/* |
123 |
-} |
124 |
- |
125 |
-pkg_postinst() { |
126 |
- elog "cloud-init-local needs to be run in the boot runlevel because it" |
127 |
- elog "modifies services in the default runlevel. When a runlevel is started" |
128 |
- elog "it is cached, so modifications that happen to the current runlevel" |
129 |
- elog "while you are in it are not acted upon." |
130 |
-} |
131 |
|
132 |
diff --git a/app-emulation/cloud-init/cloud-init-21.2.ebuild b/app-emulation/cloud-init/cloud-init-21.2.ebuild |
133 |
deleted file mode 100644 |
134 |
index f99af619353e..000000000000 |
135 |
--- a/app-emulation/cloud-init/cloud-init-21.2.ebuild |
136 |
+++ /dev/null |
137 |
@@ -1,93 +0,0 @@ |
138 |
-# Copyright 1999-2022 Gentoo Authors |
139 |
-# Distributed under the terms of the GNU General Public License v2 |
140 |
- |
141 |
-EAPI=7 |
142 |
-PYTHON_COMPAT=( python3_7 python3_8 python3_9 ) |
143 |
-DISTUTILS_USE_SETUPTOOLS=rdepend |
144 |
- |
145 |
-inherit distutils-r1 |
146 |
- |
147 |
-if [[ ${PV} == *9999 ]];then |
148 |
- inherit git-r3 |
149 |
- EGIT_REPO_URI="https://git.launchpad.net/cloud-init" |
150 |
-else |
151 |
- SRC_URI="https://launchpad.net/${PN}/trunk/${PV}/+download/${P}.tar.gz" |
152 |
- KEYWORDS="amd64 ~arm64 x86" |
153 |
-fi |
154 |
- |
155 |
-DESCRIPTION="Cloud instance initialisation magic" |
156 |
-HOMEPAGE="https://launchpad.net/cloud-init" |
157 |
- |
158 |
-LICENSE="GPL-3" |
159 |
-SLOT="0" |
160 |
-IUSE="test" |
161 |
-RESTRICT="!test? ( test )" |
162 |
- |
163 |
-CDEPEND=" |
164 |
- dev-python/jinja[${PYTHON_USEDEP}] |
165 |
- dev-python/oauthlib[${PYTHON_USEDEP}] |
166 |
- dev-python/pyserial[${PYTHON_USEDEP}] |
167 |
- >=dev-python/configobj-5.0.2[${PYTHON_USEDEP}] |
168 |
- dev-python/pyyaml[${PYTHON_USEDEP}] |
169 |
- dev-python/requests[${PYTHON_USEDEP}] |
170 |
- dev-python/jsonpatch[${PYTHON_USEDEP}] |
171 |
- dev-python/jsonschema[${PYTHON_USEDEP}] |
172 |
-" |
173 |
-DEPEND=" |
174 |
- ${CDEPEND} |
175 |
- test? ( |
176 |
- >=dev-python/httpretty-0.7.1[${PYTHON_USEDEP}] |
177 |
- dev-python/mock[${PYTHON_USEDEP}] |
178 |
- dev-python/pytest[${PYTHON_USEDEP}] |
179 |
- dev-python/coverage[${PYTHON_USEDEP}] |
180 |
- ) |
181 |
-" |
182 |
-RDEPEND=" |
183 |
- ${CDEPEND} |
184 |
- net-analyzer/macchanger |
185 |
- sys-apps/iproute2 |
186 |
- sys-fs/growpart |
187 |
- virtual/logger |
188 |
-" |
189 |
- |
190 |
-PATCHES=( |
191 |
- # Fix Gentoo support |
192 |
- # https://code.launchpad.net/~gilles-dartiguelongue/cloud-init/+git/cloud-init/+merge/358777 |
193 |
- "${FILESDIR}/${PN}-18.4-fix-packages-module.patch" |
194 |
- "${FILESDIR}/${PN}-21.2-gentoo-support-upstream-templates.patch" |
195 |
- "${FILESDIR}"/18.4-fix-filename-for-storing-locale.patch |
196 |
- "${FILESDIR}"/18.4-fix-update_package_sources-function.patch |
197 |
- "${FILESDIR}"/18.4-add-support-for-package_upgrade.patch |
198 |
-) |
199 |
- |
200 |
-python_prepare_all() { |
201 |
- # Fix location of documentation installation |
202 |
- sed -i "s:USR + '/share/doc/cloud-init:USR + '/share/doc/${PF}:" setup.py || die |
203 |
- sed -i 's/version=get_version(),/version=9999,/g' setup.py || die |
204 |
- distutils-r1_python_prepare_all |
205 |
-} |
206 |
- |
207 |
-python_test() { |
208 |
- # Do not use Makefile target as it does not setup environment correctly |
209 |
- esetup.py pytest -v cloudinit tests/unittests || die |
210 |
-} |
211 |
- |
212 |
-python_install() { |
213 |
- distutils-r1_python_install --init-system=sysvinit_openrc,systemd --distro gentoo |
214 |
-} |
215 |
- |
216 |
-python_install_all() { |
217 |
- keepdir /etc/cloud |
218 |
- |
219 |
- distutils-r1_python_install_all |
220 |
- |
221 |
- # installs as non-executable |
222 |
- chmod +x "${D}"/etc/init.d/* |
223 |
-} |
224 |
- |
225 |
-pkg_postinst() { |
226 |
- elog "cloud-init-local needs to be run in the boot runlevel because it" |
227 |
- elog "modifies services in the default runlevel. When a runlevel is started" |
228 |
- elog "it is cached, so modifications that happen to the current runlevel" |
229 |
- elog "while you are in it are not acted upon." |
230 |
-} |
231 |
|
232 |
diff --git a/app-emulation/cloud-init/cloud-init-22.1-r1.ebuild b/app-emulation/cloud-init/cloud-init-22.1-r1.ebuild |
233 |
deleted file mode 100644 |
234 |
index 667839f99352..000000000000 |
235 |
--- a/app-emulation/cloud-init/cloud-init-22.1-r1.ebuild |
236 |
+++ /dev/null |
237 |
@@ -1,88 +0,0 @@ |
238 |
-# Copyright 1999-2022 Gentoo Authors |
239 |
-# Distributed under the terms of the GNU General Public License v2 |
240 |
- |
241 |
-EAPI=8 |
242 |
- |
243 |
-DISTUTILS_USE_PEP517=setuptools |
244 |
-PYTHON_COMPAT=( python3_{8..10} ) |
245 |
- |
246 |
-inherit distutils-r1 |
247 |
- |
248 |
-if [[ ${PV} == *9999 ]];then |
249 |
- inherit git-r3 |
250 |
- EGIT_REPO_URI="https://git.launchpad.net/cloud-init" |
251 |
-else |
252 |
- SRC_URI="https://launchpad.net/${PN}/trunk/${PV}/+download/${P}.tar.gz" |
253 |
- KEYWORDS="~amd64 ~arm64 ~x86" |
254 |
-fi |
255 |
- |
256 |
-DESCRIPTION="Cloud instance initialisation magic" |
257 |
-HOMEPAGE="https://launchpad.net/cloud-init" |
258 |
- |
259 |
-LICENSE="GPL-3" |
260 |
-SLOT="0" |
261 |
-IUSE="test" |
262 |
-RESTRICT="!test? ( test )" |
263 |
- |
264 |
-CDEPEND=" |
265 |
- dev-python/jinja[${PYTHON_USEDEP}] |
266 |
- dev-python/oauthlib[${PYTHON_USEDEP}] |
267 |
- dev-python/pyserial[${PYTHON_USEDEP}] |
268 |
- >=dev-python/configobj-5.0.2[${PYTHON_USEDEP}] |
269 |
- dev-python/pyyaml[${PYTHON_USEDEP}] |
270 |
- dev-python/requests[${PYTHON_USEDEP}] |
271 |
- dev-python/jsonpatch[${PYTHON_USEDEP}] |
272 |
- dev-python/jsonschema[${PYTHON_USEDEP}] |
273 |
- dev-python/netifaces[${PYTHON_USEDEP}] |
274 |
-" |
275 |
-BDEPEND=" |
276 |
- ${CDEPEND} |
277 |
- test? ( |
278 |
- >=dev-python/httpretty-0.7.1[${PYTHON_USEDEP}] |
279 |
- dev-python/mock[${PYTHON_USEDEP}] |
280 |
- dev-python/coverage[${PYTHON_USEDEP}] |
281 |
- ) |
282 |
-" |
283 |
-RDEPEND=" |
284 |
- ${CDEPEND} |
285 |
- net-analyzer/macchanger |
286 |
- sys-apps/iproute2 |
287 |
- sys-fs/growpart |
288 |
- virtual/logger |
289 |
-" |
290 |
- |
291 |
-PATCHES=( |
292 |
- # Fix Gentoo support |
293 |
- # https://code.launchpad.net/~gilles-dartiguelongue/cloud-init/+git/cloud-init/+merge/358777 |
294 |
- "${FILESDIR}"/22.1-fix-update_package_sources-function.patch |
295 |
- "${FILESDIR}"/22.1-add-support-for-package_upgrade.patch |
296 |
-) |
297 |
- |
298 |
-distutils_enable_tests pytest |
299 |
- |
300 |
-python_prepare_all() { |
301 |
- # Fix location of documentation installation |
302 |
- sed -i "s:USR + '/share/doc/cloud-init:USR + '/share/doc/${PF}:" setup.py || die |
303 |
- sed -i 's/version=get_version(),/version=9999,/g' setup.py || die |
304 |
- distutils-r1_python_prepare_all |
305 |
-} |
306 |
- |
307 |
-python_install() { |
308 |
- distutils-r1_python_install --init-system=sysvinit_openrc,systemd --distro gentoo |
309 |
-} |
310 |
- |
311 |
-python_install_all() { |
312 |
- keepdir /etc/cloud |
313 |
- |
314 |
- distutils-r1_python_install_all |
315 |
- |
316 |
- # installs as non-executable |
317 |
- chmod +x "${D}"/etc/init.d/* |
318 |
-} |
319 |
- |
320 |
-pkg_postinst() { |
321 |
- elog "cloud-init-local needs to be run in the boot runlevel because it" |
322 |
- elog "modifies services in the default runlevel. When a runlevel is started" |
323 |
- elog "it is cached, so modifications that happen to the current runlevel" |
324 |
- elog "while you are in it are not acted upon." |
325 |
-} |
326 |
|
327 |
diff --git a/app-emulation/cloud-init/cloud-init-22.2-r1.ebuild b/app-emulation/cloud-init/cloud-init-22.2-r1.ebuild |
328 |
deleted file mode 100644 |
329 |
index 082f34e59987..000000000000 |
330 |
--- a/app-emulation/cloud-init/cloud-init-22.2-r1.ebuild |
331 |
+++ /dev/null |
332 |
@@ -1,94 +0,0 @@ |
333 |
-# Copyright 1999-2022 Gentoo Authors |
334 |
-# Distributed under the terms of the GNU General Public License v2 |
335 |
- |
336 |
-EAPI=8 |
337 |
- |
338 |
-# Disabled for now: bug #850628 |
339 |
-# https://bugs.launchpad.net/cloud-init/+bug/1978328 |
340 |
-#DISTUTILS_USE_PEP517=setuptools |
341 |
-PYTHON_COMPAT=( python3_{8..10} ) |
342 |
- |
343 |
-inherit distutils-r1 udev |
344 |
- |
345 |
-if [[ ${PV} == *9999 ]]; then |
346 |
- inherit git-r3 |
347 |
- EGIT_REPO_URI="https://git.launchpad.net/cloud-init" |
348 |
-else |
349 |
- SRC_URI="https://launchpad.net/${PN}/trunk/${PV}/+download/${P}.tar.gz" |
350 |
- KEYWORDS="amd64 arm64 ppc64 x86" |
351 |
-fi |
352 |
- |
353 |
-DESCRIPTION="Cloud instance initialisation magic" |
354 |
-HOMEPAGE="https://launchpad.net/cloud-init" |
355 |
- |
356 |
-LICENSE="GPL-3" |
357 |
-SLOT="0" |
358 |
-IUSE="test" |
359 |
-RESTRICT="!test? ( test )" |
360 |
- |
361 |
-CDEPEND=" |
362 |
- dev-python/jinja[${PYTHON_USEDEP}] |
363 |
- dev-python/oauthlib[${PYTHON_USEDEP}] |
364 |
- dev-python/pyserial[${PYTHON_USEDEP}] |
365 |
- >=dev-python/configobj-5.0.2[${PYTHON_USEDEP}] |
366 |
- dev-python/pyyaml[${PYTHON_USEDEP}] |
367 |
- dev-python/requests[${PYTHON_USEDEP}] |
368 |
- dev-python/jsonpatch[${PYTHON_USEDEP}] |
369 |
- dev-python/jsonschema[${PYTHON_USEDEP}] |
370 |
- dev-python/netifaces[${PYTHON_USEDEP}] |
371 |
-" |
372 |
-BDEPEND=" |
373 |
- ${CDEPEND} |
374 |
- test? ( |
375 |
- >=dev-python/httpretty-0.7.1[${PYTHON_USEDEP}] |
376 |
- dev-python/mock[${PYTHON_USEDEP}] |
377 |
- dev-python/pytest-mock[${PYTHON_USEDEP}] |
378 |
- dev-python/responses[${PYTHON_USEDEP}] |
379 |
- dev-python/setuptools[${PYTHON_USEDEP}] |
380 |
- ) |
381 |
-" |
382 |
-RDEPEND=" |
383 |
- ${CDEPEND} |
384 |
- net-analyzer/macchanger |
385 |
- sys-apps/iproute2 |
386 |
- sys-fs/growpart |
387 |
- virtual/logger |
388 |
-" |
389 |
- |
390 |
-distutils_enable_tests pytest |
391 |
- |
392 |
-python_prepare_all() { |
393 |
- # Fix location of documentation installation |
394 |
- sed -i "s:USR + '/share/doc/cloud-init:USR + '/share/doc/${PF}:" setup.py || die |
395 |
- |
396 |
- if [[ ${PV} == *9999 ]] ; then |
397 |
- sed -i 's/version=get_version(),/version=9999,/g' setup.py || die |
398 |
- fi |
399 |
- distutils-r1_python_prepare_all |
400 |
-} |
401 |
- |
402 |
-python_install() { |
403 |
- distutils-r1_python_install --init-system=sysvinit_openrc,systemd --distro gentoo |
404 |
-} |
405 |
- |
406 |
-python_install_all() { |
407 |
- keepdir /etc/cloud |
408 |
- |
409 |
- distutils-r1_python_install_all |
410 |
- |
411 |
- # installs as non-executable |
412 |
- chmod +x "${D}"/etc/init.d/* || die |
413 |
-} |
414 |
- |
415 |
-pkg_prerm() { |
416 |
- udev_reload |
417 |
-} |
418 |
- |
419 |
-pkg_postinst() { |
420 |
- udev_reload |
421 |
- |
422 |
- elog "cloud-init-local needs to be run in the boot runlevel because it" |
423 |
- elog "modifies services in the default runlevel. When a runlevel is started" |
424 |
- elog "it is cached, so modifications that happen to the current runlevel" |
425 |
- elog "while you are in it are not acted upon." |
426 |
-} |
427 |
|
428 |
diff --git a/app-emulation/cloud-init/cloud-init-22.2.ebuild b/app-emulation/cloud-init/cloud-init-22.2.ebuild |
429 |
deleted file mode 100644 |
430 |
index 071baaffc9f0..000000000000 |
431 |
--- a/app-emulation/cloud-init/cloud-init-22.2.ebuild |
432 |
+++ /dev/null |
433 |
@@ -1,83 +0,0 @@ |
434 |
-# Copyright 1999-2022 Gentoo Authors |
435 |
-# Distributed under the terms of the GNU General Public License v2 |
436 |
- |
437 |
-EAPI=8 |
438 |
- |
439 |
-DISTUTILS_USE_PEP517=setuptools |
440 |
-PYTHON_COMPAT=( python3_{8..10} ) |
441 |
- |
442 |
-inherit distutils-r1 |
443 |
- |
444 |
-if [[ ${PV} == *9999 ]];then |
445 |
- inherit git-r3 |
446 |
- EGIT_REPO_URI="https://git.launchpad.net/cloud-init" |
447 |
-else |
448 |
- SRC_URI="https://launchpad.net/${PN}/trunk/${PV}/+download/${P}.tar.gz" |
449 |
- KEYWORDS="amd64 arm64 ppc64 x86" |
450 |
-fi |
451 |
- |
452 |
-DESCRIPTION="Cloud instance initialisation magic" |
453 |
-HOMEPAGE="https://launchpad.net/cloud-init" |
454 |
- |
455 |
-LICENSE="GPL-3" |
456 |
-SLOT="0" |
457 |
-IUSE="test" |
458 |
-RESTRICT="!test? ( test )" |
459 |
- |
460 |
-CDEPEND=" |
461 |
- dev-python/jinja[${PYTHON_USEDEP}] |
462 |
- dev-python/oauthlib[${PYTHON_USEDEP}] |
463 |
- dev-python/pyserial[${PYTHON_USEDEP}] |
464 |
- >=dev-python/configobj-5.0.2[${PYTHON_USEDEP}] |
465 |
- dev-python/pyyaml[${PYTHON_USEDEP}] |
466 |
- dev-python/requests[${PYTHON_USEDEP}] |
467 |
- dev-python/jsonpatch[${PYTHON_USEDEP}] |
468 |
- dev-python/jsonschema[${PYTHON_USEDEP}] |
469 |
- dev-python/netifaces[${PYTHON_USEDEP}] |
470 |
-" |
471 |
-BDEPEND=" |
472 |
- ${CDEPEND} |
473 |
- test? ( |
474 |
- >=dev-python/httpretty-0.7.1[${PYTHON_USEDEP}] |
475 |
- dev-python/mock[${PYTHON_USEDEP}] |
476 |
- dev-python/pytest-mock[${PYTHON_USEDEP}] |
477 |
- dev-python/responses[${PYTHON_USEDEP}] |
478 |
- dev-python/setuptools[${PYTHON_USEDEP}] |
479 |
- ) |
480 |
-" |
481 |
-RDEPEND=" |
482 |
- ${CDEPEND} |
483 |
- net-analyzer/macchanger |
484 |
- sys-apps/iproute2 |
485 |
- sys-fs/growpart |
486 |
- virtual/logger |
487 |
-" |
488 |
- |
489 |
-distutils_enable_tests pytest |
490 |
- |
491 |
-python_prepare_all() { |
492 |
- # Fix location of documentation installation |
493 |
- sed -i "s:USR + '/share/doc/cloud-init:USR + '/share/doc/${PF}:" setup.py || die |
494 |
- sed -i 's/version=get_version(),/version=9999,/g' setup.py || die |
495 |
- distutils-r1_python_prepare_all |
496 |
-} |
497 |
- |
498 |
-python_install() { |
499 |
- distutils-r1_python_install --init-system=sysvinit_openrc,systemd --distro gentoo |
500 |
-} |
501 |
- |
502 |
-python_install_all() { |
503 |
- keepdir /etc/cloud |
504 |
- |
505 |
- distutils-r1_python_install_all |
506 |
- |
507 |
- # installs as non-executable |
508 |
- chmod +x "${D}"/etc/init.d/* |
509 |
-} |
510 |
- |
511 |
-pkg_postinst() { |
512 |
- elog "cloud-init-local needs to be run in the boot runlevel because it" |
513 |
- elog "modifies services in the default runlevel. When a runlevel is started" |
514 |
- elog "it is cached, so modifications that happen to the current runlevel" |
515 |
- elog "while you are in it are not acted upon." |
516 |
-} |