r1290 - in (23 files)
Jonas Meurer
mejo at alioth.debian.org
Mon Oct 20 14:08:27 UTC 2008
Date: Monday, October 20, 2008 @ 14:08:26
Author: mejo
Revision: 1290
Initial upload of MaildropHost
Added:
zope-maildrophost/
zope-maildrophost/branches/
zope-maildrophost/tags/
zope-maildrophost/tarballs/
zope-maildrophost/tarballs/zope-maildrophost_1.21.orig.tar.gz
zope-maildrophost/trunk/
zope-maildrophost/trunk/debian/
zope-maildrophost/trunk/debian/README.source
zope-maildrophost/trunk/debian/changelog
zope-maildrophost/trunk/debian/compat
zope-maildrophost/trunk/debian/control
zope-maildrophost/trunk/debian/copyright
zope-maildrophost/trunk/debian/dirs
zope-maildrophost/trunk/debian/docs
zope-maildrophost/trunk/debian/dzproduct
zope-maildrophost/trunk/debian/patches/
zope-maildrophost/trunk/debian/patches/01_config.patch
zope-maildrophost/trunk/debian/patches/series
zope-maildrophost/trunk/debian/postinst
zope-maildrophost/trunk/debian/rules
zope-maildrophost/trunk/debian/watch
zope-maildrophost/trunk/debian/zope-maildrophost.init
zope-maildrophost/trunk/debian/zope-maildrophost.logrotate
Added: zope-maildrophost/tarballs/zope-maildrophost_1.21.orig.tar.gz
===================================================================
(Binary files differ)
Property changes on: zope-maildrophost/tarballs/zope-maildrophost_1.21.orig.tar.gz
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: zope-maildrophost/trunk/debian/README.source
===================================================================
--- zope-maildrophost/trunk/debian/README.source (rev 0)
+++ zope-maildrophost/trunk/debian/README.source 2008-10-20 14:08:26 UTC (rev 1290)
@@ -0,0 +1,2 @@
+This package uses quilt for its patch management, see
+/usr/share/doc/quilt/README.source if you are unfamiliar with it.
Added: zope-maildrophost/trunk/debian/changelog
===================================================================
--- zope-maildrophost/trunk/debian/changelog (rev 0)
+++ zope-maildrophost/trunk/debian/changelog 2008-10-20 14:08:26 UTC (rev 1290)
@@ -0,0 +1,24 @@
+zope-maildrophost (1.21-3) unstable; urgency=low
+
+ * Set MAILDROP_INTERVAL=60 in config.py
+
+ -- Jonas Meurer <mejo at debian.org> Mon, 20 Oct 2008 12:15:00 +0200
+
+zope-maildrophost (1.21-2) unstable; urgency=low
+
+ * Remove checks for $VERBOSE from initscript.
+ * Touch and chown logfile in postinst.
+ * Provide a logrotate config for the logfile.
+ * Enable logfile in config.py
+ * Set MAILDROP_TLS=1 in config.py
+ * Set MAILDROP_BATCH=10 in config.py. Some mailservers reject mail if
+ to many are sent to it at once.
+ * chmod and chown MAILDROP_VAR in postinst.
+
+ -- Jonas Meurer <mejo at debian.org> Sat, 18 Oct 2008 12:27:27 +0200
+
+zope-maildrophost (1.21-1) unstable; urgency=low
+
+ * Initial Release.
+
+ -- Jonas Meurer <mejo at debian.org> Fri, 17 Oct 2008 12:26:56 +0200
Added: zope-maildrophost/trunk/debian/compat
===================================================================
--- zope-maildrophost/trunk/debian/compat (rev 0)
+++ zope-maildrophost/trunk/debian/compat 2008-10-20 14:08:26 UTC (rev 1290)
@@ -0,0 +1 @@
+5
Added: zope-maildrophost/trunk/debian/control
===================================================================
--- zope-maildrophost/trunk/debian/control (rev 0)
+++ zope-maildrophost/trunk/debian/control 2008-10-20 14:08:26 UTC (rev 1290)
@@ -0,0 +1,16 @@
+Source: zope-maildrophost
+Section: web
+Priority: extra
+Maintainer: Debian Zope team <pkg-zope-developers at lists.alioth.debian.org>
+Uploaders: Jonas Meurer <mejo at debian.org>
+Standards-Version: 3.8.0
+Build-Depends: debhelper (>> 5.0.0), quilt (>= 0.40)
+Build-Depends-Indep: zope-debhelper
+
+Package: zope-maildrophost
+Architecture: all
+Depends: ${zope:Depends}
+Description: send mails from within Zope through a mail queue
+ The MaildropHost product provides support for sending email from within the
+ Zope environment using MaildropHost objects. Unlike the built-in MailHost
+ object, the sending is done asynchronously from a separate process.
Added: zope-maildrophost/trunk/debian/copyright
===================================================================
--- zope-maildrophost/trunk/debian/copyright (rev 0)
+++ zope-maildrophost/trunk/debian/copyright 2008-10-20 14:08:26 UTC (rev 1290)
@@ -0,0 +1,71 @@
+Format-Specification: http://wiki.debian.org/Proposals/CopyrightFormat
+Upstream-Name: MaildropHost
+Upstream-Maintainer: Jens Vagelpohl <jens at dataflake.org>
+Upstream-Source: http://www.dataflake.org/software/maildrophost
+Debianized-By: Jonas Meurer <mejo at debian.org>
+Debianized-Date: Fri, 17 Oct 2008 12:28:31 +0200
+
+Files: *
+Copyright: © 2004-2007 Jens Vagelpohl
+License: ZPL-2.1
+ Zope Public License (ZPL) Version 2.1
+ -------------------------------------
+
+ A copyright notice accompanies this license document that
+ identifies the copyright holders.
+
+ This license has been certified as open source. It has also
+ been designated as GPL compatible by the Free Software
+ Foundation (FSF).
+
+ Redistribution and use in source and binary forms, with or
+ without modification, are permitted provided that the
+ following conditions are met:
+
+ 1. Redistributions in source code must retain the
+ accompanying copyright notice, this list of conditions,
+ and the following disclaimer.
+
+ 2. Redistributions in binary form must reproduce the accompanying
+ copyright notice, this list of conditions, and the
+ following disclaimer in the documentation and/or other
+ materials provided with the distribution.
+
+ 3. Names of the copyright holders must not be used to
+ endorse or promote products derived from this software
+ without prior written permission from the copyright
+ holders.
+
+ 4. The right to distribute this software or to use it for
+ any purpose does not give you the right to use
+ Servicemarks (sm) or Trademarks (tm) of the copyright
+ holders. Use of them is covered by separate agreement
+ with the copyright holders.
+
+ 5. If any files are modified, you must cause the modified
+ files to carry prominent notices stating that you changed
+ the files and the date of any change.
+
+ Disclaimer
+
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS ``AS IS''
+ AND ANY EXPRESSED 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 HOLDERS 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.
+
+Files: debian/*
+Copyright: © 2005-2008 Jonas Meurer <jonas at freesources.org>
+License: GPL-2+
+ On Debian systems the full text of the GNU General Public License can be found
+ in the `/usr/share/common-licenses/GPL' file.
+
Added: zope-maildrophost/trunk/debian/dirs
===================================================================
--- zope-maildrophost/trunk/debian/dirs (rev 0)
+++ zope-maildrophost/trunk/debian/dirs 2008-10-20 14:08:26 UTC (rev 1290)
@@ -0,0 +1,2 @@
+/var/spool/zope-maildrophost
+/usr/share/zope/Products/MaildropHost/var
Added: zope-maildrophost/trunk/debian/docs
===================================================================
--- zope-maildrophost/trunk/debian/docs (rev 0)
+++ zope-maildrophost/trunk/debian/docs 2008-10-20 14:08:26 UTC (rev 1290)
@@ -0,0 +1 @@
+README.txt
Added: zope-maildrophost/trunk/debian/dzproduct
===================================================================
--- zope-maildrophost/trunk/debian/dzproduct (rev 0)
+++ zope-maildrophost/trunk/debian/dzproduct 2008-10-20 14:08:26 UTC (rev 1290)
@@ -0,0 +1,3 @@
+Package: zope-maildrophost
+Name: MaildropHost
+ZopeVersions >= 2.8
Added: zope-maildrophost/trunk/debian/patches/01_config.patch
===================================================================
--- zope-maildrophost/trunk/debian/patches/01_config.patch (rev 0)
+++ zope-maildrophost/trunk/debian/patches/01_config.patch 2008-10-20 14:08:26 UTC (rev 1290)
@@ -0,0 +1,70 @@
+## 01_config.patch
+## by Jonas Meurer <mejo at debian.org>
+##
+## adjust config.py for the Debian package
+
+--- a/config.py
++++ b/config.py
+@@ -7,28 +7,28 @@
+ #
+
+ # Which python interpreter to use for running the maildrop daemon
+-PYTHON="/usr/bin/python"
++PYTHON="/usr/bin/python2.4"
+
+ # The working directory keeping the spool and var directories
+-MAILDROP_HOME="/tmp/maildrop"
++MAILDROP_HOME="/usr/share/zope/Products/MaildropHost"
+
+ # You can override the spool directory with this directive
+ # Without it, it'll be the "spool" subdirectory of $MAILDROP_HOME
+ # You can have one maildrop daemon monitor more than one spool folder
+ # by using a semicolon-separated value.
+-# MAILDROP_SPOOL="/tmp/maildrop/spool"
++MAILDROP_SPOOL="/var/spool/zope-maildrophost"
+
+ # You can override the var directory with this directive
+ # Without it, it'll be the "var" subdirectory of $MAILDROP_HOME
+-# MAILDROP_VAR="/tmp/maildrop/var"
++# MAILDROP_VAR="/usr/share/zope/Products/MaildropHost/var"
+
+ # You can override the pid file with this directive
+ # Without it, it'll be the "maildrop.pid" file of $MAILDROP_VAR
+-# MAILDROP_PID_FILE="/var/run/maildrop/maildrop.pid"
++MAILDROP_PID_FILE="/var/run/zope-maildrophost.pid"
+
+ # You can override the log file with this directive
+ # Without it, it'll be the "maildrop.log" file of $MAILDROP_VAR
+-# MAILDROP_LOG_FILE="/var/log/maildrop/maildrop.log"
++MAILDROP_LOG_FILE="/var/log/zope-maildrophost.log"
+
+ # The SMTP server to be used for sending out email (e.g. smtp-relay.domain.com)
+ SMTP_HOST="localhost"
+@@ -37,7 +37,8 @@
+ SMTP_PORT=25
+
+ # How long to wait between spool checks
+-MAILDROP_INTERVAL=120
++#MAILDROP_INTERVAL=120
++MAILDROP_INTERVAL=60
+
+ # Set debug mode. This will PREVENT the daemon from detaching from
+ # the controlling terminal. Under Windows the daemon will never detach
+@@ -55,7 +56,7 @@
+ # Batch size for smtp-connection
+ # = 0 means bulk all mails at once
+ # > 0 means close/reopen connection after BATCH mails
+-MAILDROP_BATCH=0
++MAILDROP_BATCH=10
+
+ # TLS usage. The values available are...
+ # 0 : Don't try to us TLS
+@@ -63,7 +64,7 @@
+ # 2 : Force TLS and fail if TLS is not available
+ # If a username/password is specified for the SMTP server, it is recommended
+ # to set the value to "2" to prevent password sniffing.
+-MAILDROP_TLS=0
++MAILDROP_TLS=1
+
+ # SMTP Authentication
+ # If the login and password are provided, authentication is attempted.
Added: zope-maildrophost/trunk/debian/patches/series
===================================================================
--- zope-maildrophost/trunk/debian/patches/series (rev 0)
+++ zope-maildrophost/trunk/debian/patches/series 2008-10-20 14:08:26 UTC (rev 1290)
@@ -0,0 +1 @@
+01_config.patch
Added: zope-maildrophost/trunk/debian/postinst
===================================================================
--- zope-maildrophost/trunk/debian/postinst (rev 0)
+++ zope-maildrophost/trunk/debian/postinst 2008-10-20 14:08:26 UTC (rev 1290)
@@ -0,0 +1,23 @@
+#! /bin/sh
+set -e
+
+case "$1" in
+ configure|install)
+ queuedir="/var/spool/zope-maildrophost"
+
+ chown zope:zope "$queuedir"
+ chmod 2775 "$queuedir"
+
+ vardir="/usr/share/zope/Products/MaildropHost/var"
+ chown zope:zope "$vardir"
+ chmod 2775 "$vardir"
+
+ logfile="/var/log/zope-maildrophost.log"
+ touch "$logfile"
+ chown zope:zope "$logfile"
+ ;;
+esac
+
+#DEBHELPER#
+
+exit 0
Added: zope-maildrophost/trunk/debian/rules
===================================================================
--- zope-maildrophost/trunk/debian/rules (rev 0)
+++ zope-maildrophost/trunk/debian/rules 2008-10-20 14:08:26 UTC (rev 1290)
@@ -0,0 +1,51 @@
+#!/usr/bin/make -f
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=3
+
+# Include quilt stuff.
+include /usr/share/quilt/quilt.make
+
+build: build-stamp
+build-stamp: $(QUILT_STAMPFN)
+ dh_testdir
+ touch $@
+
+clean: unpatch
+ dh_testdir
+ dh_testroot
+ dh_clean build-stamp install-stamp
+
+install: install-stamp
+install-stamp: build-stamp
+ dh_testdir
+ dh_testroot
+ dh_clean
+ dh_installdirs
+ dh_installzope -Xmaildrop/testing -Xmaildrop/bin -XINSTALL.txt \
+ -XCHANGES.txt -XCOPYRIGHT.txt -XDEPENDENCIES.txt \
+ -XLICENSE.txt .
+ touch $@
+
+# Build architecture-independent files here.
+binary-indep: build install
+ dh_testdir
+ dh_testroot
+ dh_installdebconf
+ dh_installdocs
+ dh_installchangelogs CHANGES.txt
+ dh_installinit
+ dh_installlogrotate
+ dh_link
+ dh_compress
+ dh_fixperms
+ dh_installdeb
+ dh_gencontrol
+ dh_md5sums
+ dh_builddeb
+
+# Build architecture-dependent files here.
+binary-arch: build install
+
+binary: binary-indep binary-arch
+.PHONY: build clean install binary-indep binary-arch binary patch unpatch
Property changes on: zope-maildrophost/trunk/debian/rules
___________________________________________________________________
Name: svn:executable
+
Added: zope-maildrophost/trunk/debian/watch
===================================================================
--- zope-maildrophost/trunk/debian/watch (rev 0)
+++ zope-maildrophost/trunk/debian/watch 2008-10-20 14:08:26 UTC (rev 1290)
@@ -0,0 +1,2 @@
+version=3
+http://www.dataflake.org/software/maildrophost/maildrophost_([\d\.]+)/MaildropHost-([\d\.]+)\.tgz
Added: zope-maildrophost/trunk/debian/zope-maildrophost.init
===================================================================
--- zope-maildrophost/trunk/debian/zope-maildrophost.init (rev 0)
+++ zope-maildrophost/trunk/debian/zope-maildrophost.init 2008-10-20 14:08:26 UTC (rev 1290)
@@ -0,0 +1,116 @@
+#! /bin/sh
+### BEGIN INIT INFO
+# Provides: zope-maildrophost
+# Required-Start: $remote_fs
+# Required-Stop: $remote_fs
+# Default-Start: 2 3 4 5
+# Default-Stop: 0 1 6
+# Short-Description: Start Zope MaildropHost queue manager
+# Description: Start the Zope MaildropHost queue manager
+### END INIT INFO
+
+# Author: Jonas Meurer <jonas at freesources.org
+
+# PATH should only include /usr/* if it runs after the mountnfs.sh script
+PATH=/sbin:/usr/sbin:/bin:/usr/bin
+DESC="Zope MaildropHost queue manager"
+NAME=zope-maildrophost
+SCRIPTNAME=/etc/init.d/$NAME
+
+MAILDROP_HOME="/usr/share/zope/Products/MaildropHost"
+MAILDROP_SCRIPT="${MAILDROP_HOME}/maildrop/maildrop.py"
+MAILDROP_CONF="${MAILDROP_HOME}/config.py"
+
+PYTHON=$(sed -ne 's/^PYTHON=\"\(.*\)\"$/\1/p' "$MAILDROP_CONF") \
+ || PYTHON="python2.4"
+
+PIDFILE=$(sed -ne 's/^MAILDROP_PID_FILE=\"\(.*\)\"$/\1/p' "$MAILDROP_CONF") \
+ || PIDFILE="/var/run/zope-maildrophost.pid"
+
+# Exit if python is not available
+[ -x "$PYTHON" ] || exit 0
+
+# Exit if maildropscript is not available
+[ -f "$MAILDROP_SCRIPT" ] || exit 0
+
+# Exit if maildropconf is not available
+[ -f "$MAILDROP_CONF" ] || exit 0
+
+# Load the VERBOSE setting and other rcS variables
+. /lib/init/vars.sh
+
+# Define LSB log_* functions.
+# Depend on lsb-base (>= 3.0-6) to ensure that this file is present.
+. /lib/lsb/init-functions
+
+#
+# Function that starts the daemon/service
+#
+do_start()
+{
+ # Return
+ # 0 if daemon has been started
+ # 1 if daemon was already running
+ # 2 if daemon could not be started
+ $PYTHON $MAILDROP_SCRIPT $MAILDROP_CONF
+ RETVAL="$?"
+ return "$RETVAL"
+}
+
+#
+# Function that stops the daemon/service
+#
+do_stop()
+{
+ # Return
+ # 0 if daemon has been stopped
+ # 1 if daemon was already stopped
+ # 2 if daemon could not be stopped
+ # other if a failure occurred
+ [ -f "$PIDFILE" ] && kill -9 $(cat "$PIDFILE")
+ RETVAL="$?"
+ return "$RETVAL"
+}
+
+case "$1" in
+ start)
+ log_daemon_msg "Starting $DESC" "$NAME"
+ do_start
+ case "$?" in
+ 0|1) log_end_msg 0 ;;
+ 2) log_end_msg 1 ;;
+ esac
+ ;;
+ stop)
+ log_daemon_msg "Stopping $DESC" "$NAME"
+ do_stop
+ case "$?" in
+ 0|1) log_end_msg 0 ;;
+ 2) log_end_msg 1 ;;
+ esac
+ ;;
+ restart|force-reload)
+ log_daemon_msg "Restarting $DESC" "$NAME"
+ do_stop
+ case "$?" in
+ 0|1)
+ do_start
+ case "$?" in
+ 0) log_end_msg 0 ;;
+ 1) log_end_msg 1 ;; # Old process is still running
+ *) log_end_msg 1 ;; # Failed to start
+ esac
+ ;;
+ *)
+ # Failed to stop
+ log_end_msg 1
+ ;;
+ esac
+ ;;
+ *)
+ echo "Usage: $SCRIPTNAME {start|stop|restart|force-reload}" >&2
+ exit 3
+ ;;
+esac
+
+:
Added: zope-maildrophost/trunk/debian/zope-maildrophost.logrotate
===================================================================
--- zope-maildrophost/trunk/debian/zope-maildrophost.logrotate (rev 0)
+++ zope-maildrophost/trunk/debian/zope-maildrophost.logrotate 2008-10-20 14:08:26 UTC (rev 1290)
@@ -0,0 +1,10 @@
+/var/log/zope-maildrophost.log {
+ weekly
+ missingok
+ rotate 52
+ compress
+ delaycompress
+ notifempty
+ create 644 zope zope
+ sharedscripts
+}
More information about the pkg-zope-commits
mailing list