debian/0000755000000000000000000000000012237440456007175 5ustar debian/copyright0000644000000000000000000000140512203642576011130 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: App::KGB Upstream-Contact: Debian KGB Maintainers Source: http://alioth.debian.org/projects/kgb Files: * Copyright: 2008, 2012, 2013, Martín Ferrari 2008, 2009, 2010, 2011, 2012, 2013, Damyan Ivanov 2010, 2012, 2013, gregor herrmann License: GPL-2+ License: GPL-2+ This program 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; either version 2, or (at your option) any later version. . On Debian systems, the complete text of version 2 of the GNU General Public License can be found in `/usr/share/common-licenses/GPL-2'. debian/kgb-bot.install0000644000000000000000000000027412203642576012115 0ustar usr/sbin/* usr/share/man/man1/kgb-bot* usr/share/man/man1/kgb-add-project* usr/share/man/man1/kgb-split-config* usr/share/man/man5/kgb.conf* usr/share/man/man7/kgb-protocol* etc/kgb-bot/* debian/kgb-bot.init0000755000000000000000000001146512203642576011421 0ustar #! /bin/sh ### BEGIN INIT INFO # Provides: kgb-bot # Required-Start: $remote_fs $network # Required-Stop: $remote_fs $network # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: Collaborative IRC helper # Description: KGB is an IRC bot, helping people work together by # notifying an IRC channel when a commit occures. ### END INIT INFO # Author: Damyan Ivanov # Do NOT "set -e" # PATH should only include /usr/* if it runs after the mountnfs.sh script PATH=/sbin:/usr/sbin:/bin:/usr/bin DESC="Collaborative IRC helper" NAME=kgb-bot DAEMON=/usr/sbin/$NAME DAEMON_ARGS="--config /etc/kgb-bot/kgb.conf" PIDFILE=/var/run/kgb-bot/$NAME.pid SCRIPTNAME=/etc/init.d/$NAME # Exit if the package is not installed [ -x "$DAEMON" ] || exit 0 RUN_AS='Debian-kgb' # Read configuration variable file if it is present [ -r /etc/default/$NAME ] && . /etc/default/$NAME # Load the VERBOSE setting and other rcS variables . /lib/init/vars.sh # Define LSB log_* functions. # Depend on lsb-base (>= 3.0-6) to ensure that this file is present. . /lib/lsb/init-functions # # create /var/run/kgb-bot and ensure right permissions # init_run_dir() { RUN_DIR="/var/run/$NAME" [ -d "$RUN_DIR" ] || mkdir "$RUN_DIR" || return 1 chown "$RUN_AS":root "$RUN_DIR" chmod 0775 "$RUN_DIR" return 0 } # # create /var/log/kgb-bot.log and ensure right permissions # init_log_file() { LOG=/var/log/kgb-bot.log if ! test -e $LOG; then touch $LOG chown "$RUN_AS":root $LOG chmod 0644 $LOG fi } # # Function that starts the daemon/service # do_start() { # Return # 0 if daemon has been started # 1 if daemon was already running # 2 if daemon could not be started init_run_dir || return 2 init_log_file || return 2 start-stop-daemon --start --quiet --chuid $RUN_AS --pidfile $PIDFILE --exec $DAEMON --test > /dev/null \ || return 1 start-stop-daemon --start --quiet --chuid $RUN_AS --pidfile $PIDFILE --exec $DAEMON -- \ $DAEMON_ARGS \ || return 2 # Add code here, if necessary, that waits for the process to be ready # to handle requests from services started subsequently which depend # on this one. As a last resort, sleep for some time. } # # Function that stops the daemon/service # do_stop() { # Return # 0 if daemon has been stopped # 1 if daemon was already stopped # 2 if daemon could not be stopped # other if a failure occurred start-stop-daemon --stop --quiet --retry=TERM/30/KILL/5 --pidfile $PIDFILE --name $NAME RETVAL="$?" [ "$RETVAL" = 2 ] && return 2 # Wait for children to finish too if this is a daemon that forks # and if the daemon is only ever run from this initscript. # If the above conditions are not satisfied then add some other code # that waits for the process to drop all resources that could be # needed by services started subsequently. A last resort is to # sleep for some time. start-stop-daemon --stop --quiet --oknodo --retry=0/30/KILL/5 --exec $DAEMON [ "$?" = 2 ] && return 2 # Many daemons don't delete their pidfiles when they exit. rm -f $PIDFILE return "$RETVAL" } # # Function that sends a SIGHUP to the daemon/service # do_reload() { init_log_file || return 2 start-stop-daemon --stop --signal 1 --quiet --pidfile $PIDFILE --name $NAME return 0 } # # Function that sends a SIGQUIT to the daemon/service # do_soft_restart() { init_log_file || return 2 start-stop-daemon --stop --signal 3 --quiet --pidfile $PIDFILE --name $NAME return 0 } case "$1" in start) [ "$BOT_ENABLED" != "1" ] && \ echo $DAEMON disabled in /etc/default/$NAME>&2 && exit 0 [ "$VERBOSE" != no ] && log_daemon_msg "Starting $DESC" "$NAME" do_start case "$?" in 0|1) [ "$VERBOSE" != no ] && log_end_msg 0 ;; 2) [ "$VERBOSE" != no ] && log_end_msg 1 ;; esac ;; stop) [ "$VERBOSE" != no ] && log_daemon_msg "Stopping $DESC" "$NAME" do_stop case "$?" in 0|1) [ "$VERBOSE" != no ] && log_end_msg 0 ;; 2) [ "$VERBOSE" != no ] && log_end_msg 1 ;; esac ;; status) status_of_proc -p "$PIDFILE" "$DAEMON" "$NAME" && exit 0 || exit $? ;; soft-restart) log_daemon_msg "Reloading $DESC" "$NAME" do_soft_restart log_end_msg $? ;; reload|force-reload) log_daemon_msg "Reloading $DESC" "$NAME" do_reload log_end_msg $? ;; restart) log_daemon_msg "Restarting $DESC" "$NAME" do_stop case "$?" in 0|1) [ "$BOT_ENABLED" != "1" ] && \ echo $DAEMON disabled in /etc/default/$NAME>&2 && exit 0 do_start case "$?" in 0) log_end_msg 0 ;; 1) log_end_msg 1 ;; # Old process is still running *) log_end_msg 1 ;; # Failed to start esac ;; *) # Failed to stop log_end_msg 1 ;; esac ;; *) echo "Usage: $SCRIPTNAME {start|stop|restart|force-restart|reload|force-reload}" >&2 #echo "Usage: $SCRIPTNAME {start|stop|restart|force-reload}" >&2 exit 3 ;; esac : debian/changelog0000644000000000000000000006534012237440456011057 0ustar kgb-bot (1.31-1ubuntu1) trusty; urgency=low * Merge from Debian unstable. Remaining changes: - debian/control: Add build dependency on language-pack-bg-base and delete build dependency on missing locales-all. This fixes an FTBFS. -- Bhavani Shankar Sat, 09 Nov 2013 19:34:21 +0530 kgb-bot (1.31-1) unstable; urgency=low * client: default to using json * remove author-login from default message templates * TODO: plans for implementing central configuration * import dirname in Client.pm * configure test git repositories wheter test bot is running or not * remove project from default configuration * update documentation about default message templates * add author_name field for CVS commits * client: decode arguments given to --relay-msg * require JSON::XS instead of plain JSON -- Damyan Ivanov Sat, 17 Aug 2013 00:04:30 +0200 kgb-bot (1.30-1) unstable; urgency=low * bot: fix colorize_change_wrapper -- Damyan Ivanov Fri, 09 Aug 2013 15:57:55 +0200 kgb-bot (1.29-1) unstable; urgency=low [ Martín Ferrari ] * Fix invalid Vcs-Svn field. * Check BOT_ENABLED before starting the bot in the restart action. [ gregor herrmann ] * Install missing App/KGB/Painter.pm and other files. * debian/rules: call dh_install with --fail-missing to avoid forgetting new files in the future. * debian/control: kgb-client: move libjson-* from Recommends to Depends. Thanks to Pete Wyckoff for the hint in #718286. * debian/control: make Vcs-* fields canonical. Thanks, lintian. * debian/control: use git instead of git-core, the package was renamed some years ago. * Fix failure with Safe-2.35. Thanks to Petr Písař for the patch. [ Damyan Ivanov ] * detect UTF8 in full author name * add kgb.enable-branch-ff-notification Git option (true by default) for managing fast forward notifications * declare test dependencies in test_requires * client: add --debug option * chomp git-config-determined config file path before usage * replace ~~ (smartmatch) usage. ~~ is deprecated in perl 5.18 * replace given/when usage, declared experimental in perl 5.18 * client: verify config file structures * git client: do not die on unknown ref updates (see #706375) * git client: squash creation if numerous tags (>5 currently) * configurable tag squash threshold/message * correct POD about Client->format_message arguments * bot: allow setting of "" color to disable colouring of a given item * bot: use App::KGB::Painter for coloring * bot: add --simulate-color option enabling color codes in the dump file * include tag name in the Tag object created from annotated tags * merge back kgb-client-git package into kgb-client * git client: allow specifying project-id via git-config * t/50-client.t: skip tests with UTF-8 commit messages (subversion) unless C_TYPE is known to use UTF-8. RT#80664 * adapt to newer JSON-RPC which renamed the client module (RT#80666) * add versions to all modules to satisfy the CPAN indexer * make sure that strict and warnings are used everywhere -- Damyan Ivanov Thu, 08 Aug 2013 00:59:54 +0200 kgb-bot (1.27-1ubuntu1) saucy; urgency=low * Merge from Debian unstable. Remaining changes: - debian/control: Add build dependency on language-pack-bg-base and delete build dependency on missing locales-all. This fixes an FTBFS. - debian/rules: Delete test on versions, as it always fails with Ubuntu versioning. -- Bhavani Shankar Sun, 09 Jun 2013 22:58:29 +0530 kgb-bot (1.27-1) unstable; urgency=low [ Damyan Ivanov ] * New upstream release + now supports including full author name in the notification Closes: #700319 -- kgb-bot should allow to use the real name or entire mail address in messages + supports entirely client-constructed notifications Closes: #693258 -- Permit output of the repo-id string [ gregor gerrmann ] * Install the new kgb-protocol(7) manpage. Thanks to Andrea Veri for noticing it was missing. * debian/copyright: Update years of copyright. -- Damyan Ivanov Wed, 29 May 2013 21:07:27 +0300 kgb-bot (1.26-1ubuntu1) saucy; urgency=low * Merge from Debian unstable. Remaining changes: - debian/control: Add build dependency on language-pack-bg-base and delete build dependency on missing locales-all. This fixes an FTBFS. - debian/rules: Delete test on versions, as it always fails with Ubuntu versioning. -- Logan Rosen Tue, 30 Apr 2013 13:45:46 -0400 kgb-bot (1.26-1) unstable; urgency=low * update kgb-client.conf manual with the new options * rework Git branch walking avoids multiple notification about merged commits (Closes: #698133) * init: Use user configured in $RUN_AS as owner of logfiles. Otherwise log files created as 'Debian-kgb' can't be written to if the RUN_AS variable is modified Thanks to Alexander Barton for the patch. (Closes: #699027) * notify even if log message is invalid UTF-8 notification with log of "(log is invalid UTF-8)" is better than no notification at all (Closes: #691183) -- Damyan Ivanov Thu, 28 Mar 2013 08:41:36 +0200 kgb-bot (1.25-1ubuntu1) raring; urgency=low * Merge from Debian unstable. Remaining changes: - debian/control: Add build dependency on language-pack-bg-base and delete build dependency on missing locales-all. This fixes an FTBFS. - debian/rules: Delete test on versions, as it always fails with Ubuntu versioning. -- Logan Rosen Tue, 18 Dec 2012 20:34:26 -0500 kgb-bot (1.25-1) unstable; urgency=low * New upstream release + slignt improvement of CVS-related documentation + added support for using IRC notices instead of ordinary messages + added support for disabling colors -- Damyan Ivanov Mon, 17 Dec 2012 14:25:01 +0200 kgb-bot (1.24-1ubuntu1) raring; urgency=low * Merge from Debian unstable (LP: #1082643). Remaining changes: - debian/control: build dependency on language-pack-bg-base and deleted build dependency on missing locales-all. This fixes a FTBFS - debian/rules: deleted test on versions as it always fails with ubuntu versioning -- Vibhav Pant Sat, 24 Nov 2012 18:04:59 +0530 kgb-bot (1.24-1) unstable; urgency=low * New release. See Changes for details. Closes: #691562. * debian/control: Add missing App::KGB::Client::RelayMsg module. * debian/control: Make build dependency on libtest-compile-perl versioned. * debian/NEWS: add NEWS file for the port change * debian/control: fix libmodule-build-perl version -- Martín Ferrari Thu, 22 Nov 2012 11:54:21 +0000 kgb-bot (1.23-1ubuntu1) raring; urgency=low * Merge from debian unstable. Remaining changes: - debian/control: build dependency on language-pack-bg-base and deleted build dependency on missing locales-all. This fixes a FTBFS - debian/rules: deleted test on versions as it always fails with ubuntu versioning -- Angel Abad Wed, 31 Oct 2012 12:07:00 +0100 kgb-bot (1.23-1) unstable; urgency=low * t/compile*: use Test::Compile::Internal in order to show verbose errors * Server: + add --debug command line switch + replace --config-dir option with 'include:' configuration item add 'include: "/etc/kgb-bot/kgb.conf.d"' to the default config + default pid_dir to /var/run/kgb-bot * Documentation: + add manuals for kgb.conf and kgb-client.conf + pod.t: test documentation in man*/ too + give example for gitweb URL * Client: + show expanded web-link in verbose mode + dump processed configuration in verbose mode + shorten_url: really return plain URL if shortening is not enabled + send_changes: detailed dump in verbose mode + introduce module-and-branch-re setting and deprecate branch-and-module-re-swap -- Damyan Ivanov Sat, 20 Oct 2012 21:13:44 +0300 kgb-bot (1.22-1) unstable; urgency=low [ gregor herrmann ] * kgb-add-project: document the new --dir option * Install /etc/kgb-bot/kgb.conf.d directory into kgb-bot package. * add kgb-split-config script for splitting monolythic config into per-project files [ Damyan Ivanov ] * Add API documentation (JSON-RPC only) * Server: + prepend all IRC strings with a hidden character to avoid addressing + check permissions of the conf.d directory + pass --config-dir too on restart + honour --foreground when reloading and don't reopen the log + change the delimiters around web links to make konsole users' life easier + refuse to load world-readable configuration files * fix a bug in determining the longest common directory in a change set -- Damyan Ivanov Sun, 14 Oct 2012 11:30:10 +0300 kgb-bot (1.21-1) unstable; urgency=low * Server: + fix exception handling + better error messages * Debli: RPC returns the key only, prepend 'http://deb.li/' -- Damyan Ivanov Thu, 11 Oct 2012 23:00:33 +0300 kgb-bot (1.20-1) unstable; urgency=low [ Damyan Ivanov ] * kgb-add-project: avoid using 'keys($hashref)' which requires too recent perl * client: + add --repository to synopsis + fix --repository in CVS example + CVS: silence debugging output + WWW:Shorten::Debli implementation (uses deb.li for URL shortening) + determine default repository type from the environment (makes --repository useless) + determine default module from git directory (makes --module redundant for Git) + allow explicit protocol configuration + saving of last contacted server -- in a separate method * server: + ensure trailing \n in KGB->out + note repository id on internal errors + conf.d/*.conf style configuration + use exceptions for handling argument errors + turn on utf8 mode on STDOUT/ERR + use shorter timestamp representation * client and server: + protocol 4 (JSON-RPC) + plain message relaying (Closes: #689641) * packaging: + install Client::Fake in kgb-client package (Closes: #689984) + add libjson-perl to kgb-bot Depends [ gregor herrmann ] * some spellchecking in the POD -- Damyan Ivanov Thu, 11 Oct 2012 22:25:21 +0300 kgb-bot (1.19-1) unstable; urgency=low [ Damyan Ivanov ] * bot: add timestamp to log messages * bot: use KGB->out() instead of plain warn() for consistent log messages * bot: tighten auto-responce rate-limit to stop storms in the first screen * bot: silently ignore empty changes * bot: do not crash on internal errors while processing requests [ gregor herrmann ] * kgb-add-project: sort the channel hashes to make sure "name" is the first key. -- Damyan Ivanov Fri, 05 Oct 2012 21:20:09 +0300 kgb-bot (1.18-1) unstable; urgency=low * bot: fix channel-must-have-a-repository check for broadcast channels -- Damyan Ivanov Fri, 05 Oct 2012 14:07:27 +0300 kgb-bot (1.17-1) unstable; urgency=low [ Damyan Ivanov ] * improve wording of web-link description * 50-client.t: support keeping temporary directory * declare POD encoding * additional documentation for web-link * explain status-dir in the sample client config * add support for URL shortening via WWW::Shorten + kgb-client: add libwww-shorten-perl to Recommends * client: add --fake option. Fakes a commit to help testing server connection (Closes: #689540) * bot: introduce broadcast channels which receive notifications from all repositories Closes: #688993 + introduce private repositories * bot: fail if a repository has no associated channels [ gregor herrmann ] * typo/doc fixes * kgb-add-project: add option to save config back to file -- Damyan Ivanov Fri, 05 Oct 2012 13:35:15 +0300 kgb-bot (1.16-1) unstable; urgency=low [ Martín Ferrari ] * Fix typo. [ Damyan Ivanov ] * indicate replacement using 'brown' (which should be displayed as low intensity red or something) instead of inverse * honour 'repository' setting in kgb-client.conf (Closes: 688992) * bot: support web links for commits * more typos in the documentation * script to add simple projects quickly (destroys comments) * call $poe_kernel->has_forked in the child process Makes the reload action of the bot work (Closes: #689018) * bot: reopen logs on reload * create log file in the init script, not in postinst * protocol v3 in server * protocol v3 in client (only used irfn extra arguments are present) * Add CVS support (Closes: #689288) * fix forced single-line commit mode. reported by joeyh, fix by dondelelcaro [ gregor herrmann ] * debian/copyright: use Copyright-Format 1.0, bump years of copyright. * Set Standards-Version to 3.9.4 (no changes). * Update {versioned,alternative} (build) dependencies. * kgb-bot init script: depend on $network facility and add status option. * init script: add pidfile argument to status option * add bot reload to logrotate configuration -- Damyan Ivanov Wed, 03 Oct 2012 11:45:39 +0300 kgb-bot (1.15-2ubuntu1) precise; urgency=low * Merge from debian unstable. Remaining changes: - debian/control: build dependency on language-pack-bg-base and deleted build dependency on missing locales-all. This fixes a FTBFS - debian/rules: deleted test on versions as it always fails with ubuntu versioning -- Angel Abad Sat, 15 Oct 2011 13:52:35 +0200 kgb-bot (1.15-2) unstable; urgency=low * client: denote libfile-touch-perl dependency to a recommendation * bot: require client 1.15 for the detect_common_dir move -- Damyan Ivanov Thu, 15 Sep 2011 10:03:37 +0300 kgb-bot (1.15-1) unstable; urgency=low * New release * Client: + use single line note for annotated tags * Server: + fix single line commits with multi-line explaination + no bold revision by default + drop (bold) repository name from the notification -- Damyan Ivanov Wed, 14 Sep 2011 19:54:16 +0300 kgb-bot (1.14-1) unstable; urgency=low * Client: add an option to keep the last used server in a directory * Client/Server: add support for single line commit notifications * add (build-)dependency on libfile-touch-perl -- Damyan Ivanov Wed, 24 Aug 2011 23:41:20 +0300 kgb-bot (1.13-1) unstable; urgency=low * numerous test improvements * fix: no warnings when commits have no author * bot: log repository on authentication failure * put tag name in changes for plain tags too * bot: always decode parameters -- Damyan Ivanov Sat, 13 Aug 2011 18:48:16 +0300 kgb-bot (1.10-1) unstable; urgency=low * Skip tests requiring SVN::* or Git when these are missing * fix dist_name from App::KGB to App-KGB * disable indexing of privinc * fix a couple of cases of conditional declaration * add a Perl::Critic test for conditional declarations * bot: do not answer back if no answers are configured. * rate-limit autoresponses * bump years in debian/copyright -- Damyan Ivanov Thu, 11 Aug 2011 16:43:03 +0300 kgb-bot (1.08-1) unstable; urgency=low [ Damyan Ivanov ] * Client::Git: use --format=raw when describing annotated tags [ Salvatore Bonaccorso ] * debian/control: Remove libdigest-sha1-perl from Depends for kgb-client binary package. * Bump Standards-Version to 3.9.2. [ gregor herrmann ] * Switch to source format 3.0 (quilt). * Bump debhelper compatibility level to 8; remove "--buildsystem=perl_build" in debian/rules. * debian/control: remove versioned dependency on perl >= 5.10. -- Damyan Ivanov Fri, 05 Aug 2011 16:52:02 +0300 kgb-bot (1.06-2ubuntu1) natty; urgency=low * Merge from debian unstable (LP: #688284). Remaining changes: - debian/control: build dependency on language-pack-bg-base and deleted build dependency on missing locales-all. This fixes a FTBFS - debian/rules: deleted test on versions as it always fails with ubuntu versioning -- Angel Abad Thu, 09 Dec 2010 22:58:28 +0100 kgb-bot (1.06-2) unstable; urgency=low [ gregor herrmann ] * Add a postrm script to remove the log in purge; thanks to Holger Levsen and piuparts for the bug report (closes: #605978). * Add a logrotate config file. * Add /me to Uploaders. * debian/copyright: switch to DEP5 formatting. -- Damyan Ivanov Sun, 05 Dec 2010 17:37:01 +0200 kgb-bot (1.06-1ubuntu1) natty; urgency=low * Merge from debian unstable. Remaining changes: - debian/control: build dependency on language-pack-bg-base and deleted build dependency on missing locales-all. This fixes a FTBFS (LP: #572538) - debian/rules: deleted test on versions as it always fails with ubuntu versioning -- Bhavani Shankar Sun, 05 Dec 2010 12:17:33 +0530 kgb-bot (1.06-1) unstable; urgency=low [ gregor herrmann ] * kgb-bot: - fix typo when accessing global config - call polygen_available with full class name [ Damyan Ivanov ] * kgb-bot: drop the asterix prefix from revision number * Makefile: fix (real|dist)clean targets to use ./Build for the real work * App::KGB::Change: + fix typo in POD + make the stringification method public and document it * t/52-client-git.t: when comparing changes, force objects to stringify * MANIFEST.SKIP: add MYMETA.yml * fix typo in Client::Subversion POD * Packaging: + rules: fix determining package version + copyright: point to versioned GPL + control: add Homepage -- Damyan Ivanov Sat, 04 Dec 2010 11:12:31 +0200 kgb-bot (1.05-1ubuntu1) natty; urgency=low * Merge from debian unstable (LP: #662444). Remaining changes: - debian/control: build dependency on language-pack-bg-base and deleted build dependency on missing locales-all. This fixes a FTBFS (LP: #572538) - debian/rules: deleted test on versions as it always fails with ubuntu versioning -- Angel Abad Mon, 18 Oct 2010 02:28:16 +0200 kgb-bot (1.05-1) unstable; urgency=low [ gregor herrmann, Damyan Ivanov ] * kgb-bot: use File::Which to find polygen binary; split out the polygen-finding function; add libfile-which-perl to Suggests; closes: #593631 -- can't access /usr/bin/polygen * kgb-bot: check existence of polygen binary just before using it; closes: #593633 -- dies when polygen is removed after daemon startup * any problems in finding/running polygen binary are logged only when debug is enabled as a counter-measure against remotely-assisted log abuse -- Damyan Ivanov Fri, 10 Sep 2010 22:49:25 +0300 kgb-bot (1.04-1) unstable; urgency=low * use Digest::SHA from core instead of ::SHA1 * remove references to Svn::* from Build.PL Closes: #582739 (by working around #589812) * Standards-Version: 3.9.1 (no changes necessary) -- Damyan Ivanov Tue, 03 Aug 2010 22:33:23 +0300 kgb-bot (1.03-1ubuntu1) maverick; urgency=low * debian/control: build dependency on language-pack-bg-base and deleted build dependency on missing locales-all. This fixes a FTBFS (LP: #572538) * debian/rules: deleted test on versions as it always fails with ubuntu versioning -- Fabrice Coutadeur Thu, 17 Jun 2010 04:19:41 +0000 kgb-bot (1.03-1) unstable; urgency=low * New upstream release + adds rotocol v2 with the ability to explicitly specify revision prefix, which is 'r' for Subversion and empty otherwise * Standardss-Version: 3.8.4 (no changes necessary) -- Damyan Ivanov Wed, 28 Apr 2010 23:40:15 +0300 kgb-bot (1.01-3) unstable; urgency=medium * Make 'restart' init.d script action stop and re-start the daemon as directed by the policy. Closes: #566004. Thanks to Evgeni Golov. -- Damyan Ivanov Mon, 25 Jan 2010 18:40:15 +0200 kgb-bot (1.01-2) unstable; urgency=low [ gregor herrmann ] * Build depend on locales-all and run tests under a UTF-8 locale (closes: #560657). [ Damyan Ivanov ] * add a watch file -- Damyan Ivanov Fri, 11 Dec 2009 22:27:36 +0200 kgb-bot (1.01-1) unstable; urgency=low * New upstream release + Fixex client when cross-branch/module commits are made -- Damyan Ivanov Sat, 05 Dec 2009 16:16:02 +0200 kgb-bot (1.00-1) unstable; urgency=low * New upsream release + Fixes support for unicode commit messages -- Damyan Ivanov Wed, 02 Dec 2009 19:34:35 +0200 kgb-bot (0.16-1) unstable; urgency=low * New upstream release -- Damyan Ivanov Tue, 24 Nov 2009 18:49:49 +0200 kgb-bot (0.15-1) unstable; urgency=low * New upstream release * Split Git support in kgb-client-git - avoids a bunch of dependencies being installed with the server * kgb-bot: drop polygen and libipc-run-perl to Recommends -- Damyan Ivanov Sat, 07 Nov 2009 16:22:01 +0200 kgb-bot (0.14-1) unstable; urgency=low * New upstream release + make kgb-bot depend on kgb-client (it uses some of its modules) -- Damyan Ivanov Mon, 02 Nov 2009 22:34:17 +0200 kgb-bot (0.13-1) unstable; urgency=low * New upstream release -- Damyan Ivanov Sun, 01 Nov 2009 18:22:25 +0200 kgb-bot (0.12-1) unstable; urgency=low * New upstream release * rules: check that package version matches module version -- Damyan Ivanov Sat, 31 Oct 2009 16:04:55 +0200 kgb-bot (0.11-1) unstable; urgency=low * new upstream release + the autoresponder can use polygen * add polygen and libipc-run-perl to Recommends -- Damyan Ivanov Mon, 26 Oct 2009 21:03:15 +0200 kgb-bot (0.10-1) unstable; urgency=low * New upstream release + kgb-bot no longer needs App::KGB, which is in the kgb-client package -- Damyan Ivanov Sun, 25 Oct 2009 21:09:00 +0200 kgb-bot (0.09-1) unstable; urgency=low * New upstream release + postinst: set up /var/log/kgb-bot.log if not present + respond to !version command (only allowed to a list of masks) + also handle private messages -- Damyan Ivanov Sat, 24 Oct 2009 19:14:17 +0300 kgb-bot (0.08-1) unstable; urgency=low * new upstream release + fixes a typo causing crash on received IRC messages -- Damyan Ivanov Wed, 21 Oct 2009 08:17:46 +0300 kgb-bot (0.07-1) unstable; urgency=low [ Damyan Ivanov ] * add Git support * set Maintainer address to kgb-maintainers@lists.alioth.d.o * add --git-reflog switch, passed to Client::Git * add support for a dummy "_ECHO_" network * add an example bot config useful for local testing * mention supported VCS in kgb-client long description * drop included RateLimit and use send_queue to detect congestion * use non-svn-checkout upstream source location * add git-core as (build-) dependency * Update Vcs-* URLs to match the new home on Alioth * Section: net->devel; Priority: extra->optional * Upload to Debian -- Damyan Ivanov Wed, 21 Oct 2009 01:17:15 +0300 kgb-bot (0.06) unstable; urgency=low * client: install App::KGB::Client* in kgb-client * install also the manuals * use Module::Build -- Damyan Ivanov Thu, 01 Oct 2009 22:31:11 +0300 kgb-bot (0.05) unstable; urgency=low [ Martín Ferrari ] * server + Decode utf8 sequences before passing to sha1_hex function. Fixes DoS with extended chars in the commit log. * client + Try to correctly handle the svn-provided strings, convertien them to utf8 sequences. Decode them before sha1 and use the utf8 versions for SOAP. This triggers a bug in SOAP::Lite 0.710.08, because it incorrectly handles utf8 strings. -- Damyan Ivanov Sat, 26 Sep 2009 11:00:33 +0300 kgb-bot (0.04) unstable; urgency=low [ Damyan Ivanov ] * server + use "dir" or "dirs" depending on the number (1 or greater) + make colors configurable + drop ":" after repository name * client + avoid wrong trimming of changed paths when branch or module cannot be detected + fix population of default password and proxy for servers + move checksum calculation back into servers loop + randomize server list + improve documentation + split self-contained parts of the code into separate modules as preparation for Git support + add --verbose option * split client script/man in kgb-client package * add syntax check and POD tests [ gregor herrmann ] * debian/rules: simplify, and don't compress examples. -- Damyan Ivanov Mon, 14 Sep 2009 16:32:01 +0300 kgb-bot (0.03) unstable; urgency=low [ Damyan Ivanov ] * make dependency on libpoe-component-irc-perl versioned >= 5.56, in which NickServID plugin is first mentioned * add support for a list of answers * make all IO handles use utf8 encoding [ Martín Ferrari ] * server/KGB: move configuration reading and verification to a subroutine, for future support of config reloading. * server/KGB: separate into packages for clearer code. Allow SIGQUIT to restart the server (with complete close and disconnect). * server/KGB: support for reloading the configuration file with SIGHUP. * server/KGB: fixed an error in the password verification (protocol 1). Protocol versions: use a hardcoded hash of the *really* supported versions, and then a configuration option to filter them out. * debian/*, server/KGB, Makefile: match the /etc directory name with the package name. * client/*: remove hardcodings. * debian/init: make use of the SIG(HUP|QUIT) handlers. * client/KGB_sendcommit: use v1 protocol. * server/KGB: daemonize, handle parent/child communication during setup, and forcefully die when POE gets silly. * server/KGB, server/kgb.conf.sample: now the bot answers when addressed on a channel. * server/KGB, server/kgb.conf.sample: support for rate limiting the SOAP interface (only global limits, not per client). * client/KGB_sendcommit: shut up the compiler warnings about typos. [ gregor herrmann ] * debian/control: - fix Vcs-Svn URL - bump Standards-Version to 3.8.1 - add ${misc:Depends}, ${perl:Depends} to Depends [ Damyan Ivanov ] * implement server failover * create /var/run/kgb-bot in the init script * client: process faults synchronously, report verbosely * add support for discovering branch and package name * server: fix branch/module colourization * bump perl (build) dependency to 5.10 * remove the slash after the module name * strip leading shash from transmitted paths * omit flags if the change is a mere modification * bump Standards-Version to 3.8.3 (no changes needed) -- Damyan Ivanov Sun, 06 Sep 2009 15:31:02 +0300 debian/kgb-bot.postrm0000644000000000000000000000015612203642576011772 0ustar #!/bin/sh set -e set -u LOG=/var/log/kgb-bot.log if [ "$1" = "purge" ] ; then rm -f $LOG* fi #DEBHELPER# debian/kgb-bot.default0000644000000000000000000000013212203642576012064 0ustar # Configuration for kgb-bot init script # Set to 1 to enable KGB at startup BOT_ENABLED=0 debian/kgb-bot.postinst0000644000000000000000000000057712203642576012340 0ustar #!/bin/sh set -e set -u if [ "$1" = "configure" ]; then adduser --system --quiet --group --home /dev/null --no-create-home \ --disabled-login --gecos "KGB bot" --force-badname Debian-kgb if ! dpkg-statoverride --list /etc/kgb-bot/kgb.conf > /dev/null; then dpkg-statoverride --update --add root Debian-kgb 0640 /etc/kgb-bot/kgb.conf fi fi #DEBHELPER# debian/kgb-bot.logrotate0000644000000000000000000000031012203642576012436 0ustar /var/log/kgb-bot.log { weekly rotate 4 compress delaycompress missingok postrotate if invoke-rc.d kgb-bot status > /dev/null ; then invoke-rc.d kgb-bot reload > /dev/null fi endscript } debian/NEWS0000644000000000000000000000033612203642576007676 0ustar kgb-bot (1.24-1) unstable; urgency=low The default port of the kgb-bot listener has changed to avoid conflict with approx. The new default is 5391. -- Damyan Ivanov Mon, 29 Oct 2012 19:09:06 +0200 debian/source/0000755000000000000000000000000012203642576010475 5ustar debian/source/format0000644000000000000000000000001412203642576011703 0ustar 3.0 (quilt) debian/kgb-bot.dirs0000644000000000000000000000004112203642576011400 0ustar /var/log /etc/kgb-bot/kgb.conf.d debian/control0000644000000000000000000000622012203642576010600 0ustar Source: kgb-bot Maintainer: Ubuntu Developers XSBC-Original-Maintainer: Debian KGB Maintainers Uploaders: Martín Ferrari , Damyan Ivanov , gregor herrmann Section: devel Priority: optional Build-Depends: debhelper (>= 8) Build-Depends-Indep: perl, libclass-accessor-perl, libfile-touch-perl, libipc-run-perl, libipc-system-simple-perl, libjson-xs-perl, libjson-rpc-perl, libmodule-build-perl (>= 0.400000) | perl (>= 5.17.1), libpoe-component-irc-perl, libpoe-component-server-soap-perl, libpoe-perl, libproc-pid-file-perl, libschedule-ratelimiter-perl, libsoap-lite-perl, libsvn-perl, libtest-compile-perl (>= 0.19), libtest-pod-coverage-perl, libtest-pod-perl, libwww-shorten-perl, libyaml-perl, git, subversion, language-pack-bg-base Standards-Version: 3.9.4 Vcs-Browser: http://anonscm.debian.org/gitweb/?p=kgb/kgb.git Vcs-Git: git://anonscm.debian.org/kgb/kgb.git/ Homepage: http://kgb.alioth.debian.org/ Package: kgb-bot Architecture: all Depends: ${misc:Depends}, ${perl:Depends}, adduser, libipc-run-perl, libjson-xs-perl, libpoe-component-irc-perl, libpoe-component-server-soap-perl, libpoe-perl, libproc-pid-file-perl, libschedule-ratelimiter-perl, libyaml-perl, kgb-client (>= 1.15), git Suggests: polygen, libfile-which-perl Description: IRC collaboration bot KGB is an IRC bot, helping people work together by notifying an IRC channel when a commit occurs. . It supports multiple repositories/IRC channels and is fully configurable. . This package contains the server-side daemon, kgb-bot, which is responsible for relaying commit notifications to IRC. Package: kgb-client Architecture: all Depends: ${misc:Depends}, ${perl:Depends}, libclass-accessor-perl, libjson-xs-perl, libjson-rpc-perl, libsoap-lite-perl, libsvn-perl, libyaml-perl Replaces: kgb-client-git (<= 1.28-1~) Breaks: kgb-client-git (<= 1.28-1~) Recommends: libfile-touch-perl, libwww-shorten-perl Suggests: kgb-bot Description: client for KGB (IRC collaboration bot) KGB is an IRC bot, helping people work together by notifying an IRC channel when a commit occurs. . It supports multiple repositories/IRC channels and is fully configurable. . This package contains the client-side program, kgb-client, which is supposed to be used as an hook in your version control system and sends the notifications to the KGB daemon. . Currently supported version control systems are: * Git * Subversion * CVS debian/kgb-client.examples0000644000000000000000000000005112203642576012750 0ustar eg/kgb-client.conf.sample eg/post-commit debian/rules0000755000000000000000000000077112237440336010257 0ustar #!/usr/bin/make -f %: dh $@ override_dh_compress: dh_compress -Xexamples PKG_VER := $(shell dpkg-parsechangelog | egrep '^Version:' | sed 's/^Version: \(.\+\)-[^-]\+$$/\1/') MOD_VER := $(shell perl -Ilib -MApp::KGB -e'print $$App::KGB::VERSION') override_dh_auto_test: LANG=bg_BG.utf8 LC_ALL=bg_BG.utf8 dh_auto_test [ "$(PKG_VER)" = "$(MOD_VER)" ] \ || ( echo "Package version ($(PKG_VER)) doesn't match module version ($(MOD_VER))"; exit 1 ) override_dh_install: dh_install --fail-missing debian/compat0000644000000000000000000000000212203642576010373 0ustar 8 debian/kgb-client.install0000644000000000000000000000122512203642576012604 0ustar usr/bin/kgb-client usr/share/man/man1/kgb-client* usr/share/man/man3/App::KGB.3pm usr/share/man/man3/App::KGB::API* usr/share/man/man3/App::KGB::Change* usr/share/man/man3/App::KGB::Client* usr/share/man/man3/App::KGB::Commit* usr/share/man/man3/App::KGB::Painter* usr/share/man/man3/JSON* usr/share/man/man3/WWW* usr/share/man/man5/kgb-client.conf* usr/share/perl5/App/KGB.pm usr/share/perl5/App/KGB/API.pm usr/share/perl5/App/KGB/Change.pm usr/share/perl5/App/KGB/Client.pm usr/share/perl5/App/KGB/Client/* usr/share/perl5/App/KGB/Commit.pm usr/share/perl5/App/KGB/Commit/Tag.pm usr/share/perl5/App/KGB/Painter.pm usr/share/perl5/JSON/* usr/share/perl5/WWW/* debian/watch0000644000000000000000000000014212203642576010223 0ustar version=3 https://alioth.debian.org/frs/?group_id=100408 \ .+/kgb-bot_([\d.]+)\.orig\.tar\.gz