diff options
author | Alexander Sulfrian <alexander@sulfrian.net> | 2013-07-25 19:48:35 +0200 |
---|---|---|
committer | Alexander Sulfrian <alexander@sulfrian.net> | 2013-07-25 23:18:11 +0200 |
commit | cd41265f017dc9a6c8332c7c1108aef6bfaccb6d (patch) | |
tree | 359d5025bba3505f4f860793001037eb815fea60 | |
parent | 1ac7f2d59264c84e1d9b48dedc850ba65c894bd0 (diff) | |
download | bot-cd41265f017dc9a6c8332c7c1108aef6bfaccb6d.tar.gz bot-cd41265f017dc9a6c8332c7c1108aef6bfaccb6d.tar.bz2 bot-cd41265f017dc9a6c8332c7c1108aef6bfaccb6d.zip |
debianizationdebian/1_2_git91-1
-rw-r--r-- | debian/changelog | 86 | ||||
-rw-r--r-- | debian/compat | 1 | ||||
-rw-r--r-- | debian/control | 18 | ||||
-rw-r--r-- | debian/copyright | 37 | ||||
-rw-r--r-- | debian/dirs | 2 | ||||
-rw-r--r-- | debian/manpages | 1 | ||||
-rw-r--r-- | debian/phenny.default | 13 | ||||
-rwxr-xr-x | debian/phenny.init | 82 | ||||
-rw-r--r-- | debian/pycompat | 1 | ||||
-rw-r--r-- | debian/pyversions | 1 | ||||
-rwxr-xr-x | debian/rules | 16 |
11 files changed, 258 insertions, 0 deletions
diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..20a7d14 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,86 @@ +phenny (1:2~git91-1) unstable; urgency=low + + * fix module home directory + + -- Alexander Sulfrian <alex@spline.inf.fu-berlin.de> Thu, 25 Jul 2013 22:40:51 +0200 + +phenny (1:2~git90-2) unstable; urgency=low + + * add init script and defaults file + + -- Alexander Sulfrian <alex@spline.inf.fu-berlin.de> Thu Jul 25 22:14:30 2013 +0200 + +phenny (1:2~git90-1) unstable; urgency=low + + * fix indentation and trailing whitespaces + * add ssl support + * add pid setting for config to specify a pid path + * Make phenny kill its child threads then exit when it receives a SIGTERM signal. + + -- Alexander Sulfrian <alex@spline.inf.fu-berlin.de> Thu Jul 25 19:28:19 2013 +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..d84d731 --- /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 +Build-Depends-Indep: help2man, python-support (>= 0.6.4), python +Homepage: http://inamidst.com/phenny/ +XS-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..3f3e097 --- /dev/null +++ b/debian/dirs @@ -0,0 +1,2 @@ +usr/bin +usr/share/python-support/phenny/phenny/modules 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..b564733 --- /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" "$DESC" "$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/pycompat b/debian/pycompat new file mode 100644 index 0000000..0cfbf08 --- /dev/null +++ b/debian/pycompat @@ -0,0 +1 @@ +2 diff --git a/debian/pyversions b/debian/pyversions new file mode 100644 index 0000000..b3dc41e --- /dev/null +++ b/debian/pyversions @@ -0,0 +1 @@ +2.5- diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..53a1a37 --- /dev/null +++ b/debian/rules @@ -0,0 +1,16 @@ +#!/usr/bin/make -f + +DEBVERS := $(shell dpkg-parsechangelog | sed -n -e 's/^Version: //p') + +%: + dh $@ + +override_dh_auto_build: + +override_dh_install: + cp *.py debian/phenny/usr/share/python-support/phenny/phenny + cp modules/*.py debian/phenny/usr/share/python-support/phenny/phenny/modules + chmod -R 644 debian/phenny/usr/share/python-support/phenny/phenny/*.py + chmod -R 644 debian/phenny/usr/share/python-support/phenny/phenny/modules/*.py + cp phenny debian/phenny/usr/bin + help2man -N -n "an extensible IRC bot written in Python" --version-string=$(DEBVERS) ./phenny > debian/phenny.1 |