Gentoo Archives: gentoo-commits

From: Brian Dolbec <dolsen@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/buildbot/
Date: Thu, 26 Jul 2018 17:17:27
Message-Id: 1532625426.22440e649d41037feeb20e8f687fe30b640e7e0a.dolsen@gentoo
1 commit: 22440e649d41037feeb20e8f687fe30b640e7e0a
2 Author: Brian Dolbec dolsen <dolsen <AT> gentoo <DOT> org>
3 AuthorDate: Thu Jul 26 15:23:15 2018 +0000
4 Commit: Brian Dolbec <dolsen <AT> gentoo <DOT> org>
5 CommitDate: Thu Jul 26 17:17:06 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=22440e64
7
8 dev-util/buildbot: Clean old versions
9
10 These versions had regressions making them less usable.
11
12 Package-Manager: Portage-2.3.40, Repoman-2.3.9
13
14 dev-util/buildbot/Manifest | 4 -
15 dev-util/buildbot/buildbot-0.9.12.ebuild | 206 --------------------------
16 dev-util/buildbot/buildbot-0.9.13.ebuild | 202 --------------------------
17 dev-util/buildbot/buildbot-0.9.15_p1.ebuild | 210 ---------------------------
18 dev-util/buildbot/buildbot-1.1.0.ebuild | 218 ----------------------------
19 5 files changed, 840 deletions(-)
20
21 diff --git a/dev-util/buildbot/Manifest b/dev-util/buildbot/Manifest
22 index fc86e187eef..fe05e44af16 100644
23 --- a/dev-util/buildbot/Manifest
24 +++ b/dev-util/buildbot/Manifest
25 @@ -1,7 +1,3 @@
26 DIST buildbot-0.8.12.tar.gz 4834352 BLAKE2B 16d06d6ccbbb90581471cf1727cc9cdd556ab1c0fa1433bbe76475513a7482619b05c28038e956e8724b99a806aec371961302914567fd36caccfe342daa6aaa SHA512 18c5144132fb033f3581d3c494d5e8ff35d3e8b1548764452ce9ae543d710e58a2c6e3e8e46a0ef237804f9a6a45485890ae4616ab655fb00d4ccf328d6f6645
27 DIST buildbot-0.9.12.tar.gz 3057832 BLAKE2B 8e1748739bacc3c884f353b2a1c798575e3ce5f451a1711ecf88a7c7e517da86d2e791748d31468a2bb07369022e96cb568518b7a8ce1d9e1cece0b6ab77eec8 SHA512 62459918267297b31b2a6416f72794c7a4ebdcb60de04ece1681f6b8be9debf161716cc70ad843fd468b23e02c521c0a0783a5a1e119d75648e107691d6b908d
28 -DIST buildbot-0.9.13.tar.gz 3061713 BLAKE2B fac74d610bf0ff1cfeea1c59c46e95339d6b080725f6b01258921175b8036daeef23dfd3bf2a71fe838d43b9d7777e3a3141ff9cec0e1c7e609f21c53f51b91d SHA512 b1cf176d01e04bc219be8ffa787a857aec7bcfb930c3e9cabe0410fca60d826c35e74d277cd5764fcd3c6183ea5f19bae195c09ad401cdd948bda500789f2ade
29 -DIST buildbot-0.9.15.post1.tar.gz 3088947 BLAKE2B c9a0265d3df2a9ac01872fc7106b5b787334bd899a43fcdb6ad06aab5e0e8f1ddb4374bf5211f251f26985c3b11a0b981bdd23fb668ac1717af36443831648e6 SHA512 c5c72132fd8446fbb14467851063d192dbb817506163eacc3022d563698453c66706a895613ca1c17502dd25957b31f6409996497d2e7646ab2fdbb3fb55c31d
30 -DIST buildbot-1.1.0.docs.tar.xz 23932 BLAKE2B 81da8b86bb269efd2cd3f9146f3d9b41d64b28fdd0c878708c323d040a7e773cd277a18c82b1ef3cb07759ba8aedbc604e1de84f6477205b1708c28b6e86831e SHA512 511d244ffd205989047b4514b164e194b30fe4e0513d3bda776fb4d7a1a5bf42d8b7f00540b88e427838ab43f45686a83e556687ab75ce55eae6b834426a8ef7
31 -DIST buildbot-1.1.0.tar.gz 3098781 BLAKE2B 5a4ba8b641765fd58c3b5e788fc20aa1fb6195655ce2d82929f0f62ff48d20672f21efe0c413387e583d095c3ffcee1055a287016fe87ec1f3eb6b0ccdefdccb SHA512 f850ba2cd93d54a8abc97503719f93f69dfdc3d03b519e2d05c02bdc11893529eb51d74b6584555689281aedb71c3aa6c23141cf5fbc68ae97e09f1c89b2c94c
32 DIST buildbot-1.1.2.tar.gz 3101168 BLAKE2B 35ec56440014015850a69324d475c4ca9555ad90da85b26a7a43eca74f08361137021aec72ddca37cbb24f21519ebf45948e66214291f356b4a1fbada7c0b3b8 SHA512 14c28d6fae18a10d89d41509635188d881ac76e7b61758481a9afbb22eb384d7ab5080383242e5850af13bfe46877985a91036270c3c4fbf01eafee5b7699815
33
34 diff --git a/dev-util/buildbot/buildbot-0.9.12.ebuild b/dev-util/buildbot/buildbot-0.9.12.ebuild
35 deleted file mode 100644
36 index c37dc87e147..00000000000
37 --- a/dev-util/buildbot/buildbot-0.9.12.ebuild
38 +++ /dev/null
39 @@ -1,206 +0,0 @@
40 -# Copyright 1999-2018 Gentoo Foundation
41 -# Distributed under the terms of the GNU General Public License v2
42 -
43 -EAPI="6"
44 -PYTHON_REQ_USE="sqlite"
45 -PYTHON_COMPAT=( python2_7 python3_{5,6} )
46 -
47 -EGIT_REPO_URI="https://github.com/buildbot/${PN}.git"
48 -
49 -[[ ${PV} == *9999 ]] && inherit git-r3
50 -inherit readme.gentoo-r1 user systemd distutils-r1
51 -
52 -MY_PV="${PV/_p/p}"
53 -MY_P="${PN}-${MY_PV}"
54 -
55 -DESCRIPTION="BuildBot build automation system"
56 -HOMEPAGE="https://buildbot.net/ https://github.com/buildbot/buildbot https://pypi.org/project/buildbot/"
57 -[[ ${PV} == *9999 ]] || SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${MY_P}.tar.gz"
58 -
59 -LICENSE="GPL-2"
60 -SLOT="0"
61 -if [[ ${PV} == *9999 ]]; then
62 - KEYWORDS=""
63 -else
64 - KEYWORDS="~amd64"
65 -fi
66 -
67 -IUSE="crypt doc examples irc test"
68 -
69 -RDEPEND="
70 - >=dev-python/jinja-2.1[${PYTHON_USEDEP}]
71 - >=dev-python/twisted-17.9.0[${PYTHON_USEDEP}]
72 - >=dev-python/autobahn-0.16.0[${PYTHON_USEDEP}]
73 - >=dev-python/sqlalchemy-0.8[${PYTHON_USEDEP}]
74 - >=dev-python/sqlalchemy-migrate-0.9[${PYTHON_USEDEP}]
75 - dev-python/future[${PYTHON_USEDEP}]
76 - >=dev-python/python-dateutil-1.5[${PYTHON_USEDEP}]
77 - >=dev-python/txaio-2.2.2[${PYTHON_USEDEP}]
78 - dev-python/pyjwt[${PYTHON_USEDEP}]
79 - >=dev-python/zope-interface-4.1.1[${PYTHON_USEDEP}]
80 - ~dev-util/buildbot-worker-${PV}[${PYTHON_USEDEP}]
81 - crypt? (
82 - >=dev-python/twisted-17.9.0[${PYTHON_USEDEP},crypt]
83 - >=dev-python/pyopenssl-16.0.0[${PYTHON_USEDEP}]
84 - dev-python/idna[${PYTHON_USEDEP}]
85 - dev-python/service_identity[${PYTHON_USEDEP}]
86 - )
87 - irc? (
88 - dev-python/txrequests[${PYTHON_USEDEP}]
89 - )
90 -"
91 -DEPEND="${RDEPEND}
92 - >=dev-python/setuptools-21.2.1[${PYTHON_USEDEP}]
93 - doc? (
94 - >=dev-python/sphinx-1.4.3[${PYTHON_USEDEP}]
95 - dev-python/sphinxcontrib-blockdiag[${PYTHON_USEDEP}]
96 - dev-python/sphinxcontrib-spelling[${PYTHON_USEDEP}]
97 - dev-python/pyenchant[${PYTHON_USEDEP}]
98 - >=dev-python/docutils-0.8[${PYTHON_USEDEP}]
99 - <dev-python/docutils-0.13.0[${PYTHON_USEDEP}]
100 - dev-python/sphinx-jinja[${PYTHON_USEDEP}]
101 - dev-python/ramlfications[${PYTHON_USEDEP}]
102 - )
103 - test? (
104 - >=dev-python/python-dateutil-1.5[${PYTHON_USEDEP}]
105 - >=dev-python/mock-2.0.0[${PYTHON_USEDEP}]
106 - dev-python/moto[${PYTHON_USEDEP}]
107 - dev-python/boto3[${PYTHON_USEDEP}]
108 - dev-python/ramlfications[${PYTHON_USEDEP}]
109 - dev-python/pyjade[${PYTHON_USEDEP}]
110 - dev-python/txgithub[${PYTHON_USEDEP}]
111 - dev-python/txrequests[${PYTHON_USEDEP}]
112 - dev-python/lz4[${PYTHON_USEDEP}]
113 - dev-python/treq[${PYTHON_USEDEP}]
114 - dev-python/setuptools_trial[${PYTHON_USEDEP}]
115 - ~dev-util/buildbot-worker-${PV}[${PYTHON_USEDEP}]
116 - )"
117 -
118 -S=${WORKDIR}/${MY_P}
119 -[[ ${PV} == *9999 ]] && S=${S}/master
120 -
121 -PATCHES=(
122 - "${FILESDIR}/Remove-distro-version-test.patch"
123 -)
124 -
125 -pkg_setup() {
126 - enewuser buildbot
127 -
128 - DOC_CONTENTS="The \"buildbot\" user and the \"buildmaster\" init script has been added
129 - to support starting buildbot through Gentoo's init system. To use this,
130 - execute \"emerge --config =${CATEGORY}/${PF}\" to create a new instance.
131 - The scripts can run as a different user if desired."
132 -}
133 -
134 -src_compile() {
135 - distutils-r1_src_compile
136 -
137 - if use doc; then
138 - einfo "Generation of documentation"
139 - pushd docs > /dev/null
140 - #'man' target is currently broken
141 - emake html
142 - popd > /dev/null
143 - fi
144 -}
145 -
146 -src_install() {
147 - distutils-r1_src_install
148 -
149 - doman docs/buildbot.1
150 -
151 - if use doc; then
152 - dohtml -r docs/_build/html/
153 - # TODO: install man pages
154 - fi
155 -
156 - if use examples; then
157 - insinto /usr/share/doc/${PF}
158 - doins -r docs/examples
159 - fi
160 -
161 - newconfd "${FILESDIR}/buildmaster.confd" buildmaster
162 - newinitd "${FILESDIR}/buildmaster.initd" buildmaster
163 - systemd_dounit "${FILESDIR}/buildmaster.target"
164 - systemd_newunit "${FILESDIR}/buildmaster_at.service" "buildmaster@.service"
165 - systemd_install_serviced "${FILESDIR}/buildmaster_at.service.conf" "buildmaster@.service"
166 -
167 - readme.gentoo_create_doc
168 -}
169 -
170 -python_test() {
171 - distutils_install_for_testing
172 -
173 - esetup.py test || die "Tests failed under ${EPYTHON}"
174 -}
175 -
176 -pkg_postinst() {
177 - readme.gentoo_print_elog
178 -
179 - if [[ -n ${REPLACING_VERSIONS} ]]; then
180 - ewarn
181 - ewarn "Starting with buildbot-0.8.12-r2, more than one instance of buildmaster"
182 - ewarn "can be run simultaneously. Note that \"BASEDIR\" in the buildbot configuration file"
183 - ewarn "is now the common base directory for all instances. If you are migrating from an older"
184 - ewarn "version, make sure that you copy the current contents of \"BASEDIR\" to a subdirectory."
185 - ewarn "The name of the subdirectory corresponds to the name of the buildmaster instance."
186 - ewarn "In order to start the service running OpenRC-based systems need to link to the init file:"
187 - ewarn " ln --symbolic --relative /etc/init.d/buildmaster /etc/init.d/buildmaster.myinstance"
188 - ewarn " rc-update add buildmaster.myinstance default"
189 - ewarn " /etc/init.d/buildmaster.myinstance start"
190 - ewarn "Systems using systemd can do the following:"
191 - ewarn " systemctl enable buildmaster@××××××××××.service"
192 - ewarn " systemctl enable buildmaster.target"
193 - ewarn " systemctl start buildmaster.target"
194 - elog
195 - elog "Upstream recommends the following when upgrading:"
196 - elog "Each time you install a new version of Buildbot, you should run the"
197 - elog "\"buildbot upgrade-master\" command on each of your pre-existing build masters."
198 - elog "This will add files and fix (or at least detect) incompatibilities between"
199 - elog "your old config and the new code."
200 - fi
201 - elog
202 - elog "In order to create a new instance of buildmaster, execute:"
203 - elog " emerge --config =${CATEGORY}/${PF}"
204 -}
205 -
206 -pkg_config() {
207 - local buildmaster_path="/var/lib/buildmaster"
208 - local log_path="/var/log/buildmaster"
209 -
210 - einfo "This will prepare a new buildmaster instance in ${buildmaster_path}."
211 - einfo "Press Control-C to abort."
212 -
213 - einfo "Enter the name for the new instance: "
214 - read instance_name
215 - [[ -z "${instance_name}" ]] && die "Invalid instance name"
216 -
217 - local instance_path="${buildmaster_path}/${instance_name}"
218 - local instance_log_path="${log_path}/${instance_name}"
219 -
220 - if [[ -e "${instance_path}" ]]; then
221 - eerror "The instance with the specified name already exists:"
222 - eerror "${instance_path}"
223 - die "Instance already exists"
224 - fi
225 -
226 - local buildbot="/usr/bin/buildbot"
227 - if [[ ! -d "${buildmaster_path}" ]]; then
228 - mkdir --parents "${buildmaster_path}" || die "Unable to create directory ${buildmaster_path}"
229 - fi
230 - "${buildbot}" create-master "${instance_path}" &>/dev/null || die "Creating instance failed"
231 - chown --recursive buildbot "${instance_path}" || die "Setting permissions for instance failed"
232 - mv "${instance_path}/master.cfg.sample" "${instance_path}/master.cfg" \
233 - || die "Moving sample configuration failed"
234 - ln --symbolic --relative "/etc/init.d/buildmaster" "/etc/init.d/buildmaster.${instance_name}" \
235 - || die "Unable to create link to init file"
236 -
237 - if [[ ! -d "${instance_log_path}" ]]; then
238 - mkdir --parents "${instance_log_path}" || die "Unable to create directory ${instance_log_path}"
239 - fi
240 - ln --symbolic --relative "${instance_log_path}/twistd.log" "${instance_path}/twistd.log" \
241 - || die "Unable to create link to log file"
242 -
243 - einfo "Successfully created a buildmaster instance at ${instance_path}."
244 - einfo "To change the default settings edit the master.cfg file in this directory."
245 -}
246
247 diff --git a/dev-util/buildbot/buildbot-0.9.13.ebuild b/dev-util/buildbot/buildbot-0.9.13.ebuild
248 deleted file mode 100644
249 index 632833de2f4..00000000000
250 --- a/dev-util/buildbot/buildbot-0.9.13.ebuild
251 +++ /dev/null
252 @@ -1,202 +0,0 @@
253 -# Copyright 1999-2017 Gentoo Foundation
254 -# Distributed under the terms of the GNU General Public License v2
255 -
256 -EAPI="6"
257 -PYTHON_REQ_USE="sqlite"
258 -PYTHON_COMPAT=( python2_7 python3_{4,5,6} )
259 -
260 -EGIT_REPO_URI="https://github.com/buildbot/${PN}.git"
261 -
262 -[[ ${PV} == *9999 ]] && inherit git-r3
263 -inherit readme.gentoo-r1 user systemd distutils-r1
264 -
265 -MY_PV="${PV/_p/p}"
266 -MY_P="${PN}-${MY_PV}"
267 -
268 -DESCRIPTION="BuildBot build automation system"
269 -HOMEPAGE="https://buildbot.net/ https://github.com/buildbot/buildbot https://pypi.org/project/buildbot/"
270 -[[ ${PV} == *9999 ]] || SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${MY_P}.tar.gz"
271 -
272 -LICENSE="GPL-2"
273 -SLOT="0"
274 -if [[ ${PV} == *9999 ]]; then
275 - KEYWORDS=""
276 -else
277 - KEYWORDS="~amd64"
278 -fi
279 -
280 -IUSE="crypt doc examples irc test"
281 -
282 -RDEPEND="
283 - >=dev-python/jinja-2.1[${PYTHON_USEDEP}]
284 - >=dev-python/twisted-17.9.0[${PYTHON_USEDEP}]
285 - >=dev-python/autobahn-0.16.0[${PYTHON_USEDEP}]
286 - >=dev-python/sqlalchemy-0.8[${PYTHON_USEDEP}]
287 - >=dev-python/sqlalchemy-migrate-0.9[${PYTHON_USEDEP}]
288 - dev-python/future[${PYTHON_USEDEP}]
289 - >=dev-python/python-dateutil-1.5[${PYTHON_USEDEP}]
290 - >=dev-python/txaio-2.2.2[${PYTHON_USEDEP}]
291 - dev-python/pyjwt[${PYTHON_USEDEP}]
292 - >=dev-python/zope-interface-4.1.1[${PYTHON_USEDEP}]
293 - ~dev-util/buildbot-worker-${PV}[${PYTHON_USEDEP}]
294 - crypt? (
295 - >=dev-python/twisted-17.9.0[${PYTHON_USEDEP},crypt]
296 - >=dev-python/pyopenssl-16.0.0[${PYTHON_USEDEP}]
297 - dev-python/idna[${PYTHON_USEDEP}]
298 - dev-python/service_identity[${PYTHON_USEDEP}]
299 - )
300 - irc? (
301 - dev-python/txrequests[${PYTHON_USEDEP}]
302 - )
303 -"
304 -DEPEND="${RDEPEND}
305 - >=dev-python/setuptools-21.2.1[${PYTHON_USEDEP}]
306 - doc? (
307 - >=dev-python/sphinx-1.4.3[${PYTHON_USEDEP}]
308 - dev-python/sphinxcontrib-blockdiag[${PYTHON_USEDEP}]
309 - dev-python/sphinxcontrib-spelling[${PYTHON_USEDEP}]
310 - dev-python/pyenchant[${PYTHON_USEDEP}]
311 - >=dev-python/docutils-0.8[${PYTHON_USEDEP}]
312 - <dev-python/docutils-0.13.0[${PYTHON_USEDEP}]
313 - dev-python/sphinx-jinja[${PYTHON_USEDEP}]
314 - dev-python/ramlfications[${PYTHON_USEDEP}]
315 - )
316 - test? (
317 - >=dev-python/python-dateutil-1.5[${PYTHON_USEDEP}]
318 - >=dev-python/mock-2.0.0[${PYTHON_USEDEP}]
319 - dev-python/moto[${PYTHON_USEDEP}]
320 - dev-python/boto3[${PYTHON_USEDEP}]
321 - dev-python/ramlfications[${PYTHON_USEDEP}]
322 - dev-python/pyjade[${PYTHON_USEDEP}]
323 - dev-python/txgithub[${PYTHON_USEDEP}]
324 - dev-python/txrequests[${PYTHON_USEDEP}]
325 - dev-python/lz4[${PYTHON_USEDEP}]
326 - dev-python/treq[${PYTHON_USEDEP}]
327 - dev-python/setuptools_trial[${PYTHON_USEDEP}]
328 - ~dev-util/buildbot-worker-${PV}[${PYTHON_USEDEP}]
329 - )"
330 -
331 -S=${WORKDIR}/${MY_P}
332 -[[ ${PV} == *9999 ]] && S=${S}/master
333 -
334 -pkg_setup() {
335 - enewuser buildbot
336 -
337 - DOC_CONTENTS="The \"buildbot\" user and the \"buildmaster\" init script has been added
338 - to support starting buildbot through Gentoo's init system. To use this,
339 - execute \"emerge --config =${CATEGORY}/${PF}\" to create a new instance.
340 - The scripts can run as a different user if desired."
341 -}
342 -
343 -src_compile() {
344 - distutils-r1_src_compile
345 -
346 - if use doc; then
347 - einfo "Generation of documentation"
348 - pushd docs > /dev/null
349 - #'man' target is currently broken
350 - emake html
351 - popd > /dev/null
352 - fi
353 -}
354 -
355 -src_install() {
356 - distutils-r1_src_install
357 -
358 - doman docs/buildbot.1
359 -
360 - if use doc; then
361 - dohtml -r docs/_build/html/
362 - # TODO: install man pages
363 - fi
364 -
365 - if use examples; then
366 - insinto /usr/share/doc/${PF}
367 - doins -r docs/examples
368 - fi
369 -
370 - newconfd "${FILESDIR}/buildmaster.confd" buildmaster
371 - newinitd "${FILESDIR}/buildmaster.initd" buildmaster
372 - systemd_dounit "${FILESDIR}/buildmaster.target"
373 - systemd_newunit "${FILESDIR}/buildmaster_at.service" "buildmaster@.service"
374 - systemd_install_serviced "${FILESDIR}/buildmaster_at.service.conf" "buildmaster@.service"
375 -
376 - readme.gentoo_create_doc
377 -}
378 -
379 -python_test() {
380 - distutils_install_for_testing
381 -
382 - esetup.py test || die "Tests failed under ${EPYTHON}"
383 -}
384 -
385 -pkg_postinst() {
386 - readme.gentoo_print_elog
387 -
388 - if [[ -n ${REPLACING_VERSIONS} ]]; then
389 - ewarn
390 - ewarn "Starting with buildbot-0.8.12-r2, more than one instance of buildmaster"
391 - ewarn "can be run simultaneously. Note that \"BASEDIR\" in the buildbot configuration file"
392 - ewarn "is now the common base directory for all instances. If you are migrating from an older"
393 - ewarn "version, make sure that you copy the current contents of \"BASEDIR\" to a subdirectory."
394 - ewarn "The name of the subdirectory corresponds to the name of the buildmaster instance."
395 - ewarn "In order to start the service running OpenRC-based systems need to link to the init file:"
396 - ewarn " ln --symbolic --relative /etc/init.d/buildmaster /etc/init.d/buildmaster.myinstance"
397 - ewarn " rc-update add buildmaster.myinstance default"
398 - ewarn " /etc/init.d/buildmaster.myinstance start"
399 - ewarn "Systems using systemd can do the following:"
400 - ewarn " systemctl enable buildmaster@××××××××××.service"
401 - ewarn " systemctl enable buildmaster.target"
402 - ewarn " systemctl start buildmaster.target"
403 - elog
404 - elog "Upstream recommends the following when upgrading:"
405 - elog "Each time you install a new version of Buildbot, you should run the"
406 - elog "\"buildbot upgrade-master\" command on each of your pre-existing build masters."
407 - elog "This will add files and fix (or at least detect) incompatibilities between"
408 - elog "your old config and the new code."
409 - fi
410 - elog
411 - elog "In order to create a new instance of buildmaster, execute:"
412 - elog " emerge --config =${CATEGORY}/${PF}"
413 -}
414 -
415 -pkg_config() {
416 - local buildmaster_path="/var/lib/buildmaster"
417 - local log_path="/var/log/buildmaster"
418 -
419 - einfo "This will prepare a new buildmaster instance in ${buildmaster_path}."
420 - einfo "Press Control-C to abort."
421 -
422 - einfo "Enter the name for the new instance: "
423 - read instance_name
424 - [[ -z "${instance_name}" ]] && die "Invalid instance name"
425 -
426 - local instance_path="${buildmaster_path}/${instance_name}"
427 - local instance_log_path="${log_path}/${instance_name}"
428 -
429 - if [[ -e "${instance_path}" ]]; then
430 - eerror "The instance with the specified name already exists:"
431 - eerror "${instance_path}"
432 - die "Instance already exists"
433 - fi
434 -
435 - local buildbot="/usr/bin/buildbot"
436 - if [[ ! -d "${buildmaster_path}" ]]; then
437 - mkdir --parents "${buildmaster_path}" || die "Unable to create directory ${buildmaster_path}"
438 - fi
439 - "${buildbot}" create-master "${instance_path}" &>/dev/null || die "Creating instance failed"
440 - chown --recursive buildbot "${instance_path}" || die "Setting permissions for instance failed"
441 - mv "${instance_path}/master.cfg.sample" "${instance_path}/master.cfg" \
442 - || die "Moving sample configuration failed"
443 - ln --symbolic --relative "/etc/init.d/buildmaster" "/etc/init.d/buildmaster.${instance_name}" \
444 - || die "Unable to create link to init file"
445 -
446 - if [[ ! -d "${instance_log_path}" ]]; then
447 - mkdir --parents "${instance_log_path}" || die "Unable to create directory ${instance_log_path}"
448 - fi
449 - ln --symbolic --relative "${instance_log_path}/twistd.log" "${instance_path}/twistd.log" \
450 - || die "Unable to create link to log file"
451 -
452 - einfo "Successfully created a buildmaster instance at ${instance_path}."
453 - einfo "To change the default settings edit the master.cfg file in this directory."
454 -}
455
456 diff --git a/dev-util/buildbot/buildbot-0.9.15_p1.ebuild b/dev-util/buildbot/buildbot-0.9.15_p1.ebuild
457 deleted file mode 100644
458 index 31c121b11d7..00000000000
459 --- a/dev-util/buildbot/buildbot-0.9.15_p1.ebuild
460 +++ /dev/null
461 @@ -1,210 +0,0 @@
462 -# Copyright 1999-2018 Gentoo Foundation
463 -# Distributed under the terms of the GNU General Public License v2
464 -
465 -EAPI="6"
466 -PYTHON_REQ_USE="sqlite"
467 -PYTHON_COMPAT=( python2_7 python3_{4,5,6} )
468 -
469 -EGIT_REPO_URI="https://github.com/buildbot/${PN}.git"
470 -
471 -[[ ${PV} == *9999 ]] && inherit git-r3
472 -inherit readme.gentoo-r1 user systemd distutils-r1
473 -
474 -MY_PV="${PV/_p/.post}"
475 -MY_P="${PN}-${MY_PV}"
476 -
477 -DESCRIPTION="BuildBot build automation system"
478 -HOMEPAGE="https://buildbot.net/ https://github.com/buildbot/buildbot https://pypi.org/project/buildbot/"
479 -[[ ${PV} == *9999 ]] || SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${MY_P}.tar.gz"
480 -
481 -LICENSE="GPL-2"
482 -SLOT="0"
483 -if [[ ${PV} == *9999 ]]; then
484 - KEYWORDS=""
485 -else
486 - KEYWORDS="~amd64"
487 -fi
488 -
489 -IUSE="crypt doc docker examples irc test"
490 -
491 -RDEPEND="
492 - >=dev-python/jinja-2.1[${PYTHON_USEDEP}]
493 - >=dev-python/twisted-17.9.0[${PYTHON_USEDEP}]
494 - >=dev-python/autobahn-0.16.0[${PYTHON_USEDEP}]
495 - >=dev-python/sqlalchemy-0.8[${PYTHON_USEDEP}]
496 - >=dev-python/sqlalchemy-migrate-0.9[${PYTHON_USEDEP}]
497 - dev-python/future[${PYTHON_USEDEP}]
498 - >=dev-python/python-dateutil-1.5[${PYTHON_USEDEP}]
499 - >=dev-python/txaio-2.2.2[${PYTHON_USEDEP}]
500 - dev-python/pyjwt[${PYTHON_USEDEP}]
501 - >=dev-python/zope-interface-4.1.1[${PYTHON_USEDEP}]
502 - ~dev-util/buildbot-worker-${PV}[${PYTHON_USEDEP}]
503 - crypt? (
504 - >=dev-python/twisted-17.9.0[${PYTHON_USEDEP},crypt]
505 - >=dev-python/pyopenssl-16.0.0[${PYTHON_USEDEP}]
506 - dev-python/idna[${PYTHON_USEDEP}]
507 - dev-python/service_identity[${PYTHON_USEDEP}]
508 - )
509 - irc? (
510 - dev-python/txrequests[${PYTHON_USEDEP}]
511 - )
512 - docker? (
513 - >=dev-python/docker-py-2.2.0[${PYTHON_USEDEP}]
514 - )
515 -"
516 -DEPEND="${RDEPEND}
517 - >=dev-python/setuptools-21.2.1[${PYTHON_USEDEP}]
518 - doc? (
519 - >=dev-python/sphinx-1.4.3[${PYTHON_USEDEP}]
520 - dev-python/sphinxcontrib-blockdiag[${PYTHON_USEDEP}]
521 - dev-python/sphinxcontrib-spelling[${PYTHON_USEDEP}]
522 - dev-python/pyenchant[${PYTHON_USEDEP}]
523 - >=dev-python/docutils-0.8[${PYTHON_USEDEP}]
524 - <dev-python/docutils-0.13.0[${PYTHON_USEDEP}]
525 - dev-python/sphinx-jinja[${PYTHON_USEDEP}]
526 - dev-python/ramlfications[${PYTHON_USEDEP}]
527 - )
528 - test? (
529 - >=dev-python/python-dateutil-1.5[${PYTHON_USEDEP}]
530 - >=dev-python/mock-2.0.0[${PYTHON_USEDEP}]
531 - dev-python/moto[${PYTHON_USEDEP}]
532 - dev-python/boto3[${PYTHON_USEDEP}]
533 - dev-python/ramlfications[${PYTHON_USEDEP}]
534 - dev-python/pyjade[${PYTHON_USEDEP}]
535 - dev-python/txgithub[${PYTHON_USEDEP}]
536 - dev-python/txrequests[${PYTHON_USEDEP}]
537 - dev-python/lz4[${PYTHON_USEDEP}]
538 - dev-python/treq[${PYTHON_USEDEP}]
539 - dev-python/setuptools_trial[${PYTHON_USEDEP}]
540 - ~dev-util/buildbot-worker-${PV}[${PYTHON_USEDEP}]
541 - >=dev-python/docker-py-2.2.0[${PYTHON_USEDEP}]
542 - )"
543 -
544 -S=${WORKDIR}/${MY_P}
545 -[[ ${PV} == *9999 ]] && S=${S}/master
546 -
547 -#PATCHES=(
548 -# "${FILESDIR}/${P}-buildbotworkerdocker.py.patch"
549 -#)
550 -
551 -pkg_setup() {
552 - enewuser buildbot
553 -
554 - DOC_CONTENTS="The \"buildbot\" user and the \"buildmaster\" init script has been added
555 - to support starting buildbot through Gentoo's init system. To use this,
556 - execute \"emerge --config =${CATEGORY}/${PF}\" to create a new instance.
557 - The scripts can run as a different user if desired."
558 -}
559 -
560 -src_compile() {
561 - distutils-r1_src_compile
562 -
563 - if use doc; then
564 - einfo "Generation of documentation"
565 - pushd docs > /dev/null
566 - #'man' target is currently broken
567 - emake html
568 - popd > /dev/null
569 - fi
570 -}
571 -
572 -src_install() {
573 - distutils-r1_src_install
574 -
575 - doman docs/buildbot.1
576 -
577 - if use doc; then
578 - dohtml -r docs/_build/html/
579 - # TODO: install man pages
580 - fi
581 -
582 - if use examples; then
583 - insinto /usr/share/doc/${PF}
584 - doins -r docs/examples
585 - fi
586 -
587 - newconfd "${FILESDIR}/buildmaster.confd" buildmaster
588 - newinitd "${FILESDIR}/buildmaster.initd" buildmaster
589 - systemd_dounit "${FILESDIR}/buildmaster.target"
590 - systemd_newunit "${FILESDIR}/buildmaster_at.service" "buildmaster@.service"
591 - systemd_install_serviced "${FILESDIR}/buildmaster_at.service.conf" "buildmaster@.service"
592 -
593 - readme.gentoo_create_doc
594 -}
595 -
596 -python_test() {
597 - distutils_install_for_testing
598 -
599 - esetup.py test || die "Tests failed under ${EPYTHON}"
600 -}
601 -
602 -pkg_postinst() {
603 - readme.gentoo_print_elog
604 -
605 - if [[ -n ${REPLACING_VERSIONS} ]]; then
606 - ewarn
607 - ewarn "Starting with buildbot-0.8.12-r2, more than one instance of buildmaster"
608 - ewarn "can be run simultaneously. Note that \"BASEDIR\" in the buildbot configuration file"
609 - ewarn "is now the common base directory for all instances. If you are migrating from an older"
610 - ewarn "version, make sure that you copy the current contents of \"BASEDIR\" to a subdirectory."
611 - ewarn "The name of the subdirectory corresponds to the name of the buildmaster instance."
612 - ewarn "In order to start the service running OpenRC-based systems need to link to the init file:"
613 - ewarn " ln --symbolic --relative /etc/init.d/buildmaster /etc/init.d/buildmaster.myinstance"
614 - ewarn " rc-update add buildmaster.myinstance default"
615 - ewarn " /etc/init.d/buildmaster.myinstance start"
616 - ewarn "Systems using systemd can do the following:"
617 - ewarn " systemctl enable buildmaster@××××××××××.service"
618 - ewarn " systemctl enable buildmaster.target"
619 - ewarn " systemctl start buildmaster.target"
620 - elog
621 - elog "Upstream recommends the following when upgrading:"
622 - elog "Each time you install a new version of Buildbot, you should run the"
623 - elog "\"buildbot upgrade-master\" command on each of your pre-existing build masters."
624 - elog "This will add files and fix (or at least detect) incompatibilities between"
625 - elog "your old config and the new code."
626 - fi
627 - elog
628 - elog "In order to create a new instance of buildmaster, execute:"
629 - elog " emerge --config =${CATEGORY}/${PF}"
630 -}
631 -
632 -pkg_config() {
633 - local buildmaster_path="/var/lib/buildmaster"
634 - local log_path="/var/log/buildmaster"
635 -
636 - einfo "This will prepare a new buildmaster instance in ${buildmaster_path}."
637 - einfo "Press Control-C to abort."
638 -
639 - einfo "Enter the name for the new instance: "
640 - read instance_name
641 - [[ -z "${instance_name}" ]] && die "Invalid instance name"
642 -
643 - local instance_path="${buildmaster_path}/${instance_name}"
644 - local instance_log_path="${log_path}/${instance_name}"
645 -
646 - if [[ -e "${instance_path}" ]]; then
647 - eerror "The instance with the specified name already exists:"
648 - eerror "${instance_path}"
649 - die "Instance already exists"
650 - fi
651 -
652 - local buildbot="/usr/bin/buildbot"
653 - if [[ ! -d "${buildmaster_path}" ]]; then
654 - mkdir --parents "${buildmaster_path}" || die "Unable to create directory ${buildmaster_path}"
655 - fi
656 - "${buildbot}" create-master "${instance_path}" &>/dev/null || die "Creating instance failed"
657 - chown --recursive buildbot "${instance_path}" || die "Setting permissions for instance failed"
658 - mv "${instance_path}/master.cfg.sample" "${instance_path}/master.cfg" \
659 - || die "Moving sample configuration failed"
660 - ln --symbolic --relative "/etc/init.d/buildmaster" "/etc/init.d/buildmaster.${instance_name}" \
661 - || die "Unable to create link to init file"
662 -
663 - if [[ ! -d "${instance_log_path}" ]]; then
664 - mkdir --parents "${instance_log_path}" || die "Unable to create directory ${instance_log_path}"
665 - fi
666 - ln --symbolic --relative "${instance_log_path}/twistd.log" "${instance_path}/twistd.log" \
667 - || die "Unable to create link to log file"
668 -
669 - einfo "Successfully created a buildmaster instance at ${instance_path}."
670 - einfo "To change the default settings edit the master.cfg file in this directory."
671 -}
672
673 diff --git a/dev-util/buildbot/buildbot-1.1.0.ebuild b/dev-util/buildbot/buildbot-1.1.0.ebuild
674 deleted file mode 100644
675 index 4cdc4a28db2..00000000000
676 --- a/dev-util/buildbot/buildbot-1.1.0.ebuild
677 +++ /dev/null
678 @@ -1,218 +0,0 @@
679 -# Copyright 1999-2018 Gentoo Foundation
680 -# Distributed under the terms of the GNU General Public License v2
681 -
682 -EAPI="6"
683 -PYTHON_REQ_USE="sqlite"
684 -PYTHON_COMPAT=( python2_7 python3_{4,5,6} )
685 -
686 -EGIT_REPO_URI="https://github.com/buildbot/${PN}.git"
687 -
688 -[[ ${PV} == *9999 ]] && inherit git-r3
689 -inherit readme.gentoo-r1 user systemd distutils-r1
690 -
691 -MY_PV="${PV/_p/.post}"
692 -MY_P="${PN}-${MY_PV}"
693 -
694 -DESCRIPTION="BuildBot build automation system"
695 -HOMEPAGE="https://buildbot.net/ https://github.com/buildbot/buildbot https://pypi.org/project/buildbot/"
696 -SRC_URI="
697 - mirror://pypi/${PN:0:1}/${PN}/${MY_P}.tar.gz
698 - https://dev.gentoo.org/~dolsen/distfiles/buildbot-1.1.0.docs.tar.xz
699 -"
700 -
701 -LICENSE="GPL-2"
702 -SLOT="0"
703 -if [[ ${PV} == *9999 ]]; then
704 - KEYWORDS=""
705 -else
706 - KEYWORDS="~amd64"
707 -fi
708 -
709 -IUSE="crypt doc docker examples irc test"
710 -
711 -RDEPEND="
712 - >=dev-python/jinja-2.1[${PYTHON_USEDEP}]
713 - >=dev-python/twisted-17.9.0[${PYTHON_USEDEP}]
714 - >=dev-python/autobahn-0.16.0[${PYTHON_USEDEP}]
715 - >=dev-python/sqlalchemy-0.8[${PYTHON_USEDEP}]
716 - >=dev-python/sqlalchemy-migrate-0.9[${PYTHON_USEDEP}]
717 - dev-python/future[${PYTHON_USEDEP}]
718 - >=dev-python/python-dateutil-1.5[${PYTHON_USEDEP}]
719 - >=dev-python/txaio-2.2.2[${PYTHON_USEDEP}]
720 - dev-python/pyjwt[${PYTHON_USEDEP}]
721 - >=dev-python/zope-interface-4.1.1[${PYTHON_USEDEP}]
722 - ~dev-util/buildbot-worker-${PV}[${PYTHON_USEDEP}]
723 - crypt? (
724 - >=dev-python/twisted-17.9.0[${PYTHON_USEDEP},crypt]
725 - >=dev-python/pyopenssl-16.0.0[${PYTHON_USEDEP}]
726 - dev-python/idna[${PYTHON_USEDEP}]
727 - dev-python/service_identity[${PYTHON_USEDEP}]
728 - )
729 - irc? (
730 - dev-python/txrequests[${PYTHON_USEDEP}]
731 - )
732 - docker? (
733 - >=dev-python/docker-py-2.2.0[${PYTHON_USEDEP}]
734 - )
735 -"
736 -DEPEND="${RDEPEND}
737 - >=dev-python/setuptools-21.2.1[${PYTHON_USEDEP}]
738 - doc? (
739 - >=dev-python/sphinx-1.4.3[${PYTHON_USEDEP}]
740 - dev-python/sphinxcontrib-blockdiag[${PYTHON_USEDEP}]
741 - dev-python/sphinxcontrib-spelling[${PYTHON_USEDEP}]
742 - dev-python/pyenchant[${PYTHON_USEDEP}]
743 - >=dev-python/docutils-0.8[${PYTHON_USEDEP}]
744 - <dev-python/docutils-0.13.0[${PYTHON_USEDEP}]
745 - dev-python/sphinx-jinja[${PYTHON_USEDEP}]
746 - )
747 - test? (
748 - >=dev-python/python-dateutil-1.5[${PYTHON_USEDEP}]
749 - >=dev-python/mock-2.0.0[${PYTHON_USEDEP}]
750 - dev-python/moto[${PYTHON_USEDEP}]
751 - dev-python/boto3[${PYTHON_USEDEP}]
752 - dev-python/pyjade[${PYTHON_USEDEP}]
753 - dev-python/txgithub[${PYTHON_USEDEP}]
754 - dev-python/txrequests[${PYTHON_USEDEP}]
755 - dev-python/lz4[${PYTHON_USEDEP}]
756 - dev-python/treq[${PYTHON_USEDEP}]
757 - dev-python/setuptools_trial[${PYTHON_USEDEP}]
758 - ~dev-util/buildbot-worker-${PV}[${PYTHON_USEDEP}]
759 - >=dev-python/docker-py-2.2.0[${PYTHON_USEDEP}]
760 - )"
761 -
762 -S=${WORKDIR}/${MY_P}
763 -[[ ${PV} == *9999 ]] && S=${S}/master
764 -
765 -PATCHES=(
766 - "${FILESDIR}/Remove-distro-version-test.patch"
767 - "${FILESDIR}/disable-test_userpass_wait.patch"
768 -)
769 -
770 -src_unpack() {
771 - unpack ${MY_P}.tar.gz
772 - cd ${MY_P}
773 - unpack buildbot-1.1.0.docs.tar.xz
774 -}
775 -
776 -pkg_setup() {
777 - enewuser buildbot
778 -
779 - DOC_CONTENTS="The \"buildbot\" user and the \"buildmaster\" init script has been added
780 - to support starting buildbot through Gentoo's init system. To use this,
781 - execute \"emerge --config =${CATEGORY}/${PF}\" to create a new instance.
782 - The scripts can run as a different user if desired."
783 -}
784 -
785 -src_compile() {
786 - distutils-r1_src_compile
787 -
788 - if use doc; then
789 - einfo "Generation of documentation"
790 - pushd docs > /dev/null
791 - #'man' target is currently broken
792 - emake html
793 - popd > /dev/null
794 - fi
795 -}
796 -
797 -src_install() {
798 - distutils-r1_src_install
799 -
800 - doman docs/buildbot.1
801 -
802 - if use doc; then
803 - dohtml -r docs/_build/html/
804 - # TODO: install man pages
805 - fi
806 -
807 - if use examples; then
808 - insinto /usr/share/doc/${PF}
809 - doins -r docs/examples
810 - fi
811 -
812 - newconfd "${FILESDIR}/buildmaster.confd" buildmaster
813 - newinitd "${FILESDIR}/buildmaster.initd" buildmaster
814 - systemd_dounit "${FILESDIR}/buildmaster.target"
815 - systemd_newunit "${FILESDIR}/buildmaster_at.service" "buildmaster@.service"
816 - systemd_install_serviced "${FILESDIR}/buildmaster_at.service.conf" "buildmaster@.service"
817 -
818 - readme.gentoo_create_doc
819 -}
820 -
821 -python_test() {
822 - distutils_install_for_testing
823 - export DISABLE_TEST=true
824 - esetup.py test || die "Tests failed under ${EPYTHON}"
825 -}
826 -
827 -pkg_postinst() {
828 - readme.gentoo_print_elog
829 -
830 - if [[ -n ${REPLACING_VERSIONS} ]]; then
831 - ewarn
832 - ewarn "Starting with buildbot-0.8.12-r2, more than one instance of buildmaster"
833 - ewarn "can be run simultaneously. Note that \"BASEDIR\" in the buildbot configuration file"
834 - ewarn "is now the common base directory for all instances. If you are migrating from an older"
835 - ewarn "version, make sure that you copy the current contents of \"BASEDIR\" to a subdirectory."
836 - ewarn "The name of the subdirectory corresponds to the name of the buildmaster instance."
837 - ewarn "In order to start the service running OpenRC-based systems need to link to the init file:"
838 - ewarn " ln --symbolic --relative /etc/init.d/buildmaster /etc/init.d/buildmaster.myinstance"
839 - ewarn " rc-update add buildmaster.myinstance default"
840 - ewarn " /etc/init.d/buildmaster.myinstance start"
841 - ewarn "Systems using systemd can do the following:"
842 - ewarn " systemctl enable buildmaster@××××××××××.service"
843 - ewarn " systemctl enable buildmaster.target"
844 - ewarn " systemctl start buildmaster.target"
845 - elog
846 - elog "Upstream recommends the following when upgrading:"
847 - elog "Each time you install a new version of Buildbot, you should run the"
848 - elog "\"buildbot upgrade-master\" command on each of your pre-existing build masters."
849 - elog "This will add files and fix (or at least detect) incompatibilities between"
850 - elog "your old config and the new code."
851 - fi
852 - elog
853 - elog "In order to create a new instance of buildmaster, execute:"
854 - elog " emerge --config =${CATEGORY}/${PF}"
855 -}
856 -
857 -pkg_config() {
858 - local buildmaster_path="/var/lib/buildmaster"
859 - local log_path="/var/log/buildmaster"
860 -
861 - einfo "This will prepare a new buildmaster instance in ${buildmaster_path}."
862 - einfo "Press Control-C to abort."
863 -
864 - einfo "Enter the name for the new instance: "
865 - read instance_name
866 - [[ -z "${instance_name}" ]] && die "Invalid instance name"
867 -
868 - local instance_path="${buildmaster_path}/${instance_name}"
869 - local instance_log_path="${log_path}/${instance_name}"
870 -
871 - if [[ -e "${instance_path}" ]]; then
872 - eerror "The instance with the specified name already exists:"
873 - eerror "${instance_path}"
874 - die "Instance already exists"
875 - fi
876 -
877 - local buildbot="/usr/bin/buildbot"
878 - if [[ ! -d "${buildmaster_path}" ]]; then
879 - mkdir --parents "${buildmaster_path}" || die "Unable to create directory ${buildmaster_path}"
880 - fi
881 - "${buildbot}" create-master "${instance_path}" &>/dev/null || die "Creating instance failed"
882 - chown --recursive buildbot "${instance_path}" || die "Setting permissions for instance failed"
883 - mv "${instance_path}/master.cfg.sample" "${instance_path}/master.cfg" \
884 - || die "Moving sample configuration failed"
885 - ln --symbolic --relative "/etc/init.d/buildmaster" "/etc/init.d/buildmaster.${instance_name}" \
886 - || die "Unable to create link to init file"
887 -
888 - if [[ ! -d "${instance_log_path}" ]]; then
889 - mkdir --parents "${instance_log_path}" || die "Unable to create directory ${instance_log_path}"
890 - fi
891 - ln --symbolic --relative "${instance_log_path}/twistd.log" "${instance_path}/twistd.log" \
892 - || die "Unable to create link to log file"
893 -
894 - einfo "Successfully created a buildmaster instance at ${instance_path}."
895 - einfo "To change the default settings edit the master.cfg file in this directory."
896 -}