Package: spamassassin
Version: 3.2.5-4
Severity: normal
Tags: patch

The init script action "status" is required to run spamassassin in
cluster setup (heartbet/cman). This patch adds this functionality to the
init script.


-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.29-2-amd64 (SMP w/2 CPU cores)
Locale: LANG=de_AT.UTF-8, LC_CTYPE=de_AT.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages spamassassin depends on:
pn  libarchive-tar-perl           <none>     (no description available)
ii  libdigest-sha1-perl           2.12-1     NIST SHA-1 message digest algorith
ii  libhtml-parser-perl           3.60-1     collection of modules that parse H
ii  libio-zlib-perl               1.09-1.1   IO:: style interface to gzip/zlib 
ii  libnet-dns-perl               0.65-1     Perform DNS queries from a Perl sc
ii  libsocket6-perl               0.20-1     Perl extensions for IPv6
ii  libsys-hostname-long-perl     1.4-2      Figure out the long (fully-qualifi
ii  libwww-perl                   5.826-1    WWW client/server library for Perl
ii  perl                          5.10.0-22  Larry Wall's Practical Extraction 
ii  perl-modules [libio-zlib-perl 5.10.0-22  Core Perl modules

Versions of packages spamassassin recommends:
ii  gcc                           4:4.3.3-8  The GNU C compiler
ii  gnupg                         1.4.9-4    GNU privacy guard - a free PGP rep
ii  libc6-dev                     2.9-12     GNU C Library: Development Librari
ii  libio-socket-inet6-perl       2.54-1.1   Object interface for AF_INET6 doma
ii  libmail-spf-perl              2.005-1    Perl implementation of Sender Poli
ii  libsys-syslog-perl            0.27-1     Perl interface to the UNIX syslog(
ii  make                          3.81-5     The GNU version of the "make" util
ii  perl [libsys-syslog-perl]     5.10.0-22  Larry Wall's Practical Extraction 
ii  re2c                          0.13.5-1   tool for generating fast C-based r
ii  spamc                         3.2.5-4    Client for SpamAssassin spam filte

Versions of packages spamassassin suggests:
ii  libcompress-zlib-p 2.015-1               Perl module for creation and manip
ii  libdbi-perl        1.608-1               Perl5 database interface by Tim Bu
ii  libio-socket-ssl-p 1.24-1                Perl module implementing object or
ii  libmail-dkim-perl  0.33-1                cryptographically identify the sen
ii  libnet-ident-perl  1.20-5                lookup the username on the remote 
ii  perl [libcompress- 5.10.0-22             Larry Wall's Practical Extraction 
ii  pyzor              1:0.4.0+cvs20030201-8 spam-catcher using a collaborative
ii  razor              1:2.85-3              spam-catcher using a collaborative

-- no debconf information
--- spamassassin.orig   2009-05-28 19:03:32.970462391 +0200
+++ spamassassin        2009-05-28 19:04:09.871252059 +0200
@@ -31,6 +31,8 @@
 OPTIONS=""
 NICE=
 
+. /lib/lsb/init-functions
+
 test -f /etc/default/spamassassin && . /etc/default/spamassassin
 
 DOPTIONS="-d --pidfile=$PIDFILE"
@@ -73,10 +75,12 @@
 
        echo "$NAME."
        ;;
-
+  status)
+        status_of_proc -p $PIDFILE $DAEMON $NAME && exit 0 || exit $?
+        ;;
   *)
        N=/etc/init.d/$SNAME
-       echo "Usage: $N {start|stop|restart|reload|force-reload}" >&2
+       echo "Usage: $N {start|stop|restart|reload|force-reload|status}" >&2
        exit 1
        ;;
 esac

Reply via email to