1 |
commit: 85d88604737fdf165aa6521cbdcb5a3851c4e48b |
2 |
Author: Matthew Thode <prometheanfire <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Dec 24 02:00:47 2016 +0000 |
4 |
Commit: Matt Thode <prometheanfire <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Dec 24 02:01:01 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=85d88604 |
7 |
|
8 |
app-emulation/cloud-init: bup |
9 |
|
10 |
Package-Manager: portage-2.3.0 |
11 |
|
12 |
app-emulation/cloud-init/Manifest | 1 + |
13 |
app-emulation/cloud-init/cloud-init-0.7.9.ebuild | 95 ++++++++++++++++++++++ |
14 |
.../cloud-init/files/cloud-init-0.7.9-tests.patch | 13 +++ |
15 |
3 files changed, 109 insertions(+) |
16 |
|
17 |
diff --git a/app-emulation/cloud-init/Manifest b/app-emulation/cloud-init/Manifest |
18 |
index 350a943..37637ec 100644 |
19 |
--- a/app-emulation/cloud-init/Manifest |
20 |
+++ b/app-emulation/cloud-init/Manifest |
21 |
@@ -2,3 +2,4 @@ DIST cloud-init-0.7.6.tar.gz 515670 SHA256 9e8fd22eb7f6e40ae6a5f66173ddc3cc18f65 |
22 |
DIST cloud-init-0.7.6_p1212.tar.gz 451717 SHA256 d213ee72a62cef5ef63369737a52c0ce0c2034ca1ae230925b6679f4335e685d SHA512 25c5d1cc7c8fa887859624b4f28416d455063c278e3f00bfb3561ab0c99aa708d9fa431ff17c42994aba43eb985538982e5175bf0531857cc18fd8e724ef1fd3 WHIRLPOOL d6608c750370fd470d6aae0e88125e9e56b424c40a5b1131b610cb675808b1f7e0657169273db29c4e994d3dce12f6076566eccbac6deee8c4277ffd33ceae38 |
23 |
DIST cloud-init-0.7.7.tar.gz 477287 SHA256 d7b75e314ecdb99619014f21f3b622294a6c3bde248887dfb5e9cedb927ad0b0 SHA512 06cd2bba67da9668204416073af771145668db43777d6f183dcb54e8e1d9d12471fe3bfc99dfbc03a81814c5614347ff7d6acc5dbe117e1206d7fc2041ae4b62 WHIRLPOOL 9fccfba02aacc138dc62a6be9547fa1e5bd6959a96eef9b7f6f1ac86112049b36751882d954ac0e8d7aa5bf9580c5e27ec9abfdc2ef542628af448c00c468a09 |
24 |
DIST cloud-init-0.7.8.tar.gz 508777 SHA256 4a4f1f7fb9dd0987a02aa7cd6f609910294fce8f9724dcebc0cd88630b4f1fd6 SHA512 ff6c3837afe702359879f0ae1d7443247b0ed97d60ecf0cbe85fc364dc833e553962aae221f48becb104ad3f951a28cbd742a3b8521ef25dfb8fd19439759447 WHIRLPOOL 1881cc41ee85e69cf5169115c7449ff581f927def51aaf3df986b8e8c29baeace658bb24bc5b98fd6eab6fdb5f05ab4555ba4081b7758402089a35fe20595876 |
25 |
+DIST cloud-init-0.7.9.tar.gz 602188 SHA256 76edb80bf1bdbda68f8014bc057a303ae438a139bdf394e825e548d6ae39d472 SHA512 ee52909f634f51dcf9e1229a8f49faa8c562bf05b69fac108fcc80cb3217f4364a33cf696df015e4dcd7887c68cf6108729850648b4daee07b3d3247ca3cc5b1 WHIRLPOOL 02093161cd3c6930b868ed18ca2e649ebbfac57b4ba3e8dcf4cb3107775cf052c739a0aee40ac79c69511efe5b3dfe60cbc2d55d9bbad74512cdf3a31fb77261 |
26 |
|
27 |
diff --git a/app-emulation/cloud-init/cloud-init-0.7.9.ebuild b/app-emulation/cloud-init/cloud-init-0.7.9.ebuild |
28 |
new file mode 100644 |
29 |
index 00000000..746ae04 |
30 |
--- /dev/null |
31 |
+++ b/app-emulation/cloud-init/cloud-init-0.7.9.ebuild |
32 |
@@ -0,0 +1,95 @@ |
33 |
+# Copyright 1999-2016 Gentoo Foundation |
34 |
+# Distributed under the terms of the GNU General Public License v2 |
35 |
+# $Id$ |
36 |
+ |
37 |
+EAPI=6 |
38 |
+PYTHON_COMPAT=( python2_7 python3_4 python3_5 ) |
39 |
+ |
40 |
+inherit distutils-r1 eutils multilib systemd |
41 |
+ |
42 |
+DESCRIPTION="cloud initialisation magic" |
43 |
+HOMEPAGE="https://launchpad.net/cloud-init" |
44 |
+SRC_URI="https://launchpad.net/${PN}/trunk/${PV}/+download/${P}.tar.gz" |
45 |
+ |
46 |
+LICENSE="GPL-3" |
47 |
+SLOT="0" |
48 |
+KEYWORDS="~amd64 ~x86" |
49 |
+IUSE="test" |
50 |
+ |
51 |
+CDEPEND=" |
52 |
+ dev-python/six[${PYTHON_USEDEP}] |
53 |
+ dev-python/configobj[${PYTHON_USEDEP}] |
54 |
+ dev-python/jinja[${PYTHON_USEDEP}] |
55 |
+ dev-python/jsonpatch[${PYTHON_USEDEP}] |
56 |
+ dev-python/oauthlib[${PYTHON_USEDEP}] |
57 |
+ dev-python/prettytable[${PYTHON_USEDEP}] |
58 |
+ dev-python/pyserial[${PYTHON_USEDEP}] |
59 |
+ dev-python/pyyaml[${PYTHON_USEDEP}] |
60 |
+ dev-python/requests[${PYTHON_USEDEP}] |
61 |
+ dev-python/cheetah[$(python_gen_usedep 'python2_7')] |
62 |
+" |
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/pep8[${PYTHON_USEDEP}] |
72 |
+ dev-python/flake8[${PYTHON_USEDEP}] |
73 |
+ dev-python/hacking[${PYTHON_USEDEP}] |
74 |
+ ) |
75 |
+" |
76 |
+RDEPEND=" |
77 |
+ ${CDEPEND} |
78 |
+ net-analyzer/macchanger |
79 |
+ sys-apps/iproute2 |
80 |
+ sys-fs/growpart |
81 |
+ virtual/logger |
82 |
+" |
83 |
+ |
84 |
+PATCHES=( "${FILESDIR}/cloud-init-0.7.9-tests.patch" ) |
85 |
+ |
86 |
+python_prepare_all() { |
87 |
+ sed -i '/^argparse/d' requirements.txt || die |
88 |
+ sed -i '/^hacking/d' test-requirements.txt || die |
89 |
+ distutils-r1_python_prepare_all |
90 |
+} |
91 |
+ |
92 |
+python_test() { |
93 |
+ emake test |
94 |
+} |
95 |
+ |
96 |
+python_install() { |
97 |
+ distutils-r1_python_install "--init-system=sysvinit_openrc" |
98 |
+} |
99 |
+ |
100 |
+python_install_all() { |
101 |
+ keepdir /etc/cloud |
102 |
+ |
103 |
+ distutils-r1_python_install_all |
104 |
+ |
105 |
+ chmod +x "${D}"/etc/init.d/cloud-config |
106 |
+ chmod +x "${D}"/etc/init.d/cloud-final |
107 |
+ chmod +x "${D}"/etc/init.d/cloud-init |
108 |
+ chmod +x "${D}"/etc/init.d/cloud-init-local |
109 |
+ |
110 |
+ insinto /etc/cloud/templates |
111 |
+ doins "${FILESDIR}/hosts.gentoo.tmpl" |
112 |
+ insinto /etc/cloud |
113 |
+ doins "${FILESDIR}/cloud.cfg" |
114 |
+ |
115 |
+ systemd_dounit "${S}"/systemd/cloud-config.service |
116 |
+ systemd_dounit "${S}"/systemd/cloud-config.target |
117 |
+ systemd_dounit "${S}"/systemd/cloud-final.service |
118 |
+ systemd_dounit "${S}"/systemd/cloud-init-local.service |
119 |
+ systemd_dounit "${S}"/systemd/cloud-init.service |
120 |
+} |
121 |
+ |
122 |
+pkg_postinst() { |
123 |
+ elog "cloud-init-local needs to be run in the boot runlevel because it" |
124 |
+ elog "modifies services in the default runlevel. When a runlevel is started" |
125 |
+ elog "it is cached, so modifications that happen to the current runlevel" |
126 |
+ elog "while you are in it are not acted upon." |
127 |
+} |
128 |
|
129 |
diff --git a/app-emulation/cloud-init/files/cloud-init-0.7.9-tests.patch b/app-emulation/cloud-init/files/cloud-init-0.7.9-tests.patch |
130 |
new file mode 100644 |
131 |
index 00000000..b80a60a |
132 |
--- /dev/null |
133 |
+++ b/app-emulation/cloud-init/files/cloud-init-0.7.9-tests.patch |
134 |
@@ -0,0 +1,13 @@ |
135 |
+diff --git a/setup.py b/setup.py |
136 |
+index bbadd7b..1578a3d 100755 |
137 |
+--- a/setup.py |
138 |
++++ b/setup.py |
139 |
+@@ -205,7 +207,7 @@ setuptools.setup( |
140 |
+ author='Scott Moser', |
141 |
+ author_email='scott.moser@×××××××××.com', |
142 |
+ url='http://launchpad.net/cloud-init/', |
143 |
+- packages=setuptools.find_packages(exclude=['tests']), |
144 |
++ packages=setuptools.find_packages(exclude=['tests.*', 'tests']), |
145 |
+ scripts=['tools/cloud-init-per'], |
146 |
+ license='GPLv3', |
147 |
+ data_files=data_files, |