1 |
commit: a9d6fc672f4d3409f59f814c5a9e6e221528b769 |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Dec 31 15:06:29 2022 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Dec 31 15:08:38 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a9d6fc67 |
7 |
|
8 |
dev-util/buildbot: drop 3.4.0-r1, 3.5.0-r1, 3.6.0 |
9 |
|
10 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
11 |
|
12 |
dev-util/buildbot/Manifest | 3 - |
13 |
dev-util/buildbot/buildbot-3.4.0-r1.ebuild | 181 ----------------------------- |
14 |
dev-util/buildbot/buildbot-3.5.0-r1.ebuild | 181 ----------------------------- |
15 |
dev-util/buildbot/buildbot-3.6.0.ebuild | 181 ----------------------------- |
16 |
4 files changed, 546 deletions(-) |
17 |
|
18 |
diff --git a/dev-util/buildbot/Manifest b/dev-util/buildbot/Manifest |
19 |
index ad7526384cac..c2083c50a18d 100644 |
20 |
--- a/dev-util/buildbot/Manifest |
21 |
+++ b/dev-util/buildbot/Manifest |
22 |
@@ -1,4 +1 @@ |
23 |
-DIST buildbot-3.4.0.tar.gz 2446868 BLAKE2B a58b268fd4569105f1c0ba48c9ed86210a3fee4725f167d6b6847960bbb56a092d0c0db427ecf5932a91d44065da8843fbb4046d289800a019b0b1d8b1f53fea SHA512 92e5085862ac37a6c3c059870a3998fbaac2019c48384295f3e209788ea14bddff6704f1b987a8f3b1550c1b0255d228f8a0b2a20b5cb760b22a513db465863b |
24 |
-DIST buildbot-3.5.0.tar.gz 2450653 BLAKE2B 0e923f2a3a334241b25c6a151b397356d7ba81ab2ff19c17c50a5996494d0f99fa198b63aa18a27ab60c5ad53c0154494bf4dea4e2bd306f4b709858a64dc3c4 SHA512 9730305540db3cdf166fdfc071142061926bbb895aa941046ad25e8350d3c161d4175f3518cd8a3ab51f320b0a5980517e5e53d9f5ddc342492ee56a0f6f266f |
25 |
-DIST buildbot-3.6.0.tar.gz 2458029 BLAKE2B 5f41702d4d61fbcbfa878c6febbb89a38da2648403c4fdcab24bde246adc225e9ac3f72eb7dc893e03763f00c2d3548c31b2d6597904032e4b75e660bb1faf72 SHA512 c0bec931d08adb1eec51114619d2a085fbef224944a4c0acf3ab396f84d846fd620b84379affee238d02dd90ca1294fdb2b7fb8ea6e82d95c4cfeae93a0b5e73 |
26 |
DIST buildbot-3.6.1.tar.gz 2458176 BLAKE2B 4587ed222e2fae424f3c4f275e67e72bf25b0ce88231a29f931582d82fbe93a846f85b14bdc64740939466ccdc3f15dab3774244aa5c0a293250b52b542014ea SHA512 62a993d1acd8bc5cc916f009909b4b099d9f64007fe790dc219104f248bb21e0ab8f1771c354ef61e6d8ba497451cdef5e7a7de17a87cfd1e941b3b49fbf2206 |
27 |
|
28 |
diff --git a/dev-util/buildbot/buildbot-3.4.0-r1.ebuild b/dev-util/buildbot/buildbot-3.4.0-r1.ebuild |
29 |
deleted file mode 100644 |
30 |
index 2805b245be55..000000000000 |
31 |
--- a/dev-util/buildbot/buildbot-3.4.0-r1.ebuild |
32 |
+++ /dev/null |
33 |
@@ -1,181 +0,0 @@ |
34 |
-# Copyright 1999-2022 Gentoo Authors |
35 |
-# Distributed under the terms of the GNU General Public License v2 |
36 |
- |
37 |
-EAPI=8 |
38 |
- |
39 |
-DISTUTILS_USE_PEP517=setuptools |
40 |
-PYTHON_REQ_USE="sqlite" |
41 |
-PYTHON_COMPAT=( python3_{8..10} ) |
42 |
-inherit readme.gentoo-r1 systemd distutils-r1 |
43 |
- |
44 |
-MY_PV="${PV/_p/.post}" |
45 |
-MY_P="${PN}-${MY_PV}" |
46 |
- |
47 |
-DESCRIPTION="BuildBot build automation system" |
48 |
-HOMEPAGE="https://buildbot.net/ |
49 |
- https://github.com/buildbot/buildbot |
50 |
- https://pypi.org/project/buildbot/" |
51 |
-SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${MY_P}.tar.gz" |
52 |
-S=${WORKDIR}/${MY_P} |
53 |
- |
54 |
-LICENSE="GPL-2" |
55 |
-SLOT="0" |
56 |
-KEYWORDS="~amd64 ~arm64 ~riscv ~amd64-linux ~x86-linux" |
57 |
- |
58 |
-IUSE="crypt docker examples irc test" |
59 |
-RESTRICT="!test? ( test )" |
60 |
- |
61 |
-RDEPEND=" |
62 |
- acct-user/buildbot |
63 |
- >=dev-python/twisted-17.9.0[${PYTHON_USEDEP}] |
64 |
- >=dev-python/jinja-2.1[${PYTHON_USEDEP}] |
65 |
- >=dev-python/zope-interface-4.1.1[${PYTHON_USEDEP}] |
66 |
- >=dev-python/sqlalchemy-1.2.0[${PYTHON_USEDEP}] |
67 |
- <dev-python/sqlalchemy-1.5.0[${PYTHON_USEDEP}] |
68 |
- >=dev-python/alembic-1.6.0[${PYTHON_USEDEP}] |
69 |
- >=dev-python/python-dateutil-1.5[${PYTHON_USEDEP}] |
70 |
- >=dev-python/txaio-2.2.2[${PYTHON_USEDEP}] |
71 |
- >=dev-python/autobahn-0.16.0[${PYTHON_USEDEP}] |
72 |
- dev-python/pyjwt[${PYTHON_USEDEP}] |
73 |
- dev-python/pyyaml[${PYTHON_USEDEP}] |
74 |
- ~dev-util/buildbot-worker-${PV}[${PYTHON_USEDEP}] |
75 |
- crypt? ( |
76 |
- >=dev-python/pyopenssl-16.0.0[${PYTHON_USEDEP}] |
77 |
- dev-python/service_identity[${PYTHON_USEDEP}] |
78 |
- || ( |
79 |
- >=dev-python/twisted-17.9.0[${PYTHON_USEDEP},ssl(-)] |
80 |
- >=dev-python/twisted-17.9.0[${PYTHON_USEDEP},crypt(-)] |
81 |
- ) |
82 |
- dev-python/idna[${PYTHON_USEDEP}] |
83 |
- ) |
84 |
- irc? ( |
85 |
- dev-python/txrequests[${PYTHON_USEDEP}] |
86 |
- ) |
87 |
- docker? ( |
88 |
- >=dev-python/docker-py-2.2.0[${PYTHON_USEDEP}] |
89 |
- dev-python/requests[${PYTHON_USEDEP}] |
90 |
- ) |
91 |
-" |
92 |
-BDEPEND=" |
93 |
- test? ( |
94 |
- ${RDEPEND} |
95 |
- dev-python/treq[${PYTHON_USEDEP}] |
96 |
- dev-python/txrequests[${PYTHON_USEDEP}] |
97 |
- dev-python/pypugjs[${PYTHON_USEDEP}] |
98 |
- >=dev-python/boto3-1.12.48[${PYTHON_USEDEP}] |
99 |
- dev-python/moto[${PYTHON_USEDEP}] |
100 |
- >=dev-python/mock-2.0.0[${PYTHON_USEDEP}] |
101 |
- dev-python/parameterized[${PYTHON_USEDEP}] |
102 |
- dev-python/lz4[${PYTHON_USEDEP}] |
103 |
- dev-python/ldap3[${PYTHON_USEDEP}] |
104 |
- ~dev-util/buildbot-pkg-${PV}[${PYTHON_USEDEP}] |
105 |
- ~dev-util/buildbot-worker-${PV}[${PYTHON_USEDEP}] |
106 |
- ~dev-util/buildbot-www-${PV}[${PYTHON_USEDEP}] |
107 |
- )" |
108 |
- |
109 |
-DOC_CONTENTS="The \"buildbot\" user and the \"buildmaster\" init script has been added |
110 |
-to support starting buildbot through Gentoo's init system. To use this, |
111 |
-execute \"emerge --config =${CATEGORY}/${PF}\" to create a new instance. |
112 |
-The scripts can run as a different user if desired." |
113 |
- |
114 |
-src_prepare() { |
115 |
- # disable all warnings as errors |
116 |
- sed -e "/warnings.filterwarnings('error')/d" -i buildbot/test/__init__.py || die |
117 |
- |
118 |
- distutils-r1_src_prepare |
119 |
-} |
120 |
- |
121 |
-python_test() { |
122 |
- "${EPYTHON}" -m twisted.trial buildbot || die "Tests failed with ${EPYTHON}" |
123 |
-} |
124 |
- |
125 |
-src_install() { |
126 |
- distutils-r1_src_install |
127 |
- |
128 |
- doman docs/buildbot.1 |
129 |
- |
130 |
- if use examples; then |
131 |
- dodoc -r docs/examples |
132 |
- fi |
133 |
- |
134 |
- newconfd "${FILESDIR}/buildmaster.confd" buildmaster |
135 |
- newinitd "${FILESDIR}/buildmaster.initd" buildmaster |
136 |
- systemd_dounit "${FILESDIR}/buildmaster.target" |
137 |
- systemd_newunit "${FILESDIR}/buildmaster_at.service" "buildmaster@.service" |
138 |
- systemd_install_serviced "${FILESDIR}/buildmaster_at.service.conf" "buildmaster@.service" |
139 |
- |
140 |
- readme.gentoo_create_doc |
141 |
-} |
142 |
- |
143 |
-pkg_postinst() { |
144 |
- readme.gentoo_print_elog |
145 |
- |
146 |
- if [[ -n ${REPLACING_VERSIONS} ]]; then |
147 |
- ewarn |
148 |
- ewarn "Starting with buildbot-0.8.12-r2, more than one instance of buildmaster" |
149 |
- ewarn "can be run simultaneously. Note that \"BASEDIR\" in the buildbot configuration file" |
150 |
- ewarn "is now the common base directory for all instances. If you are migrating from an older" |
151 |
- ewarn "version, make sure that you copy the current contents of \"BASEDIR\" to a subdirectory." |
152 |
- ewarn "The name of the subdirectory corresponds to the name of the buildmaster instance." |
153 |
- ewarn "In order to start the service running OpenRC-based systems need to link to the init file:" |
154 |
- ewarn " ln --symbolic --relative /etc/init.d/buildmaster /etc/init.d/buildmaster.myinstance" |
155 |
- ewarn " rc-update add buildmaster.myinstance default" |
156 |
- ewarn " /etc/init.d/buildmaster.myinstance start" |
157 |
- ewarn "Systems using systemd can do the following:" |
158 |
- ewarn " systemctl enable buildmaster@××××××××××.service" |
159 |
- ewarn " systemctl enable buildmaster.target" |
160 |
- ewarn " systemctl start buildmaster.target" |
161 |
- elog |
162 |
- elog "Upstream recommends the following when upgrading:" |
163 |
- elog "Each time you install a new version of Buildbot, you should run the" |
164 |
- elog "\"buildbot upgrade-master\" command on each of your pre-existing build masters." |
165 |
- elog "This will add files and fix (or at least detect) incompatibilities between" |
166 |
- elog "your old config and the new code." |
167 |
- fi |
168 |
- elog |
169 |
- elog "In order to create a new instance of buildmaster, execute:" |
170 |
- elog " emerge --config =${CATEGORY}/${PF}" |
171 |
-} |
172 |
- |
173 |
-pkg_config() { |
174 |
- local buildmaster_path="/var/lib/buildmaster" |
175 |
- local log_path="/var/log/buildmaster" |
176 |
- |
177 |
- einfo "This will prepare a new buildmaster instance in ${buildmaster_path}." |
178 |
- einfo "Press Control-C to abort." |
179 |
- |
180 |
- einfo "Enter the name for the new instance: " |
181 |
- read instance_name |
182 |
- [[ -z "${instance_name}" ]] && die "Invalid instance name" |
183 |
- |
184 |
- local instance_path="${buildmaster_path}/${instance_name}" |
185 |
- local instance_log_path="${log_path}/${instance_name}" |
186 |
- |
187 |
- if [[ -e "${instance_path}" ]]; then |
188 |
- eerror "The instance with the specified name already exists:" |
189 |
- eerror "${instance_path}" |
190 |
- die "Instance already exists" |
191 |
- fi |
192 |
- |
193 |
- local buildbot="/usr/bin/buildbot" |
194 |
- if [[ ! -d "${buildmaster_path}" ]]; then |
195 |
- mkdir --parents "${buildmaster_path}" || die "Unable to create directory ${buildmaster_path}" |
196 |
- fi |
197 |
- "${buildbot}" create-master "${instance_path}" &>/dev/null || die "Creating instance failed" |
198 |
- chown --recursive buildbot:buildbot "${instance_path}" || die "Setting permissions for instance failed" |
199 |
- mv "${instance_path}/master.cfg.sample" "${instance_path}/master.cfg" \ |
200 |
- || die "Moving sample configuration failed" |
201 |
- ln --symbolic --relative "/etc/init.d/buildmaster" "/etc/init.d/buildmaster.${instance_name}" \ |
202 |
- || die "Unable to create link to init file" |
203 |
- |
204 |
- if [[ ! -d "${instance_log_path}" ]]; then |
205 |
- mkdir --parents "${instance_log_path}" || die "Unable to create directory ${instance_log_path}" |
206 |
- chown --recursive buildbot:buildbot "${instance_log_path}" \ |
207 |
- || die "Setting permissions for instance failed" |
208 |
- fi |
209 |
- ln --symbolic --relative "${instance_log_path}/twistd.log" "${instance_path}/twistd.log" \ |
210 |
- || die "Unable to create link to log file" |
211 |
- |
212 |
- einfo "Successfully created a buildmaster instance at ${instance_path}." |
213 |
- einfo "To change the default settings edit the master.cfg file in this directory." |
214 |
-} |
215 |
|
216 |
diff --git a/dev-util/buildbot/buildbot-3.5.0-r1.ebuild b/dev-util/buildbot/buildbot-3.5.0-r1.ebuild |
217 |
deleted file mode 100644 |
218 |
index 38fdc881f1a2..000000000000 |
219 |
--- a/dev-util/buildbot/buildbot-3.5.0-r1.ebuild |
220 |
+++ /dev/null |
221 |
@@ -1,181 +0,0 @@ |
222 |
-# Copyright 1999-2022 Gentoo Authors |
223 |
-# Distributed under the terms of the GNU General Public License v2 |
224 |
- |
225 |
-EAPI=8 |
226 |
- |
227 |
-DISTUTILS_USE_PEP517=setuptools |
228 |
-PYTHON_REQ_USE="sqlite" |
229 |
-PYTHON_COMPAT=( python3_{8..10} ) |
230 |
-inherit readme.gentoo-r1 systemd distutils-r1 |
231 |
- |
232 |
-MY_PV="${PV/_p/.post}" |
233 |
-MY_P="${PN}-${MY_PV}" |
234 |
- |
235 |
-DESCRIPTION="BuildBot build automation system" |
236 |
-HOMEPAGE="https://buildbot.net/ |
237 |
- https://github.com/buildbot/buildbot |
238 |
- https://pypi.org/project/buildbot/" |
239 |
-SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${MY_P}.tar.gz" |
240 |
-S=${WORKDIR}/${MY_P} |
241 |
- |
242 |
-LICENSE="GPL-2" |
243 |
-SLOT="0" |
244 |
-KEYWORDS="~amd64 ~arm64 ~riscv ~amd64-linux ~x86-linux" |
245 |
- |
246 |
-IUSE="crypt docker examples irc test" |
247 |
-RESTRICT="!test? ( test )" |
248 |
- |
249 |
-RDEPEND=" |
250 |
- acct-user/buildbot |
251 |
- >=dev-python/twisted-17.9.0[${PYTHON_USEDEP}] |
252 |
- >=dev-python/jinja-2.1[${PYTHON_USEDEP}] |
253 |
- >=dev-python/zope-interface-4.1.1[${PYTHON_USEDEP}] |
254 |
- >=dev-python/sqlalchemy-1.3.0[${PYTHON_USEDEP}] |
255 |
- <dev-python/sqlalchemy-1.5.0[${PYTHON_USEDEP}] |
256 |
- >=dev-python/alembic-1.6.0[${PYTHON_USEDEP}] |
257 |
- >=dev-python/python-dateutil-1.5[${PYTHON_USEDEP}] |
258 |
- >=dev-python/txaio-2.2.2[${PYTHON_USEDEP}] |
259 |
- >=dev-python/autobahn-0.16.0[${PYTHON_USEDEP}] |
260 |
- dev-python/pyjwt[${PYTHON_USEDEP}] |
261 |
- dev-python/pyyaml[${PYTHON_USEDEP}] |
262 |
- ~dev-util/buildbot-worker-${PV}[${PYTHON_USEDEP}] |
263 |
- crypt? ( |
264 |
- >=dev-python/pyopenssl-16.0.0[${PYTHON_USEDEP}] |
265 |
- dev-python/service_identity[${PYTHON_USEDEP}] |
266 |
- || ( |
267 |
- >=dev-python/twisted-17.9.0[${PYTHON_USEDEP},ssl(-)] |
268 |
- >=dev-python/twisted-17.9.0[${PYTHON_USEDEP},crypt(-)] |
269 |
- ) |
270 |
- dev-python/idna[${PYTHON_USEDEP}] |
271 |
- ) |
272 |
- irc? ( |
273 |
- dev-python/txrequests[${PYTHON_USEDEP}] |
274 |
- ) |
275 |
- docker? ( |
276 |
- >=dev-python/docker-py-2.2.0[${PYTHON_USEDEP}] |
277 |
- dev-python/requests[${PYTHON_USEDEP}] |
278 |
- ) |
279 |
-" |
280 |
-BDEPEND=" |
281 |
- test? ( |
282 |
- ${RDEPEND} |
283 |
- dev-python/treq[${PYTHON_USEDEP}] |
284 |
- dev-python/txrequests[${PYTHON_USEDEP}] |
285 |
- dev-python/pypugjs[${PYTHON_USEDEP}] |
286 |
- >=dev-python/boto3-1.12.48[${PYTHON_USEDEP}] |
287 |
- dev-python/moto[${PYTHON_USEDEP}] |
288 |
- >=dev-python/mock-2.0.0[${PYTHON_USEDEP}] |
289 |
- dev-python/parameterized[${PYTHON_USEDEP}] |
290 |
- dev-python/lz4[${PYTHON_USEDEP}] |
291 |
- dev-python/ldap3[${PYTHON_USEDEP}] |
292 |
- ~dev-util/buildbot-pkg-${PV}[${PYTHON_USEDEP}] |
293 |
- ~dev-util/buildbot-worker-${PV}[${PYTHON_USEDEP}] |
294 |
- ~dev-util/buildbot-www-${PV}[${PYTHON_USEDEP}] |
295 |
- )" |
296 |
- |
297 |
-DOC_CONTENTS="The \"buildbot\" user and the \"buildmaster\" init script has been added |
298 |
-to support starting buildbot through Gentoo's init system. To use this, |
299 |
-execute \"emerge --config =${CATEGORY}/${PF}\" to create a new instance. |
300 |
-The scripts can run as a different user if desired." |
301 |
- |
302 |
-src_prepare() { |
303 |
- # disable all warnings as errors |
304 |
- sed -e "/warnings.filterwarnings('error')/d" -i buildbot/test/__init__.py || die |
305 |
- |
306 |
- distutils-r1_src_prepare |
307 |
-} |
308 |
- |
309 |
-python_test() { |
310 |
- "${EPYTHON}" -m twisted.trial buildbot || die "Tests failed with ${EPYTHON}" |
311 |
-} |
312 |
- |
313 |
-src_install() { |
314 |
- distutils-r1_src_install |
315 |
- |
316 |
- doman docs/buildbot.1 |
317 |
- |
318 |
- if use examples; then |
319 |
- dodoc -r docs/examples |
320 |
- fi |
321 |
- |
322 |
- newconfd "${FILESDIR}/buildmaster.confd" buildmaster |
323 |
- newinitd "${FILESDIR}/buildmaster.initd" buildmaster |
324 |
- systemd_dounit "${FILESDIR}/buildmaster.target" |
325 |
- systemd_newunit "${FILESDIR}/buildmaster_at.service" "buildmaster@.service" |
326 |
- systemd_install_serviced "${FILESDIR}/buildmaster_at.service.conf" "buildmaster@.service" |
327 |
- |
328 |
- readme.gentoo_create_doc |
329 |
-} |
330 |
- |
331 |
-pkg_postinst() { |
332 |
- readme.gentoo_print_elog |
333 |
- |
334 |
- if [[ -n ${REPLACING_VERSIONS} ]]; then |
335 |
- ewarn |
336 |
- ewarn "Starting with buildbot-0.8.12-r2, more than one instance of buildmaster" |
337 |
- ewarn "can be run simultaneously. Note that \"BASEDIR\" in the buildbot configuration file" |
338 |
- ewarn "is now the common base directory for all instances. If you are migrating from an older" |
339 |
- ewarn "version, make sure that you copy the current contents of \"BASEDIR\" to a subdirectory." |
340 |
- ewarn "The name of the subdirectory corresponds to the name of the buildmaster instance." |
341 |
- ewarn "In order to start the service running OpenRC-based systems need to link to the init file:" |
342 |
- ewarn " ln --symbolic --relative /etc/init.d/buildmaster /etc/init.d/buildmaster.myinstance" |
343 |
- ewarn " rc-update add buildmaster.myinstance default" |
344 |
- ewarn " /etc/init.d/buildmaster.myinstance start" |
345 |
- ewarn "Systems using systemd can do the following:" |
346 |
- ewarn " systemctl enable buildmaster@××××××××××.service" |
347 |
- ewarn " systemctl enable buildmaster.target" |
348 |
- ewarn " systemctl start buildmaster.target" |
349 |
- elog |
350 |
- elog "Upstream recommends the following when upgrading:" |
351 |
- elog "Each time you install a new version of Buildbot, you should run the" |
352 |
- elog "\"buildbot upgrade-master\" command on each of your pre-existing build masters." |
353 |
- elog "This will add files and fix (or at least detect) incompatibilities between" |
354 |
- elog "your old config and the new code." |
355 |
- fi |
356 |
- elog |
357 |
- elog "In order to create a new instance of buildmaster, execute:" |
358 |
- elog " emerge --config =${CATEGORY}/${PF}" |
359 |
-} |
360 |
- |
361 |
-pkg_config() { |
362 |
- local buildmaster_path="/var/lib/buildmaster" |
363 |
- local log_path="/var/log/buildmaster" |
364 |
- |
365 |
- einfo "This will prepare a new buildmaster instance in ${buildmaster_path}." |
366 |
- einfo "Press Control-C to abort." |
367 |
- |
368 |
- einfo "Enter the name for the new instance: " |
369 |
- read instance_name |
370 |
- [[ -z "${instance_name}" ]] && die "Invalid instance name" |
371 |
- |
372 |
- local instance_path="${buildmaster_path}/${instance_name}" |
373 |
- local instance_log_path="${log_path}/${instance_name}" |
374 |
- |
375 |
- if [[ -e "${instance_path}" ]]; then |
376 |
- eerror "The instance with the specified name already exists:" |
377 |
- eerror "${instance_path}" |
378 |
- die "Instance already exists" |
379 |
- fi |
380 |
- |
381 |
- local buildbot="/usr/bin/buildbot" |
382 |
- if [[ ! -d "${buildmaster_path}" ]]; then |
383 |
- mkdir --parents "${buildmaster_path}" || die "Unable to create directory ${buildmaster_path}" |
384 |
- fi |
385 |
- "${buildbot}" create-master "${instance_path}" &>/dev/null || die "Creating instance failed" |
386 |
- chown --recursive buildbot:buildbot "${instance_path}" || die "Setting permissions for instance failed" |
387 |
- mv "${instance_path}/master.cfg.sample" "${instance_path}/master.cfg" \ |
388 |
- || die "Moving sample configuration failed" |
389 |
- ln --symbolic --relative "/etc/init.d/buildmaster" "/etc/init.d/buildmaster.${instance_name}" \ |
390 |
- || die "Unable to create link to init file" |
391 |
- |
392 |
- if [[ ! -d "${instance_log_path}" ]]; then |
393 |
- mkdir --parents "${instance_log_path}" || die "Unable to create directory ${instance_log_path}" |
394 |
- chown --recursive buildbot:buildbot "${instance_log_path}" \ |
395 |
- || die "Setting permissions for instance failed" |
396 |
- fi |
397 |
- ln --symbolic --relative "${instance_log_path}/twistd.log" "${instance_path}/twistd.log" \ |
398 |
- || die "Unable to create link to log file" |
399 |
- |
400 |
- einfo "Successfully created a buildmaster instance at ${instance_path}." |
401 |
- einfo "To change the default settings edit the master.cfg file in this directory." |
402 |
-} |
403 |
|
404 |
diff --git a/dev-util/buildbot/buildbot-3.6.0.ebuild b/dev-util/buildbot/buildbot-3.6.0.ebuild |
405 |
deleted file mode 100644 |
406 |
index 63802dfa22aa..000000000000 |
407 |
--- a/dev-util/buildbot/buildbot-3.6.0.ebuild |
408 |
+++ /dev/null |
409 |
@@ -1,181 +0,0 @@ |
410 |
-# Copyright 1999-2022 Gentoo Authors |
411 |
-# Distributed under the terms of the GNU General Public License v2 |
412 |
- |
413 |
-EAPI=8 |
414 |
- |
415 |
-DISTUTILS_USE_PEP517=setuptools |
416 |
-PYTHON_REQ_USE="sqlite" |
417 |
-PYTHON_COMPAT=( python3_{8..10} ) |
418 |
-inherit readme.gentoo-r1 systemd distutils-r1 |
419 |
- |
420 |
-MY_PV="${PV/_p/.post}" |
421 |
-MY_P="${PN}-${MY_PV}" |
422 |
- |
423 |
-DESCRIPTION="BuildBot build automation system" |
424 |
-HOMEPAGE="https://buildbot.net/ |
425 |
- https://github.com/buildbot/buildbot |
426 |
- https://pypi.org/project/buildbot/" |
427 |
-SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${MY_P}.tar.gz" |
428 |
-S=${WORKDIR}/${MY_P} |
429 |
- |
430 |
-LICENSE="GPL-2" |
431 |
-SLOT="0" |
432 |
-KEYWORDS="~amd64 ~arm64 ~riscv ~amd64-linux ~x86-linux" |
433 |
- |
434 |
-IUSE="crypt docker examples irc test" |
435 |
-RESTRICT="!test? ( test )" |
436 |
- |
437 |
-RDEPEND=" |
438 |
- acct-user/buildbot |
439 |
- >=dev-python/twisted-18.7.0[${PYTHON_USEDEP}] |
440 |
- >=dev-python/jinja-2.1[${PYTHON_USEDEP}] |
441 |
- >=dev-python/zope-interface-4.1.1[${PYTHON_USEDEP}] |
442 |
- >=dev-python/sqlalchemy-1.3.0[${PYTHON_USEDEP}] |
443 |
- <dev-python/sqlalchemy-1.5.0[${PYTHON_USEDEP}] |
444 |
- >=dev-python/alembic-1.6.0[${PYTHON_USEDEP}] |
445 |
- >=dev-python/python-dateutil-1.5[${PYTHON_USEDEP}] |
446 |
- >=dev-python/txaio-2.2.2[${PYTHON_USEDEP}] |
447 |
- >=dev-python/autobahn-0.16.0[${PYTHON_USEDEP}] |
448 |
- dev-python/pyjwt[${PYTHON_USEDEP}] |
449 |
- dev-python/pyyaml[${PYTHON_USEDEP}] |
450 |
- ~dev-util/buildbot-worker-${PV}[${PYTHON_USEDEP}] |
451 |
- crypt? ( |
452 |
- >=dev-python/pyopenssl-16.0.0[${PYTHON_USEDEP}] |
453 |
- dev-python/service_identity[${PYTHON_USEDEP}] |
454 |
- || ( |
455 |
- >=dev-python/twisted-18.7.0[${PYTHON_USEDEP},ssl(-)] |
456 |
- >=dev-python/twisted-18.7.0[${PYTHON_USEDEP},crypt(-)] |
457 |
- ) |
458 |
- dev-python/idna[${PYTHON_USEDEP}] |
459 |
- ) |
460 |
- irc? ( |
461 |
- dev-python/txrequests[${PYTHON_USEDEP}] |
462 |
- ) |
463 |
- docker? ( |
464 |
- >=dev-python/docker-py-2.2.0[${PYTHON_USEDEP}] |
465 |
- dev-python/requests[${PYTHON_USEDEP}] |
466 |
- ) |
467 |
-" |
468 |
-BDEPEND=" |
469 |
- test? ( |
470 |
- ${RDEPEND} |
471 |
- dev-python/treq[${PYTHON_USEDEP}] |
472 |
- dev-python/txrequests[${PYTHON_USEDEP}] |
473 |
- dev-python/pypugjs[${PYTHON_USEDEP}] |
474 |
- >=dev-python/boto3-1.12.48[${PYTHON_USEDEP}] |
475 |
- dev-python/moto[${PYTHON_USEDEP}] |
476 |
- >=dev-python/mock-2.0.0[${PYTHON_USEDEP}] |
477 |
- dev-python/parameterized[${PYTHON_USEDEP}] |
478 |
- dev-python/lz4[${PYTHON_USEDEP}] |
479 |
- dev-python/ldap3[${PYTHON_USEDEP}] |
480 |
- ~dev-util/buildbot-pkg-${PV}[${PYTHON_USEDEP}] |
481 |
- ~dev-util/buildbot-worker-${PV}[${PYTHON_USEDEP}] |
482 |
- ~dev-util/buildbot-www-${PV}[${PYTHON_USEDEP}] |
483 |
- )" |
484 |
- |
485 |
-DOC_CONTENTS="The \"buildbot\" user and the \"buildmaster\" init script has been added |
486 |
-to support starting buildbot through Gentoo's init system. To use this, |
487 |
-execute \"emerge --config =${CATEGORY}/${PF}\" to create a new instance. |
488 |
-The scripts can run as a different user if desired." |
489 |
- |
490 |
-src_prepare() { |
491 |
- # disable all warnings as errors |
492 |
- sed -e "/warnings.filterwarnings('error')/d" -i buildbot/test/__init__.py || die |
493 |
- |
494 |
- distutils-r1_src_prepare |
495 |
-} |
496 |
- |
497 |
-python_test() { |
498 |
- "${EPYTHON}" -m twisted.trial buildbot || die "Tests failed with ${EPYTHON}" |
499 |
-} |
500 |
- |
501 |
-src_install() { |
502 |
- distutils-r1_src_install |
503 |
- |
504 |
- doman docs/buildbot.1 |
505 |
- |
506 |
- if use examples; then |
507 |
- dodoc -r docs/examples |
508 |
- fi |
509 |
- |
510 |
- newconfd "${FILESDIR}/buildmaster.confd" buildmaster |
511 |
- newinitd "${FILESDIR}/buildmaster.initd" buildmaster |
512 |
- systemd_dounit "${FILESDIR}/buildmaster.target" |
513 |
- systemd_newunit "${FILESDIR}/buildmaster_at.service" "buildmaster@.service" |
514 |
- systemd_install_serviced "${FILESDIR}/buildmaster_at.service.conf" "buildmaster@.service" |
515 |
- |
516 |
- readme.gentoo_create_doc |
517 |
-} |
518 |
- |
519 |
-pkg_postinst() { |
520 |
- readme.gentoo_print_elog |
521 |
- |
522 |
- if [[ -n ${REPLACING_VERSIONS} ]]; then |
523 |
- ewarn |
524 |
- ewarn "Starting with buildbot-0.8.12-r2, more than one instance of buildmaster" |
525 |
- ewarn "can be run simultaneously. Note that \"BASEDIR\" in the buildbot configuration file" |
526 |
- ewarn "is now the common base directory for all instances. If you are migrating from an older" |
527 |
- ewarn "version, make sure that you copy the current contents of \"BASEDIR\" to a subdirectory." |
528 |
- ewarn "The name of the subdirectory corresponds to the name of the buildmaster instance." |
529 |
- ewarn "In order to start the service running OpenRC-based systems need to link to the init file:" |
530 |
- ewarn " ln --symbolic --relative /etc/init.d/buildmaster /etc/init.d/buildmaster.myinstance" |
531 |
- ewarn " rc-update add buildmaster.myinstance default" |
532 |
- ewarn " /etc/init.d/buildmaster.myinstance start" |
533 |
- ewarn "Systems using systemd can do the following:" |
534 |
- ewarn " systemctl enable buildmaster@××××××××××.service" |
535 |
- ewarn " systemctl enable buildmaster.target" |
536 |
- ewarn " systemctl start buildmaster.target" |
537 |
- elog |
538 |
- elog "Upstream recommends the following when upgrading:" |
539 |
- elog "Each time you install a new version of Buildbot, you should run the" |
540 |
- elog "\"buildbot upgrade-master\" command on each of your pre-existing build masters." |
541 |
- elog "This will add files and fix (or at least detect) incompatibilities between" |
542 |
- elog "your old config and the new code." |
543 |
- fi |
544 |
- elog |
545 |
- elog "In order to create a new instance of buildmaster, execute:" |
546 |
- elog " emerge --config =${CATEGORY}/${PF}" |
547 |
-} |
548 |
- |
549 |
-pkg_config() { |
550 |
- local buildmaster_path="/var/lib/buildmaster" |
551 |
- local log_path="/var/log/buildmaster" |
552 |
- |
553 |
- einfo "This will prepare a new buildmaster instance in ${buildmaster_path}." |
554 |
- einfo "Press Control-C to abort." |
555 |
- |
556 |
- einfo "Enter the name for the new instance: " |
557 |
- read instance_name |
558 |
- [[ -z "${instance_name}" ]] && die "Invalid instance name" |
559 |
- |
560 |
- local instance_path="${buildmaster_path}/${instance_name}" |
561 |
- local instance_log_path="${log_path}/${instance_name}" |
562 |
- |
563 |
- if [[ -e "${instance_path}" ]]; then |
564 |
- eerror "The instance with the specified name already exists:" |
565 |
- eerror "${instance_path}" |
566 |
- die "Instance already exists" |
567 |
- fi |
568 |
- |
569 |
- local buildbot="/usr/bin/buildbot" |
570 |
- if [[ ! -d "${buildmaster_path}" ]]; then |
571 |
- mkdir --parents "${buildmaster_path}" || die "Unable to create directory ${buildmaster_path}" |
572 |
- fi |
573 |
- "${buildbot}" create-master "${instance_path}" &>/dev/null || die "Creating instance failed" |
574 |
- chown --recursive buildbot:buildbot "${instance_path}" || die "Setting permissions for instance failed" |
575 |
- mv "${instance_path}/master.cfg.sample" "${instance_path}/master.cfg" \ |
576 |
- || die "Moving sample configuration failed" |
577 |
- ln --symbolic --relative "/etc/init.d/buildmaster" "/etc/init.d/buildmaster.${instance_name}" \ |
578 |
- || die "Unable to create link to init file" |
579 |
- |
580 |
- if [[ ! -d "${instance_log_path}" ]]; then |
581 |
- mkdir --parents "${instance_log_path}" || die "Unable to create directory ${instance_log_path}" |
582 |
- chown --recursive buildbot:buildbot "${instance_log_path}" \ |
583 |
- || die "Setting permissions for instance failed" |
584 |
- fi |
585 |
- ln --symbolic --relative "${instance_log_path}/twistd.log" "${instance_path}/twistd.log" \ |
586 |
- || die "Unable to create link to log file" |
587 |
- |
588 |
- einfo "Successfully created a buildmaster instance at ${instance_path}." |
589 |
- einfo "To change the default settings edit the master.cfg file in this directory." |
590 |
-} |