1 |
commit: 3367feff74eaf6dffae02cca54e9214fe9a648ab |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon May 31 20:09:15 2021 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon May 31 20:18:25 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3367feff |
7 |
|
8 |
app-emulation/cloud-init: Remove old |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
app-emulation/cloud-init/Manifest | 1 - |
13 |
app-emulation/cloud-init/cloud-init-19.4.ebuild | 90 --------------------- |
14 |
...it-19.4-gentoo-support-upstream-templates.patch | 93 ---------------------- |
15 |
.../files/cloud-init-19.4_CVE-2020-8631.patch | 25 ------ |
16 |
4 files changed, 209 deletions(-) |
17 |
|
18 |
diff --git a/app-emulation/cloud-init/Manifest b/app-emulation/cloud-init/Manifest |
19 |
index 7398ca2b26d..d58fd680a08 100644 |
20 |
--- a/app-emulation/cloud-init/Manifest |
21 |
+++ b/app-emulation/cloud-init/Manifest |
22 |
@@ -1,3 +1,2 @@ |
23 |
-DIST cloud-init-19.4.tar.gz 1091893 BLAKE2B 2ab8fef70b420c066d6d8f83871568eeac24f00879ecf3d58c3768dd809cff6a3b79c7e72d9a10204002101049ab86ab64f0c524362e00497a9222960ef380df SHA512 e69ea47eab41d69d64fa44102fbde59319da5f71a68f28a0f6ac65cd6866542b4fe58a71b84c903cfa9b1d2f26eb648cdf4de633b8df61e4f89c9fa4c2a2b1d3 |
24 |
DIST cloud-init-20.1.tar.gz 1088152 BLAKE2B 1c075676bcf7454965beafaaa38f3cdf08f321ddd0303b7f710c49d2a69e0fb2ec8a81870a632b7504c47af6436555c97ea9fa9c8416955de78f8f551b5509b7 SHA512 ad28e4a0290165308ef2cdb8a935778ad99039978a204bee1098460de006bc3f375a3b81d0d72971fc4f4195d5d2ade9c648fb19e6d6eba12decf750dc54b6eb |
25 |
DIST cloud-init-20.4.tar.gz 1228898 BLAKE2B c5697af31e7219a060a82732fbae2e89dd00786e5b0feb638f1f64f6ce861df041ef687a6095cc3bdb5478f4f4c1504286155808102aea9cae853caa97d4ba1b SHA512 da2fa4673b253468380c4472795fd449809c8ac84d8f13ec1472b9b7e7d54e187ae06e5a81a36774793b05f4e1212dca57bc19aa8955b4c7fa7183cb100bfbb9 |
26 |
|
27 |
diff --git a/app-emulation/cloud-init/cloud-init-19.4.ebuild b/app-emulation/cloud-init/cloud-init-19.4.ebuild |
28 |
deleted file mode 100644 |
29 |
index f83d948d016..00000000000 |
30 |
--- a/app-emulation/cloud-init/cloud-init-19.4.ebuild |
31 |
+++ /dev/null |
32 |
@@ -1,90 +0,0 @@ |
33 |
-# Copyright 1999-2020 Gentoo Authors |
34 |
-# Distributed under the terms of the GNU General Public License v2 |
35 |
- |
36 |
-EAPI=7 |
37 |
-PYTHON_COMPAT=( python3_7 ) |
38 |
-DISTUTILS_USE_SETUPTOOLS=rdepend |
39 |
- |
40 |
-inherit distutils-r1 |
41 |
- |
42 |
-DESCRIPTION="Cloud instance 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 |
-RESTRICT="!test? ( test )" |
51 |
- |
52 |
-CDEPEND=" |
53 |
- dev-python/jinja[${PYTHON_USEDEP}] |
54 |
- dev-python/oauthlib[${PYTHON_USEDEP}] |
55 |
- dev-python/pyserial[${PYTHON_USEDEP}] |
56 |
- >=dev-python/configobj-5.0.2[${PYTHON_USEDEP}] |
57 |
- dev-python/pyyaml[${PYTHON_USEDEP}] |
58 |
- dev-python/requests[${PYTHON_USEDEP}] |
59 |
- dev-python/jsonpatch[${PYTHON_USEDEP}] |
60 |
- dev-python/jsonschema[${PYTHON_USEDEP}] |
61 |
- dev-python/six[${PYTHON_USEDEP}] |
62 |
-" |
63 |
-DEPEND=" |
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 |
- # Fix Gentoo support |
84 |
- # https://code.launchpad.net/~gilles-dartiguelongue/cloud-init/+git/cloud-init/+merge/358777 |
85 |
- "${FILESDIR}/${PN}-18.4-fix-packages-module.patch" |
86 |
- "${FILESDIR}/${P}-gentoo-support-upstream-templates.patch" |
87 |
- "${FILESDIR}"/18.4-fix-filename-for-storing-locale.patch |
88 |
- "${FILESDIR}"/18.4-fix-update_package_sources-function.patch |
89 |
- "${FILESDIR}"/18.4-add-support-for-package_upgrade.patch |
90 |
- "${FILESDIR}/${P}_CVE-2020-8631.patch" |
91 |
-) |
92 |
- |
93 |
-src_prepare() { |
94 |
- # Fix location of documentation installation |
95 |
- sed -i "s:USR + '/share/doc/cloud-init:USR + '/share/doc/${PF}:" setup.py || die |
96 |
- distutils-r1_src_prepare |
97 |
-} |
98 |
- |
99 |
-python_test() { |
100 |
- # Do not use Makefile target as it does not setup environment correclty |
101 |
- esetup.py nosetests -v --where cloudinit --where tests/unittests || die |
102 |
-} |
103 |
- |
104 |
-python_install() { |
105 |
- distutils-r1_python_install --init-system=sysvinit_openrc,systemd --distro gentoo |
106 |
-} |
107 |
- |
108 |
-python_install_all() { |
109 |
- keepdir /etc/cloud |
110 |
- |
111 |
- distutils-r1_python_install_all |
112 |
- |
113 |
- # installs as non-executable |
114 |
- chmod +x "${D}"/etc/init.d/* |
115 |
-} |
116 |
- |
117 |
-pkg_postinst() { |
118 |
- elog "cloud-init-local needs to be run in the boot runlevel because it" |
119 |
- elog "modifies services in the default runlevel. When a runlevel is started" |
120 |
- elog "it is cached, so modifications that happen to the current runlevel" |
121 |
- elog "while you are in it are not acted upon." |
122 |
-} |
123 |
|
124 |
diff --git a/app-emulation/cloud-init/files/cloud-init-19.4-gentoo-support-upstream-templates.patch b/app-emulation/cloud-init/files/cloud-init-19.4-gentoo-support-upstream-templates.patch |
125 |
deleted file mode 100644 |
126 |
index 210c2943736..00000000000 |
127 |
--- a/app-emulation/cloud-init/files/cloud-init-19.4-gentoo-support-upstream-templates.patch |
128 |
+++ /dev/null |
129 |
@@ -1,93 +0,0 @@ |
130 |
-From 823454f1ea140ec47f5f9c5c3c5ad62eb458eb8a Mon Sep 17 00:00:00 2001 |
131 |
-From: Gilles Dartiguelongue <eva@g.o> |
132 |
-Date: Wed, 24 Oct 2018 10:52:46 +0200 |
133 |
-Subject: [PATCH 2/5] Add support for gentoo in cloud.cfg and templates |
134 |
- |
135 |
---- |
136 |
- config/cloud.cfg.tmpl | 8 ++++++-- |
137 |
- templates/hosts.gentoo.tmpl | 24 ++++++++++++++++++++++++ |
138 |
- tools/render-cloudcfg | 2 +- |
139 |
- 3 files changed, 31 insertions(+), 3 deletions(-) |
140 |
- create mode 100644 templates/hosts.gentoo.tmpl |
141 |
- |
142 |
-diff --git a/config/cloud.cfg.tmpl b/config/cloud.cfg.tmpl |
143 |
-index 1fef133a..3f5a41a2 100644 |
144 |
---- a/config/cloud.cfg.tmpl |
145 |
-+++ b/config/cloud.cfg.tmpl |
146 |
-@@ -134,7 +134,7 @@ cloud_final_modules: |
147 |
- # (not accessible to handlers/transforms) |
148 |
- system_info: |
149 |
- # This will affect which distro class gets used |
150 |
--{% if variant in ["arch", "centos", "debian", "fedora", "freebsd", "rhel", "suse", "ubuntu"] %} |
151 |
-+{% if variant in ["arch", "centos", "debian", "fedora", "freebsd", "gentoo", "rhel", "suse", "ubuntu"] %} |
152 |
- distro: {{ variant }} |
153 |
- {% else %} |
154 |
- # Unknown/fallback distro. |
155 |
-@@ -172,7 +172,7 @@ system_info: |
156 |
- primary: http://ports.ubuntu.com/ubuntu-ports |
157 |
- security: http://ports.ubuntu.com/ubuntu-ports |
158 |
- ssh_svcname: ssh |
159 |
--{% elif variant in ["arch", "centos", "fedora", "rhel", "suse"] %} |
160 |
-+{% elif variant in ["arch", "centos", "fedora", "gentoo", "rhel", "suse"] %} |
161 |
- # Default user name + that default users groups (if added/used) |
162 |
- default_user: |
163 |
- name: {{ variant }} |
164 |
-@@ -180,6 +180,10 @@ system_info: |
165 |
- {% endif %} |
166 |
- {% if variant == "suse" %} |
167 |
- groups: [cdrom, users] |
168 |
-+{% elif variant == "gentoo" %} |
169 |
-+ groups: [users, wheel] |
170 |
-+ primary_group: users |
171 |
-+ no_user_group: true |
172 |
- {% elif variant == "arch" %} |
173 |
- groups: [wheel, users] |
174 |
- {% else %} |
175 |
-diff --git a/templates/hosts.gentoo.tmpl b/templates/hosts.gentoo.tmpl |
176 |
-new file mode 100644 |
177 |
-index 00000000..cd045fa6 |
178 |
---- /dev/null |
179 |
-+++ b/templates/hosts.gentoo.tmpl |
180 |
-@@ -0,0 +1,24 @@ |
181 |
-+## template:jinja |
182 |
-+{# |
183 |
-+This file /etc/cloud/templates/hosts.gentoo.tmpl is only utilized |
184 |
-+if enabled in cloud-config. Specifically, in order to enable it |
185 |
-+you need to add the following to config: |
186 |
-+ manage_etc_hosts: True |
187 |
-+-#} |
188 |
-+# Your system has configured 'manage_etc_hosts' as True. |
189 |
-+# As a result, if you wish for changes to this file to persist |
190 |
-+# then you will need to either |
191 |
-+# a.) make changes to the master file in /etc/cloud/templates/hosts.gentoo.tmpl |
192 |
-+# b.) change or remove the value of 'manage_etc_hosts' in |
193 |
-+# /etc/cloud/cloud.cfg or cloud-config from user-data |
194 |
-+# |
195 |
-+# The following lines are desirable for IPv4 capable hosts |
196 |
-+127.0.0.1 {{fqdn}} {{hostname}} |
197 |
-+127.0.0.1 localhost.localdomain localhost |
198 |
-+127.0.0.1 localhost4.localdomain4 localhost4 |
199 |
-+ |
200 |
-+# The following lines are desirable for IPv6 capable hosts |
201 |
-+::1 {{fqdn}} {{hostname}} |
202 |
-+::1 localhost.localdomain localhost |
203 |
-+::1 localhost6.localdomain6 localhost6 |
204 |
-+ |
205 |
-diff --git a/tools/render-cloudcfg b/tools/render-cloudcfg |
206 |
-index 8b7cb875..d109044e 100755 |
207 |
---- a/tools/render-cloudcfg |
208 |
-+++ b/tools/render-cloudcfg |
209 |
-@@ -4,7 +4,7 @@ import argparse |
210 |
- import os |
211 |
- import sys |
212 |
- |
213 |
--VARIANTS = ["arch", "centos", "debian", "fedora", "freebsd", "rhel", "suse", |
214 |
-- "ubuntu", "unknown"] |
215 |
-+VARIANTS = ["arch", "centos", "debian", "fedora", "freebsd", "gentoo", "rhel", |
216 |
-+ "suse", "ubuntu", "unknown"] |
217 |
- |
218 |
- if "avoid-pep8-E402-import-not-top-of-file": |
219 |
- _tdir = os.path.abspath(os.path.join(os.path.dirname(__file__), "..")) |
220 |
--- |
221 |
-2.19.1 |
222 |
- |
223 |
|
224 |
diff --git a/app-emulation/cloud-init/files/cloud-init-19.4_CVE-2020-8631.patch b/app-emulation/cloud-init/files/cloud-init-19.4_CVE-2020-8631.patch |
225 |
deleted file mode 100644 |
226 |
index 625473c68f1..00000000000 |
227 |
--- a/app-emulation/cloud-init/files/cloud-init-19.4_CVE-2020-8631.patch |
228 |
+++ /dev/null |
229 |
@@ -1,25 +0,0 @@ |
230 |
-From 42788bf24a1a0a5421a2d00a7f59b59e38ba1a14 Mon Sep 17 00:00:00 2001 |
231 |
-From: Ryan Harper <ryan.harper@×××××××××.com> |
232 |
-Date: Fri, 24 Jan 2020 21:33:12 +0200 |
233 |
-Subject: [PATCH] cc_set_password: increase random pwlength from 9 to 20 (#189) |
234 |
- |
235 |
-Increasing the bits of security from 52 to 115. |
236 |
- |
237 |
-LP: #1860795 |
238 |
---- |
239 |
- cloudinit/config/cc_set_passwords.py | 2 +- |
240 |
- 1 file changed, 1 insertion(+), 1 deletion(-) |
241 |
- |
242 |
-diff --git a/cloudinit/config/cc_set_passwords.py b/cloudinit/config/cc_set_passwords.py |
243 |
-index e3b39d8be..4943d5453 100755 |
244 |
---- a/cloudinit/config/cc_set_passwords.py |
245 |
-+++ b/cloudinit/config/cc_set_passwords.py |
246 |
-@@ -236,7 +236,7 @@ def handle(_name, cfg, cloud, log, args): |
247 |
- raise errors[-1] |
248 |
- |
249 |
- |
250 |
--def rand_user_password(pwlen=9): |
251 |
-+def rand_user_password(pwlen=20): |
252 |
- return util.rand_str(pwlen, select_from=PW_SET) |
253 |
- |
254 |
- |