1 |
commit: ebdd866c5ac98d430fe1dfbcb8367ff0d76f4b32 |
2 |
Author: Brian Dolbec <dolsen <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Jan 29 20:43:55 2021 +0000 |
4 |
Commit: Brian Dolbec <dolsen <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Jan 29 21:45:16 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ebdd866c |
7 |
|
8 |
dev-util/buildbot: 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/Manifest | 1 + |
14 |
dev-util/buildbot/buildbot-2.10.1.ebuild | 198 +++++++++++++++++++++++++++++++ |
15 |
2 files changed, 199 insertions(+) |
16 |
|
17 |
diff --git a/dev-util/buildbot/Manifest b/dev-util/buildbot/Manifest |
18 |
index 74a160173e3..2a3e13d4e5f 100644 |
19 |
--- a/dev-util/buildbot/Manifest |
20 |
+++ b/dev-util/buildbot/Manifest |
21 |
@@ -1,4 +1,5 @@ |
22 |
DIST buildbot-2.10.0.tar.gz 2270072 BLAKE2B 467c774bb50076e16731edeced969366b3960a8032da2ebed56baf2c7de8affa730482878e45aca1523ff4b7e16b6bd913bb83e3cded274faeb75148f2b6fb8f SHA512 086864dd67b883a11ba565ae3e6530c1f396e35fcb8d4346f751c05de684bc3bfd7e709a428781be79e7e6a2e0eda1eefcd7140efd529d85ed336acfb398b262 |
23 |
+DIST buildbot-2.10.1.tar.gz 2271357 BLAKE2B 8320f12137b938b1a795857c2cc1e7427a19ebbb8fcd84f22142d2a37e92cf8211aa67afe42ec9f53ea2da3db621ababddb95794bdf5a0795de231a58f256cbb SHA512 6dd0bfb0d4747f3953cfbf73de6079f6fe5a75f4d7d072161f4de1209549df7732e216c859f7df69d6155e2df7c09c1667453973607ce3c8d0524c0433832873 |
24 |
DIST buildbot-2.8.0-fakedb.tar.xz 16204 BLAKE2B 741676e2c9117b1ab174ce49747bdfcd07766ad3e471e308398dff476f167fd231b7772c2f02002cbafb27e2ef535242d84d5aa84f4bc8942d4d216b2d5bf1f6 SHA512 c2b00d8621b3a1e521f6c17e902ae331b606dda3d319187895f26629dbdaf50caefc5d49fb150fb780e682ae431515c7ded4950d62448e8a73b8efba821c0fa1 |
25 |
DIST buildbot-2.8.2.tar.gz 3181035 BLAKE2B 40a3e424cc03c982549f25993a4abd2fe04bdc089ad22288af4d25724972f9f3541ef32549d2761c808845df44a972b00cf631adfc564bf4852c4b6b6ab14404 SHA512 7d7f15becc7fc1803ae4e9f1906d547c89dfe1efaa51e8fda0674a3d9b060bafbaae4cb671ec844750313247edb73f17c9014c545bce58070df0ca322a0fd9a2 |
26 |
DIST buildbot-2.8.4.tar.gz 3134447 BLAKE2B 67052a060c9951e584a5e94f36b92262b9a1956c22efbce7ac17d83f93edde3d9443b00a7bc3afc5918006d68cc023ea0ae913e7bbf0e7cede0d9345992f83ae SHA512 45a6e6116ab5fec18b9b3a6d54886bcf86d3a821a79fd151f9311c8c3646c61051a194250395e203f02b9aa0161e12a9ca54b623897c74eee6133df752f1742c |
27 |
|
28 |
diff --git a/dev-util/buildbot/buildbot-2.10.1.ebuild b/dev-util/buildbot/buildbot-2.10.1.ebuild |
29 |
new file mode 100644 |
30 |
index 00000000000..e6a2c5107e8 |
31 |
--- /dev/null |
32 |
+++ b/dev-util/buildbot/buildbot-2.10.1.ebuild |
33 |
@@ -0,0 +1,198 @@ |
34 |
+# Copyright 1999-2021 Gentoo Authors |
35 |
+# Distributed under the terms of the GNU General Public License v2 |
36 |
+ |
37 |
+EAPI="7" |
38 |
+PYTHON_REQ_USE="sqlite" |
39 |
+PYTHON_COMPAT=( python3_{6,7,8} ) |
40 |
+ |
41 |
+DISTUTILS_USE_SETUPTOOLS="rdepend" |
42 |
+ |
43 |
+inherit readme.gentoo-r1 systemd distutils-r1 |
44 |
+ |
45 |
+MY_PV="${PV/_p/.post}" |
46 |
+MY_P="${PN}-${MY_PV}" |
47 |
+ |
48 |
+DESCRIPTION="BuildBot build automation system" |
49 |
+HOMEPAGE="https://buildbot.net/ https://github.com/buildbot/buildbot https://pypi.org/project/buildbot/" |
50 |
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${MY_P}.tar.gz |
51 |
+ https://dev.gentoo.org/~dolsen/distfiles/buildbot-2.8.0-fakedb.tar.xz |
52 |
+" |
53 |
+ |
54 |
+LICENSE="GPL-2" |
55 |
+SLOT="0" |
56 |
+KEYWORDS="~amd64 ~amd64-linux ~x86-linux" |
57 |
+ |
58 |
+IUSE="crypt doc docker examples irc test" |
59 |
+RESTRICT="!test? ( test )" |
60 |
+ |
61 |
+RDEPEND=" |
62 |
+ acct-user/buildbot |
63 |
+ >=dev-python/jinja-2.1[${PYTHON_USEDEP}] |
64 |
+ >=dev-python/twisted-17.9.0[${PYTHON_USEDEP},crypt?] |
65 |
+ >=dev-python/autobahn-0.16.0[${PYTHON_USEDEP}] |
66 |
+ >=dev-python/sqlalchemy-1.2.0[${PYTHON_USEDEP}] |
67 |
+ >=dev-python/sqlalchemy-migrate-0.13[${PYTHON_USEDEP}] |
68 |
+ >=dev-python/python-dateutil-1.5[${PYTHON_USEDEP}] |
69 |
+ >=dev-python/txaio-2.2.2[${PYTHON_USEDEP}] |
70 |
+ dev-python/pyjwt[${PYTHON_USEDEP}] |
71 |
+ dev-python/pyyaml[${PYTHON_USEDEP}] |
72 |
+ >=dev-python/zope-interface-4.1.1[${PYTHON_USEDEP}] |
73 |
+ ~dev-util/buildbot-worker-${PV}[${PYTHON_USEDEP}] |
74 |
+ crypt? ( |
75 |
+ >=dev-python/pyopenssl-16.0.0[${PYTHON_USEDEP}] |
76 |
+ dev-python/idna[${PYTHON_USEDEP}] |
77 |
+ dev-python/service_identity[${PYTHON_USEDEP}] |
78 |
+ ) |
79 |
+ irc? ( |
80 |
+ dev-python/txrequests[${PYTHON_USEDEP}] |
81 |
+ ) |
82 |
+ docker? ( |
83 |
+ >=dev-python/docker-py-2.2.0[${PYTHON_USEDEP}] |
84 |
+ dev-python/requests[${PYTHON_USEDEP}] |
85 |
+ ) |
86 |
+" |
87 |
+DEPEND="${RDEPEND} |
88 |
+ doc? ( |
89 |
+ >=dev-python/sphinx-3.2.0[${PYTHON_USEDEP}] |
90 |
+ dev-python/sphinxcontrib-blockdiag[${PYTHON_USEDEP}] |
91 |
+ dev-python/sphinxcontrib-spelling[${PYTHON_USEDEP}] |
92 |
+ dev-python/sphinxcontrib-websupport[${PYTHON_USEDEP}] |
93 |
+ dev-python/pyenchant[${PYTHON_USEDEP}] |
94 |
+ dev-python/docutils[${PYTHON_USEDEP}] |
95 |
+ dev-python/sphinx-jinja[${PYTHON_USEDEP}] |
96 |
+ dev-python/sphinx_rtd_theme[${PYTHON_USEDEP}] |
97 |
+ ) |
98 |
+ test? ( |
99 |
+ >=dev-python/mock-2.0.0[${PYTHON_USEDEP}] |
100 |
+ dev-python/moto[${PYTHON_USEDEP}] |
101 |
+ >=dev-python/boto3-1.12.48[${PYTHON_USEDEP}] |
102 |
+ dev-python/parameterized[${PYTHON_USEDEP}] |
103 |
+ dev-python/pypugjs[${PYTHON_USEDEP}] |
104 |
+ dev-python/txrequests[${PYTHON_USEDEP}] |
105 |
+ dev-python/lz4[${PYTHON_USEDEP}] |
106 |
+ dev-python/treq[${PYTHON_USEDEP}] |
107 |
+ dev-python/setuptools_trial[${PYTHON_USEDEP}] |
108 |
+ ~dev-util/buildbot-pkg-${PV}[${PYTHON_USEDEP}] |
109 |
+ ~dev-util/buildbot-worker-${PV}[${PYTHON_USEDEP}] |
110 |
+ ~dev-util/buildbot-www-${PV}[${PYTHON_USEDEP}] |
111 |
+ )" |
112 |
+ |
113 |
+S=${WORKDIR}/${MY_P} |
114 |
+ |
115 |
+distutils_enable_tests setup.py |
116 |
+ |
117 |
+pkg_setup() { |
118 |
+ DOC_CONTENTS="The \"buildbot\" user and the \"buildmaster\" init script has been added |
119 |
+ to support starting buildbot through Gentoo's init system. To use this, |
120 |
+ execute \"emerge --config =${CATEGORY}/${PF}\" to create a new instance. |
121 |
+ The scripts can run as a different user if desired." |
122 |
+} |
123 |
+ |
124 |
+src_compile() { |
125 |
+ distutils-r1_src_compile |
126 |
+ |
127 |
+ # missing files, so skip building |
128 |
+ if use doc; then |
129 |
+ einfo "Generation of documentation" |
130 |
+ pushd docs > /dev/null |
131 |
+ #'man' target is currently broken |
132 |
+ emake html || die "Docs generation failed" |
133 |
+ popd > /dev/null |
134 |
+ fi |
135 |
+} |
136 |
+ |
137 |
+src_install() { |
138 |
+ distutils-r1_src_install |
139 |
+ |
140 |
+ doman docs/buildbot.1 |
141 |
+ |
142 |
+ if use doc; then |
143 |
+ HTML_DOCS=( docs/_build/html/ ) |
144 |
+ fi |
145 |
+ |
146 |
+ if use examples; then |
147 |
+ insinto /usr/share/doc/${PF} |
148 |
+ doins -r docs/examples |
149 |
+ fi |
150 |
+ |
151 |
+ newconfd "${FILESDIR}/buildmaster.confd" buildmaster |
152 |
+ newinitd "${FILESDIR}/buildmaster.initd" buildmaster |
153 |
+ systemd_dounit "${FILESDIR}/buildmaster.target" |
154 |
+ systemd_newunit "${FILESDIR}/buildmaster_at.service" "buildmaster@.service" |
155 |
+ systemd_install_serviced "${FILESDIR}/buildmaster_at.service.conf" "buildmaster@.service" |
156 |
+ |
157 |
+ readme.gentoo_create_doc |
158 |
+} |
159 |
+ |
160 |
+pkg_postinst() { |
161 |
+ readme.gentoo_print_elog |
162 |
+ |
163 |
+ if [[ -n ${REPLACING_VERSIONS} ]]; then |
164 |
+ ewarn |
165 |
+ ewarn "Starting with buildbot-0.8.12-r2, more than one instance of buildmaster" |
166 |
+ ewarn "can be run simultaneously. Note that \"BASEDIR\" in the buildbot configuration file" |
167 |
+ ewarn "is now the common base directory for all instances. If you are migrating from an older" |
168 |
+ ewarn "version, make sure that you copy the current contents of \"BASEDIR\" to a subdirectory." |
169 |
+ ewarn "The name of the subdirectory corresponds to the name of the buildmaster instance." |
170 |
+ ewarn "In order to start the service running OpenRC-based systems need to link to the init file:" |
171 |
+ ewarn " ln --symbolic --relative /etc/init.d/buildmaster /etc/init.d/buildmaster.myinstance" |
172 |
+ ewarn " rc-update add buildmaster.myinstance default" |
173 |
+ ewarn " /etc/init.d/buildmaster.myinstance start" |
174 |
+ ewarn "Systems using systemd can do the following:" |
175 |
+ ewarn " systemctl enable buildmaster@××××××××××.service" |
176 |
+ ewarn " systemctl enable buildmaster.target" |
177 |
+ ewarn " systemctl start buildmaster.target" |
178 |
+ elog |
179 |
+ elog "Upstream recommends the following when upgrading:" |
180 |
+ elog "Each time you install a new version of Buildbot, you should run the" |
181 |
+ elog "\"buildbot upgrade-master\" command on each of your pre-existing build masters." |
182 |
+ elog "This will add files and fix (or at least detect) incompatibilities between" |
183 |
+ elog "your old config and the new code." |
184 |
+ fi |
185 |
+ elog |
186 |
+ elog "In order to create a new instance of buildmaster, execute:" |
187 |
+ elog " emerge --config =${CATEGORY}/${PF}" |
188 |
+} |
189 |
+ |
190 |
+pkg_config() { |
191 |
+ local buildmaster_path="/var/lib/buildmaster" |
192 |
+ local log_path="/var/log/buildmaster" |
193 |
+ |
194 |
+ einfo "This will prepare a new buildmaster instance in ${buildmaster_path}." |
195 |
+ einfo "Press Control-C to abort." |
196 |
+ |
197 |
+ einfo "Enter the name for the new instance: " |
198 |
+ read instance_name |
199 |
+ [[ -z "${instance_name}" ]] && die "Invalid instance name" |
200 |
+ |
201 |
+ local instance_path="${buildmaster_path}/${instance_name}" |
202 |
+ local instance_log_path="${log_path}/${instance_name}" |
203 |
+ |
204 |
+ if [[ -e "${instance_path}" ]]; then |
205 |
+ eerror "The instance with the specified name already exists:" |
206 |
+ eerror "${instance_path}" |
207 |
+ die "Instance already exists" |
208 |
+ fi |
209 |
+ |
210 |
+ local buildbot="/usr/bin/buildbot" |
211 |
+ if [[ ! -d "${buildmaster_path}" ]]; then |
212 |
+ mkdir --parents "${buildmaster_path}" || die "Unable to create directory ${buildmaster_path}" |
213 |
+ fi |
214 |
+ "${buildbot}" create-master "${instance_path}" &>/dev/null || die "Creating instance failed" |
215 |
+ chown --recursive buildbot:buildbot "${instance_path}" || die "Setting permissions for instance failed" |
216 |
+ mv "${instance_path}/master.cfg.sample" "${instance_path}/master.cfg" \ |
217 |
+ || die "Moving sample configuration failed" |
218 |
+ ln --symbolic --relative "/etc/init.d/buildmaster" "/etc/init.d/buildmaster.${instance_name}" \ |
219 |
+ || die "Unable to create link to init file" |
220 |
+ |
221 |
+ if [[ ! -d "${instance_log_path}" ]]; then |
222 |
+ mkdir --parents "${instance_log_path}" || die "Unable to create directory ${instance_log_path}" |
223 |
+ chown --recursive buildbot:buildbot "${instance_log_path}" \ |
224 |
+ || die "Setting permissions for instance failed" |
225 |
+ fi |
226 |
+ ln --symbolic --relative "${instance_log_path}/twistd.log" "${instance_path}/twistd.log" \ |
227 |
+ || die "Unable to create link to log file" |
228 |
+ |
229 |
+ einfo "Successfully created a buildmaster instance at ${instance_path}." |
230 |
+ einfo "To change the default settings edit the master.cfg file in this directory." |
231 |
+} |