--- anubis-4.1.1+dfsg1.orig/debian/dirs
+++ anubis-4.1.1+dfsg1/debian/dirs
@@ -0,0 +1,4 @@
+usr/bin
+usr/sbin
+usr/share/lintian/overrides
+etc/pam.d
--- anubis-4.1.1+dfsg1.orig/debian/rules
+++ anubis-4.1.1+dfsg1/debian/rules
@@ -0,0 +1,86 @@
+#!/usr/bin/make -f
+# -*- makefile -*-
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+# Include dpatch
+include /usr/share/dpatch/dpatch.make
+
+# These are used for cross-compiling and for saving the configure script
+# from having to guess our platform (since we know it already)
+DEB_HOST_GNU_TYPE   ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
+DEB_BUILD_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
+
+CFLAGS = -Wall -g
+
+ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
+	CFLAGS += -O0
+else
+	CFLAGS += -O2
+endif
+
+config.status: patch configure
+	dh_testdir
+ifneq "$(wildcard /usr/share/misc/config.sub)" ""
+	cp -f /usr/share/misc/config.sub config.sub
+endif
+ifneq "$(wildcard /usr/share/misc/config.guess)" ""
+	cp -f /usr/share/misc/config.guess config.guess
+endif
+	 LIBGNUTLS_CONFIG="/usr/bin/pkg-config gnutls" ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info --with-pcre --with-gsasl --with-pam --with-tcp-wrappers --with-socks-proxy CFLAGS="$(CFLAGS)" LDFLAGS="-Wl,-z,defs"
+
+build: build-stamp
+
+build-stamp:  config.status
+	dh_testdir
+	$(MAKE)
+	touch $@
+
+clean: clean-patched unpatch
+clean-patched:
+	dh_testdir
+	dh_testroot
+	rm -f build-stamp 
+	[ ! -f Makefile ] || $(MAKE) distclean
+	rm -f config.sub config.guess
+	dh_clean 
+
+install: build
+	dh_testdir
+	dh_testroot
+	dh_clean -k 
+	dh_installdirs
+	$(MAKE) DESTDIR=$(CURDIR)/debian/anubis install
+# to be compliant with Policy Manual, section 10.4
+	mv $(CURDIR)/debian/anubis/usr/bin/msg2smtp.pl $(CURDIR)/debian/anubis/usr/bin/msg2smtp
+# install upstream example configuration file, restrict access to it
+	install -p -m 0600 $(CURDIR)/examples/2anubisrc $(CURDIR)/debian/anubis/etc/anubisrc
+
+binary-indep: build install
+
+binary-arch: build install
+	dh_testdir
+	dh_testroot
+	dh_installchangelogs ChangeLog
+	dh_installdocs
+	dh_install
+# install upstream pam file (dh_installpam cannot handle this)
+	install -p -m 0644 $(CURDIR)/examples/pam/anubis $(CURDIR)/debian/anubis/etc/pam.d/anubis
+# install lintian override for /etc/anubisrc
+	install -p -m 0644 $(CURDIR)/debian/lintian-overrides $(CURDIR)/debian/anubis/usr/share/lintian/overrides/anubis
+	dh_installinit
+	dh_installinfo
+	dh_installman debian/msg2smtp.1 debian/anubisusr.1 debian/anubisadm.1
+	dh_strip
+	dh_compress
+# /etc/anubisrc need to be 0600 otherwise anubis won't start
+	dh_fixperms -X/etc/anubisrc
+	dh_installdeb
+	dh_shlibdeps
+	dh_gencontrol
+	dh_md5sums
+	dh_builddeb
+
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary install 
--- anubis-4.1.1+dfsg1.orig/debian/watch
+++ anubis-4.1.1+dfsg1/debian/watch
@@ -0,0 +1,3 @@
+version=3
+opts=dversionmangle=s/\.dfsg.+// \
+ftp://ftp.gnu.org/gnu/anubis/anubis-(.*)\.tar\.gz
--- anubis-4.1.1+dfsg1.orig/debian/compat
+++ anubis-4.1.1+dfsg1/debian/compat
@@ -0,0 +1 @@
+5
--- anubis-4.1.1+dfsg1.orig/debian/control
+++ anubis-4.1.1+dfsg1/debian/control
@@ -0,0 +1,20 @@
+Source: anubis
+Section: net
+Priority: optional
+Maintainer: Krzysztof Burghardt <krzysztof@burghardt.pl>
+Build-Depends: debhelper (>= 5), dpatch, autotools-dev, libgsasl7-dev, libgnutls-dev, guile-1.8-dev | libguile-dev, libgpgme11-dev, libpcre3-dev, libpam0g-dev | libpam-dev, libwrap0-dev, m4
+Standards-Version: 3.8.3
+Homepage: http://www.gnu.org/software/anubis/
+
+Package: anubis
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}, lsb-base
+Suggests: pidentd | ident-server
+Description: an SMTP message submission daemon
+ GNU Anubis is an intermediate layer between a mail user agent (MUA) and a mail
+ transport agent (MTA), receiving  messages from the MUA, applying to them
+ a set of predefined changes and finally inserting modified messages into an MTA
+ routing network. The set of changes applied to a message is configurable on
+ a system-wide and per-user basis. The built-in configuration language used for
+ defining sets of changes allows for considerable flexibility and is easily
+ extensible.
--- anubis-4.1.1+dfsg1.orig/debian/anubis.default
+++ anubis-4.1.1+dfsg1/debian/anubis.default
@@ -0,0 +1,7 @@
+#
+# Defaults for anubis initscript (sourced by /etc/init.d/anubis).
+# This is a POSIX shell fragment.
+#
+
+# Additional options that are passed to the GNU Anubis Daemon.
+DAEMON_OPTS=""
--- anubis-4.1.1+dfsg1.orig/debian/docs
+++ anubis-4.1.1+dfsg1/debian/docs
@@ -0,0 +1,4 @@
+NEWS
+README
+TODO
+THANKS
--- anubis-4.1.1+dfsg1.orig/debian/changelog
+++ anubis-4.1.1+dfsg1/debian/changelog
@@ -0,0 +1,68 @@
+anubis (4.1.1+dfsg1-3.6.201410312229) ucs4-0-0-0; urgency=low
+
+  * UCS auto build. The following patches have been applied to the original source package
+    0001-bump-version-for-ucs400
+
+ -- Univention builddaemon <buildd@univention.de>  Fri, 31 Oct 2014 22:29:02 +0100
+
+anubis (4.1.1+dfsg1-3) unstable; urgency=low
+
+  * Bump version, otherwise the build stamp in UCS 3.2 is higher than the 4.0
+    build (Bug #35387)
+
+ -- Sönke Schwardt-Krummrich <schwardt@univention.de>  Fri, 30 Oct 2014 14:43:23 +0200
+
+anubis (4.1.1+dfsg1-3.1) unstable; urgency=low
+
+  * Non-maintainer upload.
+  * debian/patches/40_binutils-gold.dpatch: Fixed FTBFS.  Closes: #553947.
+
+ -- Bart Martens <bartm@debian.org>  Sun, 02 Oct 2011 21:29:14 +0200
+
+anubis (4.1.1+dfsg1-3) unstable; urgency=low
+
+  * Include setjmp.h in guile.c to avoid FTBFS on ia64.
+
+ -- Krzysztof Burghardt <krzysztof@burghardt.pl>  Wed, 02 Sep 2009 22:56:50 +0200
+
+anubis (4.1.1+dfsg1-2) unstable; urgency=low
+
+  * Switched to pkg-config for gnutls detection (Closes: #529901)
+  * Enabled Perl-style regular expressions, PAM support and TCP wrapper
+  * Bumped Standards-Version: to 3.8.3 (no changes needed)
+
+ -- Krzysztof Burghardt <krzysztof@burghardt.pl>  Thu, 20 Aug 2009 21:03:03 +0200
+
+anubis (4.1.1+dfsg1-1) unstable; urgency=low
+
+  * New upstream release
+  * Bumped Standards-Version: to 3.8.0 (no changes needed)
+  * Fixed hyphen where a minus sign was intended in manual pages
+
+ -- Krzysztof Burghardt <krzysztof@burghardt.pl>  Mon, 23 Feb 2009 23:26:47 +0100
+
+anubis (4.1+dfsg1-2) unstable; urgency=low
+
+  * Applied Petter Reinholdtsen's patch to fix incorrect dependency in LSB
+    header in init.d script and left killing daemon to the sendsigs script
+    in runlevel 0 and 6, to speed up shutdown (Closes: #470007)
+
+ -- Krzysztof Burghardt <krzysztof@burghardt.pl>  Mon, 10 Mar 2008 19:28:03 +0100
+
+anubis (4.1+dfsg1-1) unstable; urgency=low
+
+  * New upstream release
+  * Updated debian/copyright as upstream changed to GNU GPL v3
+  * Removed S from Default-Stop: in init script (lintian suggested)
+  * Changed pseudo-header Homepage: to real header in debian/control
+  * Bumped Standards-Version: to 3.7.3 (no changes needed)
+  * Add patch for manpage whatis entry (10_manpage-fix.dpatch)
+  * Add Build-Depends: dpatch
+
+ -- Krzysztof Burghardt <krzysztof@burghardt.pl>  Wed, 27 Feb 2008 20:51:53 +0100
+
+anubis (4.0+dfsg1-1) unstable; urgency=low
+
+  * Initial release (Closes: #439690)
+
+ -- Krzysztof Burghardt <krzysztof@burghardt.pl>  Wed, 27 Feb 2008 20:26:48 +0100
--- anubis-4.1.1+dfsg1.orig/debian/anubisusr.1
+++ anubis-4.1.1+dfsg1/debian/anubisusr.1
@@ -0,0 +1,53 @@
+.\" -*- nroff -*-
+.TH ANUBISUSR 1 "2007 Sep 09"
+.SH NAME
+anubisusr \(hy synchronize local and remote copies of the user's RC file
+.SH SYNOPSIS
+.B anubisusr
+.RI
+anubisusr [OPTIONS] [URL]
+.SH DESCRIPTION
+This manual page documents briefly the
+.B anubisusr
+command.
+.PP
+.B anubisusr
+is a program for synchronization of local and remote copies of the user's RC file.
+.PP
+.SH OPTIONS
+A summary of options is included below:
+.TP
+.B OPTIONS are:
+.TP
+.B \-d, \-\-disable\-tls
+Disable TLS encryption
+.TP
+.B \-C, \-\-tls\-cafile FILE
+Use given CA file
+.TP
+.B \-f, \-\-file FILE
+Set user configuration file name
+.TP
+.B \-m, \-\-mechanism MECH
+Restrict allowed SASL mechanisms
+.TP
+.B \-n, \-\-netrc FILE
+Set .netrc file name
+.TP
+.B \-v, \-\-verbose
+Verbose output. Multiple options increase the verbosity.
+Maximum is 3.
+.TP
+.B \-\-version
+Display program version
+.TP
+.B \-\-help
+Display this help list
+.SH SEE ALSO
+.BR anubis (1),
+.BR anubisadm (1),
+.SH AUTHOR
+anubisusr was written by The Anubis Team (read the AUTHORS file).
+.PP
+This manual page was prepared by Krzysztof Burghardt <krzysztof@burghardt.pl>,
+for the Debian project (but may be used by others).
--- anubis-4.1.1+dfsg1.orig/debian/anubisadm.1
+++ anubis-4.1.1+dfsg1/debian/anubisadm.1
@@ -0,0 +1,69 @@
+.\" -*- nroff -*-
+.TH ANUBISADM 1 "2007 Sep 09"
+.SH NAME
+anubisadm \(hy interface for GNU Anubis database administration
+.SH SYNOPSIS
+.B anubisadm
+.RI
+anubisadm [COMMAND] [OPTIONS] URL
+.SH DESCRIPTION
+This manual page documents briefly the
+.B anubisadm
+command.
+.PP
+.B anubisadm
+is a program for GNU Anubis database manipulation.
+.PP
+.SH OPTIONS
+A summary of options is included below:
+.TP
+.B COMMAND is one of:
+.TP
+.B \-c, \-\-create
+Creates the database.
+.TP
+.B \-l, \-\-list
+List the contents of an existing database.
+.TP
+.B \-a, \-\-add
+Add a new record.
+.TP
+.B \-m, \-\-modify
+Modify existing record.
+.TP
+.B \-r, \-\-remove
+Remove existing record.
+.TP
+.B \-\-version
+Display program version number and exit.
+.TP
+.B \-\-help
+Display this help screen and exit.
+.TP
+.B OPTION is one or more of:
+.TP
+.B \-i, \-\-authid=STRING
+Specify the authid to operate upon. This option
+is mandatory with \-\-add, \-\-modify and \-\-remove.
+It is optional when used with \-\-list.
+.TP
+.B \-p, \-\-password=STRING
+Specify the password for the authid. Mandatory
+with \-\-add, \-\-modify and \-\-remove.
+.TP
+.B \-u, \-\-user=STRING
+Specify the system user name corresponding to
+the given authid. Optional for \-\-add, \-\-modify
+and \-\-remove.
+.TP
+.B \-f, \-\-rcfile=STRING
+Specify the rc file to be used for this authid.
+Optional for \-\-add, \-\-modify and \-\-remove.
+.SH SEE ALSO
+.BR anubis (1),
+.BR anubisusr (1),
+.SH AUTHOR
+anubisadm was written by The Anubis Team (read the AUTHORS file).
+.PP
+This manual page was prepared by Krzysztof Burghardt <krzysztof@burghardt.pl>,
+for the Debian project (but may be used by others).
--- anubis-4.1.1+dfsg1.orig/debian/copyright
+++ anubis-4.1.1+dfsg1/debian/copyright
@@ -0,0 +1,183 @@
+This package was debianized by Krzysztof Burghardt <krzysztof@burghardt.pl> on
+Sun, 26 Aug 2007 15:58:05 +0200.
+
+It was downloaded from <ftp://ftp.gnu.org/gnu/anubis/>
+
+Upstream Authors:
+
+    Wojciech Polak <polak@gnu.org>
+    Sergey Poznyakoff <gray@Mirddin.farlep.net>
+    Krzysztof Burghardt <krzysztof@burghardt.pl>
+
+Translators:
+
+    DE: Roland Illig <roland.illig@gmx.de>
+        Karl Eichwalder <ke@suse.de>
+    FR: Michel Robitaille <robitail@IRO.UMontreal.CA>
+    NB: Geir Helland <pjallabais@users.sourceforge.net>
+    MS: Sharuzzaman Ahmat Raslan <sharuzzaman@myrealbox.com>
+    NL: Elros Cyriatan <cyriatan@fastmail.fm>
+    PL: Sergey Poznyakoff <gray@gnu.org>
+    RO: Laurentiu Buzdugan <buzdugan@voyager.net>
+    RU: Sergey Poznyakoff <gray@gnu.org>
+    TR: Deniz Akkus Kanca <deniz@arayan.com>
+    UK: IGOR SACHKO <KICK@TCS.COM.UA>
+
+Copyright:
+
+    Copyright © 2001-2007 The Anubis Team
+    Copyright © 2001-2004 Wojciech Polak and Sergey Poznyakoff
+    Copyright © 2001-2003 Sergey Poznyakoff
+    Copyright © 1988-2004 Free Software Foundation
+
+    Anubis init.d script with LSB support:
+
+    Copyright © 2007 Javier Fernandez-Sanguino
+    Copyright © 2007 Krzysztof Burghardt
+
+License (for file NEWS):
+
+    Permission is granted to anyone to make or distribute verbatim copies
+    of this document as received, in any medium, provided that the
+    copyright notice and this permission notice are preserved,
+    thus giving the recipient permission to redistribute in turn.
+
+    Permission is granted to distribute modified versions
+    of this document, or of portions of it,
+    under the above conditions, provided also that they
+    carry prominent notices stating who last changed them.
+
+License (for file testsuite/findport.c):
+
+    Written by Sergey Poznyakoff
+
+    GNU Radius 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 3 of the License, or
+    (at your option) any later version.
+
+    GNU Radius 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 GNU Radius; if not, write to the Free Software Foundation,
+    Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
+
+License (for files: testsuite/anubis.authmode/guile.exp,
+                    testsuite/anubis.authmode/mime.exp,
+                    testsuite/anubis.authmode/gpg.exp,
+                    testsuite/anubis.authmode/base.exp):
+
+    This program is free software; as a special exception the author gives
+    unlimited permission to copy and/or distribute it, with or without
+    modifications, as long as this notice is preserved.
+
+License (for files: testsuite/data/users,
+                    testsuite/data/text.db,
+                    testsuite/etc/net.rc):
+
+    This file is public domain. Do with it whatever you like to.
+
+License (for files: lib/getline.c, lib/getline.h, lib/lbuf.c,
+                    lib/lbuf.h, lib/gettext.h):
+
+    This program is free software; you can redistribute it and/or modify it
+    under the terms of the GNU Library General Public License as published
+    by the Free Software Foundation; either version 2, 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
+    Library General Public License for more details.
+
+    You should have received a copy of the GNU Library 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.
+
+License (for file src/md5.c):
+
+    This code implements the MD5 message-digest algorithm.
+    The algorithm is due to Ron Rivest.  This code was
+    written by Colin Plumb in 1993, no copyright is claimed.
+    This code is in the public domain; do with it what you wish.
+
+    Equivalent code is available from RSA Data Security, Inc.
+    This code has been tested against that, and is equivalent,
+    except that you don't need to include two pages of legalese
+    with every copy.
+
+    To compute the message digest of a chunk of bytes, declare an
+    MD5Context structure, pass it to MD5Init, call MD5Update as
+    needed on buffers full of bytes, and then call MD5Final, which
+    will fill a supplied 16-byte array with the digest.
+
+License (for files: src/rcfile-gram.c, src/rcfile-gram.h):
+
+    Skeleton implementation for Bison's Yacc-like parsers in C
+
+    Copyright © 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005,
+    2006 Free Software Foundation, Inc.
+
+    This program 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 3 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, see <http://www.gnu.org/licenses/>.
+
+    As a special exception, you may create a larger work that contains
+    part or all of the Bison parser skeleton and distribute that work
+    under terms of your choice, so long as that work isn't itself a
+    parser generator using the skeleton or a modified version thereof
+    as a parser skeleton.  Alternatively, if you modify or redistribute
+    the parser skeleton itself, you may (at your option) remove this
+    special exception, which will cause the skeleton and the resulting
+    Bison output files to be licensed under the GNU General Public
+    License without this special exception.
+
+    This special exception was added by the Free Software Foundation in
+    version 2.2 of Bison.
+
+    C LALR(1) parser skeleton written by Richard Stallman, by
+    simplifying the original so-called "semantic" parser.
+
+License (for files not specified above):
+
+    This package 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 3 of the License, or
+    (at your option) any later version.
+ 
+    This package 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 package; if not, write to the Free Software
+    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
+
+    GNU Anubis is released under the GPL with the additional exemption that
+    compiling, linking, and/or using OpenSSL is allowed.
+
+On Debian systems, the complete text of the GNU General
+Public License can be found in `/usr/share/common-licenses/GPL-3'.
+
+On Debian systems, the complete text of the GNU Lesser Public License 
+can be found in `/usr/share/common-licenses/LGPL-2'.
+
+Please note that the GNU Library General Public License
+has been succeeded by the GNU Lesser General Public License
+
+The Debian packaging is © 2007, Krzysztof Burghardt <krzysztof@burghardt.pl> and
+is licensed under the GPL, see above.
--- anubis-4.1.1+dfsg1.orig/debian/init
+++ anubis-4.1.1+dfsg1/debian/init
@@ -0,0 +1,198 @@
+#!/bin/sh 
+#
+# Anubis init.d script with LSB support.
+#
+# Copyright (c) 2007 Javier Fernandez-Sanguino <jfs@debian.org>
+# Copyright (c) 2007 Krzysztof Burghardt <krzysztof@burghardt.pl>
+#
+# This is free software; you may 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,
+# or (at your option) any later version.
+#
+# This 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 with
+# the Debian operating system, in /usr/share/common-licenses/GPL;  if
+# not, write to the Free Software Foundation, Inc., 59 Temple Place,
+# Suite 330, Boston, MA 02111-1307 USA
+#
+### BEGIN INIT INFO
+# Provides:          anubis
+# Required-Start:    $network $remote_fs
+# Required-Stop:     $network $remote_fs
+# Should-Start:      $syslog
+# Should-Stop:       $syslog
+# Default-Start:     2 3 4 5
+# Default-Stop:      1
+# Short-Description: GNU Anubis Daemon
+# Description:       an SMTP message submission daemon
+### END INIT INFO
+
+PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
+
+DAEMON=/usr/sbin/anubis
+DAEMON_WRAPPER=$DAEMON
+NAME=anubis
+DESC="an SMTP message submission daemon"
+LOGDIR=/var/log/anubis
+
+PIDFILE=/var/run/$NAME.pid 
+
+test -x $DAEMON || exit 0
+test -x $DAEMON_WRAPPER || exit 0
+
+. /lib/lsb/init-functions
+
+DAEMON_OPTS=""
+DODTIME=10
+LOGFILE=$LOGDIR/$NAME.log
+
+if [ -f /etc/default/$NAME ] ; then
+	. /etc/default/$NAME
+fi
+
+set -e
+
+running_pid() {
+# Check if a given process pid's cmdline matches a given name
+    pid=$1
+    name=$2
+    [ -z "$pid" ] && return 1 
+    [ ! -d /proc/$pid ] &&  return 1
+    cmd=`cat /proc/$pid/cmdline | tr "\000" "\n"|head -n 1 |cut -d : -f 1`
+    # Is this the expected server
+    [ "$cmd" != "$name" ] &&  return 1
+    return 0
+}
+
+running() {
+    # No pidfile, probably no daemon present
+    [ ! -f "$PIDFILE" ] && return 1
+    pid=`cat $PIDFILE`
+    running_pid $pid $DAEMON_WRAPPER || return 1
+    return 0
+}
+
+start_server() {
+	start-stop-daemon --start --quiet --pidfile $PIDFILE \
+                    --exec $DAEMON -- $DAEMON_OPTS
+        errcode=$?
+	return $errcode
+}
+
+stop_server() {
+        start-stop-daemon --stop --quiet --pidfile $PIDFILE \
+                    --exec $DAEMON
+        errcode=$?
+	return $errcode
+}
+
+reload_server() {
+    [ ! -f "$PIDFILE" ] && return 1
+    pid=`cat $PIDFILE` # This is the daemon's pid
+    # Send a SIGHUP
+    kill -1 $pid
+    return $?
+}
+
+force_stop() {
+# Force the process to die killing it manually
+	[ ! -e "$PIDFILE" ] && return
+	if running ; then
+		kill -15 $pid
+	# Is it really dead?
+		sleep "$DIETIME"s
+		if running ; then
+			kill -9 $pid
+			sleep "$DIETIME"s
+			if running ; then
+				echo "Cannot kill $NAME (pid=$pid)!"
+				exit 1
+			fi
+		fi
+	fi
+	rm -f $PIDFILE
+}
+
+
+case "$1" in
+  start)
+	log_daemon_msg "Starting $DESC " "$NAME"
+        # Check if it's running first
+        if running ;  then
+            log_progress_msg "apparently already running"
+            log_end_msg 0
+            exit 0
+        fi
+        if start_server && running ;  then
+            # It's ok, the server started and is running
+            log_end_msg 0
+        else
+            # Either we could not start it or it is not running
+            # after we did
+            # NOTE: Some servers might die some time after they start,
+            # this code does not try to detect this and might give
+            # a false positive (use 'status' for that)
+            log_end_msg 1
+        fi
+	;;
+  stop)
+        log_daemon_msg "Stopping $DESC" "$NAME"
+        if running ; then
+            # Only stop the server if we see it running
+            stop_server
+            log_end_msg $?
+        else
+            # If it's not running don't do anything
+            log_progress_msg "apparently not running"
+            log_end_msg 0
+            exit 0
+        fi
+        ;;
+  force-stop)
+        # First try to stop gracefully the program
+        $0 stop
+        if running; then
+            # If it's still running try to kill it more forcefully
+            log_daemon_msg "Stopping (force) $DESC" "$NAME"
+            force_stop
+            log_end_msg $?
+        fi
+	;;
+  restart|force-reload)
+        log_daemon_msg "Restarting $DESC" "$NAME"
+        stop_server
+        # Wait some sensible amount, some server need this
+        [ -n "$DIETIME" ] && sleep $DIETIME
+        start_server
+        running
+        log_end_msg $?
+	;;
+  status)
+
+        log_daemon_msg "Checking status of $DESC" "$NAME"
+        if running ;  then
+            log_progress_msg "running"
+            log_end_msg 0
+        else
+            log_progress_msg "apparently not running"
+            log_end_msg 1
+            exit 1
+        fi
+        ;;
+  reload)
+          # As the daemon responds to changes in its config file
+          # directly anyway, this is a do-nothing entry.
+	;;
+  *)
+	N=/etc/init.d/$NAME
+	echo "Usage: $N {start|stop|force-stop|restart|force-reload|status}" >&2
+	exit 1
+	;;
+esac
+
+exit 0
--- anubis-4.1.1+dfsg1.orig/debian/lintian-overrides
+++ anubis-4.1.1+dfsg1/debian/lintian-overrides
@@ -0,0 +1 @@
+anubis: non-standard-file-perm etc/anubisrc 0600 != 0644
--- anubis-4.1.1+dfsg1.orig/debian/README.Debian
+++ anubis-4.1.1+dfsg1/debian/README.Debian
@@ -0,0 +1,28 @@
+GNU Anubis for Debian
+---------------------
+
+== OpenSSL / GnuTLS ==
+
+GNU Anubis is released under the GPL with the additional exemption that
+compiling, linking, and/or using OpenSSL is allowed. However Debian package
+is built with GnuTLS support (and without OpenSSL, as those SSL toolkits
+are mutual exclusive).
+
+== msg2smtp.pl ==
+
+GNU package installs msg2smtp.pl into /usr/bin/ but Debian Policy Manual,
+section 10.4 states that script name should not include an extension such as
+.sh or .pl that denotes the scripting language currently used to implement it.
+
+Script was renamed to msg2smtp. If you need to call it with original name
+consider creating symlink with command "ln -s msg2smtp /usr/bin/msg2smtp.pl".
+
+== Texinfo docs ==
+
+Texinfo documentation was removed from package as it was licensed under GNU FDL
+with unmodifiable Front-Cover and Back-Cover Texts.
+
+GNU Anubis Manual is available in different formats (including PDF, PS, DVI,
+HTML and plain ASCII text) at: http://www.gnu.org/software/anubis/manual/
+
+ -- Krzysztof Burghardt <krzysztof@burghardt.pl>  Wed, 24 Oct 2007 01:09:47 +0200
--- anubis-4.1.1+dfsg1.orig/debian/msg2smtp.1
+++ anubis-4.1.1+dfsg1/debian/msg2smtp.1
@@ -0,0 +1,60 @@
+.\" -*- nroff -*-
+.TH MSG2SMTP 1 "2007 Aug 26"
+.SH NAME
+msg2smtp \(hy a 'bridge' between MUA and GNU Anubis
+.SH SYNOPSIS
+.B msg2smtp
+.RI
+\-h HOST [\-p PORT] [\-e HELO_DOMAIN] [\-U USERNAME] [\-P PASSWORD] [\-m MECHANISM] [\-d]
+.SH DESCRIPTION
+This manual page documents briefly the
+.B msg2smtp
+command.
+.PP
+.B msg2smtp
+is a program that takes a mail message on STDIN and relays it to an SMTP server.
+.PP
+MUA (Mutt) \(hy\(hy> msg2smtp.pl \(hy\(hy> Anubis \(hy\(hy> remote or local MTA
+.PP
+This can be used whenever you want to convert a mail message on STDIN
+and talk to an SMTP server as output. Just like sendmail do.
+.PP
+If you want to use this script with Mutt, add this to Mutt configuration file:
+.PP
+set sendmail="/PATHTO/msg2smtp.pl \-h localhost"
+.PP
+If you run GNU Anubis on port 4000, you would put this line in your muttrc:
+.PP
+set sendmail="/PATHTO/msg2smtp.pl \-h localhost \-p 4000"
+.SH OPTIONS
+A summary of options is included below:
+.TP
+.B \-h HOST
+hostname of SMTP server, often 'localhost',
+.TP
+.B \-p PORT
+port of the SMTP server,
+.TP
+.B \-e HELO_DOMAIN
+domain we use when to say helo to smtp server,
+.TP
+.B \-U USERNAME
+ESMTP auth username,
+.TP
+.B \-P PASSWORD
+ESMTP auth password,
+.TP
+.B \-m MECHANISM
+ESMTP auth mechanism \(hy default is PLAIN,
+.TP
+.B \-d
+shows SMTP conversation and perl debugging.
+.SH SEE ALSO
+.BR anubis (1),
+.BR sendmail (1),
+.BR mutt (1).
+.SH AUTHOR
+msg2smtp was written by Michael de Beer <michael@debeer.org>.
+.PP
+This manual page was written by Krzysztof Burghardt <krzysztof@burghardt.pl>,
+for the Debian project (but may be used by others).
--- anubis-4.1.1+dfsg1.orig/debian/patches/00list
+++ anubis-4.1.1+dfsg1/debian/patches/00list
@@ -0,0 +1,4 @@
+10_manpage-fix.dpatch
+20_pkg-config-for-gnutls
+30_guile-include-setjmp
+40_binutils-gold.dpatch
--- anubis-4.1.1+dfsg1.orig/debian/patches/30_guile-include-setjmp.dpatch
+++ anubis-4.1.1+dfsg1/debian/patches/30_guile-include-setjmp.dpatch
@@ -0,0 +1,18 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 30_guile-include-setjmp.dpatch by Krzysztof Burghardt <krzysztof@burghardt.pl>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: Include setjmp.h in guile.c to avoid FTBFS on ia64.
+
+@DPATCH@
+diff -urNad anubis-4.1.1+dfsg1~/src/guile.c anubis-4.1.1+dfsg1/src/guile.c
+--- anubis-4.1.1+dfsg1~/src/guile.c	2008-12-16 17:21:54.000000000 +0100
++++ anubis-4.1.1+dfsg1/src/guile.c	2009-09-02 22:52:35.639742893 +0200
+@@ -18,6 +18,7 @@
+    with GNU Anubis.  If not, see <http://www.gnu.org/licenses/>.
+ */
+ 
++#include <setjmp.h>
+ #include "headers.h"
+ #include "extern.h"
+ #include "rcfile.h"
--- anubis-4.1.1+dfsg1.orig/debian/patches/20_pkg-config-for-gnutls.dpatch
+++ anubis-4.1.1+dfsg1/debian/patches/20_pkg-config-for-gnutls.dpatch
@@ -0,0 +1,19 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 20_pkg-config-for-gnutls.dpatch by Kumar Appaiah <a.kumar@alumni.iitm.ac.in>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: Use pkg-config instead of libgnutls-config to find gnutls.
+
+@DPATCH@
+diff -urNad anubis-4.1.1+dfsg1~/configure anubis-4.1.1+dfsg1/configure
+--- anubis-4.1.1+dfsg1~/configure	2008-12-19 19:30:14.000000000 +0100
++++ anubis-4.1.1+dfsg1/configure	2009-08-20 20:14:35.787571478 +0200
+@@ -19786,7 +19786,7 @@
+   else
+     LIBGNUTLS_CFLAGS=`$LIBGNUTLS_CONFIG $libgnutls_config_args --cflags`
+     LIBGNUTLS_LIBS=`$LIBGNUTLS_CONFIG $libgnutls_config_args --libs`
+-    libgnutls_config_version=`$LIBGNUTLS_CONFIG $libgnutls_config_args --version`
++    libgnutls_config_version=`$LIBGNUTLS_CONFIG $libgnutls_config_args --modversion`
+ 
+ 
+       ac_save_CFLAGS="$CFLAGS"
--- anubis-4.1.1+dfsg1.orig/debian/patches/40_binutils-gold.dpatch
+++ anubis-4.1.1+dfsg1/debian/patches/40_binutils-gold.dpatch
@@ -0,0 +1,19 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 40_binutils-gold.dpatch by Bhavani Shankar <bhavi@ubuntu.com>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: Fix FTBFS with ld --no-add-needed in natty toolchain.
+
+@DPATCH@
+diff -urNad anubis-4.1.1+dfsg1~/src/Makefile.in anubis-4.1.1+dfsg1/src/Makefile.in
+--- anubis-4.1.1+dfsg1~/src/Makefile.in	2008-12-20 00:00:12.000000000 +0530
++++ anubis-4.1.1+dfsg1/src/Makefile.in	2011-02-03 18:55:07.695872244 +0530
+@@ -546,7 +546,7 @@
+ bin_PROGRAMS = @ANUBIS_BIN_ADM@
+ noinst_LIBRARIES = libanubisdb.a
+ anubis_LDADD = ./libanubisdb.a $(top_builddir)/lib/libanubis.a\
+- @LIBINTL@ $(GUILE_LIBS) @LIBGNUTLS_LIBS@ @GSASL_LIBS@ 
++ @LIBINTL@ $(GUILE_LIBS) @LIBGNUTLS_LIBS@ @GSASL_LIBS@ -lgpg-error
+ 
+ anubis_SOURCES = \
+  authmode.c \
--- anubis-4.1.1+dfsg1.orig/debian/patches/10_manpage-fix.dpatch
+++ anubis-4.1.1+dfsg1/debian/patches/10_manpage-fix.dpatch
@@ -0,0 +1,19 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 10_manpage-fix.dpatch by Krzysztof Burghardt <krzysztof@burghardt.pl>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: Fix lintian warrning manpage-has-bad-whatis-entry.
+
+@DPATCH@
+diff -urNad anubis_4.1+dfsg1~/doc/anubis.1 anubis_4.1+dfsg1/doc/anubis.1
+--- anubis_4.1+dfsg1~/doc/anubis.1	2007-07-29 18:23:23.000000000 +0200
++++ anubis_4.1+dfsg1/doc/anubis.1	2008-02-27 21:07:09.428517448 +0100
+@@ -3,7 +3,7 @@
+ .\"
+ .TH anubis 1 "" "" "GNU Anubis"
+ .SH NAME
+-GNU Anubis -- an SMTP message submission daemon.
++anubis -- an SMTP message submission daemon.
+ .SH SYNOPSIS
+ .BI "anubis"
+ [options]
