1 |
commit: c1e88821f10322aa43d2fab6ae261625b694c931 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Jan 27 10:05:30 2020 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Jan 27 10:13:49 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c1e88821 |
7 |
|
8 |
dev-util/buildbot: Remove old |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
dev-util/buildbot/Manifest | 1 - |
13 |
dev-util/buildbot/buildbot-0.8.12-r3.ebuild | 148 ---------------------------- |
14 |
2 files changed, 149 deletions(-) |
15 |
|
16 |
diff --git a/dev-util/buildbot/Manifest b/dev-util/buildbot/Manifest |
17 |
index 147a94705ef..945e3fa1b8a 100644 |
18 |
--- a/dev-util/buildbot/Manifest |
19 |
+++ b/dev-util/buildbot/Manifest |
20 |
@@ -1,4 +1,3 @@ |
21 |
-DIST buildbot-0.8.12.tar.gz 4834352 BLAKE2B 16d06d6ccbbb90581471cf1727cc9cdd556ab1c0fa1433bbe76475513a7482619b05c28038e956e8724b99a806aec371961302914567fd36caccfe342daa6aaa SHA512 18c5144132fb033f3581d3c494d5e8ff35d3e8b1548764452ce9ae543d710e58a2c6e3e8e46a0ef237804f9a6a45485890ae4616ab655fb00d4ccf328d6f6645 |
22 |
DIST buildbot-0.9.12.tar.gz 3057832 BLAKE2B 8e1748739bacc3c884f353b2a1c798575e3ce5f451a1711ecf88a7c7e517da86d2e791748d31468a2bb07369022e96cb568518b7a8ce1d9e1cece0b6ab77eec8 SHA512 62459918267297b31b2a6416f72794c7a4ebdcb60de04ece1681f6b8be9debf161716cc70ad843fd468b23e02c521c0a0783a5a1e119d75648e107691d6b908d |
23 |
DIST buildbot-1.1.2.tar.gz 3101168 BLAKE2B 35ec56440014015850a69324d475c4ca9555ad90da85b26a7a43eca74f08361137021aec72ddca37cbb24f21519ebf45948e66214291f356b4a1fbada7c0b3b8 SHA512 14c28d6fae18a10d89d41509635188d881ac76e7b61758481a9afbb22eb384d7ab5080383242e5850af13bfe46877985a91036270c3c4fbf01eafee5b7699815 |
24 |
DIST buildbot-1.3.0.tar.gz 3119185 BLAKE2B d366b83baad7e865481535a2462ceb222aadce6c90a6229e82a72bf86518b8ebb0624d8ac8b64867783d58b6e9033b942a1ccd31fd6664a2b527eac9f11ab852 SHA512 e5ecf3eafe428a188c2410d270ee9bd5afc39122e62d35747288cf85347368ab4a94190b4ff6fe687269dc19cc7b91d33be8d3e3b637741e421a2cbd83572830 |
25 |
|
26 |
diff --git a/dev-util/buildbot/buildbot-0.8.12-r3.ebuild b/dev-util/buildbot/buildbot-0.8.12-r3.ebuild |
27 |
deleted file mode 100644 |
28 |
index f4f29f9274c..00000000000 |
29 |
--- a/dev-util/buildbot/buildbot-0.8.12-r3.ebuild |
30 |
+++ /dev/null |
31 |
@@ -1,148 +0,0 @@ |
32 |
-# Copyright 1999-2019 Gentoo Authors |
33 |
-# Distributed under the terms of the GNU General Public License v2 |
34 |
- |
35 |
-EAPI="5" |
36 |
-PYTHON_COMPAT=( python2_7 ) |
37 |
-PYTHON_REQ_USE="sqlite" |
38 |
- |
39 |
-inherit distutils-r1 readme.gentoo systemd user |
40 |
- |
41 |
-MY_PV="${PV/_p/p}" |
42 |
-MY_P="${PN}-${MY_PV}" |
43 |
- |
44 |
-DESCRIPTION="BuildBot build automation system" |
45 |
-HOMEPAGE="http://buildbot.net/ https://github.com/buildbot/buildbot https://pypi.org/project/buildbot/" |
46 |
-SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${MY_P}.tar.gz" |
47 |
- |
48 |
-LICENSE="GPL-2" |
49 |
-SLOT="0" |
50 |
-KEYWORDS="~alpha amd64 arm hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc x86 ~amd64-linux ~x86-linux ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris" |
51 |
-IUSE="doc examples irc mail manhole test" |
52 |
-RESTRICT="!test? ( test )" |
53 |
- |
54 |
-RDEPEND=">=dev-python/jinja-2.1[${PYTHON_USEDEP}] |
55 |
- dev-python/twisted-core[${PYTHON_USEDEP}] |
56 |
- dev-python/twisted-web[${PYTHON_USEDEP}] |
57 |
- <=dev-python/sqlalchemy-0.7.10-r999[${PYTHON_USEDEP}] |
58 |
- ~dev-python/sqlalchemy-migrate-0.7.2[${PYTHON_USEDEP}] |
59 |
- irc? ( dev-python/twisted-words[${PYTHON_USEDEP}] ) |
60 |
- mail? ( dev-python/twisted-mail[${PYTHON_USEDEP}] ) |
61 |
- manhole? ( dev-python/twisted-conch[${PYTHON_USEDEP}] )" |
62 |
-DEPEND="${DEPEND} |
63 |
- dev-python/setuptools[${PYTHON_USEDEP}] |
64 |
- doc? ( dev-python/sphinx[${PYTHON_USEDEP}] ) |
65 |
- >=dev-python/python-dateutil-1.5[${PYTHON_USEDEP}] |
66 |
- test? ( |
67 |
- dev-python/mock[${PYTHON_USEDEP}] |
68 |
- dev-python/twisted-mail[${PYTHON_USEDEP}] |
69 |
- dev-python/twisted-web[${PYTHON_USEDEP}] |
70 |
- dev-python/twisted-words[${PYTHON_USEDEP}] |
71 |
- )" |
72 |
- |
73 |
-S="${WORKDIR}/${MY_P}" |
74 |
- |
75 |
-pkg_setup() { |
76 |
- enewuser buildbot |
77 |
- |
78 |
- DOC_CONTENTS="The \"buildbot\" user and the \"buildmaster\" init script has been added |
79 |
- to support starting buildbot through Gentoo's init system. To use this, |
80 |
- execute \"emerge --config =${CATEGORY}/${PF}\" to create a new instance. |
81 |
- The scripts can run as a different user if desired." |
82 |
-} |
83 |
- |
84 |
-src_compile() { |
85 |
- distutils-r1_src_compile |
86 |
- |
87 |
- if use doc; then |
88 |
- einfo "Generation of documentation" |
89 |
- pushd docs > /dev/null |
90 |
- #'man' target is currently broken |
91 |
- emake html |
92 |
- popd > /dev/null |
93 |
- fi |
94 |
-} |
95 |
- |
96 |
-src_install() { |
97 |
- distutils-r1_src_install |
98 |
- |
99 |
- doman docs/buildbot.1 |
100 |
- |
101 |
- if use doc; then |
102 |
- dohtml -r docs/_build/html/ |
103 |
- # TODO: install man pages |
104 |
- fi |
105 |
- |
106 |
- if use examples; then |
107 |
- insinto /usr/share/doc/${PF} |
108 |
- doins -r contrib docs/examples |
109 |
- fi |
110 |
- |
111 |
- newconfd "${FILESDIR}/buildmaster.confd" buildmaster |
112 |
- newinitd "${FILESDIR}/buildmaster.initd" buildmaster |
113 |
- systemd_dounit "${FILESDIR}/buildmaster.target" |
114 |
- systemd_newunit "${FILESDIR}/buildmaster_at.service" "buildmaster@.service" |
115 |
- systemd_install_serviced "${FILESDIR}/buildmaster_at.service.conf" "buildmaster@.service" |
116 |
- |
117 |
- readme.gentoo_create_doc |
118 |
-} |
119 |
- |
120 |
-pkg_postinst() { |
121 |
- readme.gentoo_print_elog |
122 |
- |
123 |
- if [[ -n ${REPLACING_VERSIONS} ]]; then |
124 |
- ewarn |
125 |
- ewarn "Starting with buildbot-0.8.12-r2, more than one instance of buildmaster" |
126 |
- ewarn "can be run simultaneously. Note that \"BASEDIR\" in the buildbot configuration file" |
127 |
- ewarn "is now the common base directory for all instances. If you are migrating from an older" |
128 |
- ewarn "version, make sure that you copy the current contents of \"BASEDIR\" to a subdirectory." |
129 |
- ewarn "The name of the subdirectory corresponds to the name of the buildmaster instance." |
130 |
- ewarn "In order to start the service running OpenRC-based systems need to link to the init file:" |
131 |
- ewarn " ln --symbolic --relative /etc/init.d/buildmaster /etc/init.d/buildmaster.myinstance" |
132 |
- ewarn " rc-update add buildmaster.myinstance default" |
133 |
- ewarn " /etc/init.d/buildmaster.myinstance start" |
134 |
- ewarn "Systems using systemd can do the following:" |
135 |
- ewarn " systemctl enable buildmaster@××××××××××.service" |
136 |
- ewarn " systemctl enable buildmaster.target" |
137 |
- ewarn " systemctl start buildmaster.target" |
138 |
- elog |
139 |
- elog "Upstream recommends the following when upgrading:" |
140 |
- elog "Each time you install a new version of Buildbot, you should run the" |
141 |
- elog "\"buildbot upgrade-master\" command on each of your pre-existing build masters." |
142 |
- elog "This will add files and fix (or at least detect) incompatibilities between" |
143 |
- elog "your old config and the new code." |
144 |
- fi |
145 |
- elog |
146 |
- elog "In order to create a new instance of buildmaster, execute:" |
147 |
- elog " emerge --config =${CATEGORY}/${PF}" |
148 |
-} |
149 |
- |
150 |
-pkg_config() { |
151 |
- local buildmaster_path="/var/lib/buildmaster" |
152 |
- einfo "This will prepare a new buildmaster instance in ${buildmaster_path}." |
153 |
- einfo "Press Control-C to abort." |
154 |
- |
155 |
- einfo "Enter the name for the new instance: " |
156 |
- read instance_name |
157 |
- [[ -z "${instance_name}" ]] && die "Invalid instance name" |
158 |
- |
159 |
- local instance_path="${buildmaster_path}/${instance_name}" |
160 |
- if [[ -e "${instance_path}" ]]; then |
161 |
- eerror "The instance with the specified name already exists:" |
162 |
- eerror "${instance_path}" |
163 |
- die "Instance already exists" |
164 |
- fi |
165 |
- |
166 |
- local buildbot="/usr/bin/buildbot" |
167 |
- if [[ ! -d "${buildmaster_path}" ]]; then |
168 |
- mkdir --parents "${buildmaster_path}" || die "Unable to create directory ${buildmaster_path}" |
169 |
- fi |
170 |
- "${buildbot}" create-master "${instance_path}" &>/dev/null || die "Creating instance failed" |
171 |
- chown --recursive buildbot "${instance_path}" || die "Setting permissions for instance failed" |
172 |
- mv "${instance_path}/master.cfg.sample" "${instance_path}/master.cfg" \ |
173 |
- || die "Moving sample configuration failed" |
174 |
- ln --symbolic --relative "/etc/init.d/buildmaster" "/etc/init.d/buildmaster.${instance_name}" \ |
175 |
- || die "Unable to create link to init file" |
176 |
- |
177 |
- einfo "Successfully created a buildmaster instance at ${instance_path}." |
178 |
- einfo "To change the default settings edit the master.cfg file in this directory." |
179 |
-} |