1 |
commit: 3251ffaa0d7bd82dcb7571eacfb66748229013a3 |
2 |
Author: Sebastian Pipping <sping <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Feb 7 23:00:25 2017 +0000 |
4 |
Commit: Sebastian Pipping <sping <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Feb 7 23:03:32 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3251ffaa |
7 |
|
8 |
app-emulation/cloud-init: Fix init script permissions |
9 |
|
10 |
With unfixed 0.7.6_p1212 you got: |
11 |
|
12 |
$ rc-update add cloud-init-local default |
13 |
* rc-update: service `cloud-init-local' is not executeable |
14 |
|
15 |
Package-Manager: Portage-2.3.3, Repoman-2.3.1 |
16 |
|
17 |
.../cloud-init/cloud-init-0.7.6_p1212-r1.ebuild | 80 ++++++++++++++++++++++ |
18 |
1 file changed, 80 insertions(+) |
19 |
|
20 |
diff --git a/app-emulation/cloud-init/cloud-init-0.7.6_p1212-r1.ebuild b/app-emulation/cloud-init/cloud-init-0.7.6_p1212-r1.ebuild |
21 |
new file mode 100644 |
22 |
index 00000000..12d4f69 |
23 |
--- /dev/null |
24 |
+++ b/app-emulation/cloud-init/cloud-init-0.7.6_p1212-r1.ebuild |
25 |
@@ -0,0 +1,80 @@ |
26 |
+# Copyright 1999-2017 Gentoo Foundation |
27 |
+# Distributed under the terms of the GNU General Public License v2 |
28 |
+# $Id$ |
29 |
+ |
30 |
+EAPI=6 |
31 |
+PYTHON_COMPAT=( python2_7 ) |
32 |
+BZRTGZ=1 |
33 |
+ |
34 |
+inherit distutils-r1 eutils multilib systemd |
35 |
+ |
36 |
+DESCRIPTION="EC2 initialisation magic" |
37 |
+HOMEPAGE="https://launchpad.net/cloud-init" |
38 |
+if [ "x$BZRTGZ" != x1 ]; then |
39 |
+ SRC_URI="https://launchpad.net/${PN}/trunk/${PV}/+download/${P}.tar.gz" |
40 |
+else |
41 |
+ # Launchpad does not provide consistent checksums https://bugs.launchpad.net/launchpad/+bug/1576338 |
42 |
+ # SRC_URI="http://bazaar.launchpad.net/~${PN}-dev/${PN}/trunk/tarball/${PV/*_p} -> ${P}.tar.gz" |
43 |
+ SRC_URI="mirror://gentoo/${P}.tar.gz http://dev.gentoo.org/~robbat2/distfiles/${P}.tar.gz" |
44 |
+ S="${WORKDIR}/~cloud-init-dev/cloud-init/trunk/" |
45 |
+fi |
46 |
+ |
47 |
+LICENSE="GPL-3" |
48 |
+SLOT="0" |
49 |
+KEYWORDS="~amd64 ~x86" |
50 |
+IUSE="test" |
51 |
+ |
52 |
+CDEPEND=" |
53 |
+ dev-python/cheetah[${PYTHON_USEDEP}] |
54 |
+ dev-python/configobj[${PYTHON_USEDEP}] |
55 |
+ dev-python/jinja[${PYTHON_USEDEP}] |
56 |
+ dev-python/jsonpatch[${PYTHON_USEDEP}] |
57 |
+ dev-python/oauth[${PYTHON_USEDEP}] |
58 |
+ dev-python/prettytable[${PYTHON_USEDEP}] |
59 |
+ dev-python/pyserial[${PYTHON_USEDEP}] |
60 |
+ dev-python/pyyaml[${PYTHON_USEDEP}] |
61 |
+ dev-python/requests[${PYTHON_USEDEP}] |
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/mocker[${PYTHON_USEDEP}] |
69 |
+ dev-python/nose[${PYTHON_USEDEP}] |
70 |
+ ~dev-python/pep8-1.5.7[${PYTHON_USEDEP}] |
71 |
+ dev-python/pyflakes[${PYTHON_USEDEP}] |
72 |
+ sys-apps/iproute2 |
73 |
+ ) |
74 |
+" |
75 |
+RDEPEND=" |
76 |
+ ${CDEPEND} |
77 |
+ sys-fs/growpart |
78 |
+ virtual/logger |
79 |
+" |
80 |
+ |
81 |
+PATCHES=( "${FILESDIR}/cloud-init-0.7.6_p1212-gentoo.patch" ) |
82 |
+ |
83 |
+python_prepare_all() { |
84 |
+ distutils-r1_python_prepare_all |
85 |
+} |
86 |
+ |
87 |
+python_test() { |
88 |
+ emake test |
89 |
+} |
90 |
+ |
91 |
+python_install() { |
92 |
+ distutils-r1_python_install "--init-system=sysvinit_openrc" |
93 |
+} |
94 |
+ |
95 |
+python_install_all() { |
96 |
+ keepdir /etc/cloud |
97 |
+ |
98 |
+ distutils-r1_python_install_all |
99 |
+ chmod +x "${D}"/etc/init.d/* || die |
100 |
+ |
101 |
+ insinto /etc/cloud/templates |
102 |
+ doins "${FILESDIR}/hosts.gentoo.tmpl" |
103 |
+ insinto /etc/cloud |
104 |
+ doins "${FILESDIR}/cloud.cfg" |
105 |
+} |