debian/0000755000000000000000000000000012236742114007170 5ustar debian/buildbot-slave.manpages0000644000000000000000000000002212225501645013613 0ustar docs/buildslave.1 debian/copyright0000644000000000000000000000233012225501645011121 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: buildbot Upstream-Contact: Dustin J. Mitchell Source: http://code.google.com/p/buildbot/downloads/list/ Files: * Copyright: Buildbot Team Members License: GPL-2 Files: debian/* Copyright: 2011 Andriy Senkovych 2006-2010 Matthias Klose License: GPL-2 License: GPL-2 This file is part of Buildbot. Buildbot is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2. . This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. . You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. . On Debian systems, the full text of the GNU General Public License version 2 can be found in the file `/usr/share/common-licenses/GPL-2'. debian/buildbot-slave.docs0000644000000000000000000000002612225501645012754 0ustar NEWS README UPGRADING debian/buildbot-slave.dirs0000644000000000000000000000003112225501645012761 0ustar /var/lib/buildbot/slaves debian/changelog0000644000000000000000000001650712225501645011053 0ustar buildbot-slave (0.8.8-1) unstable; urgency=low * New upstream release * Add bash-completion. Thanks to Elmir Jagudin * debian/control: add Vcs-* fields * Refresh debian-related patches -- Andriy Senkovych Thu, 10 Oct 2013 13:37:35 +0300 buildbot-slave (0.8.7p1-2) unstable; urgency=low * Upload to unstable. -- Andriy Senkovych Wed, 07 Aug 2013 16:14:47 +0300 buildbot-slave (0.8.7p1-1) experimental; urgency=low * New upstream release * Enable unit testing during build. * Introduce config for git-buildpackage: debian/gbp.conf. * debian/gbp.conf: use master branch as primary debian branch * Add python-twisted-core and python-mock to build-depends to run unit tests * debian/control: - prettify Depends - bump Standards-Version to 3.9.4.0 (no changes required) -- Andriy Senkovych Mon, 18 Mar 2013 13:01:55 +0200 buildbot-slave (0.8.6p1-1) unstable; urgency=low * New upstream release * Drop deb-bug-657517.patch (already in upstream). * debian/control: - bump Standards-Version to 3.9.3 - move Matthias Klose to Uploaders - move Andriy Senkovych to Maintainer * debian/copyright: - correct syntax for common license (GPL-2) - update Format line to point to copyright-format 1.0 -- Andriy Senkovych Thu, 26 Apr 2012 01:00:15 +0300 buildbot-slave (0.8.5-2) unstable; urgency=low * deb-bug-657517.patch: cherry-pick from upstream(Closes: #657517) -- Andriy Senkovych Sun, 26 Feb 2012 02:29:06 +0200 buildbot-slave (0.8.5-1.1) unstable; urgency=low * Non-maintainer upload. * Don't remove the buildbot user in postrm purge (closes: #640603). -- Julien Cristau Sun, 01 Jan 2012 14:48:51 +0100 buildbot-slave (0.8.5-1) unstable; urgency=low * New upstream version. -- Matthias Klose Sat, 22 Oct 2011 23:56:07 +0200 buildbot-slave (0.8.4-1) unstable; urgency=low * New upstream version (Closes: #625555) * Bump Standards-Version to 3.9.2. * Apply patch from Andreas Beckmann (Closes: #627918) -- Andriy Senkovych Fri, 01 Jul 2011 13:45:56 +0300 buildbot-slave (0.8.3-1) unstable; urgency=low * New upstream version, separate sources for the buildslave. * Break buildbot << 0.8 due to package split. * Package using dh_python2 instead of dh_pycentral. * Switch to dpkg-source 3.0 (quilt) format. * Remove unnecessary Build-Conflicts. * Upgrade compatibility level to 7. * Upgrade Standards-Version to 3.9.1. * debian/rules: use override rules instead of redefining whole build process. * Purge buildbot user and its home directory only when all buildbot packages have been purged. * debian/watch: use googlecode for source download. * fix-init-scripts.patch: comment out example configuration in /etc/default/buildslave. * Make debian/control DEP-5 compliant. * debian/control: add buildbot into suggests list. -- Andriy Senkovych Mon, 28 Mar 2011 02:08:28 +0300 buildbot (0.7.12-3) unstable; urgency=low * Make recommendations on python-twisted-mail and python-twisted-web dependencies. Closes: #600268. * Use dh_python2 instead of python-central. * Set CSS stylesheet for for index.html (Andriy Senkovych). Closes: #576284. * Add homepage to debian/control. Closes: #587314. -- Matthias Klose Sun, 28 Nov 2010 18:01:56 +0100 buildbot (0.7.12-2) unstable; urgency=low * Call setup.py install using --install-layout=deb. Closes: #569278. -- Matthias Klose Sun, 28 Feb 2010 04:48:48 +0100 buildbot (0.7.12-1) unstable; urgency=low * New upstream version. * Recommend python-twisted-mail, python-twisted-web instead of depending on it. Only the server does depend on these packages. Closes: #565993. * Add manual page for buildbot (Iustin Pop). Closes: #554531. -- Matthias Klose Wed, 27 Jan 2010 15:04:26 +0100 buildbot (0.7.11p3-1) unstable; urgency=low * New upstream version. - Fix CVE-2009-2959[0], cross-site scripting (XSS) vulnerability. Closes: #543822. - Fix buildbot serving CSS as text/plain, breaking styling in Firefox. Closes: #517267. * Fixed in 0.7.10: test output flooded in waterfall display. Closes: #512770. * Fix /etc/init.d/buildbot reload crashing buildslaves (Petr Rockai). Closes: #503288. * Fix some lintian warnings. -- Matthias Klose Thu, 27 Aug 2009 08:23:06 +0200 buildbot (0.7.10p1-1) unstable; urgency=low * New upstream version. -- Matthias Klose Thu, 19 Mar 2009 19:50:33 +0100 buildbot (0.7.9-1) unstable; urgency=low * New upstream version. * Suggest supported version control systems. Closes: #496539. -- Matthias Klose Tue, 23 Sep 2008 16:58:12 +0200 buildbot (0.7.8-1) unstable; urgency=low * New upstream version. -- Matthias Klose Sat, 26 Jul 2008 16:51:45 +0200 buildbot (0.7.7-1) unstable; urgency=low * New upstream version. * debian/watch: Update. Closes: #449882. -- Matthias Klose Sun, 27 Apr 2008 15:27:31 +0200 buildbot (0.7.6-1) unstable; urgency=low * New upstream version. -- Matthias Klose Sat, 26 Jan 2008 22:26:36 +0100 buildbot (0.7.5-1.1) unstable; urgency=low * Non-maintainer upload during BSP. * Conditional call on deluser in postrm (Closes: #416669) -- Martin Zobel-Helas Thu, 17 May 2007 13:30:46 +0200 buildbot (0.7.5-1) unstable; urgency=low * New upstream version. -- Matthias Klose Wed, 3 Jan 2007 16:41:10 +0100 buildbot (0.7.4-3) unstable; urgency=low * Use unversioned interpreter for contributed scripts, eliminating dependency on python2.3. * Use /var/lib/buildbot as home directory for the buildbot user. -- Matthias Klose Wed, 18 Oct 2006 22:18:40 +0200 buildbot (0.7.4-2) unstable; urgency=medium * Use su -s /bin/sh to launch buildbots. Closes: #388028. * Fix location of examples directory. Closes: #386508. * Ship some script files in /usr/share/buildbot/contrib. Closes: #388030. -- Matthias Klose Wed, 4 Oct 2006 00:06:06 +0200 buildbot (0.7.4-1) unstable; urgency=low * New upstream version. * Fix init script, starting buildbots on system startup. Closes: #384090. -- Matthias Klose Mon, 28 Aug 2006 07:21:16 +0200 buildbot (0.7.3-3.1) unstable; urgency=low * Adding the --system flag when creating the user in postinst. - Closes: #382715. -- David Moreno Garza Sun, 13 Aug 2006 14:48:54 -0500 buildbot (0.7.3-3) unstable; urgency=low * Only create buildbot user if it doesn't yet exist (Thom May). Closes: #378822. -- Matthias Klose Sun, 23 Jul 2006 19:55:35 +0000 buildbot (0.7.3-2) unstable; urgency=low * Add copyright for contrib/svnpoller.py. -- Matthias Klose Fri, 7 Jul 2006 21:10:28 +0200 buildbot (0.7.3-1) unstable; urgency=low * New upstream version. * Convert to updated Python policy. -- Matthias Klose Sat, 17 Jun 2006 02:45:50 +0200 buildbot (0.7.2-0ubuntu1) dapper; urgency=low * Initial release. -- Matthias Klose Sat, 15 Apr 2006 21:20:08 +0200 debian/buildbot-slave.postrm0000755000000000000000000000145612225501645013363 0ustar #! /bin/sh set -e USER_DESCR="Buildbot system user" SLAVES_DIR=~buildbot/slaves case "$1" in upgrade|failed-upgrade|abort-install|abort-upgrade|disappear|remove) ;; purge) # Do not remove system user until bug #621833 is resolved # See http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=621833 # Remove the user and its home dir if no buildbot packages left #if ! (dpkg --get-selections 'buildbot*' | egrep -q '(install|hold|deinstall)') ; then # if getent passwd buildbot >/dev/null ; then # echo "Removing $USER_DESCR ..." # deluser --quiet --system --remove-home buildbot # fi #fi ;; *) echo "postrm called with unknown argument \`$1'" >&2 exit 1 esac #DEBHELPER# exit 0 debian/compat0000644000000000000000000000000212225501645010366 0ustar 7 debian/patches/0000755000000000000000000000000012225501645010617 5ustar debian/patches/fix-init-scripts.patch0000644000000000000000000000414412225501645015057 0ustar Description: Comment out example buildslave instance Upstream is not interested in this patch because it's more os-specific and the init-scripts themselves are contributed so not much connected with buildbot itself. Author: Andriy Senkovych Last-Update: 2011-03-01 --- a/contrib/init-scripts/buildslave.default +++ b/contrib/init-scripts/buildslave.default @@ -4,9 +4,9 @@ # 'true|yes|1' to enable instance and 'false|no|0' to disable. Other # values will be considered as syntax error. -SLAVE_ENABLED[1]=0 # 1-enabled, 0-disabled -SLAVE_NAME[1]="buildslave #1" # short name printed on start/stop -SLAVE_USER[1]="buildbot" # user to run slave as -SLAVE_BASEDIR[1]="" # basedir to slave (absolute path) -SLAVE_OPTIONS[1]="" # buildbot options -SLAVE_PREFIXCMD[1]="" # prefix command, i.e. nice, linux32, dchroot +#SLAVE_ENABLED[1]=0 # 1-enabled, 0-disabled +#SLAVE_NAME[1]="buildslave #1" # short name printed on start/stop +#SLAVE_USER[1]="buildbot" # user to run slave as +#SLAVE_BASEDIR[1]="" # basedir to slave (absolute path) +#SLAVE_OPTIONS[1]="" # buildbot options +#SLAVE_PREFIXCMD[1]="" # prefix command, i.e. nice, linux32, dchroot --- a/contrib/init-scripts/buildslave.init.sh +++ b/contrib/init-scripts/buildslave.init.sh @@ -21,15 +21,6 @@ # Source buildslave configuration [[ -r /etc/default/buildslave ]] && . /etc/default/buildslave -#[[ -r /etc/sysconfig/buildslave ]] && . /etc/sysconfig/buildslave - -# Or define/override the configuration here -#SLAVE_ENABLED[1]=0 # 0-enabled, other-disabled -#SLAVE_NAME[1]="buildslave #1" # short name printed on start/stop -#SLAVE_USER[1]="buildbot" # user to run slave as -#SLAVE_BASEDIR[1]="" # basedir to slave (absolute path) -#SLAVE_OPTIONS[1]="" # buildbot options -#SLAVE_PREFIXCMD[1]="" # prefix command, i.e. nice, linux32, dchroot # Get some LSB-like functions debian/patches/series0000644000000000000000000000002712225501645012033 0ustar fix-init-scripts.patch debian/control0000644000000000000000000000304712225501645010577 0ustar Source: buildbot-slave Section: devel Priority: optional Maintainer: Andriy Senkovych Uploaders: Matthias Klose Build-Depends: debhelper (>= 7.0.50~), python-all (>= 2.6.6-3), python-twisted-core (>=2.0), python-mock, bash-completion Homepage: http://buildbot.net Standards-Version: 3.9.4.0 X-Python-Version: >= 2.5 Vcs-Browser: https://github.com/buildbot/debian-buildbot-slave Vcs-Git: git://github.com/buildbot/debian-buildbot-slave.git Package: buildbot-slave Architecture: all Depends: ${python:Depends}, ${misc:Depends}, python-twisted-core (>= 2.2), python-twisted-words, adduser Breaks: buildbot (<< 0.8) Suggests: buildbot, bzr | subversion | cvs | mercurial | darcs | git-core Description: system to automate the compile/test cycle The BuildBot is a system to automate the compile/test cycle required by most software projects to validate code changes. By automatically rebuilding and testing the tree each time something has changed, build problems are pinpointed quickly, before other developers are inconvenienced by the failure. The guilty developer can be identified and harassed without human intervention. . By running the builds on a variety of platforms, developers who do not have the facilities to test their changes everywhere before checkin will at least know shortly afterwards whether they have broken the build or not. Warning counts, lint checks, image size, compile time, and other build parameters can be tracked over time, are more visible, and are therefore easier to improve. debian/rules0000755000000000000000000000130212225501645010244 0ustar #!/usr/bin/make -f DESTDIR = debian/buildbot-slave %: dh $@ --with python2,bash-completion override_dh_auto_clean: rm -fR buildbot_slave.egg-info dh_auto_clean override_dh_auto_test: ifneq (,$(findstring nocheck, $(DEB_BUILD_OPTIONS))) @echo "Skipping check (disabled in DEB_BUILD_OPTIONS)." else trial --reporter=bwverbose buildslave.test endif override_dh_installinit: mkdir -p ${DESTDIR}/etc/init.d ${DESTDIR}/etc/default cp contrib/init-scripts/buildslave.init.sh ${DESTDIR}/etc/init.d/buildslave cp contrib/init-scripts/buildslave.default ${DESTDIR}/etc/default/buildslave dh_installinit --name=buildslave --onlyscripts override_dh_installchangelogs: dh_installchangelogs --keep NEWS debian/buildbot-slave.postinst0000755000000000000000000000220112225501645013707 0ustar #! /bin/sh set -e HOME_DIR=/var/lib/buildbot SLAVES_DIR=$HOME_DIR/slaves USER_NAME=buildbot USER_DESCR="Buildbot system user" #PID_DIR=/var/run/buildbot-slave #LOG_DIR=/var/log/buildbot-slave case "$1" in configure) # Create builbot user account if not exist if ! getent passwd buildbot>/dev/null; then echo "Creating $USER_DESCR ..." adduser --quiet \ --system \ --disabled-login \ --disabled-password \ --no-create-home \ --group \ --gecos "$USER_DESCR" \ --home "$HOME_DIR" \ "$USER_NAME" fi # Fix permissions on $HOME_DIR recursively chown -R $USER_NAME: $HOME_DIR ## Fix permissions on created directories #mkdir -p $PID_DIR $LOG_DIR #chown $USER_NAME: $PID_DIR $LOG_DIR #chmod 775 $PID_DIR $LOG_DIR ;; abort-upgrade|abort-remove|abort-deconfigure) ;; *) echo "postinst called with unknown argument \`$1'" >&2 exit 1 ;; esac #DEBHELPER# exit 0 debian/source/0000755000000000000000000000000012225501645010470 5ustar debian/source/format0000644000000000000000000000001412225501645011676 0ustar 3.0 (quilt) debian/gbp.conf0000644000000000000000000000012212225501645010602 0ustar # ex: set ft=dosini: [DEFAULT] debian-branch = master export-dir = ../build-area/ debian/watch0000644000000000000000000000023112225501645010215 0ustar version=3 opts=downloadurlmangle=s/.*\/\//http:\/\// \ http://code.google.com/p/buildbot/downloads/list \ .*\/buildbot-slave-([0-9.p]*)\.tar\.gz debian/buildbot-slave.bash-completion0000644000000000000000000000230112225501645015106 0ustar # # This file installs BASH completions for 'buildslave' command. # _buildslave() { local buildslave_subcommands=" create-slave upgrade-slave start stop restart" local cur=${COMP_WORDS[COMP_CWORD]} local subcommand= local subcommand_args= local i=1 # # 'parse' the command line so far # figure out if we have subcommand specified and any arguments to it # # skip global options while [[ "${COMP_WORDS[$i]}" == -* ]]; do i=$(($i+1)) done # save subcommand subcommand=${COMP_WORDS[$i]} i=$(($i+1)) # skip subcommand options while [[ "${COMP_WORDS[$i]}" == -* ]]; do i=$(($i+1)) done # save subcommand arguments subcommand_args=${COMP_WORDS[@]:$i:${#COMP_WORDS[@]}} if [ "$cur" == "$subcommand" ]; then # suggest buildbot subcommands COMPREPLY=( $(compgen -W "$buildslave_subcommands" $cur) ) elif [ "$cur" == "$subcommand_args" ]; then # we are at first subcommand argument # all subcommands can have slave base directory as first argument # suggest directories COMPREPLY=( $(compgen -A directory $cur) ) fi } complete -F _buildslave buildslave