diff options
author | Alexander Sulfrian <alexander@sulfrian.net> | 2013-07-25 19:48:35 +0200 |
---|---|---|
committer | Alexander Sulfrian <alexander@sulfrian.net> | 2016-05-10 02:25:17 +0200 |
commit | 1c08a83a375c901709f50d519bb17e6a1368eae1 (patch) | |
tree | 4bcc1669060982fe00210b667e013546146140a2 | |
parent | cd524df0d7ab2660ebba23d0b22be3cd83152e4d (diff) | |
download | bot-1c08a83a375c901709f50d519bb17e6a1368eae1.tar.gz bot-1c08a83a375c901709f50d519bb17e6a1368eae1.tar.bz2 bot-1c08a83a375c901709f50d519bb17e6a1368eae1.zip |
debianization
-rw-r--r-- | debian/changelog | 80 | ||||
-rw-r--r-- | debian/compat | 1 | ||||
-rw-r--r-- | debian/control | 18 | ||||
-rw-r--r-- | debian/copyright | 37 | ||||
-rw-r--r-- | debian/dirs | 1 | ||||
-rw-r--r-- | debian/install | 1 | ||||
-rw-r--r-- | debian/manpages | 1 | ||||
-rw-r--r-- | debian/phenny.default | 13 | ||||
-rwxr-xr-x | debian/phenny.init | 82 | ||||
-rw-r--r-- | debian/phenny.pyinstall | 2 | ||||
-rwxr-xr-x | debian/rules | 9 | ||||
-rw-r--r-- | debian/source/format | 1 |
12 files changed, 246 insertions, 0 deletions
diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..d6703c9 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,80 @@ +phenny (1:2~git-2016-05-10~cd524df-1) unstable; urgency=low + + * Fix indentation and trailing whitespaces + * Fix module home directory + * Add ssl support + * Watcher: Fix mulit-bot mode + * Watcher: Fork while starting watching not while configuring + * Watcher: Loop until KeyboardInterrupt + * Watcher: Clean signal handlers after fork + * startup: Use always the configured nick for NICKSERV auth + * Watcher: Only restart failed processes + * Watcher: Delay restart of dead processes + + -- Alexander Sulfrian <alex@spline.inf.fu-berlin.de> Tue, 10 May 2016 02:24:32 +0200 + +phenny (2~hg28-2) unstable; urgency=low + + * Team upload. + * Drop 05_python-version.dpatch, set minimum required version via + XS-Python-Version and use unversioned interpreter in shebang + Closes: #596311 + + -- Piotr Ożarowski <piotr@debian.org> Sun, 12 Sep 2010 16:41:19 +0200 + +phenny (2~hg28-1) unstable; urgency=low + + [ Noah Slater ] + * New upstream version, security fix and oblique command added. + * Added debian/README.source file. + * Updated debian/control, removed Build-Depends on cdbs. + * Updated debian/control, updated Build-Depends on debhelper to 7.2.11. + * Updated debian/control, changed Standards-Version to 3.8.1. + * Updated debian/control, changed Vcs-Browser. + * Updated debian/copyright, changed for latest proposed format. + * Updated debian/patches, converted all patches to dpatch system. + * Updated debian/patches/module-home.patch, relative home. Closes: #516038 + * Updated debian/rules to use full debhelper system. + * Deleted debian/patches/bot-announce.patch, announce functionality. + + [ Sandro Tosi ] + * debian/control + - switch Uploaders and Maintainer fields (package is team maintained) + - bump Standards-Version to 3.8.3 (no changes needed) + + -- Python Applications Packaging Team <python-apps-team@lists.alioth.debian.org> Thu, 15 Oct 2009 20:56:23 +0200 + +phenny (2~hg16-1) unstable; urgency=low + + * New upstream version, updated translation module. + + -- Noah Slater <nslater@tumbolia.org> Sat, 24 May 2008 18:21:36 +0100 + +phenny (2~hg15-1) unstable; urgency=low + + * New upstream version, updated translation module. + + -- Noah Slater <nslater@tumbolia.org> Tue, 20 May 2008 18:42:25 +0100 + +phenny (2~hg14-1) unstable; urgency=low + + * New upstream version. + * Updated debian/patches/command-option.patch, correct import. Closes: #478033 + * Updated debian/copyright, changed for latest proposed format. + + -- Noah Slater <nslater@tumbolia.org> Mon, 28 Apr 2008 17:49:58 +0100 + +phenny (2~hg11-2) unstable; urgency=medium + + * Added debian/patches/bot-announce.patch, announce functionality. + * Updated debian/rules, general standards improvement. + * Updated debian/control, corrected Depends and Build-Depends-Indep on + versioned python. Closes: #471617 + + -- Noah Slater <nslater@tumbolia.org> Sun, 30 Mar 2008 21:59:02 +0100 + +phenny (2~hg11-1) unstable; urgency=low + + * Initial release. Closes: #458095 + + -- Noah Slater <nslater@tumbolia.org> Sun, 09 Mar 2008 14:42:05 +0100 diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000..7ed6ff8 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +5 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..ca6c3a7 --- /dev/null +++ b/debian/control @@ -0,0 +1,18 @@ +Source: phenny +Section: python +Priority: optional +Maintainer: Python Applications Packaging Team <python-apps-team@lists.alioth.debian.org> +Uploaders: Alexander Sulfrian <alex@spline.inf.fu-berlin.de> +Standards-Version: 3.8.3 +Build-Depends: debhelper (>= 7.2.11), dpatch, git +Build-Depends-Indep: help2man, dh-python, python +Homepage: http://inamidst.com/phenny/ +X-Python-Version: >= 2.5 + +Package: phenny +Architecture: all +Depends: ${python:Depends}, ${misc:Depends} +Description: extensible IRC bot written in Python + Phenny is a lightweight IRC bot with the usual facilities that one expects such + as a Wordnet interface and thesaurus lookups. Modularly extensible with Python + and can reload modules on the fly. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..d9fb99f --- /dev/null +++ b/debian/copyright @@ -0,0 +1,37 @@ +Format-Specification: http://wiki.debian.org/Proposals/CopyrightFormat?action=recall&rev=180 +Upstream-Name: Phenny +Upstream-Maintainer: Sean B. Palmer <http://inamidst.com/sbp/> +Upstream-Source: http://inamidst.com/phenny/ + +Files: * +Copyright: Copyright 2008, Sean B. Palmer <http://inamidst.com/sbp/> +License: EFL-2 + Eiffel Forum License, version 2 + . + 1. Permission is hereby granted to use, copy, modify and/or + distribute this package, provided that: + * copyright notices are retained unchanged, + * any distribution of this package, whether modified or not, + includes this license text. + 2. Permission is hereby also granted to distribute binary programs + which depend on this package. If the binary program depends on a + modified version of this package, you are encouraged to publicly + release the modified version of this package. + . + *********************** + . + THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT WARRANTY. ANY EXPRESS OR + IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED + WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE + DISCLAIMED. IN NO EVENT SHALL THE AUTHORS BE LIABLE TO ANY PARTY FOR ANY + DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + DAMAGES ARISING IN ANY WAY OUT OF THE USE OF THIS PACKAGE. + . + *********************** + +Files: debian/* +Copyright: Copyright 2009, Noah Slater <nslater@tumbolia.org> +License: GAP + Copying and distribution of this package, with or without modification, are + permitted in any medium without royalty provided the copyright notice and this + notice are preserved. diff --git a/debian/dirs b/debian/dirs new file mode 100644 index 0000000..0d5ac3e --- /dev/null +++ b/debian/dirs @@ -0,0 +1 @@ +etc/phenny diff --git a/debian/install b/debian/install new file mode 100644 index 0000000..8e27fc5 --- /dev/null +++ b/debian/install @@ -0,0 +1 @@ +phenny usr/bin diff --git a/debian/manpages b/debian/manpages new file mode 100644 index 0000000..81ca95b --- /dev/null +++ b/debian/manpages @@ -0,0 +1 @@ +debian/phenny.1 diff --git a/debian/phenny.default b/debian/phenny.default new file mode 100644 index 0000000..3270d73 --- /dev/null +++ b/debian/phenny.default @@ -0,0 +1,13 @@ +# The user the phenny bot is executed as (defaults to nobody). +#PHENNY_USER="nobody" + +# The group the phenny bot is executed as. If not specified the default group +# of the PHENNY_USER is used. +#PHENNY_GROUP="" + +# The config file or directory for the phenny bot(s). If it is a directory, for +# each *.py file in it an own bot will start with that file as config. +#PHENNY_CONFIG="/etc/phenny/" + +# Other opts to the phenny daemon. +#PHENNY_OPTS="" diff --git a/debian/phenny.init b/debian/phenny.init new file mode 100755 index 0000000..5dec77e --- /dev/null +++ b/debian/phenny.init @@ -0,0 +1,82 @@ +#! /bin/sh +### BEGIN INIT INFO +# Provides: phenny +# Required-Start: $local_fs $network +# Required-Stop: $local_fs $network +# Should-Start: +# Should-Stop: +# Default-Start: 2 3 4 5 +# Default-Stop: 0 1 6 +# Short-Description: Start/Stop the Phenny Bot +### END INIT INFO + +DAEMON=/usr/bin/phenny +NAME=phenny +DESC="Phenny Bots" +PIDDIR=/var/run/phenny + +PHENNY_USER=nobody +PHENNY_GROUP= +PHENNY_CONFIG=/etc/phenny/ +PHENNY_OPTS= + +if ! [ -x "/lib/lsb/init-functions" ]; then + . /lib/lsb/init-functions +else + echo "E: /lib/lsb/init-functions not found, lsb-base (>= 3.0-6) needed" + exit 1 +fi + +# Include phenny defaults if available +if [ -f "/etc/default/$NAME" ] ; then + . "/etc/default/$NAME" +fi + +if [ -z "$PHENNY_USER" -o "$PHENNY_USER" = "root" ]; then + echo "PHENNY_USER not set or set to root. I will not start." + exit 1 +fi + +if [ -z "$PHENNY_CONFIG" ]; then + echo "PHENNY_CONFIG not set. I will not start." + exit 1 +fi + +#since /var/run can be wiped completly we create our run directory here +mkdir -p "$PIDDIR" +chown "$PHENNY_USER:$PHENNY_GROUP" "$PIDDIR" + +case "$1" in + start) + log_daemon_msg "Starting $DESC" "$NAME" + start-stop-daemon --start \ + --pidfile "$PIDDIR/$NAME.pid" \ + --make-pidfile \ + --chuid "$PHENNY_USER:$PHENNY_GROUP" \ + --background \ + --exec $DAEMON -- --config "$PHENNY_CONFIG" $PHENNY_OPTS + log_end_msg $? + ;; + stop) + log_daemon_msg "Stopping $DESC" "$NAME" + start-stop-daemon --stop --quiet \ + --pidfile "$PIDDIR/$NAME.pid" \ + --user "$PHENNY_USER" \ + --retry 15 + log_end_msg $? + ;; + status) + status_of_proc -p "$PIDDIR/$NAME.pid" "$DAEMON" "$NAME" && exit 0 || exit $? + ;; + restart) + $0 stop + sleep 1 + $0 start + ;; + *) + log_failure_msg "Usage: $0 {start|stop|restart}" + exit 1 + ;; +esac + +exit 0 diff --git a/debian/phenny.pyinstall b/debian/phenny.pyinstall new file mode 100644 index 0000000..6d3d2f1 --- /dev/null +++ b/debian/phenny.pyinstall @@ -0,0 +1,2 @@ +*.py phenny +modules/*.py phenny.modules diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..56c2f7a --- /dev/null +++ b/debian/rules @@ -0,0 +1,9 @@ +#!/usr/bin/make -f + +DEBVERS := $(shell dpkg-parsechangelog | sed -n -e 's/^Version: //p') + +%: + dh --with python2 $@ + +override_dh_auto_build: + help2man -N -n "an extensible IRC bot written in Python" --version-string=$(DEBVERS) ./phenny > debian/phenny.1 diff --git a/debian/source/format b/debian/source/format new file mode 100644 index 0000000..af745b3 --- /dev/null +++ b/debian/source/format @@ -0,0 +1 @@ +3.0 (git) |