1 |
commit: f306263170cfd8433bf118e95e5bd8fca010f95b |
2 |
Author: Brian Dolbec <dolsen <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Jan 29 20:45:37 2021 +0000 |
4 |
Commit: Brian Dolbec <dolsen <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Jan 29 21:45:17 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f3062631 |
7 |
|
8 |
dev-util/buildbot-worker: Version bump to 2.10.1 |
9 |
|
10 |
Package-Manager: Portage-3.0.10, Repoman-3.0.2 |
11 |
Signed-off-by: Brian Dolbec <dolsen <AT> gentoo.org> |
12 |
|
13 |
dev-util/buildbot-worker/Manifest | 1 + |
14 |
.../buildbot-worker/buildbot-worker-2.10.1.ebuild | 126 +++++++++++++++++++++ |
15 |
2 files changed, 127 insertions(+) |
16 |
|
17 |
diff --git a/dev-util/buildbot-worker/Manifest b/dev-util/buildbot-worker/Manifest |
18 |
index 8dadd0a69a9..86b2b49ce72 100644 |
19 |
--- a/dev-util/buildbot-worker/Manifest |
20 |
+++ b/dev-util/buildbot-worker/Manifest |
21 |
@@ -1,3 +1,4 @@ |
22 |
DIST buildbot-worker-2.10.0.tar.gz 107279 BLAKE2B 415b950b81862ac4c08ca00217e27351152b74c19e0395451e6cb965a039ccc8d16d3a63534053c15783cb904c279e8c80354f8b33d956cd3c45c5d5c1f5c1f4 SHA512 94b96abdad97d306998b995409f5220c967b0f7a2e33d1310fc99723bb3d54aa055e0ae2e6b771cd53340b132eb95515c266f08bf08e10bede29e2a93fe72b0a |
23 |
+DIST buildbot-worker-2.10.1.tar.gz 107656 BLAKE2B 8b94ecacc18f1e1f2e58d64f223f77af31454a3b199de9ee4c5a174b2cb645a970614674f5917415c4ab6d1ee0180ff99fbf4f121339eb05fcd80b363bfad3c0 SHA512 93f684c36e7c07c90e24a666084734df33d30376436b50db74ae8bd3b3a5e306799d15bd03d93b02f723bdf878adbfe17bbc59fd9f49f43431aea90612113ed7 |
24 |
DIST buildbot-worker-2.8.2.tar.gz 101707 BLAKE2B 451dff979c6934bf6dd4e1579abbe18e9cf43551c906bd516c788a6a5f6170650a5468927bec0a8d4ab242e5886247406b2e098e1908a8d9b5777744982c7be6 SHA512 0628825ac023a66cd249dc6b42ff2f3ad3b5c0cb97561fd332ce4775abaa5368a8b7b636115259ab4aa842c811178c9b641ef4453b06167315eb81117ffef815 |
25 |
DIST buildbot-worker-2.8.4.tar.gz 101175 BLAKE2B 23077305d26ab282eaa4c633ebee7ca7c502285862604ecafe25d6b666ce802729c5478d676e6834bf9a2e27ccf48e1ad0e69449e55532aa81b0dcd3c6780011 SHA512 16ad9a0e5e9c875f90383fc90c359ee843e0b82a7878f87f2ac9e7091d8d907707c69210876f25b4fdf7148bcaafab10d10a8a0a8865c73808db707320757107 |
26 |
|
27 |
diff --git a/dev-util/buildbot-worker/buildbot-worker-2.10.1.ebuild b/dev-util/buildbot-worker/buildbot-worker-2.10.1.ebuild |
28 |
new file mode 100644 |
29 |
index 00000000000..523e6755f97 |
30 |
--- /dev/null |
31 |
+++ b/dev-util/buildbot-worker/buildbot-worker-2.10.1.ebuild |
32 |
@@ -0,0 +1,126 @@ |
33 |
+# Copyright 1999-2021 Gentoo Authors |
34 |
+# Distributed under the terms of the GNU General Public License v2 |
35 |
+ |
36 |
+EAPI="7" |
37 |
+PYTHON_COMPAT=( python3_{6,7,8} ) |
38 |
+ |
39 |
+DISTUTILS_USE_SETUPTOOLS="rdepend" |
40 |
+ |
41 |
+inherit readme.gentoo-r1 distutils-r1 |
42 |
+ |
43 |
+DESCRIPTION="BuildBot Worker (slave) Daemon" |
44 |
+HOMEPAGE="https://buildbot.net/ https://github.com/buildbot/buildbot https://pypi.org/project/buildbot-worker/" |
45 |
+ |
46 |
+MY_V="${PV/_p/.post}" |
47 |
+MY_P="${PN}-${MY_V}" |
48 |
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${MY_P}.tar.gz" |
49 |
+ |
50 |
+LICENSE="GPL-2" |
51 |
+SLOT="0" |
52 |
+KEYWORDS="~amd64" |
53 |
+ |
54 |
+IUSE="test" |
55 |
+RESTRICT="!test? ( test )" |
56 |
+ |
57 |
+RDEPEND=" |
58 |
+ acct-user/buildbot |
59 |
+ >=dev-python/twisted-17.9.0[${PYTHON_USEDEP}] |
60 |
+ dev-python/future[${PYTHON_USEDEP}] |
61 |
+ !<dev-util/buildbot-1.0.0 |
62 |
+" |
63 |
+DEPEND="${RDEPEND} |
64 |
+ test? ( |
65 |
+ dev-python/mock[${PYTHON_USEDEP}] |
66 |
+ dev-python/setuptools_trial[${PYTHON_USEDEP}] |
67 |
+ ) |
68 |
+" |
69 |
+ |
70 |
+S="${WORKDIR}/${MY_P}" |
71 |
+ |
72 |
+pkg_setup() { |
73 |
+ DOC_CONTENTS="The \"buildbot\" user and the \"buildbot_worker\" init script has been added |
74 |
+ to support starting buildbot_worker through Gentoo's init system. To use this, |
75 |
+ execute \"emerge --config =${CATEGORY}/${PF}\" to create a new instance. |
76 |
+ Set up your build worker following the documentation, make sure the |
77 |
+ resulting directories are owned by the \"buildbot\" user and point |
78 |
+ \"${ROOT}/etc/conf.d/buildbot_worker.myinstance\" at the right location. |
79 |
+ The scripts can run as a different user if desired." |
80 |
+} |
81 |
+ |
82 |
+distutils_enable_tests setup.py |
83 |
+ |
84 |
+python_install_all() { |
85 |
+ distutils-r1_python_install_all |
86 |
+ |
87 |
+ doman docs/buildbot-worker.1 |
88 |
+ |
89 |
+ newconfd "${FILESDIR}/buildbot_worker.confd2" buildbot_worker |
90 |
+ newinitd "${FILESDIR}/buildbot_worker.initd2" buildbot_worker |
91 |
+ |
92 |
+ dodir /var/lib/buildbot_worker |
93 |
+ cp "${FILESDIR}/buildbot.tac.sample" "${D}/var/lib/buildbot_worker"|| die "Install failed!" |
94 |
+ |
95 |
+ readme.gentoo_create_doc |
96 |
+} |
97 |
+ |
98 |
+pkg_postinst() { |
99 |
+ readme.gentoo_print_elog |
100 |
+ |
101 |
+ if [[ -n ${REPLACING_VERSIONS} ]]; then |
102 |
+ ewarn |
103 |
+ ewarn "More than one instance of a buildbot_worker can be run simultaneously." |
104 |
+ ewarn " Note that \"BASEDIR\" in the buildbot_worker configuration file" |
105 |
+ ewarn "is now the common base directory for all instances. If you are migrating from an older" |
106 |
+ ewarn "version, make sure that you copy the current contents of \"BASEDIR\" to a subdirectory." |
107 |
+ ewarn "The name of the subdirectory corresponds to the name of the buildbot_worker instance." |
108 |
+ ewarn "In order to start the service running OpenRC-based systems need to link to the init file:" |
109 |
+ ewarn " ln --symbolic --relative /etc/init.d/buildbot_worker /etc/init.d/buildbot_worker.myinstance" |
110 |
+ ewarn " rc-update add buildbot_worker.myinstance default" |
111 |
+ ewarn " /etc/init.d/buildbot_worker.myinstance start" |
112 |
+ ewarn "Systems using systemd can do the following:" |
113 |
+ ewarn " systemctl enable buildbot_worker@××××××××××.service" |
114 |
+ ewarn " systemctl enable buildbot_worker.target" |
115 |
+ ewarn " systemctl start buildbot_worker.target" |
116 |
+ fi |
117 |
+} |
118 |
+ |
119 |
+pkg_config() { |
120 |
+ local buildworker_path="/var/lib/buildbot_worker" |
121 |
+ local log_path="/var/log/buildbot_worker" |
122 |
+ |
123 |
+ einfo "This will prepare a new buildbot_worker instance in ${buildworker_path}." |
124 |
+ einfo "Press Control-C to abort." |
125 |
+ |
126 |
+ einfo "Enter the name for the new instance: " |
127 |
+ read instance_name |
128 |
+ [[ -z "${instance_name}" ]] && die "Invalid instance name" |
129 |
+ |
130 |
+ local instance_path="${buildworker_path}/${instance_name}" |
131 |
+ local instance_log_path="${log_path}/${instance_name}" |
132 |
+ |
133 |
+ if [[ -e "${instance_path}" ]]; then |
134 |
+ eerror "The instance with the specified name already exists:" |
135 |
+ eerror "${instance_path}" |
136 |
+ die "Instance already exists" |
137 |
+ fi |
138 |
+ |
139 |
+ if [[ ! -d "${instance_path}" ]]; then |
140 |
+ mkdir --parents "${instance_path}" || die "Unable to create directory ${buildworker_path}" |
141 |
+ fi |
142 |
+ chown --recursive buildbot:buildbot "${instance_path}" || die "Setting permissions for instance failed" |
143 |
+ cp "${buildworker_path}/buildbot.tac.sample" "${instance_path}/buildbot.tac" \ |
144 |
+ || die "Moving sample configuration failed" |
145 |
+ ln --symbolic --relative "/etc/init.d/buildbot_worker" "/etc/init.d/buildbot_worker.${instance_name}" \ |
146 |
+ || die "Unable to create link to init file" |
147 |
+ |
148 |
+ if [[ ! -d "${instance_log_path}" ]]; then |
149 |
+ mkdir --parents "${instance_log_path}" || die "Unable to create directory ${instance_log_path}" |
150 |
+ chown --recursive buildbot:buildbot "${instance_log_path}" \ |
151 |
+ || die "Setting permissions for instance failed" |
152 |
+ fi |
153 |
+ ln --symbolic --relative "${instance_log_path}/twistd.log" "${instance_path}/twistd.log" \ |
154 |
+ || die "Unable to create link to log file" |
155 |
+ |
156 |
+ einfo "Successfully created a buildbot_worker instance at ${instance_path}." |
157 |
+ einfo "To change the default settings edit the buildbot.tac file in this directory." |
158 |
+} |