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, 24 Oct 2017 15:28:08
Message-Id: 1508858866.6e0bbc38b68700af2b13b32edc067d5c565bcf30.prometheanfire@gentoo
1 commit: 6e0bbc38b68700af2b13b32edc067d5c565bcf30
2 Author: Matthew Thode <prometheanfire <AT> gentoo <DOT> org>
3 AuthorDate: Tue Oct 24 15:27:28 2017 +0000
4 Commit: Matt Thode <prometheanfire <AT> gentoo <DOT> org>
5 CommitDate: Tue Oct 24 15:27:46 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6e0bbc38
7
8 app-emulation/cloud-init: 17.1 bup
9
10 Package-Manager: Portage-2.3.8, Repoman-2.3.3
11
12 app-emulation/cloud-init/Manifest | 1 +
13 app-emulation/cloud-init/cloud-init-17.1.ebuild | 83 +++++++++++++++++++++++++
14 app-emulation/cloud-init/metadata.xml | 24 +++----
15 3 files changed, 96 insertions(+), 12 deletions(-)
16
17 diff --git a/app-emulation/cloud-init/Manifest b/app-emulation/cloud-init/Manifest
18 index 37637ecd997..a7aca5062f6 100644
19 --- a/app-emulation/cloud-init/Manifest
20 +++ b/app-emulation/cloud-init/Manifest
21 @@ -3,3 +3,4 @@ DIST cloud-init-0.7.6_p1212.tar.gz 451717 SHA256 d213ee72a62cef5ef63369737a52c0c
22 DIST cloud-init-0.7.7.tar.gz 477287 SHA256 d7b75e314ecdb99619014f21f3b622294a6c3bde248887dfb5e9cedb927ad0b0 SHA512 06cd2bba67da9668204416073af771145668db43777d6f183dcb54e8e1d9d12471fe3bfc99dfbc03a81814c5614347ff7d6acc5dbe117e1206d7fc2041ae4b62 WHIRLPOOL 9fccfba02aacc138dc62a6be9547fa1e5bd6959a96eef9b7f6f1ac86112049b36751882d954ac0e8d7aa5bf9580c5e27ec9abfdc2ef542628af448c00c468a09
23 DIST cloud-init-0.7.8.tar.gz 508777 SHA256 4a4f1f7fb9dd0987a02aa7cd6f609910294fce8f9724dcebc0cd88630b4f1fd6 SHA512 ff6c3837afe702359879f0ae1d7443247b0ed97d60ecf0cbe85fc364dc833e553962aae221f48becb104ad3f951a28cbd742a3b8521ef25dfb8fd19439759447 WHIRLPOOL 1881cc41ee85e69cf5169115c7449ff581f927def51aaf3df986b8e8c29baeace658bb24bc5b98fd6eab6fdb5f05ab4555ba4081b7758402089a35fe20595876
24 DIST cloud-init-0.7.9.tar.gz 602188 SHA256 76edb80bf1bdbda68f8014bc057a303ae438a139bdf394e825e548d6ae39d472 SHA512 ee52909f634f51dcf9e1229a8f49faa8c562bf05b69fac108fcc80cb3217f4364a33cf696df015e4dcd7887c68cf6108729850648b4daee07b3d3247ca3cc5b1 WHIRLPOOL 02093161cd3c6930b868ed18ca2e649ebbfac57b4ba3e8dcf4cb3107775cf052c739a0aee40ac79c69511efe5b3dfe60cbc2d55d9bbad74512cdf3a31fb77261
25 +DIST cloud-init-17.1.tar.gz 780532 SHA256 80f3bf5e8f57b67ac599aba2856568aeb30bd25187c7a363bed157a1e4d63e01 SHA512 988cae4291c8d6a5bce012b78d651c602c02ad38c3790e9ed9aa7c815ae84c98767718ab9b0d346ddbc9c83cb886d455590128af750183618c0bf0f0c5a79564 WHIRLPOOL 13a62d556a0d96bb81ccf0daa7dc4f4527aa9d3380e542b9d5cf00efc1f18c57ecb23aedf88ceb7a85ba04e11b8addd2f779e88f53a2a971a9e95e8a1b457938
26
27 diff --git a/app-emulation/cloud-init/cloud-init-17.1.ebuild b/app-emulation/cloud-init/cloud-init-17.1.ebuild
28 new file mode 100644
29 index 00000000000..e42af05c2a4
30 --- /dev/null
31 +++ b/app-emulation/cloud-init/cloud-init-17.1.ebuild
32 @@ -0,0 +1,83 @@
33 +# Copyright 1999-2017 Gentoo Foundation
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=6
37 +PYTHON_COMPAT=( python2_7 python3_4 python3_5 python3_6 )
38 +
39 +inherit distutils-r1 eutils multilib systemd
40 +
41 +DESCRIPTION="cloud initialisation magic"
42 +HOMEPAGE="https://launchpad.net/cloud-init"
43 +SRC_URI="https://launchpad.net/${PN}/trunk/${PV}/+download/${P}.tar.gz"
44 +
45 +LICENSE="GPL-3"
46 +SLOT="0"
47 +KEYWORDS="~amd64 ~x86"
48 +IUSE="test"
49 +
50 +CDEPEND="
51 + dev-python/jinja[${PYTHON_USEDEP}]
52 + dev-python/oauthlib[${PYTHON_USEDEP}]
53 + dev-python/pyserial[${PYTHON_USEDEP}]
54 + >=dev-python/configobj-5.0.2[${PYTHON_USEDEP}]
55 + dev-python/pyyaml[${PYTHON_USEDEP}]
56 + dev-python/requests[${PYTHON_USEDEP}]
57 + dev-python/jsonpatch[${PYTHON_USEDEP}]
58 + dev-python/jsonschema[${PYTHON_USEDEP}]
59 + dev-python/six[${PYTHON_USEDEP}]
60 +"
61 +# dev-python/prettytable[${PYTHON_USEDEP}]
62 +# dev-python/cheetah[$(python_gen_usedep 'python2_7')]
63 +DEPEND="
64 + dev-python/setuptools[${PYTHON_USEDEP}]
65 + test? (
66 + ${CDEPEND}
67 + >=dev-python/httpretty-0.7.1[${PYTHON_USEDEP}]
68 + dev-python/mock[${PYTHON_USEDEP}]
69 + dev-python/nose[${PYTHON_USEDEP}]
70 + dev-python/unittest2[${PYTHON_USEDEP}]
71 + dev-python/coverage[${PYTHON_USEDEP}]
72 + dev-python/contextlib2[${PYTHON_USEDEP}]
73 + )
74 +"
75 +# dev-python/pep8[${PYTHON_USEDEP}]
76 +# dev-python/flake8[${PYTHON_USEDEP}]
77 +# dev-python/hacking[${PYTHON_USEDEP}]
78 +RDEPEND="
79 + ${CDEPEND}
80 + net-analyzer/macchanger
81 + sys-apps/iproute2
82 + sys-fs/growpart
83 + virtual/logger
84 +"
85 +
86 +PATCHES=( )
87 +
88 +python_test() {
89 + emake test
90 +}
91 +
92 +python_install() {
93 + distutils-r1_python_install "--init-system=sysvinit_openrc,systemd"
94 +}
95 +
96 +python_install_all() {
97 + keepdir /etc/cloud
98 +
99 + distutils-r1_python_install_all
100 +
101 + # installs as non-executable
102 + chmod +x "${D}"/etc/init.d/*
103 +
104 + insinto /etc/cloud/templates
105 + doins "${FILESDIR}/hosts.gentoo.tmpl"
106 + insinto /etc/cloud
107 + doins "${FILESDIR}/cloud.cfg"
108 +}
109 +
110 +pkg_postinst() {
111 + elog "cloud-init-local needs to be run in the boot runlevel because it"
112 + elog "modifies services in the default runlevel. When a runlevel is started"
113 + elog "it is cached, so modifications that happen to the current runlevel"
114 + elog "while you are in it are not acted upon."
115 +}
116
117 diff --git a/app-emulation/cloud-init/metadata.xml b/app-emulation/cloud-init/metadata.xml
118 index 246445d7479..7ed5f6002ad 100644
119 --- a/app-emulation/cloud-init/metadata.xml
120 +++ b/app-emulation/cloud-init/metadata.xml
121 @@ -1,18 +1,18 @@
122 <?xml version="1.0" encoding="UTF-8"?>
123 <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
124 <pkgmetadata>
125 - <maintainer type="person">
126 - <email>prometheanfire@g.o</email>
127 - <name>Matthew Thode</name>
128 - </maintainer>
129 - <maintainer type="person">
130 - <email>alunduil@g.o</email>
131 - <name>Alex Brandt</name>
132 - </maintainer>
133 - <longdescription lang="en">
134 + <maintainer type="person">
135 + <email>prometheanfire@g.o</email>
136 + <name>Matthew Thode</name>
137 + </maintainer>
138 + <maintainer type="person">
139 + <email>alunduil@g.o</email>
140 + <name>Alex Brandt</name>
141 + </maintainer>
142 + <longdescription lang="en">
143 Package provides configuration and customization of cloud instance.
144 </longdescription>
145 - <upstream>
146 - <remote-id type="launchpad">cloud-init</remote-id>
147 - </upstream>
148 + <upstream>
149 + <remote-id type="launchpad">cloud-init</remote-id>
150 + </upstream>
151 </pkgmetadata>