--- proxsmtp-1.8.orig/debian/README.Debian +++ proxsmtp-1.8/debian/README.Debian @@ -0,0 +1,11 @@ +proxsmtp for Debian +=================== + +proxsmtp is built to be run many times on the same host, but does not support it +natively. That's why debian init script will launch one proxsmtp per conf file +found in the directory /etc/proxsmtp/. + +Any conf file of the form /etc/proxsmtp/*.conf will launch a proxsmtp. A +corresponding PidFile will be created in /var/run/proxsmtp/ + +By default, no conf file is created. --- proxsmtp-1.8.orig/debian/changelog +++ proxsmtp-1.8/debian/changelog @@ -0,0 +1,33 @@ +proxsmtp (1.8-1) unstable; urgency=low + + * New upstream release (Upstream repacked with the .svn cruft removed). + * Migrate away from cdbs to dh7. + * Create /var/run/proxsmtp from the init script rather than the .deb. + + -- Pierre Habouzit Sun, 08 Nov 2009 16:41:39 +0100 + +proxsmtp (1.6-1) unstable; urgency=low + + * New upstream release + + [ Packaging ] + + * bump Standards-Version to 3.7.2. + * make the init script lsb-friendly. + + -- Pierre Habouzit Tue, 2 Jan 2007 09:57:32 +0100 + +proxsmtp (1.3-1) unstable; urgency=medium + + * New upstream release. + * Urgency set to medium since the new release addresses a lot of potentially + critical problems in a mail queue. + + -- Pierre Habouzit Sat, 14 Jan 2006 15:38:53 +0100 + +proxsmtp (1.2.1-1) unstable; urgency=low + + * Initial Release (closes: #317751). + + -- Pierre Habouzit Mon, 11 Jul 2005 12:29:57 +0200 + --- proxsmtp-1.8.orig/debian/control +++ proxsmtp-1.8/debian/control @@ -0,0 +1,25 @@ +Source: proxsmtp +Section: mail +Priority: optional +Maintainer: Pierre Habouzit +Build-Depends: debhelper (>= 7) +Standards-Version: 3.8.3 +Vcs-Browser: http://git.debian.org/?p=collab-maint/proxsmtp.git;a=summary +Vcs-Git: git://git.debian.org/git/collab-maint/proxsmtp.git + +Package: proxsmtp +Architecture: any +Depends: dpkg (>= 1.10.11), lsb-base, ${shlibs:Depends}, ${misc:Depends} +Recommends: postfix | mail-transport-agent +Description: multi purpose SMTP Proxy + ProxSMTP is a flexible tool that allows you to reject, change or log email + based on arbitrary critera. It accepts SMTP connections and forwards the SMTP + commands and responses to another SMTP server. The 'DATA' email body is + intercepted and filtered before forwarding. + . + You need to be able to write the filtering scripts that integrate it with your + particular needs. If you're looking for something that does virus filtering, + take a look at ClamSMTP which behaves similarly and uses a similar code base. + . + You do not need a local mail-transport-agent installed, since this server can + forward to a remote one. --- proxsmtp-1.8.orig/debian/copyright +++ proxsmtp-1.8/debian/copyright @@ -0,0 +1,33 @@ +This package was debianized by Pierre Habouzit on +Mon, 11 Jul 2005 12:11:43 +0200. + +It was downloaded from http://memberwebs.com/stef/software/proxsmtp/ + +Upstream Author: Stef Walter + +Copyright (c) 2004, Stefan Walter +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + * this list of conditions and the following disclaimer in the documentation + * and/or other materials provided with the distribution. + * The names of contributors to this software may not be used to endorse or + * promote products derived from this software without specific prior written + * permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +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 COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR +ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON +ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + --- proxsmtp-1.8.orig/debian/dirs +++ proxsmtp-1.8/debian/dirs @@ -0,0 +1 @@ +/etc/proxsmtp --- proxsmtp-1.8.orig/debian/examples +++ proxsmtp-1.8/debian/examples @@ -0,0 +1 @@ +doc/proxsmtpd.conf --- proxsmtp-1.8.orig/debian/rules +++ proxsmtp-1.8/debian/rules @@ -0,0 +1,3 @@ +#!/usr/bin/make -f +%: + dh $@ --- proxsmtp-1.8.orig/debian/watch +++ proxsmtp-1.8/debian/watch @@ -0,0 +1,9 @@ +# +# watch -- uscan config file for proxsmtp +# +# Because I manage this package with tla-buildpackage, I do not want uupdate +# stomping all over my working directory. No action is taken. +# +version=3 +http://memberwebs.com/nielsen/software/proxsmtp/ proxsmtp-([\w+\d+\.]+|\d+)\.tar\.gz debian + --- proxsmtp-1.8.orig/debian/README.packaging +++ proxsmtp-1.8/debian/README.packaging @@ -0,0 +1,16 @@ +proxsmtp (1.8-1) UNRELEASED; urgency=low + + Packaging of proxsmtp has moved to collab-maint. + + This means that you can do whatever policy fixes or things that you would do + through an NMU directly to this repository that is my "upstream" repository + for the packaging. + + Though, before uploading, either make it an NMU with the usual ways of + performing ones, or ping me so that I can review the changes and ack them or + even better upload them myself once vetted. + + TIA. + + -- Pierre Habouzit Sun, 08 Nov 2009 16:08:26 +0100 + --- proxsmtp-1.8.orig/debian/compat +++ proxsmtp-1.8/debian/compat @@ -0,0 +1 @@ +7 --- proxsmtp-1.8.orig/debian/init +++ proxsmtp-1.8/debian/init @@ -0,0 +1,68 @@ +#! /bin/sh -e +### BEGIN INIT INFO +# Provides: proxsmtp +# Required-Start: $syslog $network +# Required-Stop: $syslog $network +# Default-Start: 2 3 4 5 +# Default-Stop: 0 1 6 +# Short-Description: Start the proxsmtp proxies +# Description: Start all the proxsmtp proxies from /etc/proxsmtp/*.conf +### END INIT INFO + +PATH=/sbin:/bin:/usr/sbin:/usr/bin +NAME=proxsmtp +DAEMON=/usr/sbin/proxsmtpd + + . /lib/lsb/init-functions + +lsconfs() { + ls /etc/$NAME/*.conf 2>/dev/null +} + +# Gracefully exit if the package has been removed. +test -x $DAEMON || exit 0 + +mkdir -p /var/run/proxsmtp + +# Gracefully exit if there is no available config files +lsconfs > /dev/null || exit 0 + +d_start() { + start_daemon -p "$1" $DAEMON -p "$1" -f "$2" +} + +d_stop() { + killproc -p "$1" `basename $DAEMON` +} + +d_all() { + cmd="$2" + + log_daemon_msg "$1 smtp proxies" + lsconfs | while read conf; do + inst=`basename "$conf" .conf` + + log_progress_msg "$inst" + $cmd "/var/run/$NAME/$inst.pid" "$conf" + done + log_end_msg 0 +} + +case "$1" in + start) + d_all "Starting" d_start + ;; + stop) + d_all "Stopping" d_stop + ;; + force-reload|restart) + d_all "Stopping" d_stop + d_all "Starting" d_start + ;; + *) + echo "Usage: $0 {start|stop|restart|force-reload}" >&2 + exit 1 + ;; +esac + +exit 0