summaryrefslogtreecommitdiff
path: root/trunk/debian
diff options
context:
space:
mode:
Diffstat (limited to 'trunk/debian')
-rw-r--r--trunk/debian/README.Debian26
-rw-r--r--trunk/debian/changelog299
-rw-r--r--trunk/debian/control21
-rw-r--r--trunk/debian/copyright24
-rw-r--r--trunk/debian/echolot.default12
-rw-r--r--trunk/debian/echolot.dirs7
-rw-r--r--trunk/debian/echolot.docs3
-rwxr-xr-xtrunk/debian/echolot.init174
-rw-r--r--trunk/debian/echolot.links1
-rw-r--r--trunk/debian/echolot.logrotate11
-rw-r--r--trunk/debian/echolot.manpages2
-rwxr-xr-xtrunk/debian/echolot.postinst41
-rwxr-xr-xtrunk/debian/echolot.postrm28
-rw-r--r--trunk/debian/pingd.conf25
-rwxr-xr-xtrunk/debian/rules77
15 files changed, 751 insertions, 0 deletions
diff --git a/trunk/debian/README.Debian b/trunk/debian/README.Debian
new file mode 100644
index 0000000..eb3218e
--- /dev/null
+++ b/trunk/debian/README.Debian
@@ -0,0 +1,26 @@
+Echolot for Debian
+------------------
+
+Make sure mail to the Echolot pinger reaches /var/mail/echolot (or configure
+echolot to read it from any other location). Please really check that mail to
+the configured domain works. Any bounces will annoy dozends of remailer
+operators.
+
+To send commands to pingd it's best to use the /etc/init.d/echolot script.
+It takes care that pingd is only called as the correct user. See pingd(1) for a
+list of commands and their description.
+
+If you run this pinger please consider publishing the results so that other
+people benefit from it. Announcing the URL to the remailer operators' list
+<remops@freedom.gmsociety.org>, the alt.privacy.anon-server Usenet newsgroup
+and sending a mail to pingers@palfrader.org would be apprechiated.
+
+Since many users installed Echolot without considering its implications the
+default setup is now to no longer start the pingd in the default installation.
+To actually enable it please modify /etc/default/echolot.
+
+If you want to run a pinger, please configure /etc/echolot/pingd.conf and
+/etc/default/echolot. Then start echolot using /etc/init.d/echolot start
+and add some addresses to it: /etc/default/echolot add remailer@example.com.
+
+ -- Peter Palfrader <weasel@debian.org>, Sun, 14 Nov 2004 23:31:24 +0100
diff --git a/trunk/debian/changelog b/trunk/debian/changelog
new file mode 100644
index 0000000..b6fea78
--- /dev/null
+++ b/trunk/debian/changelog
@@ -0,0 +1,299 @@
+echolot (2.1.8-4) unstable; urgency=low
+
+ * Properly quote arguments to su -c, since its behaviour has changed.
+ * Update to debhelper compatibility level 4, no other changes required
+ (we were already build depending on debhelper >= 4.1.16).
+
+ -- Peter Palfrader <weasel@debian.org> Mon, 6 Mar 2006 15:54:57 +0100
+
+echolot (2.1.8-3) unstable; urgency=low
+
+ * Increase Standards-Version to 3.6.2 from 3.6.1.
+ * Add dependency on adduser since we need it in postinst.
+ * Fix format of chown argument from echolot.adm to echolot:adm.
+ * Update FSF address in debian/copyright.
+
+ -- Peter Palfrader <weasel@debian.org> Sun, 9 Oct 2005 23:26:28 +0200
+
+echolot (2.1.8-2) unstable; urgency=low
+
+ * Since we removed all the debconf templates in 2.1.7-1 we don't need
+ to depend on debconf at all. If it is installed however we still
+ purge our debconf database on upgrades (closes: #331811).
+
+ -- Peter Palfrader <weasel@debian.org> Sun, 9 Oct 2005 23:17:48 +0200
+
+echolot (2.1.8-1) unstable; urgency=low
+
+ * New upstream version:
+ - redirect init script output to /dev/null in logrotate.
+
+ -- Peter Palfrader <weasel@debian.org> Mon, 25 Apr 2005 02:13:29 +0200
+
+echolot (2.1.7-1) unstable; urgency=low
+
+ * New upstream version:
+ - remove debconf stuff.
+ - create echolot group in proper gid space.
+ - modify init script to allow 'enable' and 'disable' command.
+
+ -- Peter Palfrader <weasel@debian.org> Sun, 14 Nov 2004 23:33:41 +0100
+
+echolot (2.1.6-2) unstable; urgency=low
+
+ * Add disable and enable to allowed commands in init script.
+
+ -- Peter Palfrader <weasel@debian.org> Sat, 25 Sep 2004 16:49:11 +0200
+
+echolot (2.1.6-1) unstable; urgency=medium
+
+ * New upstream version, catch one use of an undefined variable in
+ logging.
+
+ -- Peter Palfrader <weasel@debian.org> Sat, 7 Aug 2004 16:00:52 +0200
+
+echolot (2.1.5-1) unstable; urgency=low
+
+ * New upstream version.
+
+ -- Peter Palfrader <weasel@debian.org> Tue, 22 Jun 2004 11:40:01 +0200
+
+echolot (2.1.4-1) unstable; urgency=low
+
+ * New upstream version.
+ * Update debian/copyright to include 2004.
+ * Add dutch translation for debconf templates (closes: #249406).
+ * Update Standards-Version to 3.6.1.
+ * debian/rules: there is no lib/ to copy any longer.
+
+ -- Peter Palfrader <weasel@debian.org> Thu, 10 Jun 2004 15:47:52 +0200
+
+echolot (2.1.3-1) unstable; urgency=low
+
+ * New upstream version.
+ closes: #243504 echolot: typo in month abbreviations
+ * Document exim's local_part_suffix in the recipient_delimiter
+ debconf question.
+ closes: #243496 Exim4 mailbox delimiter
+
+ -- Peter Palfrader <weasel@debian.org> Tue, 20 Apr 2004 13:42:32 +0200
+
+echolot (2.1.2-1) unstable; urgency=low
+
+ * New upstream version.
+
+ -- Peter Palfrader <weasel@debian.org> Tue, 4 Nov 2003 05:16:07 +0100
+
+echolot (2.1.1-1) unstable; urgency=low
+
+ * New upstream version.
+
+ -- Peter Palfrader <weasel@debian.org> Sun, 2 Nov 2003 07:03:43 +0100
+
+echolot (2.1-2) unstable; urgency=low
+
+ * debconf internationialization.
+ Thanks to Christian Perrier for providing the patches and information.
+ closes: #212885 [INTL:fr] French translation of gettext debconf templates
+ closes: #211633 [INTL] Please switch to gettext-based debconf templates
+
+ -- Peter Palfrader <weasel@debian.org> Sun, 12 Oct 2003 12:15:38 +0200
+
+echolot (2.1-1) unstable; urgency=low
+
+ * New upstream version.
+
+ -- Peter Palfrader <weasel@debian.org> Mon, 3 Mar 2003 16:42:42 +0100
+
+echolot (2.0.10-1) unstable; urgency=low
+
+ * New upstream version.
+
+ -- Peter Palfrader <weasel@debian.org> Mon, 3 Feb 2003 21:11:42 +0100
+
+echolot (2.0.9-1) unstable; urgency=medium
+
+ * New upstream version.
+ * Remove link from output to /var/log/echolot/echolot.log
+ since pngd now has some sort of saner logging.
+
+ -- Peter Palfrader <weasel@debian.org> Tue, 14 Jan 2003 08:08:41 +0100
+
+echolot (2.0.8-1) unstable; urgency=medium
+
+ * New upstream version.
+ Fixes evil bug where pingd receives SIGPIPE because GnuPG already exited
+ because of unuseable keys.
+
+ -- Peter Palfrader <weasel@debian.org> Mon, 13 Jan 2003 15:25:27 +0100
+
+echolot (2.0.7-1) unstable; urgency=low
+
+ * New upstream version.
+
+ -- Peter Palfrader <weasel@debian.org> Wed, 18 Dec 2002 19:37:08 +0100
+
+echolot (2.0.6-1) unstable; urgency=low
+
+ * New upstream version.
+ * Fixed init.d script: s,devnull,dev/null,
+ * lintian: init-script-suggests-versioned-depends postinst on debconf.
+
+ -- Peter Palfrader <weasel@debian.org> Wed, 18 Dec 2002 18:44:27 +0100
+
+echolot (2.0.5-2) unstable; urgency=low
+
+ * Add sendpings command to init script.
+ * Have Echolot disabled by default in /etc/default/echolot.
+ * Add some more comments to README.Debian.
+ * Also process pending commands upon pingd startup.
+
+ -- Peter Palfrader <weasel@debian.org> Tue, 12 Nov 2002 02:06:17 +0100
+
+echolot (2.0.5-1) unstable; urgency=low
+
+ * New upstream version (supports use without user defined mailboxes).
+ * Make recipient delimiter configured by debconf.
+
+ -- Peter Palfrader <weasel@debian.org> Fri, 25 Oct 2002 12:54:44 +0200
+
+echolot (2.0.4-3) unstable; urgency=low
+
+ * Add a debconf note about user defined mailboxes being required
+ (foo+bar@example.com).
+
+ -- Peter Palfrader <weasel@debian.org> Thu, 24 Oct 2002 20:31:04 +0200
+
+echolot (2.0.4-2) unstable; urgency=low
+
+ * Change Depends from libdigest-MD5-perl to libdigest-md5-perl
+ (capitalization).
+ * Changed Standards-Version to 3.5.7 (no changes).
+
+ -- Peter Palfrader <weasel@debian.org> Thu, 24 Oct 2002 13:40:41 +0200
+
+echolot (2.0.4-1) unstable; urgency=low
+
+ * New upstream version.
+ * Now that mixmaster got added to the main archive, finally upload
+ Echolot to Debian as well (closes: #164459).
+
+ -- Peter Palfrader <weasel@debian.org> Wed, 16 Oct 2002 10:25:41 +0200
+
+echolot (2.0.3-3) unstable; urgency=low
+
+ * Remove Suggests: procmail.
+ * Copy new description from README to control.
+ * Updated remailer list.
+ * Use a more correct directory structure
+ (usr/lib/echolot -> usr/share/perl5/)
+
+ -- Peter Palfrader <weasel@debian.org> Sat, 12 Oct 2002 14:43:28 +0200
+
+echolot (2.0.3-2) unstable; urgency=low
+
+ * Fix config script to not screw up domainname on upgrades.
+
+ -- Peter Palfrader <weasel@debian.org> Sat, 12 Oct 2002 12:05:28 +0200
+
+echolot (2.0.3-1) unstable; urgency=low
+
+ * Changed Section from contrib/mail to (main/)mail as mimxaster is
+ in main now.
+ * New upstream version.
+
+ -- Peter Palfrader <weasel@debian.org> Sat, 12 Oct 2002 01:10:18 +0200
+
+echolot (2.0.2-1) unstable; urgency=low
+
+ * New upstream version.
+
+ -- Peter Palfrader <weasel@debian.org> Sat, 21 Sep 2002 05:11:37 +0200
+
+echolot (2.0.1-1) unstable; urgency=low
+
+ * New upstream version.
+
+ -- Peter Palfrader <weasel@debian.org> Sat, 21 Sep 2002 03:45:14 +0200
+
+echolot (2.0-1) unstable; urgency=low
+
+ * New upstream version:
+ This one's called 2.0.
+
+ -- Peter Palfrader <weasel@debian.org> Tue, 17 Sep 2002 06:17:43 +0200
+
+echolot (000.2.0rc3-1) unstable; urgency=low
+
+ * New upstream version.
+
+ -- Peter Palfrader <weasel@debian.org> Fri, 13 Sep 2002 01:16:21 +0200
+
+echolot (000.2.0rc2-1) unstable; urgency=low
+
+ * New upstream version.
+
+ -- Peter Palfrader <weasel@debian.org> Sun, 8 Sep 2002 20:16:31 +0200
+
+echolot (000.2.0rc1-1) unstable; urgency=low
+
+ * New version number.
+
+ -- Peter Palfrader <weasel@debian.org> Thu, 5 Sep 2002 16:51:42 +0200
+
+echolot (000.2.0beta34-1) unstable; urgency=low
+
+ * New upstream version
+
+ -- Peter Palfrader <weasel@debian.org> Wed, 4 Sep 2002 13:22:13 +0200
+
+echolot (000.2.0beta33-1) unstable; urgency=low
+
+ * New upstream version
+
+ -- Peter Palfrader <weasel@debian.org> Fri, 23 Aug 2002 09:54:10 +0200
+
+echolot (000.2.0beta32-1) unstable; urgency=low
+
+ * New upstream version
+
+ -- Peter Palfrader <weasel@debian.org> Fri, 23 Aug 2002 08:05:26 +0200
+
+echolot (000.2.0beta31-1) unstable; urgency=low
+
+ * New upstream version
+
+ -- Peter Palfrader <weasel@debian.org> Wed, 21 Aug 2002 21:45:37 +0200
+
+echolot (000.2.0beta30-1) unstable; urgency=low
+
+ * New upstream version
+
+ -- Peter Palfrader <weasel@debian.org> Thu, 15 Aug 2002 05:28:11 +0200
+
+echolot (000.2.0beta29-1) unstable; urgency=low
+
+ * New upstream version
+
+ -- Peter Palfrader <weasel@debian.org> Thu, 15 Aug 2002 00:54:31 +0200
+
+echolot (000.2.0beta28-1) unstable; urgency=low
+
+ * New upstream version
+
+ -- Peter Palfrader <weasel@debian.org> Tue, 13 Aug 2002 07:58:31 +0200
+
+echolot (000.2.0beta27-1) unstable; urgency=low
+
+ * New upstream version
+ * Set the mixmaster binary path.
+ * Use --quiet when starting echolot.
+
+ -- Peter Palfrader <weasel@debian.org> Tue, 13 Aug 2002 02:49:45 +0200
+
+echolot (000.2.0beta26-1) unstable; urgency=low
+
+ * Initial Release.
+
+ -- Peter Palfrader <weasel@debian.org> Mon, 12 Aug 2002 05:44:24 +0200
+
diff --git a/trunk/debian/control b/trunk/debian/control
new file mode 100644
index 0000000..2ccd597
--- /dev/null
+++ b/trunk/debian/control
@@ -0,0 +1,21 @@
+Source: echolot
+Section: mail
+Priority: extra
+Maintainer: Peter Palfrader <weasel@debian.org>
+Build-Depends-Indep: debhelper (>= 4.1.16)
+Standards-Version: 3.6.2
+
+Package: echolot
+Architecture: all
+Depends: ${shlibs:Depends}, gnupg (>= 1.0.7), postfix | mail-transport-agent, mixmaster, libdigest-md5-perl, libhtml-template-perl, libgnupg-interface-perl (>= 0.33), adduser
+Description: Pinger for anonymous remailers such as Mixmaster
+ A Pinger in the context of anonymous remailers is a program that
+ regularly sends messages through remailers to determine their status.
+ Based on the responses, the Pinger calculates reliability statistics
+ which may be used by remailer clients to choose a chain of remailers to
+ use.
+ .
+ Furthermore, Echolot collects configuration parameters and keys of
+ remailers and offers the collected information in a format readable by
+ remailer clients. This helps reduce the administration effort required
+ to use or host remailers.
diff --git a/trunk/debian/copyright b/trunk/debian/copyright
new file mode 100644
index 0000000..8aac572
--- /dev/null
+++ b/trunk/debian/copyright
@@ -0,0 +1,24 @@
+This package was debianized by Peter Palfrader <weasel@debian.org> on
+Mon, 22 Jul 2002 10:30:40 +0200.
+
+It was downloaded from http://www.palfrader.org/echolot/
+
+Upstream Authors: Peter Palfrader
+
+Copyright (c) 2002, 2003, 2004 Peter Palfrader <peter@palfrader.org>
+
+Echolot 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 of the License, or (at your option) any later
+version.
+
+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
+St, Fifth Floor, Boston, MA 02110-1301 USA
+
+On Debian systems you can find a copy of the GNU General Public License in
+/usr/share/common-licenses/GPL.
diff --git a/trunk/debian/echolot.default b/trunk/debian/echolot.default
new file mode 100644
index 0000000..c0c1bc4
--- /dev/null
+++ b/trunk/debian/echolot.default
@@ -0,0 +1,12 @@
+# Defaults for echolot initscript
+# sourced by /etc/init.d/echolot
+# installed at /etc/default/echolot
+
+#
+# This is a POSIX shell fragment
+#
+
+VERBOSE=0
+
+# Only enable this after you've read /usr/share/doc/echolot/README.Debian
+RUN_ECHOLOT=0
diff --git a/trunk/debian/echolot.dirs b/trunk/debian/echolot.dirs
new file mode 100644
index 0000000..05c67a0
--- /dev/null
+++ b/trunk/debian/echolot.dirs
@@ -0,0 +1,7 @@
+usr/bin
+usr/share/perl5
+var/lib/echolot
+var/run/echolot
+var/log/echolot
+etc/echolot
+etc/default
diff --git a/trunk/debian/echolot.docs b/trunk/debian/echolot.docs
new file mode 100644
index 0000000..19e2cdd
--- /dev/null
+++ b/trunk/debian/echolot.docs
@@ -0,0 +1,3 @@
+README
+TODO
+UPGRADE
diff --git a/trunk/debian/echolot.init b/trunk/debian/echolot.init
new file mode 100755
index 0000000..9768148
--- /dev/null
+++ b/trunk/debian/echolot.init
@@ -0,0 +1,174 @@
+#!/bin/sh
+#
+# pingcntl: echolot control + wrapper
+# Written by admin@arancio.net, peter@palfrader.org
+
+set -e
+
+VERBOSE=0
+
+# You probably don't want to mess with stuff below this line
+################################################################
+
+PIDFILE=/var/run/echolot/pingd.pid
+CHECKULIMIT=1
+CHECKUID=1
+USER=echolot
+GROUP=echolot
+DAEMON=/usr/bin/pingd
+DESC="Echolot Ping Daemon"
+NAME="pingd"
+test -f $DAEMON || exit 0
+
+PATH=/bin:/usr/bin:/sbin:/usr/sbin
+export PATH
+
+# Reads config file (will override defaults above)
+[ -r /etc/default/echolot ] && . /etc/default/echolot
+
+
+wait_for_deaddaemon () {
+ PID=$1
+ sleep 3
+ if test -n "$PID"
+ then
+ if kill -0 $PID 2>/dev/null
+ then
+ echo -n "Waiting for pid $PID ."
+ cnt=0
+ while kill -0 $PID 2>/dev/null
+ do
+ cnt=`expr $cnt + 1`
+ if [ $cnt -gt 30 ]
+ then
+ echo " Failed.. "
+ exit 1
+ fi
+ sleep 2
+ echo -n "."
+ done
+ rm -f $PIDFILE
+ else
+ rm -f $PIDFILE
+ fi
+ fi
+}
+
+
+# Check for evil ulimits
+if [ "$CHECKULIMIT" -gt "0" ]; then
+ FDs=`ulimit -n`
+ HFDs=`ulimit -H -n`
+ if [ "$FDs" -lt "512" ]; then
+ if [ "$HFDs" -lt "512" ]; then
+ echo "Hardlimit for open File Descriptors is less than 512." >&2
+ echo "Please consider raising it." >&2
+ if [ "$FDs" -lt "$HFDs" ]; then
+ echo "Raising it to $HFDs" >&2
+ ulimit -n $HFDs
+ fi
+ else
+ if [ "$HFDs" -lt "1024" ]; then
+ FDs=$HFDs
+ else
+ FDs=1024
+ fi
+ echo "Softlimit for open File Descriptors is less than 512." >&2
+ echo "Raising it to $FDs" >&2
+ ulimit -n $FDs
+ fi
+ fi
+fi
+
+
+# set VERBOSE
+if [ $VERBOSE -gt 0 ]; then
+ VERBOSE="--verbose"
+else
+ VERBOSE=""
+fi
+
+
+case $1 in
+
+start)
+ if [ -f $PIDFILE ] ; then
+ PID=`cat $PIDFILE 2>/dev/null` || true
+ if kill -0 $PID 2>/dev/null
+ then
+ echo "$DESC already running."
+ exit 0
+ else
+ echo -n "Removing stale pid file: "
+ rm -f $PIDFILE
+ echo "$PIDFILE."
+ fi
+ fi
+ if [ $RUN_ECHOLOT -gt 0 ]; then
+ echo -n "Starting $DESC: "
+ start-stop-daemon \
+ --start \
+ --quiet \
+ --pidfile $PIDFILE \
+ --chuid $USER:$GROUP \
+ --exec $DAEMON -- --detach $VERBOSE --process --quiet start
+ echo "$NAME."
+ else
+ echo "Not starting $DESC: disabled in configuration"
+ fi
+ ;;
+
+stop)
+ echo -n "Stopping $DESC: "
+ PID=`cat $PIDFILE 2>/dev/null` || true
+ start-stop-daemon \
+ --stop \
+ --quiet \
+ --oknodo \
+ --pidfile $PIDFILE \
+ --user $USER
+ wait_for_deaddaemon $PID
+ echo "$NAME."
+ ;;
+
+reload|force-reload|restart)
+ PID=`cat $PIDFILE 2>/dev/null` || true
+ $0 stop
+ wait_for_deaddaemon $PID
+ $0 start
+ ;;
+process|add|delete|set|setremailercaps|deleteremailercaps|getkeyconf|sendpings|sendchainpings|buildstats|buildkeys|buildthesaurus|buildfromlines|dumpconf|summary|enable|disable)
+ # Check for right User
+ if [ "$CHECKUID" -gt "0" ]; then
+ CUID=`id -u`
+ CUIDNAME=`id -nu`
+ if [ "$CUIDNAME" = "$USER" ]; then
+ "$DAEMON" "$@"
+ elif [ "$CUID" = "0" ]; then
+ command="$DAEMON"
+ while [ "$#" -gt 0 ]; do
+ command="$command \"$1\""
+ shift
+ done
+ su "$USER" -c "$command"
+ else
+ echo "You are neither $USER nor root. Aborting." >&2
+ exit 1;
+ fi
+ fi
+
+ echo "Running $DESC: $NAME $1..."
+ echo "done."
+ ;;
+*)
+ echo "Usage: $0 (start|stop|reload|force-reload|restart)" >&2
+ echo " $0 <COMMAND> [parameters]" >&2
+ echo "See the pingd(1) manual page for valid commands" >&2
+ exit 1
+ ;;
+esac
+
+exit 0
+
+# vim:set ts=2:
+# vim:set shiftwidth=2:
diff --git a/trunk/debian/echolot.links b/trunk/debian/echolot.links
new file mode 100644
index 0000000..1a0bac4
--- /dev/null
+++ b/trunk/debian/echolot.links
@@ -0,0 +1 @@
+/etc/echolot/templates /var/lib/echolot/templates
diff --git a/trunk/debian/echolot.logrotate b/trunk/debian/echolot.logrotate
new file mode 100644
index 0000000..dd105d6
--- /dev/null
+++ b/trunk/debian/echolot.logrotate
@@ -0,0 +1,11 @@
+/var/log/echolot/echolot.log {
+ weekly
+ rotate 5
+ compress
+ missingok
+ notifempty
+ postrotate
+ /etc/init.d/echolot process > /dev/null
+ endscript
+ create 640 echolot adm
+}
diff --git a/trunk/debian/echolot.manpages b/trunk/debian/echolot.manpages
new file mode 100644
index 0000000..f1c1209
--- /dev/null
+++ b/trunk/debian/echolot.manpages
@@ -0,0 +1,2 @@
+doc/pingd.1
+doc/pingd.conf.5
diff --git a/trunk/debian/echolot.postinst b/trunk/debian/echolot.postinst
new file mode 100755
index 0000000..4004475
--- /dev/null
+++ b/trunk/debian/echolot.postinst
@@ -0,0 +1,41 @@
+#!/bin/sh -e
+
+# postinst for Echolot
+# remove old debconf stuff
+if [ "$1" = "configure" ] && [ -e /usr/share/debconf/confmodule ]; then
+ if dpkg --compare-versions "$2" lt "2.1.7" ; then
+ . /usr/share/debconf/confmodule
+ db_purge
+ db_stop
+ fi
+fi
+
+# Make sure the echolot user exists
+adduser --quiet \
+ --quiet \
+ --system \
+ --disabled-password \
+ --shell /bin/bash \
+ --home /var/lib/echolot \
+ --no-create-home \
+ --group \
+ --gecos "Echolot Pinger" \
+ echolot
+
+# Give the echolot user write permissions to /var/log/echolot/echolot.log
+touch /var/log/echolot/echolot.log
+chown echolot:adm /var/log/echolot/echolot.log
+chmod 640 /var/log/echolot/echolot.log
+# and /var/lib/echolot
+if ( ! dpkg-statoverride --list /var/lib/echolot > /dev/null ); then
+ dpkg-statoverride --update --add root echolot 02775 /var/lib/echolot
+fi
+# and /var/run/echolot
+if ( ! dpkg-statoverride --list /var/run/echolot > /dev/null ); then
+ dpkg-statoverride --update --add root echolot 02770 /var/run/echolot
+fi
+
+#DEBHELPER#
+
+# vim:set ts=4:
+# vim:set shiftwidth=4:
diff --git a/trunk/debian/echolot.postrm b/trunk/debian/echolot.postrm
new file mode 100755
index 0000000..ea9b021
--- /dev/null
+++ b/trunk/debian/echolot.postrm
@@ -0,0 +1,28 @@
+#!/bin/sh -e
+
+# postrm for Echolot
+
+case "$1" in
+ purge)
+ rm -rf /var/lib/echolot/*
+ rmdir /etc/echolot/templates 2>/dev/null || true
+ rmdir /etc/echolot 2>/dev/null || true
+ dpkg-statoverride --remove /var/run/echolot >/dev/null 2>&1 || true
+ dpkg-statoverride --remove /var/lib/echolot >/dev/null 2>&1 || true
+ ;;
+ remove|upgrade|deconfigure)
+ ;;
+ failed-upgrade)
+ ;;
+ abort-upgrade)
+ ;;
+ *)
+ echo "unknown argument --> $1" >&2
+ exit 0
+ ;;
+esac
+
+#DEBHELPER#
+
+# vim:set ts=2:
+# vim:set shiftwidth=2:
diff --git a/trunk/debian/pingd.conf b/trunk/debian/pingd.conf
new file mode 100644
index 0000000..d1c5b89
--- /dev/null
+++ b/trunk/debian/pingd.conf
@@ -0,0 +1,25 @@
+# vim:set syntax=perl:
+
+# see man pingd.conf(5) for a list of all available configuration options.
+
+$CONFIG = {
+ 'separate_rlists' => 1,
+ 'combined_list' => 1,
+ };
+
+$CONFIG->{'mailin' } = '/var/mail/echolot';
+
+# You probably want to modify these:
+$CONFIG->{'my_localpart' } = 'echolot';
+$CONFIG->{'my_domain' } = 'pinger.example.org';
+$CONFIG->{'operator_address' } = 'abuse@pinger.example.org';
+$CONFIG->{'sitename' } = 'example';
+#$CONFIG->{'recipient_delimiter' } = '+';
+$CONFIG->{'recipient_delimiter' } = '';
+
+
+$CONFIG->{'mixmaster'} = 'mixmaster';
+$CONFIG->{'homedir' } = '/var/lib/echolot';
+$CONFIG->{'pidfile' } = '/var/run/echolot/pingd.pid';
+$CONFIG->{'logfile' } = '/var/log/echolot/echolot.log';
+1;
diff --git a/trunk/debian/rules b/trunk/debian/rules
new file mode 100755
index 0000000..64796b1
--- /dev/null
+++ b/trunk/debian/rules
@@ -0,0 +1,77 @@
+#!/usr/bin/make -f
+# Sample debian/rules that uses debhelper.
+# GNU copyright 1997 to 1999 by Joey Hess.
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+# This is the debhelper compatibility version to use.
+export DH_COMPAT=4
+
+version=`grep 'VERSION =' pingd | sed -e "s/.* '//" -e "s/'.*//"`
+REMAILERS=`tr '\n' ' ' < debian/remailers`
+
+ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
+ CFLAGS += -g
+endif
+ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
+ INSTALL_PROGRAM += -s
+endif
+
+build: build-stamp
+build-stamp:
+ touch build-stamp
+
+clean:
+ dh_testdir
+ dh_testroot
+
+ rm -f build-stamp
+
+ dh_clean
+
+install: build
+ dh_testdir
+ dh_testroot
+ dh_clean -k
+ dh_installdirs
+
+ tar c Echolot | tar xv -C $(CURDIR)/debian/echolot/usr/share/perl5/
+ tar c --exclude LICENSE templates | tar xv -C $(CURDIR)/debian/echolot/etc/echolot
+ install -m 755 pingd $(CURDIR)/debian/echolot/usr/bin/
+ install -m 644 debian/pingd.conf $(CURDIR)/debian/echolot/etc/echolot
+ install -m 644 debian/echolot.default $(CURDIR)/debian/echolot/etc/default/echolot
+
+
+binary-indep: build install
+ dh_testdir
+ dh_testroot
+ dh_installdebconf
+ dh_installdocs
+ dh_installmenu
+ dh_installlogrotate
+ dh_installman
+ dh_installchangelogs NEWS
+ dh_installinit
+ dh_link
+ dh_strip
+ dh_compress
+ dh_fixperms
+ dh_installdeb
+ dh_shlibdeps
+ dh_gencontrol
+ dh_md5sums
+ dh_builddeb
+
+binary-arch:
+# We have nothing to do by default.
+
+binary: binary-indep binary-arch
+
+update-remailers:
+ dh_testdir
+ wget -O - http://stats.melontraffickers.com/mlist2.txt | grep '@' | sed -e 's/.*<//' -e 's/>.*//' > debian/remailers
+
+debian/remailers: update-remailers
+
+.PHONY: build clean binary-indep binary-arch binary install configure remailers