1 |
commit: 09d84ac5b1146805e7ab0af0a5e081463f5423a0 |
2 |
Author: Brian Dolbec dolsen <dolsen <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Jul 26 15:37:02 2018 +0000 |
4 |
Commit: Brian Dolbec <dolsen <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Jul 26 17:17:08 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=09d84ac5 |
7 |
|
8 |
dev-util/buildbot-worker: Clean old versions |
9 |
|
10 |
Package-Manager: Portage-2.3.40, Repoman-2.3.9 |
11 |
|
12 |
dev-util/buildbot-worker/Manifest | 3 - |
13 |
.../buildbot-worker/buildbot-worker-0.9.13.ebuild | 133 --------------------- |
14 |
.../buildbot-worker-0.9.15_p1.ebuild | 133 --------------------- |
15 |
.../buildbot-worker/buildbot-worker-1.1.0.ebuild | 133 --------------------- |
16 |
4 files changed, 402 deletions(-) |
17 |
|
18 |
diff --git a/dev-util/buildbot-worker/Manifest b/dev-util/buildbot-worker/Manifest |
19 |
index bf6ffcf0ac6..e0445109421 100644 |
20 |
--- a/dev-util/buildbot-worker/Manifest |
21 |
+++ b/dev-util/buildbot-worker/Manifest |
22 |
@@ -1,5 +1,2 @@ |
23 |
DIST buildbot-worker-0.9.12.tar.gz 101655 BLAKE2B a73f98ec56bd3ad6d19ad0b9dfa015869fd6115789a7ddcecdebdac8707850715c677ee248668f73035ea5656665973634829f2f97e3e75fe8e1515cb0838b88 SHA512 c2e86bd8818eddc2849626a0c7642169bc91fa2cc1d531977736e53c4ad3c87c3f0cb17d7b9acd137e783ae822f558a19f4668e3cd37e90a8435157485bd1d57 |
24 |
-DIST buildbot-worker-0.9.13.tar.gz 102710 BLAKE2B ab60bc2607a706ecc760c2439655bca3f328d773fbb07e73c994f079356341a251ca23c573a71cce92dbf71ba62ceaa70210f8925fd4d1cdfac335b2a485ee9f SHA512 920f76d70c88a660b1d4c15683847a144b8dfaa01b91742ff2fedbe013ab030d3c5f07b6308f8bfb3f7bf3c2f805f7735d007e67257ca5233d2b585518f79e40 |
25 |
-DIST buildbot-worker-0.9.15.post1.tar.gz 100901 BLAKE2B 5e4744fcd69e2920e0ca9ba0b1aa77ea5f62ed4aecc9f00df17953dc813e1f8d61a859ab0aacc26f88f51d281574a8089b849fe063d55c8649c4a53b528d8ba8 SHA512 6ee23f1dd52672646f28978cec3fa9e29b64cae84f524bbcb6f2614a4a56e49e8363975b89cd3508e78c9779233a27403e46fc098be0808d6cfc1e6aa6b8499f |
26 |
-DIST buildbot-worker-1.1.0.tar.gz 102142 BLAKE2B 144587edf2adc9d99837dc549b4d0696761f6cb3c959d4c133a5136606934ce03836cd1fcb019e7bb8ec473526c2ac07146c4820ef4d8b17ed9d843acd6c06b4 SHA512 77c46b3c9a16847eaf72de1dafa871a3242b66235c94ce8109f953db39aa4b74de2a03ca7ff06e91f8ea0751ed57e6ec1f39336912d56346f1bed171f597f6ed |
27 |
DIST buildbot-worker-1.1.2.tar.gz 103013 BLAKE2B b44593b71e61fee4037911759fa4f686aaabf5ef4be9efaecd539e88c5fc2ed2059d8dd8d6d1c4b3ba57d3563f79aaa404176529622003070c136803c90beb10 SHA512 3dd3da7e87d667307fca264d91af4671f76c3aad93a0512ae5777bb2e3972efe349968cf72fa17b99e45f2d7cec1ec16b1180c48d296e2702c9548bf858951a7 |
28 |
|
29 |
diff --git a/dev-util/buildbot-worker/buildbot-worker-0.9.13.ebuild b/dev-util/buildbot-worker/buildbot-worker-0.9.13.ebuild |
30 |
deleted file mode 100644 |
31 |
index f1331b427b7..00000000000 |
32 |
--- a/dev-util/buildbot-worker/buildbot-worker-0.9.13.ebuild |
33 |
+++ /dev/null |
34 |
@@ -1,133 +0,0 @@ |
35 |
-# Copyright 1999-2017 Gentoo Foundation |
36 |
-# Distributed under the terms of the GNU General Public License v2 |
37 |
- |
38 |
-EAPI="6" |
39 |
-PYTHON_COMPAT=( python2_7 python3_{4,5,6} ) |
40 |
- |
41 |
-EGIT_REPO_URI="https://github.com/buildbot/buildbot.git" |
42 |
- |
43 |
-[[ ${PV} == *9999 ]] && inherit git-r3 |
44 |
-inherit readme.gentoo-r1 user distutils-r1 |
45 |
- |
46 |
-DESCRIPTION="BuildBot Worker (slave) Daemon" |
47 |
-HOMEPAGE="https://buildbot.net/ https://github.com/buildbot/buildbot https://pypi.org/project/buildbot-worker/" |
48 |
- |
49 |
-MY_V="${PV/_p/p}" |
50 |
-MY_P="${PN}-${MY_V}" |
51 |
-[[ ${PV} == *9999 ]] || SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${MY_P}.tar.gz" |
52 |
- |
53 |
-LICENSE="GPL-2" |
54 |
-SLOT="0" |
55 |
-if [[ ${PV} == *9999 ]]; then |
56 |
- KEYWORDS="" |
57 |
-else |
58 |
- KEYWORDS="~amd64" |
59 |
-fi |
60 |
-IUSE="test" |
61 |
- |
62 |
-RDEPEND=">=dev-python/setuptools-21.2.1[${PYTHON_USEDEP}] |
63 |
- >=dev-python/twisted-17.9.0[${PYTHON_USEDEP}] |
64 |
- dev-python/future[${PYTHON_USEDEP}] |
65 |
- !<dev-util/buildbot-0.9.7 |
66 |
-" |
67 |
-DEPEND="${RDEPEND} |
68 |
- test? ( |
69 |
- dev-python/mock[${PYTHON_USEDEP}] |
70 |
- dev-python/setuptools_trial[${PYTHON_USEDEP}] |
71 |
- ) |
72 |
-" |
73 |
- |
74 |
-S="${WORKDIR}/${MY_P}" |
75 |
-[[ ${PV} == *9999 ]] && S=${S}/worker |
76 |
- |
77 |
-pkg_setup() { |
78 |
- enewuser buildbot |
79 |
- |
80 |
- DOC_CONTENTS="The \"buildbot\" user and the \"buildbot_worker\" init script has been added |
81 |
- to support starting buildbot_worker through Gentoo's init system. To use this, |
82 |
- execute \"emerge --config =${CATEGORY}/${PF}\" to create a new instance. |
83 |
- Set up your build worker following the documentation, make sure the |
84 |
- resulting directories are owned by the \"buildbot\" user and point |
85 |
- \"${ROOT}etc/conf.d/buildbot_worker.myinstance\" at the right location. |
86 |
- The scripts can run as a different user if desired." |
87 |
-} |
88 |
- |
89 |
-python_test() { |
90 |
- distutils_install_for_testing |
91 |
- |
92 |
- esetup.py test || die "Tests failed under ${EPYTHON}" |
93 |
-} |
94 |
- |
95 |
-python_install_all() { |
96 |
- distutils-r1_python_install_all |
97 |
- |
98 |
- doman docs/buildbot-worker.1 |
99 |
- |
100 |
- newconfd "${FILESDIR}/buildbot_worker.confd2" buildbot_worker |
101 |
- newinitd "${FILESDIR}/buildbot_worker.initd2" buildbot_worker |
102 |
- |
103 |
- dodir /var/lib/buildbot_worker |
104 |
- cp "${FILESDIR}/buildbot.tac.sample" "${D}/var/lib/buildbot_worker"|| die "Install failed!" |
105 |
- |
106 |
- readme.gentoo_create_doc |
107 |
-} |
108 |
- |
109 |
-pkg_postinst() { |
110 |
- readme.gentoo_print_elog |
111 |
- |
112 |
- if [[ -n ${REPLACING_VERSIONS} ]]; then |
113 |
- ewarn |
114 |
- ewarn "Starting with buildbot-worker-0.9.10-r1, more than one instance of a buildbot_worker" |
115 |
- ewarn "can be run simultaneously. Note that \"BASEDIR\" in the buildbot_worker configuration file" |
116 |
- ewarn "is now the common base directory for all instances. If you are migrating from an older" |
117 |
- ewarn "version, make sure that you copy the current contents of \"BASEDIR\" to a subdirectory." |
118 |
- ewarn "The name of the subdirectory corresponds to the name of the buildbot_worker instance." |
119 |
- ewarn "In order to start the service running OpenRC-based systems need to link to the init file:" |
120 |
- ewarn " ln --symbolic --relative /etc/init.d/buildbot_worker /etc/init.d/buildbot_worker.myinstance" |
121 |
- ewarn " rc-update add buildbot_worker.myinstance default" |
122 |
- ewarn " /etc/init.d/buildbot_worker.myinstance start" |
123 |
- ewarn "Systems using systemd can do the following:" |
124 |
- ewarn " systemctl enable buildbot_worker@××××××××××.service" |
125 |
- ewarn " systemctl enable buildbot_worker.target" |
126 |
- ewarn " systemctl start buildbot_worker.target" |
127 |
- fi |
128 |
-} |
129 |
- |
130 |
-pkg_config() { |
131 |
- local buildworker_path="/var/lib/buildbot_worker" |
132 |
- local log_path="/var/log/buildbot_worker" |
133 |
- |
134 |
- einfo "This will prepare a new buildbot_worker instance in ${buildworker_path}." |
135 |
- einfo "Press Control-C to abort." |
136 |
- |
137 |
- einfo "Enter the name for the new instance: " |
138 |
- read instance_name |
139 |
- [[ -z "${instance_name}" ]] && die "Invalid instance name" |
140 |
- |
141 |
- local instance_path="${buildworker_path}/${instance_name}" |
142 |
- local instance_log_path="${log_path}/${instance_name}" |
143 |
- |
144 |
- if [[ -e "${instance_path}" ]]; then |
145 |
- eerror "The instance with the specified name already exists:" |
146 |
- eerror "${instance_path}" |
147 |
- die "Instance already exists" |
148 |
- fi |
149 |
- |
150 |
- if [[ ! -d "${instance_path}" ]]; then |
151 |
- mkdir --parents "${instance_path}" || die "Unable to create directory ${buildworker_path}" |
152 |
- fi |
153 |
- chown --recursive buildbot "${instance_path}" || die "Setting permissions for instance failed" |
154 |
- cp "${buildworker_path}/buildbot.tac.sample" "${instance_path}/buildbot.tac" \ |
155 |
- || die "Moving sample configuration failed" |
156 |
- ln --symbolic --relative "/etc/init.d/buildbot_worker" "/etc/init.d/buildbot_worker.${instance_name}" \ |
157 |
- || die "Unable to create link to init file" |
158 |
- |
159 |
- if [[ ! -d "${instance_log_path}" ]]; then |
160 |
- mkdir --parents "${instance_log_path}" || die "Unable to create directory ${instance_log_path}" |
161 |
- fi |
162 |
- ln --symbolic --relative "${instance_log_path}/twistd.log" "${instance_path}/twistd.log" \ |
163 |
- || die "Unable to create link to log file" |
164 |
- |
165 |
- einfo "Successfully created a buildbot_worker instance at ${instance_path}." |
166 |
- einfo "To change the default settings edit the buildbot.tac file in this directory." |
167 |
-} |
168 |
|
169 |
diff --git a/dev-util/buildbot-worker/buildbot-worker-0.9.15_p1.ebuild b/dev-util/buildbot-worker/buildbot-worker-0.9.15_p1.ebuild |
170 |
deleted file mode 100644 |
171 |
index dea70dbdd5e..00000000000 |
172 |
--- a/dev-util/buildbot-worker/buildbot-worker-0.9.15_p1.ebuild |
173 |
+++ /dev/null |
174 |
@@ -1,133 +0,0 @@ |
175 |
-# Copyright 1999-2018 Gentoo Foundation |
176 |
-# Distributed under the terms of the GNU General Public License v2 |
177 |
- |
178 |
-EAPI="6" |
179 |
-PYTHON_COMPAT=( python2_7 python3_{4,5,6} ) |
180 |
- |
181 |
-EGIT_REPO_URI="https://github.com/buildbot/buildbot.git" |
182 |
- |
183 |
-[[ ${PV} == *9999 ]] && inherit git-r3 |
184 |
-inherit readme.gentoo-r1 user distutils-r1 |
185 |
- |
186 |
-DESCRIPTION="BuildBot Worker (slave) Daemon" |
187 |
-HOMEPAGE="https://buildbot.net/ https://github.com/buildbot/buildbot https://pypi.org/project/buildbot-worker/" |
188 |
- |
189 |
-MY_V="${PV/_p/.post}" |
190 |
-MY_P="${PN}-${MY_V}" |
191 |
-[[ ${PV} == *9999 ]] || SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${MY_P}.tar.gz" |
192 |
- |
193 |
-LICENSE="GPL-2" |
194 |
-SLOT="0" |
195 |
-if [[ ${PV} == *9999 ]]; then |
196 |
- KEYWORDS="" |
197 |
-else |
198 |
- KEYWORDS="~amd64" |
199 |
-fi |
200 |
-IUSE="test" |
201 |
- |
202 |
-RDEPEND=">=dev-python/setuptools-21.2.1[${PYTHON_USEDEP}] |
203 |
- >=dev-python/twisted-17.9.0[${PYTHON_USEDEP}] |
204 |
- dev-python/future[${PYTHON_USEDEP}] |
205 |
- !<dev-util/buildbot-0.9.7 |
206 |
-" |
207 |
-DEPEND="${RDEPEND} |
208 |
- test? ( |
209 |
- dev-python/mock[${PYTHON_USEDEP}] |
210 |
- dev-python/setuptools_trial[${PYTHON_USEDEP}] |
211 |
- ) |
212 |
-" |
213 |
- |
214 |
-S="${WORKDIR}/${MY_P}" |
215 |
-[[ ${PV} == *9999 ]] && S=${S}/worker |
216 |
- |
217 |
-pkg_setup() { |
218 |
- enewuser buildbot |
219 |
- |
220 |
- DOC_CONTENTS="The \"buildbot\" user and the \"buildbot_worker\" init script has been added |
221 |
- to support starting buildbot_worker through Gentoo's init system. To use this, |
222 |
- execute \"emerge --config =${CATEGORY}/${PF}\" to create a new instance. |
223 |
- Set up your build worker following the documentation, make sure the |
224 |
- resulting directories are owned by the \"buildbot\" user and point |
225 |
- \"${ROOT}etc/conf.d/buildbot_worker.myinstance\" at the right location. |
226 |
- The scripts can run as a different user if desired." |
227 |
-} |
228 |
- |
229 |
-python_test() { |
230 |
- distutils_install_for_testing |
231 |
- |
232 |
- esetup.py test || die "Tests failed under ${EPYTHON}" |
233 |
-} |
234 |
- |
235 |
-python_install_all() { |
236 |
- distutils-r1_python_install_all |
237 |
- |
238 |
- doman docs/buildbot-worker.1 |
239 |
- |
240 |
- newconfd "${FILESDIR}/buildbot_worker.confd2" buildbot_worker |
241 |
- newinitd "${FILESDIR}/buildbot_worker.initd2" buildbot_worker |
242 |
- |
243 |
- dodir /var/lib/buildbot_worker |
244 |
- cp "${FILESDIR}/buildbot.tac.sample" "${D}/var/lib/buildbot_worker"|| die "Install failed!" |
245 |
- |
246 |
- readme.gentoo_create_doc |
247 |
-} |
248 |
- |
249 |
-pkg_postinst() { |
250 |
- readme.gentoo_print_elog |
251 |
- |
252 |
- if [[ -n ${REPLACING_VERSIONS} ]]; then |
253 |
- ewarn |
254 |
- ewarn "Starting with buildbot-worker-0.9.10-r1, more than one instance of a buildbot_worker" |
255 |
- ewarn "can be run simultaneously. Note that \"BASEDIR\" in the buildbot_worker configuration file" |
256 |
- ewarn "is now the common base directory for all instances. If you are migrating from an older" |
257 |
- ewarn "version, make sure that you copy the current contents of \"BASEDIR\" to a subdirectory." |
258 |
- ewarn "The name of the subdirectory corresponds to the name of the buildbot_worker instance." |
259 |
- ewarn "In order to start the service running OpenRC-based systems need to link to the init file:" |
260 |
- ewarn " ln --symbolic --relative /etc/init.d/buildbot_worker /etc/init.d/buildbot_worker.myinstance" |
261 |
- ewarn " rc-update add buildbot_worker.myinstance default" |
262 |
- ewarn " /etc/init.d/buildbot_worker.myinstance start" |
263 |
- ewarn "Systems using systemd can do the following:" |
264 |
- ewarn " systemctl enable buildbot_worker@××××××××××.service" |
265 |
- ewarn " systemctl enable buildbot_worker.target" |
266 |
- ewarn " systemctl start buildbot_worker.target" |
267 |
- fi |
268 |
-} |
269 |
- |
270 |
-pkg_config() { |
271 |
- local buildworker_path="/var/lib/buildbot_worker" |
272 |
- local log_path="/var/log/buildbot_worker" |
273 |
- |
274 |
- einfo "This will prepare a new buildbot_worker instance in ${buildworker_path}." |
275 |
- einfo "Press Control-C to abort." |
276 |
- |
277 |
- einfo "Enter the name for the new instance: " |
278 |
- read instance_name |
279 |
- [[ -z "${instance_name}" ]] && die "Invalid instance name" |
280 |
- |
281 |
- local instance_path="${buildworker_path}/${instance_name}" |
282 |
- local instance_log_path="${log_path}/${instance_name}" |
283 |
- |
284 |
- if [[ -e "${instance_path}" ]]; then |
285 |
- eerror "The instance with the specified name already exists:" |
286 |
- eerror "${instance_path}" |
287 |
- die "Instance already exists" |
288 |
- fi |
289 |
- |
290 |
- if [[ ! -d "${instance_path}" ]]; then |
291 |
- mkdir --parents "${instance_path}" || die "Unable to create directory ${buildworker_path}" |
292 |
- fi |
293 |
- chown --recursive buildbot "${instance_path}" || die "Setting permissions for instance failed" |
294 |
- cp "${buildworker_path}/buildbot.tac.sample" "${instance_path}/buildbot.tac" \ |
295 |
- || die "Moving sample configuration failed" |
296 |
- ln --symbolic --relative "/etc/init.d/buildbot_worker" "/etc/init.d/buildbot_worker.${instance_name}" \ |
297 |
- || die "Unable to create link to init file" |
298 |
- |
299 |
- if [[ ! -d "${instance_log_path}" ]]; then |
300 |
- mkdir --parents "${instance_log_path}" || die "Unable to create directory ${instance_log_path}" |
301 |
- fi |
302 |
- ln --symbolic --relative "${instance_log_path}/twistd.log" "${instance_path}/twistd.log" \ |
303 |
- || die "Unable to create link to log file" |
304 |
- |
305 |
- einfo "Successfully created a buildbot_worker instance at ${instance_path}." |
306 |
- einfo "To change the default settings edit the buildbot.tac file in this directory." |
307 |
-} |
308 |
|
309 |
diff --git a/dev-util/buildbot-worker/buildbot-worker-1.1.0.ebuild b/dev-util/buildbot-worker/buildbot-worker-1.1.0.ebuild |
310 |
deleted file mode 100644 |
311 |
index dea70dbdd5e..00000000000 |
312 |
--- a/dev-util/buildbot-worker/buildbot-worker-1.1.0.ebuild |
313 |
+++ /dev/null |
314 |
@@ -1,133 +0,0 @@ |
315 |
-# Copyright 1999-2018 Gentoo Foundation |
316 |
-# Distributed under the terms of the GNU General Public License v2 |
317 |
- |
318 |
-EAPI="6" |
319 |
-PYTHON_COMPAT=( python2_7 python3_{4,5,6} ) |
320 |
- |
321 |
-EGIT_REPO_URI="https://github.com/buildbot/buildbot.git" |
322 |
- |
323 |
-[[ ${PV} == *9999 ]] && inherit git-r3 |
324 |
-inherit readme.gentoo-r1 user distutils-r1 |
325 |
- |
326 |
-DESCRIPTION="BuildBot Worker (slave) Daemon" |
327 |
-HOMEPAGE="https://buildbot.net/ https://github.com/buildbot/buildbot https://pypi.org/project/buildbot-worker/" |
328 |
- |
329 |
-MY_V="${PV/_p/.post}" |
330 |
-MY_P="${PN}-${MY_V}" |
331 |
-[[ ${PV} == *9999 ]] || SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${MY_P}.tar.gz" |
332 |
- |
333 |
-LICENSE="GPL-2" |
334 |
-SLOT="0" |
335 |
-if [[ ${PV} == *9999 ]]; then |
336 |
- KEYWORDS="" |
337 |
-else |
338 |
- KEYWORDS="~amd64" |
339 |
-fi |
340 |
-IUSE="test" |
341 |
- |
342 |
-RDEPEND=">=dev-python/setuptools-21.2.1[${PYTHON_USEDEP}] |
343 |
- >=dev-python/twisted-17.9.0[${PYTHON_USEDEP}] |
344 |
- dev-python/future[${PYTHON_USEDEP}] |
345 |
- !<dev-util/buildbot-0.9.7 |
346 |
-" |
347 |
-DEPEND="${RDEPEND} |
348 |
- test? ( |
349 |
- dev-python/mock[${PYTHON_USEDEP}] |
350 |
- dev-python/setuptools_trial[${PYTHON_USEDEP}] |
351 |
- ) |
352 |
-" |
353 |
- |
354 |
-S="${WORKDIR}/${MY_P}" |
355 |
-[[ ${PV} == *9999 ]] && S=${S}/worker |
356 |
- |
357 |
-pkg_setup() { |
358 |
- enewuser buildbot |
359 |
- |
360 |
- DOC_CONTENTS="The \"buildbot\" user and the \"buildbot_worker\" init script has been added |
361 |
- to support starting buildbot_worker through Gentoo's init system. To use this, |
362 |
- execute \"emerge --config =${CATEGORY}/${PF}\" to create a new instance. |
363 |
- Set up your build worker following the documentation, make sure the |
364 |
- resulting directories are owned by the \"buildbot\" user and point |
365 |
- \"${ROOT}etc/conf.d/buildbot_worker.myinstance\" at the right location. |
366 |
- The scripts can run as a different user if desired." |
367 |
-} |
368 |
- |
369 |
-python_test() { |
370 |
- distutils_install_for_testing |
371 |
- |
372 |
- esetup.py test || die "Tests failed under ${EPYTHON}" |
373 |
-} |
374 |
- |
375 |
-python_install_all() { |
376 |
- distutils-r1_python_install_all |
377 |
- |
378 |
- doman docs/buildbot-worker.1 |
379 |
- |
380 |
- newconfd "${FILESDIR}/buildbot_worker.confd2" buildbot_worker |
381 |
- newinitd "${FILESDIR}/buildbot_worker.initd2" buildbot_worker |
382 |
- |
383 |
- dodir /var/lib/buildbot_worker |
384 |
- cp "${FILESDIR}/buildbot.tac.sample" "${D}/var/lib/buildbot_worker"|| die "Install failed!" |
385 |
- |
386 |
- readme.gentoo_create_doc |
387 |
-} |
388 |
- |
389 |
-pkg_postinst() { |
390 |
- readme.gentoo_print_elog |
391 |
- |
392 |
- if [[ -n ${REPLACING_VERSIONS} ]]; then |
393 |
- ewarn |
394 |
- ewarn "Starting with buildbot-worker-0.9.10-r1, more than one instance of a buildbot_worker" |
395 |
- ewarn "can be run simultaneously. Note that \"BASEDIR\" in the buildbot_worker configuration file" |
396 |
- ewarn "is now the common base directory for all instances. If you are migrating from an older" |
397 |
- ewarn "version, make sure that you copy the current contents of \"BASEDIR\" to a subdirectory." |
398 |
- ewarn "The name of the subdirectory corresponds to the name of the buildbot_worker instance." |
399 |
- ewarn "In order to start the service running OpenRC-based systems need to link to the init file:" |
400 |
- ewarn " ln --symbolic --relative /etc/init.d/buildbot_worker /etc/init.d/buildbot_worker.myinstance" |
401 |
- ewarn " rc-update add buildbot_worker.myinstance default" |
402 |
- ewarn " /etc/init.d/buildbot_worker.myinstance start" |
403 |
- ewarn "Systems using systemd can do the following:" |
404 |
- ewarn " systemctl enable buildbot_worker@××××××××××.service" |
405 |
- ewarn " systemctl enable buildbot_worker.target" |
406 |
- ewarn " systemctl start buildbot_worker.target" |
407 |
- fi |
408 |
-} |
409 |
- |
410 |
-pkg_config() { |
411 |
- local buildworker_path="/var/lib/buildbot_worker" |
412 |
- local log_path="/var/log/buildbot_worker" |
413 |
- |
414 |
- einfo "This will prepare a new buildbot_worker instance in ${buildworker_path}." |
415 |
- einfo "Press Control-C to abort." |
416 |
- |
417 |
- einfo "Enter the name for the new instance: " |
418 |
- read instance_name |
419 |
- [[ -z "${instance_name}" ]] && die "Invalid instance name" |
420 |
- |
421 |
- local instance_path="${buildworker_path}/${instance_name}" |
422 |
- local instance_log_path="${log_path}/${instance_name}" |
423 |
- |
424 |
- if [[ -e "${instance_path}" ]]; then |
425 |
- eerror "The instance with the specified name already exists:" |
426 |
- eerror "${instance_path}" |
427 |
- die "Instance already exists" |
428 |
- fi |
429 |
- |
430 |
- if [[ ! -d "${instance_path}" ]]; then |
431 |
- mkdir --parents "${instance_path}" || die "Unable to create directory ${buildworker_path}" |
432 |
- fi |
433 |
- chown --recursive buildbot "${instance_path}" || die "Setting permissions for instance failed" |
434 |
- cp "${buildworker_path}/buildbot.tac.sample" "${instance_path}/buildbot.tac" \ |
435 |
- || die "Moving sample configuration failed" |
436 |
- ln --symbolic --relative "/etc/init.d/buildbot_worker" "/etc/init.d/buildbot_worker.${instance_name}" \ |
437 |
- || die "Unable to create link to init file" |
438 |
- |
439 |
- if [[ ! -d "${instance_log_path}" ]]; then |
440 |
- mkdir --parents "${instance_log_path}" || die "Unable to create directory ${instance_log_path}" |
441 |
- fi |
442 |
- ln --symbolic --relative "${instance_log_path}/twistd.log" "${instance_path}/twistd.log" \ |
443 |
- || die "Unable to create link to log file" |
444 |
- |
445 |
- einfo "Successfully created a buildbot_worker instance at ${instance_path}." |
446 |
- einfo "To change the default settings edit the buildbot.tac file in this directory." |
447 |
-} |