[Python-apps-commits] r6877 - in packages/pymilter-milters/tags (9 files)
kitterman at users.alioth.debian.org
kitterman at users.alioth.debian.org
Sat Apr 2 03:33:22 UTC 2011
Date: Saturday, April 2, 2011 @ 03:33:00
Author: kitterman
Revision: 6877
[svn-buildpackage] Tagging pymilter-milters 0.8.13-6
Added:
packages/pymilter-milters/tags/0.8.13-6/
packages/pymilter-milters/tags/0.8.13-6/debian/changelog
(from rev 6876, packages/pymilter-milters/trunk/debian/changelog)
packages/pymilter-milters/tags/0.8.13-6/debian/control
(from rev 6876, packages/pymilter-milters/trunk/debian/control)
packages/pymilter-milters/tags/0.8.13-6/debian/spf-milter-python.init
(from rev 6876, packages/pymilter-milters/trunk/debian/spf-milter-python.init)
Deleted:
packages/pymilter-milters/tags/0.8.13-6/debian/changelog
packages/pymilter-milters/tags/0.8.13-6/debian/control
packages/pymilter-milters/tags/0.8.13-6/debian/python-milter-docs.docs
packages/pymilter-milters/tags/0.8.13-6/debian/python-milter-docs.examples
packages/pymilter-milters/tags/0.8.13-6/debian/spf-milter-python.init
Deleted: packages/pymilter-milters/tags/0.8.13-6/debian/changelog
===================================================================
--- packages/pymilter-milters/trunk/debian/changelog 2011-03-31 05:51:32 UTC (rev 6875)
+++ packages/pymilter-milters/tags/0.8.13-6/debian/changelog 2011-04-02 03:33:00 UTC (rev 6877)
@@ -1,150 +0,0 @@
-pymilter-milters (0.8.13-5) unstable; urgency=low
-
- * Convert from CDBS to Debhelper 7
- - Port debian/rules to DH 7 --with quilt plus overrides
- - Override dh_auto_build to rm -rf the irrelevant upstream makefile so it
- doesn't get used in the build
- - Drop cdbs from build-depends
- - Add quilt to build-depends
- - Update debian/README.source
- - Bump debhelper version requirement
- - Change compat to 7
- - Remove cdbs generated pycompat
- * Drop python-central since the package doesn't ship any Python modules
- - Add debian/spf-milter-python.install to install files in place of
- debian/patches/add-setup.py.patch
- - Simplify debian/rules
- - Drop build-depends on python-central and python
- - Replace ${python:Depends} with python in spf-milter-python depends
- - Remove XS/XB-Python-Version
- * Change priority from extral to optional
- * Improve short description
- * Remove unneeded /etc/spf-milter-python from debian/spf-milter-python.dirs
-
- -- Scott Kitterman <scott at kitterman.com> Fri, 25 Jun 2010 09:33:53 -0400
-
-pymilter-milters (0.8.13-4) unstable; urgency=low
-
- * Move debian/python-milter-docs.doc to debian/python-milter-docs.docs so
- the documentation actually gets installed
- * Fix debian/spf-milter-python.links so that only the needed symlink is
- created
- * Correct debian/spf-milter-python.init to use remote_fs instead of
- local_fs for Required-Start/Stop
- * Fix typo in package description (Closes: #557838)
- * Update XS/XB-Python-Version to >= 2.4 instead of the deprecated keyword
- current
- * Build-dep on python instead of python-dev
- * Bump standards version to 3.8.4 without further change
- * Remove DM-Upload-Allowed
-
- -- Scott Kitterman <scott at kitterman.com> Thu, 10 Jun 2010 00:40:54 -0400
-
-pymilter-milters (0.8.13-3) unstable; urgency=low
-
- * Don't delete user/group for spf-milter-python on purge
- - Fixes puiparts uninstallation error
-
- -- Scott Kitterman <scott at kitterman.com> Tue, 15 Sep 2009 09:49:18 -0400
-
-pymilter-milters (0.8.13-2) unstable; urgency=low
-
- * Add versioned depends on python-milter (>= 0.9.3) to
- spf-milter-python since it uses new functions from 0.9.3
- * Fix watch file (package no longer +dfsg)
-
- -- Scott Kitterman <scott at kitterman.com> Fri, 04 Sep 2009 00:53:48 -0400
-
-pymilter-milters (0.8.13-1) unstable; urgency=low
-
- * New upstream release
- - Updated examples
- - Non-free file corrected
- * Install using --install-layout=deb for Python 2.6
- - Bump minimum required python version to 2.5.4-1~
- * Update standards version to 3.8.3 without further change
- * Minor debian/copyright improvements
-
- -- Scott Kitterman <scott at kitterman.com> Sat, 29 Aug 2009 18:09:19 -0400
-
-pymilter-milters (0.8.12+dfsg-1) unstable; urgency=low
-
- * New upstream release
- - Follow upstream split and move provided milters (now in a separate
- milter tarball in the pymilter project) into a new source package
- - Rename milter to pymilter-milters
- - Update packaging for new source package name and drop pymilter bindings
- - Add new python-milter-docs package for docs and sample milter
- - Change VCS information to Python Applications Packaging Team from Debian
- Python Modules Team
- - Add new file ban2zone.py to the examples
- - Drop removed files from examples (sample.py, testmime.py, testsample.py,
- and testutils.py)
- * Remove undistributable test/amazon file and repack tarball as
- 0.8.12~dfsg
- * Add ${misc:Depends} for spf-milter-python and python-milter-docs
- * Fix debian/spf-setup.py to install the config file in /etc and drop
- the bits in debian/rules that move it there
- * Move contents of debian/spf-setup.py to a patch of the upstream dir
- (debian/patches/add-setup.py.patch) and simplify debian/rules
- - Fix shebang
- - Fix to install the config file in /etc
- * Add symlink from spfmilter.1 to spfmilter.py.1 so each file in
- /usr/bin has a man page
- * Add debian/spf-milter-python.lintian-overrides and adjust
- debian/rules to install it
-
- -- Scott Kitterman <scott at kitterman.com> Thu, 26 Feb 2009 14:41:18 -0500
-
-pymilter (0.8.10-1) unstable; urgency=low
-
- * New upstream release
- - Add new file temperror.txt to python-milter.examples
-
- -- Scott Kitterman <scott at kitterman.com> Fri, 07 Nov 2008 23:38:35 -0500
-
-pymilter (0.8.9-3) unstable; urgency=low
-
- * Bump standards version to 3.8.0.1
- - Add README.source
- * Swtich to python-central
- - Drop debian/pyversions and add XS/XB-Python-Version in debian/
- control
- - Update debian/rules and build-dep in debian/control
- * Move postfix/sendmail to suggests for python-milter and spf-milter-python
- - MTA need not run on the same system as the milter
- * Change priority to extra due to dependencies
- * Simplify init process to make it more robust
-
- -- Scott Kitterman <scott at kitterman.com> Wed, 23 Jul 2008 16:28:21 -0400
-
-pymilter (0.8.9-2) unstable; urgency=low
-
- [ Piotr Ożarowski ]
- * Rename XS-Vcs-* fields to Vcs-* (dpkg supports them now)
- * Added "XS-DM-Upload-Allowed: yes"
-
- [ Sandro Tosi ]
- * debian/control
- - uniforming Vcs-Browser field
-
- [ Scott Kitterman ]
- * Add binary package for the included spf-milter-python milter
- - Add debian/spf-milter-python* files
- - Add spf-milter-python binary to debian/control
- - Add debian/spfsetup.py to set up spf-milter-python
- - Adjust debian rules to build multiple binaries
- - Add debian/patches/spfmilter-debian-config so spf-milter-python
- works with package init script and has shebang
- - Add spfmilter.1 and debian/spf-milter-python.manpages
- * Bump standards version to 3.7.3 without further change
- * Remove unneeded debian/docs file
- * Change section of python-milter to python
-
- -- Scott Kitterman <scott at kitterman.com> Thu, 01 May 2008 23:31:12 -0400
-
-pymilter (0.8.9-1) unstable; urgency=low
-
- * Initial Debian package
-
- -- Scott Kitterman <scott at kitterman.com> Tue, 25 Sep 2007 13:29:34 -0400
Copied: packages/pymilter-milters/tags/0.8.13-6/debian/changelog (from rev 6876, packages/pymilter-milters/trunk/debian/changelog)
===================================================================
--- packages/pymilter-milters/tags/0.8.13-6/debian/changelog (rev 0)
+++ packages/pymilter-milters/tags/0.8.13-6/debian/changelog 2011-04-02 03:33:00 UTC (rev 6877)
@@ -0,0 +1,160 @@
+pymilter-milters (0.8.13-6) unstable; urgency=low
+
+ * start-stop-daemon --start --chuid $USER instead of root (Closes: #617642)
+ * Drop the python-milter-docs binary now provided from pymilter
+ - Remove python-milter-docs from debian/control
+ - Remove debian/python-milter-docs.docs and examples
+ * Bump standards version to 3.9.1 without further change
+
+ -- Scott Kitterman <scott at kitterman.com> Fri, 01 Apr 2011 23:12:00 -0400
+
+pymilter-milters (0.8.13-5) unstable; urgency=low
+
+ * Convert from CDBS to Debhelper 7
+ - Port debian/rules to DH 7 --with quilt plus overrides
+ - Override dh_auto_build to rm -rf the irrelevant upstream makefile so it
+ doesn't get used in the build
+ - Drop cdbs from build-depends
+ - Add quilt to build-depends
+ - Update debian/README.source
+ - Bump debhelper version requirement
+ - Change compat to 7
+ - Remove cdbs generated pycompat
+ * Drop python-central since the package doesn't ship any Python modules
+ - Add debian/spf-milter-python.install to install files in place of
+ debian/patches/add-setup.py.patch
+ - Simplify debian/rules
+ - Drop build-depends on python-central and python
+ - Replace ${python:Depends} with python in spf-milter-python depends
+ - Remove XS/XB-Python-Version
+ * Change priority from extral to optional
+ * Improve short description
+ * Remove unneeded /etc/spf-milter-python from debian/spf-milter-python.dirs
+
+ -- Scott Kitterman <scott at kitterman.com> Fri, 25 Jun 2010 09:33:53 -0400
+
+pymilter-milters (0.8.13-4) unstable; urgency=low
+
+ * Move debian/python-milter-docs.doc to debian/python-milter-docs.docs so
+ the documentation actually gets installed
+ * Fix debian/spf-milter-python.links so that only the needed symlink is
+ created
+ * Correct debian/spf-milter-python.init to use remote_fs instead of
+ local_fs for Required-Start/Stop
+ * Fix typo in package description (Closes: #557838)
+ * Update XS/XB-Python-Version to >= 2.4 instead of the deprecated keyword
+ current
+ * Build-dep on python instead of python-dev
+ * Bump standards version to 3.8.4 without further change
+ * Remove DM-Upload-Allowed
+
+ -- Scott Kitterman <scott at kitterman.com> Thu, 10 Jun 2010 00:40:54 -0400
+
+pymilter-milters (0.8.13-3) unstable; urgency=low
+
+ * Don't delete user/group for spf-milter-python on purge
+ - Fixes puiparts uninstallation error
+
+ -- Scott Kitterman <scott at kitterman.com> Tue, 15 Sep 2009 09:49:18 -0400
+
+pymilter-milters (0.8.13-2) unstable; urgency=low
+
+ * Add versioned depends on python-milter (>= 0.9.3) to
+ spf-milter-python since it uses new functions from 0.9.3
+ * Fix watch file (package no longer +dfsg)
+
+ -- Scott Kitterman <scott at kitterman.com> Fri, 04 Sep 2009 00:53:48 -0400
+
+pymilter-milters (0.8.13-1) unstable; urgency=low
+
+ * New upstream release
+ - Updated examples
+ - Non-free file corrected
+ * Install using --install-layout=deb for Python 2.6
+ - Bump minimum required python version to 2.5.4-1~
+ * Update standards version to 3.8.3 without further change
+ * Minor debian/copyright improvements
+
+ -- Scott Kitterman <scott at kitterman.com> Sat, 29 Aug 2009 18:09:19 -0400
+
+pymilter-milters (0.8.12+dfsg-1) unstable; urgency=low
+
+ * New upstream release
+ - Follow upstream split and move provided milters (now in a separate
+ milter tarball in the pymilter project) into a new source package
+ - Rename milter to pymilter-milters
+ - Update packaging for new source package name and drop pymilter bindings
+ - Add new python-milter-docs package for docs and sample milter
+ - Change VCS information to Python Applications Packaging Team from Debian
+ Python Modules Team
+ - Add new file ban2zone.py to the examples
+ - Drop removed files from examples (sample.py, testmime.py, testsample.py,
+ and testutils.py)
+ * Remove undistributable test/amazon file and repack tarball as
+ 0.8.12~dfsg
+ * Add ${misc:Depends} for spf-milter-python and python-milter-docs
+ * Fix debian/spf-setup.py to install the config file in /etc and drop
+ the bits in debian/rules that move it there
+ * Move contents of debian/spf-setup.py to a patch of the upstream dir
+ (debian/patches/add-setup.py.patch) and simplify debian/rules
+ - Fix shebang
+ - Fix to install the config file in /etc
+ * Add symlink from spfmilter.1 to spfmilter.py.1 so each file in
+ /usr/bin has a man page
+ * Add debian/spf-milter-python.lintian-overrides and adjust
+ debian/rules to install it
+
+ -- Scott Kitterman <scott at kitterman.com> Thu, 26 Feb 2009 14:41:18 -0500
+
+pymilter (0.8.10-1) unstable; urgency=low
+
+ * New upstream release
+ - Add new file temperror.txt to python-milter.examples
+
+ -- Scott Kitterman <scott at kitterman.com> Fri, 07 Nov 2008 23:38:35 -0500
+
+pymilter (0.8.9-3) unstable; urgency=low
+
+ * Bump standards version to 3.8.0.1
+ - Add README.source
+ * Swtich to python-central
+ - Drop debian/pyversions and add XS/XB-Python-Version in debian/
+ control
+ - Update debian/rules and build-dep in debian/control
+ * Move postfix/sendmail to suggests for python-milter and spf-milter-python
+ - MTA need not run on the same system as the milter
+ * Change priority to extra due to dependencies
+ * Simplify init process to make it more robust
+
+ -- Scott Kitterman <scott at kitterman.com> Wed, 23 Jul 2008 16:28:21 -0400
+
+pymilter (0.8.9-2) unstable; urgency=low
+
+ [ Piotr Ożarowski ]
+ * Rename XS-Vcs-* fields to Vcs-* (dpkg supports them now)
+ * Added "XS-DM-Upload-Allowed: yes"
+
+ [ Sandro Tosi ]
+ * debian/control
+ - uniforming Vcs-Browser field
+
+ [ Scott Kitterman ]
+ * Add binary package for the included spf-milter-python milter
+ - Add debian/spf-milter-python* files
+ - Add spf-milter-python binary to debian/control
+ - Add debian/spfsetup.py to set up spf-milter-python
+ - Adjust debian rules to build multiple binaries
+ - Add debian/patches/spfmilter-debian-config so spf-milter-python
+ works with package init script and has shebang
+ - Add spfmilter.1 and debian/spf-milter-python.manpages
+ * Bump standards version to 3.7.3 without further change
+ * Remove unneeded debian/docs file
+ * Change section of python-milter to python
+
+ -- Scott Kitterman <scott at kitterman.com> Thu, 01 May 2008 23:31:12 -0400
+
+pymilter (0.8.9-1) unstable; urgency=low
+
+ * Initial Debian package
+
+ -- Scott Kitterman <scott at kitterman.com> Tue, 25 Sep 2007 13:29:34 -0400
Deleted: packages/pymilter-milters/tags/0.8.13-6/debian/control
===================================================================
--- packages/pymilter-milters/trunk/debian/control 2011-03-31 05:51:32 UTC (rev 6875)
+++ packages/pymilter-milters/tags/0.8.13-6/debian/control 2011-04-02 03:33:00 UTC (rev 6877)
@@ -1,33 +0,0 @@
-Source: pymilter-milters
-Section: mail
-Priority: optional
-Maintainer: Scott Kitterman <scott at kitterman.com>
-Uploaders: Python Applications Packaging Team <python-apps-team at lists.alioth.debian.org>
-Build-Depends: debhelper (>= 7.3.16), quilt (>= 0.46-7)
-Standards-Version: 3.8.4
-Homepage: http://sourceforge.net/projects/pymilter/
-Vcs-Svn: svn://svn.debian.org/python-apps/packages/pymilter-milters/trunk/
-Vcs-Browser: http://svn.debian.org/viewsvn/python-apps/packages/pymilter-milters/
-
-Package: python-milter-docs
-Architecture: all
-Section: doc
-Depends: ${misc:Depends}
-Suggests: www-browser
-Description: Documentation and examples for Python Milter extensions
- Python milter provides Python extensions for the Milter protocol
- traditionally used by Sendmail and now also used by Postfix.
- .
- This package provides documentation and a sample implementation of a complex
- milter that includes multiple types of checks to catch spam. This an example,
- not a packaged milter.
-
-Package: spf-milter-python
-Architecture: all
-Depends: python, ${misc:Depends}, python-milter (>= 0.9.3), python-spf (>= 2.0), lsb-base, adduser
-Suggests: postfix (>= 2.3) | sendmail (>= 8.13)
-Description: RFC 4408 compliant SPF Milter for Sendmail and Postfix
- A Python mail filter to add Received-SPF headers and reject forged mail.
- Rejection policy is configured via sendmail access file. Updated for RFC 4408
- compliance.
-
Copied: packages/pymilter-milters/tags/0.8.13-6/debian/control (from rev 6876, packages/pymilter-milters/trunk/debian/control)
===================================================================
--- packages/pymilter-milters/tags/0.8.13-6/debian/control (rev 0)
+++ packages/pymilter-milters/tags/0.8.13-6/debian/control 2011-04-02 03:33:00 UTC (rev 6877)
@@ -0,0 +1,20 @@
+Source: pymilter-milters
+Section: mail
+Priority: optional
+Maintainer: Scott Kitterman <scott at kitterman.com>
+Uploaders: Python Applications Packaging Team <python-apps-team at lists.alioth.debian.org>
+Build-Depends: debhelper (>= 7.3.16), quilt (>= 0.46-7)
+Standards-Version: 3.9.1
+Homepage: http://sourceforge.net/projects/pymilter/
+Vcs-Svn: svn://svn.debian.org/python-apps/packages/pymilter-milters/trunk/
+Vcs-Browser: http://svn.debian.org/viewsvn/python-apps/packages/pymilter-milters/
+
+Package: spf-milter-python
+Architecture: all
+Depends: python, ${misc:Depends}, python-milter (>= 0.9.3), python-spf (>= 2.0), lsb-base, adduser
+Suggests: postfix (>= 2.3) | sendmail (>= 8.13)
+Description: RFC 4408 compliant SPF Milter for Sendmail and Postfix
+ A Python mail filter to add Received-SPF headers and reject forged mail.
+ Rejection policy is configured via sendmail access file. Updated for RFC 4408
+ compliance.
+
Deleted: packages/pymilter-milters/tags/0.8.13-6/debian/python-milter-docs.docs
===================================================================
--- packages/pymilter-milters/trunk/debian/python-milter-docs.docs 2011-03-31 05:51:32 UTC (rev 6875)
+++ packages/pymilter-milters/tags/0.8.13-6/debian/python-milter-docs.docs 2011-04-02 03:33:00 UTC (rev 6877)
@@ -1,2 +0,0 @@
-HOWTO
-doc/*
Deleted: packages/pymilter-milters/tags/0.8.13-6/debian/python-milter-docs.examples
===================================================================
--- packages/pymilter-milters/trunk/debian/python-milter-docs.examples 2011-03-31 05:51:32 UTC (rev 6875)
+++ packages/pymilter-milters/tags/0.8.13-6/debian/python-milter-docs.examples 2011-04-02 03:33:00 UTC (rev 6877)
@@ -1,18 +0,0 @@
-ban2zone.py
-bms.py
-fail.txt
-milter.cfg
-milter.rc
-milter.rc7
-neutral.txt
-permerror.txt
-quarantine.txt
-rejects.py
-report.py
-rhsbl.m4
-softfail.txt
-strike3.txt
-temperror.txt
-testbms.py
-test.py
-test/*
Deleted: packages/pymilter-milters/tags/0.8.13-6/debian/spf-milter-python.init
===================================================================
--- packages/pymilter-milters/trunk/debian/spf-milter-python.init 2011-03-31 05:51:32 UTC (rev 6875)
+++ packages/pymilter-milters/tags/0.8.13-6/debian/spf-milter-python.init 2011-04-02 03:33:00 UTC (rev 6877)
@@ -1,128 +0,0 @@
-#! /bin/sh
-#
-# skeleton example file to build /etc/init.d/ scripts.
-# This file should be used to construct scripts for /etc/init.d.
-#
-# Written by Miquel van Smoorenburg <miquels at cistron.nl>.
-# Modified for Debian
-# by Ian Murdock <imurdock at gnu.ai.mit.edu>.
-#
-# Version: @(#)skeleton 1.9 26-Feb-2001 miquels at cistron.nl
-#
-### BEGIN INIT INFO
-# Provides: spf-milter spf-milter-python
-# Required-Start: $remote_fs $syslog $network $time
-# Required-Stop: $remote_fs $syslog $network
-# Should-Start:
-# Should-Stop:
-# Default-Start: 2 3 4 5
-# Default-Stop: 0 1 6
-# Short-Description: spf-milter-python
-# Description: Python SPF Milter for Sendmail and Postfix
-### END INIT INFO
-prefix="/usr"
-exec_prefix=${prefix}
-sysconfdir="/etc/spf-milter-python"
-bindir="${exec_prefix}/bin/"
-RUNDIR="/var/run/spf-milter-python"
-DAEMON=${bindir}/spfmilter
-PATH=/sbin:/bin:/usr/sbin:/usr/bin:
-NAME=spfmilter
-DESC="Python SPF Milter"
-USER=spf-milter-python
-GROUP=spf-milter-python
-SOCKET=$RUNDIR/spfmiltersock
-
-test -x $DAEMON || exit 0
-
-# Include spf-python-milter defaults if available
-if [ -f /etc/default/spf-milter-python ] ; then
- . /etc/default/spf-milter-python
-fi
-
-set -e
-
-. /lib/lsb/init-functions
-
-case "$1" in
- start)
- echo -n "Starting $DESC: "
- # Create the run directory if it doesn't exist
- if [ ! -d $RUNDIR ]; then
- install -o $USER -g $GROUP -m 755 -d $RUNDIR || return 2
- fi
-
- # Clean up stale sockets
- if [ -f $RUNDIR/$NAME.pid ]; then
- pid=`cat $RUNDIR/$NAME.pid`
- if ! ps -C $DAEMON -s $pid >/dev/null; then
- rm $RUNDIR/$NAME.pid
- # UNIX sockets may be specified with or without the
- # local: prefix; handle both
- t=`echo $SOCKET | cut -d: -f1`
- s=`echo $SOCKET | cut -d: -f2`
- if [ -e $s -a -S $s ]; then
- if [ "$t" = "$s" -o "$t" = "local" ]; then
- rm $s
- fi
- fi
- fi
- fi
-
- start-stop-daemon --start --background --quiet --pidfile \
- $RUNDIR/$NAME.pid --exec $DAEMON
- echo "$NAME."
- ;;
- stop)
- echo -n "Stopping $DESC: "
- if [ -f $RUNDIR/$NAME.pid ]; then
- start-stop-daemon --stop --pidfile $RUNDIR/$NAME.pid
- rm $RUNDIR/$NAME.pid
- #echo $SOCKET
- if [ -e $SOCKET ]; then
- rm $SOCKET
- fi
- fi
- echo "$NAME."
- ;;
- force-reload)
- echo -n "Force reloading $DESC: "
- if [ -f $RUNDIR/$NAME.pid ]; then
- start-stop-daemon --stop --pidfile $RUNDIR/$NAME.pid
- rm $RUNDIR/$NAME.pid
- #echo $SOCKET
- if [ -e $SOCKET ]; then
- rm $SOCKET
- fi
- fi
- sleep 1
- start-stop-daemon --start --background --quiet --pidfile \
- $RUNDIR/$NAME.pid --exec $DAEMON
- echo "$NAME."
- ;;
- restart)
- echo "Restarting $DESC: "
- echo -n "Stopping $DESC: "
- if [ -f $RUNDIR/$NAME.pid ]; then
- start-stop-daemon --stop --pidfile $RUNDIR/$NAME.pid
- rm $RUNDIR/$NAME.pid
- #echo $SOCKET
- if [ -e $SOCKET ]; then
- rm $SOCKET
- fi
- fi
- echo "$NAME."
- sleep 1
- echo -n "Starting $DESC: "
- start-stop-daemon --start --background --quiet --pidfile \
- $RUNDIR/$NAME.pid --exec $DAEMON
- echo "$NAME."
- ;;
- *)
- N=/etc/init.d/$NAME
- echo "Usage: $N {start|stop|force-reload|restart|}" >&2
- exit 1
- ;;
-esac
-
-exit 0
Copied: packages/pymilter-milters/tags/0.8.13-6/debian/spf-milter-python.init (from rev 6876, packages/pymilter-milters/trunk/debian/spf-milter-python.init)
===================================================================
--- packages/pymilter-milters/tags/0.8.13-6/debian/spf-milter-python.init (rev 0)
+++ packages/pymilter-milters/tags/0.8.13-6/debian/spf-milter-python.init 2011-04-02 03:33:00 UTC (rev 6877)
@@ -0,0 +1,128 @@
+#! /bin/sh
+#
+# skeleton example file to build /etc/init.d/ scripts.
+# This file should be used to construct scripts for /etc/init.d.
+#
+# Written by Miquel van Smoorenburg <miquels at cistron.nl>.
+# Modified for Debian
+# by Ian Murdock <imurdock at gnu.ai.mit.edu>.
+#
+# Version: @(#)skeleton 1.9 26-Feb-2001 miquels at cistron.nl
+#
+### BEGIN INIT INFO
+# Provides: spf-milter spf-milter-python
+# Required-Start: $remote_fs $syslog $network $time
+# Required-Stop: $remote_fs $syslog $network
+# Should-Start:
+# Should-Stop:
+# Default-Start: 2 3 4 5
+# Default-Stop: 0 1 6
+# Short-Description: spf-milter-python
+# Description: Python SPF Milter for Sendmail and Postfix
+### END INIT INFO
+prefix="/usr"
+exec_prefix=${prefix}
+sysconfdir="/etc/spf-milter-python"
+bindir="${exec_prefix}/bin/"
+RUNDIR="/var/run/spf-milter-python"
+DAEMON=${bindir}/spfmilter
+PATH=/sbin:/bin:/usr/sbin:/usr/bin:
+NAME=spfmilter
+DESC="Python SPF Milter"
+USER=spf-milter-python
+GROUP=spf-milter-python
+SOCKET=$RUNDIR/spfmiltersock
+
+test -x $DAEMON || exit 0
+
+# Include spf-python-milter defaults if available
+if [ -f /etc/default/spf-milter-python ] ; then
+ . /etc/default/spf-milter-python
+fi
+
+set -e
+
+. /lib/lsb/init-functions
+
+case "$1" in
+ start)
+ echo -n "Starting $DESC: "
+ # Create the run directory if it doesn't exist
+ if [ ! -d $RUNDIR ]; then
+ install -o $USER -g $GROUP -m 755 -d $RUNDIR || return 2
+ fi
+
+ # Clean up stale sockets
+ if [ -f $RUNDIR/$NAME.pid ]; then
+ pid=`cat $RUNDIR/$NAME.pid`
+ if ! ps -C $DAEMON -s $pid >/dev/null; then
+ rm $RUNDIR/$NAME.pid
+ # UNIX sockets may be specified with or without the
+ # local: prefix; handle both
+ t=`echo $SOCKET | cut -d: -f1`
+ s=`echo $SOCKET | cut -d: -f2`
+ if [ -e $s -a -S $s ]; then
+ if [ "$t" = "$s" -o "$t" = "local" ]; then
+ rm $s
+ fi
+ fi
+ fi
+ fi
+
+ start-stop-daemon --start --chuid $USER --background --quiet --pidfile \
+ $RUNDIR/$NAME.pid --exec $DAEMON
+ echo "$NAME."
+ ;;
+ stop)
+ echo -n "Stopping $DESC: "
+ if [ -f $RUNDIR/$NAME.pid ]; then
+ start-stop-daemon --stop --pidfile $RUNDIR/$NAME.pid
+ rm $RUNDIR/$NAME.pid
+ #echo $SOCKET
+ if [ -e $SOCKET ]; then
+ rm $SOCKET
+ fi
+ fi
+ echo "$NAME."
+ ;;
+ force-reload)
+ echo -n "Force reloading $DESC: "
+ if [ -f $RUNDIR/$NAME.pid ]; then
+ start-stop-daemon --stop --pidfile $RUNDIR/$NAME.pid
+ rm $RUNDIR/$NAME.pid
+ #echo $SOCKET
+ if [ -e $SOCKET ]; then
+ rm $SOCKET
+ fi
+ fi
+ sleep 1
+ start-stop-daemon --start --chuid $USER --background --quiet --pidfile \
+ $RUNDIR/$NAME.pid --exec $DAEMON
+ echo "$NAME."
+ ;;
+ restart)
+ echo "Restarting $DESC: "
+ echo -n "Stopping $DESC: "
+ if [ -f $RUNDIR/$NAME.pid ]; then
+ start-stop-daemon --stop --pidfile $RUNDIR/$NAME.pid
+ rm $RUNDIR/$NAME.pid
+ #echo $SOCKET
+ if [ -e $SOCKET ]; then
+ rm $SOCKET
+ fi
+ fi
+ echo "$NAME."
+ sleep 1
+ echo -n "Starting $DESC: "
+ start-stop-daemon --start --chuid $USER --background --quiet --pidfile \
+ $RUNDIR/$NAME.pid --exec $DAEMON
+ echo "$NAME."
+ ;;
+ *)
+ N=/etc/init.d/$NAME
+ echo "Usage: $N {start|stop|force-reload|restart|}" >&2
+ exit 1
+ ;;
+esac
+
+exit 0
More information about the Python-apps-commits
mailing list