diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-util/buildbot/files |
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-util/buildbot/files')
-rw-r--r-- | dev-util/buildbot/files/buildbot-0.9.4.docs.patch | 130 | ||||
-rw-r--r-- | dev-util/buildbot/files/buildbot.service | 16 | ||||
-rw-r--r-- | dev-util/buildbot/files/buildmaster.confd | 10 | ||||
-rw-r--r-- | dev-util/buildbot/files/buildmaster.initd | 61 | ||||
-rw-r--r-- | dev-util/buildbot/files/buildmaster.target | 5 | ||||
-rw-r--r-- | dev-util/buildbot/files/buildmaster_at.service | 16 | ||||
-rw-r--r-- | dev-util/buildbot/files/buildmaster_at.service.conf | 5 |
7 files changed, 243 insertions, 0 deletions
diff --git a/dev-util/buildbot/files/buildbot-0.9.4.docs.patch b/dev-util/buildbot/files/buildbot-0.9.4.docs.patch new file mode 100644 index 000000000000..1a27713cb939 --- /dev/null +++ b/dev-util/buildbot/files/buildbot-0.9.4.docs.patch @@ -0,0 +1,130 @@ +diff --git a/docs/Makefile b/docs/Makefile +index 55637302d..c4fde481e 100644 +--- a/docs/Makefile ++++ b/docs/Makefile +@@ -24,7 +24,7 @@ PAPEROPT_a4 = -D latex_paper_size=a4 + PAPEROPT_letter = -D latex_paper_size=letter + ALLSPHINXOPTS = -d $(BUILDDIR)/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) . + +-.PHONY: help clean towncrier html dirhtml singlehtml pickle json htmlhelp qthelp devhelp epub latex latexpdf text man changes linkcheck doctest ++.PHONY: help clean html dirhtml singlehtml pickle json htmlhelp qthelp devhelp epub latex latexpdf text man changes linkcheck doctest + + help: + @echo "Please use \`make <target>' where <target> is one of" +@@ -51,38 +51,38 @@ clean: + towncrier: + cd ../../; towncrier --draft |grep 'No significant changes.' || yes n | towncrier + +-html: conf.py towncrier ++html: conf.py + $(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html + @echo + @echo "Build finished. The HTML pages are in $(BUILDDIR)/html." + +-dirhtml: conf.py towncrier ++dirhtml: conf.py + $(SPHINXBUILD) -b dirhtml $(ALLSPHINXOPTS) $(BUILDDIR)/dirhtml + @echo + @echo "Build finished. The HTML pages are in $(BUILDDIR)/dirhtml." + +-singlehtml: conf.py towncrier ++singlehtml: conf.py + $(SPHINXBUILD) -b singlehtml $(ALLSPHINXOPTS) $(BUILDDIR)/singlehtml + @echo + @echo "Build finished. The HTML page is in $(BUILDDIR)/singlehtml." + +-pickle: conf.py towncrier ++pickle: conf.py + $(SPHINXBUILD) -b pickle $(ALLSPHINXOPTS) $(BUILDDIR)/pickle + @echo + @echo "Build finished; now you can process the pickle files." + +-json: conf.py towncrier ++json: conf.py + $(SPHINXBUILD) -b json $(ALLSPHINXOPTS) $(BUILDDIR)/json + @echo + @echo "Build finished; now you can process the JSON files." + +-htmlhelp: conf.py towncrier ++htmlhelp: conf.py + $(SPHINXBUILD) -b htmlhelp $(ALLSPHINXOPTS) $(BUILDDIR)/htmlhelp + @echo + @echo "Build finished; now you can run HTML Help Workshop with the" \ + ".hhp project file in $(BUILDDIR)/htmlhelp." + +-qthelp: conf.py towncrier ++qthelp: conf.py + $(SPHINXBUILD) -b qthelp $(ALLSPHINXOPTS) $(BUILDDIR)/qthelp + @echo + @echo "Build finished; now you can run "qcollectiongenerator" with the" \ +@@ -91,7 +91,7 @@ qthelp: conf.py towncrier + @echo "To view the help file:" + @echo "# assistant -collectionFile $(BUILDDIR)/qthelp/BuildbotTutorial.qhc" + +-devhelp: conf.py towncrier ++devhelp: conf.py + $(SPHINXBUILD) -b devhelp $(ALLSPHINXOPTS) $(BUILDDIR)/devhelp + @echo + @echo "Build finished." +@@ -100,52 +100,52 @@ devhelp: conf.py towncrier + @echo "# ln -s $(BUILDDIR)/devhelp $$HOME/.local/share/devhelp/BuildbotTutorial" + @echo "# devhelp" + +-epub: conf.py towncrier ++epub: conf.py + $(SPHINXBUILD) -b epub $(ALLSPHINXOPTS) $(BUILDDIR)/epub + @echo + @echo "Build finished. The epub file is in $(BUILDDIR)/epub." + +-latex: conf.py towncrier ++latex: conf.py + $(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex + @echo + @echo "Build finished; the LaTeX files are in $(BUILDDIR)/latex." + @echo "Run \`make' in that directory to run these through (pdf)latex" \ + "(use \`make latexpdf' here to do that automatically)." + +-latexpdf: conf.py towncrier ++latexpdf: conf.py + $(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex + @echo "Running LaTeX files through pdflatex..." + make -C $(BUILDDIR)/latex all-pdf + @echo "pdflatex finished; the PDF files are in $(BUILDDIR)/latex." + +-text: conf.py towncrier ++text: conf.py + $(SPHINXBUILD) -b text $(ALLSPHINXOPTS) $(BUILDDIR)/text + @echo + @echo "Build finished. The text files are in $(BUILDDIR)/text." + +-man: conf.py towncrier ++man: conf.py + $(SPHINXBUILD) -b man $(ALLSPHINXOPTS) $(BUILDDIR)/man + @echo + @echo "Build finished. The manual pages are in $(BUILDDIR)/man." + +-changes: conf.py towncrier ++changes: conf.py + $(SPHINXBUILD) -b changes $(ALLSPHINXOPTS) $(BUILDDIR)/changes + @echo + @echo "The overview file is in $(BUILDDIR)/changes." + +-linkcheck: conf.py towncrier ++linkcheck: conf.py + $(SPHINXBUILD) -b linkcheck $(ALLSPHINXOPTS) $(BUILDDIR)/linkcheck + @echo + @echo "Link check complete; look for any errors in the above output " \ + "or in $(BUILDDIR)/linkcheck/output.txt." + +-spelling: conf.py towncrier ++spelling: conf.py + $(SPHINXBUILD) -b spelling $(ALLSPHINXOPTS) $(BUILDDIR)/spelling + @echo + @echo "Spelling check complete; look for any errors in the above output " \ + "or in $(BUILDDIR)/spelling/output.txt." + +-doctest: conf.py towncrier ++doctest: conf.py + $(SPHINXBUILD) -b doctest $(ALLSPHINXOPTS) $(BUILDDIR)/doctest + @echo "Testing of doctests in the sources finished, look at the " \ + "results in $(BUILDDIR)/doctest/output.txt." diff --git a/dev-util/buildbot/files/buildbot.service b/dev-util/buildbot/files/buildbot.service new file mode 100644 index 000000000000..4581a13a0c48 --- /dev/null +++ b/dev-util/buildbot/files/buildbot.service @@ -0,0 +1,16 @@ +[Unit] +Description=buildbot master daemon +After=local-fs.target network.target + +[Service] +Type=forking +User=buildbot +WorkingDirectory=/var/lib/buildmaster +# The following assume there is a 'master' directory +# in $WorkingDirectory with the master configuration files +ExecStartPre=/usr/bin/buildbot checkconfig master +ExecStart=/usr/bin/buildbot start master +ExecStop=/usr/bin/buildbot stop master + +[Install] +WantedBy=multi-user.target diff --git a/dev-util/buildbot/files/buildmaster.confd b/dev-util/buildbot/files/buildmaster.confd new file mode 100644 index 000000000000..e489d66f9d4b --- /dev/null +++ b/dev-util/buildbot/files/buildmaster.confd @@ -0,0 +1,10 @@ + +# Path to the build master's basedir. +BASEDIR=/var/lib/buildmaster + +# User account for the buildmaster. +# The basedir should be owned by this user. +USERNAME=buildbot + +# Extra options to pass to twistd. +TWISTD_OPTS="" diff --git a/dev-util/buildbot/files/buildmaster.initd b/dev-util/buildbot/files/buildmaster.initd new file mode 100644 index 000000000000..29fd444d123f --- /dev/null +++ b/dev-util/buildbot/files/buildmaster.initd @@ -0,0 +1,61 @@ +#!/sbin/openrc-run +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +extra_started_commands="reload" + +BUILDMASTER_NAME=${RC_SVCNAME:12} +BUILDMASTER_PATH="${BASEDIR}/${BUILDMASTER_NAME}" + +depend() { + need net +} + +checkconfig() { + if [ -z "${BUILDMASTER_NAME}" ]; then + eerror "Buildmaster name not defined. Please link buildmaster.foo to this file to start the buildmaster with the name \"foo\"." + return 1 + fi + if [ -z "${BASEDIR}" ]; then + eerror "BASEDIR not set" + return 1 + fi + if [ -z "${USERNAME}" ]; then + eerror "USERNAME not set" + return 1 + fi + if [ ! -d "${BUILDMASTER_PATH}" ]; then + eerror "${BUILDMASTER_PATH} is not a directory" + return 1 + fi + if [ ! -e "${BUILDMASTER_PATH}/buildbot.tac" ]; then + eerror "${BUILDMASTER_PATH} does not contain buildbot.tac" + return 1 + fi +} + +start() { + checkconfig || return 1 + ebegin "Starting buildmaster in ${BUILDMASTER_PATH}" + start-stop-daemon --start -u "${USERNAME}" \ + --pidfile "${BUILDMASTER_PATH}/buildmaster.pid" \ + --exec /usr/bin/python2 -- /usr/bin/twistd \ + --no_save \ + --logfile="${BUILDMASTER_PATH}/twistd.log" \ + --pidfile="${BUILDMASTER_PATH}/buildmaster.pid" \ + --python="${BUILDMASTER_PATH}/buildbot.tac" + eend $? +} + +stop() { + ebegin "Stopping buildmaster in ${BUILDMASTER_PATH}" + start-stop-daemon --stop --pidfile "${BUILDMASTER_PATH}/buildmaster.pid" + eend $? +} + +reload() { + ebegin "Reconfiguring buildmaster in ${BUILDMASTER_PATH}" + start-stop-daemon --signal HUP --pidfile \ + "${BUILDMASTER_PATH}"/buildmaster.pid + eend $? +} diff --git a/dev-util/buildbot/files/buildmaster.target b/dev-util/buildbot/files/buildmaster.target new file mode 100644 index 000000000000..2bf1a361e6b0 --- /dev/null +++ b/dev-util/buildbot/files/buildmaster.target @@ -0,0 +1,5 @@ +[Unit] +Description=Buildbot target that allows to start or stop all buildmaster@*.service instances + +[Install] +WantedBy=multi-user.target diff --git a/dev-util/buildbot/files/buildmaster_at.service b/dev-util/buildbot/files/buildmaster_at.service new file mode 100644 index 000000000000..88f9f5712002 --- /dev/null +++ b/dev-util/buildbot/files/buildmaster_at.service @@ -0,0 +1,16 @@ +[Unit] +Description=buildbot master daemon +After=local-fs.target network.target +PartOf=buildmaster.target + +[Service] +Environment=BASEDIR=/var/lib/buildmaster +Type=forking +User=buildbot +ExecStartPre=/usr/bin/buildbot checkconfig ${BASEDIR}/%i +ExecStart=/usr/bin/buildbot start ${BASEDIR}/%i +ExecStop=/usr/bin/buildbot stop ${BASEDIR}/%i + +[Install] +WantedBy=buildmaster.target + diff --git a/dev-util/buildbot/files/buildmaster_at.service.conf b/dev-util/buildbot/files/buildmaster_at.service.conf new file mode 100644 index 000000000000..baf1ae74ec08 --- /dev/null +++ b/dev-util/buildbot/files/buildmaster_at.service.conf @@ -0,0 +1,5 @@ +# Uncomment the following lines to configure the base directory for all buildmaster instances. + +#[Service] +#Environment=BASEDIR=/var/lib/buildmaster + |