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/files/, app-emulation/cloud-init/
Date: Fri, 07 Oct 2016 16:12:51
Message-Id: 1475856727.69e8a6f8023958ca82d4f8d2692ce100ad29cf5d.prometheanfire@gentoo
1 commit: 69e8a6f8023958ca82d4f8d2692ce100ad29cf5d
2 Author: Matthew Thode <prometheanfire <AT> gentoo <DOT> org>
3 AuthorDate: Fri Oct 7 16:10:50 2016 +0000
4 Commit: Matt Thode <prometheanfire <AT> gentoo <DOT> org>
5 CommitDate: Fri Oct 7 16:12:07 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=69e8a6f8
7
8 app-emulation/cloud-init: fixing runlevel stuff
9
10 Package-Manager: portage-2.3.0
11
12 ...nit-0.7.8.ebuild => cloud-init-0.7.8-r1.ebuild} | 9 +++++++-
13 .../files/cloud-init-0.7.8-gentooinit.patch | 25 ++++++++++++++++++++++
14 2 files changed, 33 insertions(+), 1 deletion(-)
15
16 diff --git a/app-emulation/cloud-init/cloud-init-0.7.8.ebuild b/app-emulation/cloud-init/cloud-init-0.7.8-r1.ebuild
17 similarity index 87%
18 rename from app-emulation/cloud-init/cloud-init-0.7.8.ebuild
19 rename to app-emulation/cloud-init/cloud-init-0.7.8-r1.ebuild
20 index 2a4ecb7..f3a40a9 100644
21 --- a/app-emulation/cloud-init/cloud-init-0.7.8.ebuild
22 +++ b/app-emulation/cloud-init/cloud-init-0.7.8-r1.ebuild
23 @@ -13,7 +13,7 @@ SRC_URI="https://launchpad.net/${PN}/trunk/${PV}/+download/${P}.tar.gz"
24
25 LICENSE="GPL-3"
26 SLOT="0"
27 -KEYWORDS="amd64 x86"
28 +KEYWORDS="~amd64 ~x86"
29 IUSE="test"
30
31 CDEPEND="
32 @@ -84,3 +84,10 @@ python_install_all() {
33 systemd_dounit "${S}"/systemd/cloud-init-local.service
34 systemd_dounit "${S}"/systemd/cloud-init.service
35 }
36 +
37 +pkg_postinst() {
38 + elog "cloud-init-local needs to be run in the boot runlevel because it"
39 + elog "modifies services in the default runlevel. When a runlevel is started"
40 + elog "it is cached, so modifications that happen to the current runlevel"
41 + elog "while you are in it are not acted upon."
42 +}
43
44 diff --git a/app-emulation/cloud-init/files/cloud-init-0.7.8-gentooinit.patch b/app-emulation/cloud-init/files/cloud-init-0.7.8-gentooinit.patch
45 index b80a60a..ff0e014 100644
46 --- a/app-emulation/cloud-init/files/cloud-init-0.7.8-gentooinit.patch
47 +++ b/app-emulation/cloud-init/files/cloud-init-0.7.8-gentooinit.patch
48 @@ -11,3 +11,28 @@ index bbadd7b..1578a3d 100755
49 scripts=['tools/cloud-init-per'],
50 license='GPLv3',
51 data_files=data_files,
52 +diff --git a/sysvinit/gentoo/cloud-init b/sysvinit/gentoo/cloud-init
53 +index 5afc0f2..531a715 100644
54 +--- a/sysvinit/gentoo/cloud-init
55 ++++ b/sysvinit/gentoo/cloud-init
56 +@@ -2,6 +2,7 @@
57 + # add depends for network, dns, fs etc
58 + depend() {
59 + after cloud-init-local
60 ++ after net
61 + before cloud-config
62 + provide cloud-init
63 + }
64 +diff --git a/sysvinit/gentoo/cloud-init-local b/sysvinit/gentoo/cloud-init-local
65 +index 9bd0b56..0f8cf65 100644
66 +--- a/sysvinit/gentoo/cloud-init-local
67 ++++ b/sysvinit/gentoo/cloud-init-local
68 +@@ -2,7 +2,7 @@
69 +
70 + depend() {
71 + after localmount
72 +- after netmount
73 ++ before net
74 + before cloud-init
75 + provide cloud-init-local
76 + }