Gentoo Archives: gentoo-commits

From: Matt Thode <prometheanfire@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-emulation/cloud-init/
Date: Tue, 13 Feb 2018 19:28:23
Message-Id: 1518550088.12780a103c8965a21ec93527e1fd797756821e42.prometheanfire@gentoo
1 commit: 12780a103c8965a21ec93527e1fd797756821e42
2 Author: Matthew Thode <prometheanfire <AT> gentoo <DOT> org>
3 AuthorDate: Tue Feb 13 19:17:43 2018 +0000
4 Commit: Matt Thode <prometheanfire <AT> gentoo <DOT> org>
5 CommitDate: Tue Feb 13 19:28:08 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=12780a10
7
8 app-emulation/cloud-init: 17.2 bup
9
10 Package-Manager: Portage-2.3.19, Repoman-2.3.6
11
12 app-emulation/cloud-init/Manifest | 1 +
13 app-emulation/cloud-init/cloud-init-17.2.ebuild | 80 +++++++++++++++++++++++++
14 2 files changed, 81 insertions(+)
15
16 diff --git a/app-emulation/cloud-init/Manifest b/app-emulation/cloud-init/Manifest
17 index a1db0042fee..62e79395b58 100644
18 --- a/app-emulation/cloud-init/Manifest
19 +++ b/app-emulation/cloud-init/Manifest
20 @@ -4,3 +4,4 @@ DIST cloud-init-0.7.7.tar.gz 477287 BLAKE2B eade80cff35e545a619f7d0beafadde14577
21 DIST cloud-init-0.7.8.tar.gz 508777 BLAKE2B 7b5b3f1b5f28b6a4ba67ef30cbbb32e1a1eb21a373da5491a7157f45553843de68b56e040ec9f07a2ca35a0bbf9fdd5f90d0ef381d2da558422080de3da0299d SHA512 ff6c3837afe702359879f0ae1d7443247b0ed97d60ecf0cbe85fc364dc833e553962aae221f48becb104ad3f951a28cbd742a3b8521ef25dfb8fd19439759447
22 DIST cloud-init-0.7.9.tar.gz 602188 BLAKE2B c2e2b8538488474cd4674b976f859164f0ab8ed585fc0b59c6e75f23a62fd035b8b76e0700c1e68893fc4a8346b3110ff2b25f13be92ff13eeac0f1ad2405641 SHA512 ee52909f634f51dcf9e1229a8f49faa8c562bf05b69fac108fcc80cb3217f4364a33cf696df015e4dcd7887c68cf6108729850648b4daee07b3d3247ca3cc5b1
23 DIST cloud-init-17.1.tar.gz 780532 BLAKE2B 10809da2e81d594542d83b2416481c493474cac2e790da25363e631f6dae9edc1e2fd160708121486dd3a2ebd19cfc29d18978cbe7d82eb1aec907762bf7bf0b SHA512 988cae4291c8d6a5bce012b78d651c602c02ad38c3790e9ed9aa7c815ae84c98767718ab9b0d346ddbc9c83cb886d455590128af750183618c0bf0f0c5a79564
24 +DIST cloud-init-17.2.tar.gz 810821 BLAKE2B df1a7c1ed1fc48a7801a53bd89839d963debca6abf7f892d61bf7ec9222ab33bf78221e65d79028e0445cac4c5fe1e0c1620d49aea26c036ee17933d9c1893f5 SHA512 ad1c7f6ca9762b70a1f06a6b538032a7de0c5371fd792260d5959df113f4f51509d184b2207ffa23b41f395c1903d551d66aaf2a2ad60af3594cf1f18d1e4a38
25
26 diff --git a/app-emulation/cloud-init/cloud-init-17.2.ebuild b/app-emulation/cloud-init/cloud-init-17.2.ebuild
27 new file mode 100644
28 index 00000000000..d5d1c2d9d37
29 --- /dev/null
30 +++ b/app-emulation/cloud-init/cloud-init-17.2.ebuild
31 @@ -0,0 +1,80 @@
32 +# Copyright 1999-2018 Gentoo Foundation
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=6
36 +PYTHON_COMPAT=( python2_7 python3_4 python3_5 python3_6 )
37 +
38 +inherit distutils-r1 eutils multilib systemd
39 +
40 +DESCRIPTION="cloud initialisation magic"
41 +HOMEPAGE="https://launchpad.net/cloud-init"
42 +SRC_URI="https://launchpad.net/${PN}/trunk/${PV}/+download/${P}.tar.gz"
43 +
44 +LICENSE="GPL-3"
45 +SLOT="0"
46 +KEYWORDS="~amd64 ~x86"
47 +IUSE="test"
48 +RESTRICT="test"
49 +
50 +# remove pretytable in 17.2
51 +CDEPEND="
52 + dev-python/jinja[${PYTHON_USEDEP}]
53 + dev-python/oauthlib[${PYTHON_USEDEP}]
54 + dev-python/pyserial[${PYTHON_USEDEP}]
55 + >=dev-python/configobj-5.0.2[${PYTHON_USEDEP}]
56 + dev-python/pyyaml[${PYTHON_USEDEP}]
57 + dev-python/requests[${PYTHON_USEDEP}]
58 + dev-python/jsonpatch[${PYTHON_USEDEP}]
59 + dev-python/jsonschema[${PYTHON_USEDEP}]
60 + dev-python/six[${PYTHON_USEDEP}]
61 +"
62 +DEPEND="
63 + dev-python/setuptools[${PYTHON_USEDEP}]
64 + test? (
65 + ${CDEPEND}
66 + >=dev-python/httpretty-0.7.1[${PYTHON_USEDEP}]
67 + dev-python/mock[${PYTHON_USEDEP}]
68 + dev-python/nose[${PYTHON_USEDEP}]
69 + dev-python/unittest2[${PYTHON_USEDEP}]
70 + dev-python/coverage[${PYTHON_USEDEP}]
71 + dev-python/contextlib2[${PYTHON_USEDEP}]
72 + )
73 +"
74 +RDEPEND="
75 + ${CDEPEND}
76 + net-analyzer/macchanger
77 + sys-apps/iproute2
78 + sys-fs/growpart
79 + virtual/logger
80 +"
81 +
82 +PATCHES=( )
83 +
84 +python_test() {
85 + emake test
86 +}
87 +
88 +python_install() {
89 + distutils-r1_python_install "--init-system=sysvinit_openrc,systemd"
90 +}
91 +
92 +python_install_all() {
93 + keepdir /etc/cloud
94 +
95 + distutils-r1_python_install_all
96 +
97 + # installs as non-executable
98 + chmod +x "${D}"/etc/init.d/*
99 +
100 + insinto /etc/cloud/templates
101 + doins "${FILESDIR}/hosts.gentoo.tmpl"
102 + insinto /etc/cloud
103 + doins "${FILESDIR}/cloud.cfg"
104 +}
105 +
106 +pkg_postinst() {
107 + elog "cloud-init-local needs to be run in the boot runlevel because it"
108 + elog "modifies services in the default runlevel. When a runlevel is started"
109 + elog "it is cached, so modifications that happen to the current runlevel"
110 + elog "while you are in it are not acted upon."
111 +}