[33386] trunk/dports/mail
ryandesign at macports.org
ryandesign at macports.org
Fri Jan 25 21:16:38 PST 2008
Revision: 33386
http://trac.macosforge.org/projects/macports/changeset/33386
Author: ryandesign at macports.org
Date: 2008-01-25 21:16:35 -0800 (Fri, 25 Jan 2008)
Log Message:
-----------
qmail-spamcontrol: new port; see #13972
Added Paths:
-----------
trunk/dports/mail/qmail-spamcontrol/
trunk/dports/mail/qmail-spamcontrol/Portfile
trunk/dports/mail/qmail-spamcontrol/files/
trunk/dports/mail/qmail-spamcontrol/files/README.txt
trunk/dports/mail/qmail-spamcontrol/files/append-Makefile
trunk/dports/mail/qmail-spamcontrol/files/patch-dns.c
trunk/dports/mail/qmail-spamcontrol/files/patch-strerr_sys.c
trunk/dports/mail/qmail-spamcontrol/files/qmail-send-log-run
trunk/dports/mail/qmail-spamcontrol/files/qmail-send-run
trunk/dports/mail/qmail-spamcontrol/files/qmail-smtpd-log-run
trunk/dports/mail/qmail-spamcontrol/files/qmail-smtpd-run
trunk/dports/mail/qmail-spamcontrol/files/qmailctl
trunk/dports/mail/qmail-spamcontrol/files/run
Added: trunk/dports/mail/qmail-spamcontrol/Portfile
===================================================================
--- trunk/dports/mail/qmail-spamcontrol/Portfile (rev 0)
+++ trunk/dports/mail/qmail-spamcontrol/Portfile 2008-01-26 05:16:35 UTC (rev 33386)
@@ -0,0 +1,365 @@
+# $Id$
+
+PortSystem 1.0
+
+# Probably does not work on Mac OSX < 10.3
+
+name qmail-spamcontrol
+version 2.4.18
+categories mail
+maintainers yahoo.com:compconsultant
+platforms darwin
+
+description Qmail, enhanced Spamcontrol version
+
+long_description Robust, popular mail system.
+
+extract.mkdir yes
+
+variant relaymailfrom {}
+variant noreqbrackets {}
+variant noverp {}
+variant moreipme {}
+variant bigtodo {}
+
+homepage http://www.fehcom.de/qmail/spamcontrol.html
+
+master_sites http://www.fehcom.de/qmail/spamcontrol/:spamcontrol \
+ http://cr.yp.to/software/:qmail \
+ http://qmail.site2nd.org/:qmail \
+ http://qmail-mirror.jms1.net/:qmail \
+ http://www.qmail.org/:qmail \
+
+distfiles qmail-1.03.tar.gz:qmail \
+ spamcontrol-2418_tgz.bin:spamcontrol \
+
+checksums qmail-1.03.tar.gz \
+ md5 622f65f982e380dbe86e6574f3abcb7c \
+ sha1 18fb960481291a0503e93a94df3f6094edb7f27a \
+ rmd160 b851f273f1d365d38efd949b1efcf35768ffa30f \
+ spamcontrol-2418_tgz.bin \
+ md5 a5502cd69e573a2753e532bce8fb6c3a \
+ sha1 b2329b412a88ca2072cfb5e430efd1dd8a410b64 \
+ rmd160 4306ff09148332f5ad4cb1a3ff3b5da74b888d79 \
+
+worksrcdir qmail-1.03
+
+patchfiles patch-dns.c \
+ patch-strerr_sys.c
+
+configure.cflags -O2 -include /usr/include/errno.h -c
+build.target setup-patch
+destroot.cmd ./install-destroot
+
+# A whole lot of keepdirs, Qmail creates lots of required, empty directories
+destroot.keepdirs ${destroot}${prefix}/var/qmail/control \
+ ${destroot}${prefix}/var/qmail/users \
+ ${destroot}${prefix}/var/qmail/queue/pid \
+ ${destroot}${prefix}/var/qmail/queue/bounce \
+ ${destroot}${prefix}/var/qmail/queue/info/0 \
+ ${destroot}${prefix}/var/qmail/queue/info/1 \
+ ${destroot}${prefix}/var/qmail/queue/info/2 \
+ ${destroot}${prefix}/var/qmail/queue/info/3 \
+ ${destroot}${prefix}/var/qmail/queue/info/4 \
+ ${destroot}${prefix}/var/qmail/queue/info/5 \
+ ${destroot}${prefix}/var/qmail/queue/info/6 \
+ ${destroot}${prefix}/var/qmail/queue/info/7 \
+ ${destroot}${prefix}/var/qmail/queue/info/8 \
+ ${destroot}${prefix}/var/qmail/queue/info/9 \
+ ${destroot}${prefix}/var/qmail/queue/info/10 \
+ ${destroot}${prefix}/var/qmail/queue/info/11 \
+ ${destroot}${prefix}/var/qmail/queue/info/12 \
+ ${destroot}${prefix}/var/qmail/queue/info/13 \
+ ${destroot}${prefix}/var/qmail/queue/info/14 \
+ ${destroot}${prefix}/var/qmail/queue/info/15 \
+ ${destroot}${prefix}/var/qmail/queue/info/16 \
+ ${destroot}${prefix}/var/qmail/queue/info/17 \
+ ${destroot}${prefix}/var/qmail/queue/info/18 \
+ ${destroot}${prefix}/var/qmail/queue/info/19 \
+ ${destroot}${prefix}/var/qmail/queue/info/20 \
+ ${destroot}${prefix}/var/qmail/queue/info/21 \
+ ${destroot}${prefix}/var/qmail/queue/info/22 \
+ ${destroot}${prefix}/var/qmail/queue/remote/0 \
+ ${destroot}${prefix}/var/qmail/queue/remote/1 \
+ ${destroot}${prefix}/var/qmail/queue/remote/2 \
+ ${destroot}${prefix}/var/qmail/queue/remote/3 \
+ ${destroot}${prefix}/var/qmail/queue/remote/4 \
+ ${destroot}${prefix}/var/qmail/queue/remote/5 \
+ ${destroot}${prefix}/var/qmail/queue/remote/6 \
+ ${destroot}${prefix}/var/qmail/queue/remote/7 \
+ ${destroot}${prefix}/var/qmail/queue/remote/8 \
+ ${destroot}${prefix}/var/qmail/queue/remote/9 \
+ ${destroot}${prefix}/var/qmail/queue/remote/10 \
+ ${destroot}${prefix}/var/qmail/queue/remote/11 \
+ ${destroot}${prefix}/var/qmail/queue/remote/12 \
+ ${destroot}${prefix}/var/qmail/queue/remote/13 \
+ ${destroot}${prefix}/var/qmail/queue/remote/14 \
+ ${destroot}${prefix}/var/qmail/queue/remote/15 \
+ ${destroot}${prefix}/var/qmail/queue/remote/16 \
+ ${destroot}${prefix}/var/qmail/queue/remote/17 \
+ ${destroot}${prefix}/var/qmail/queue/remote/18 \
+ ${destroot}${prefix}/var/qmail/queue/remote/19 \
+ ${destroot}${prefix}/var/qmail/queue/remote/20 \
+ ${destroot}${prefix}/var/qmail/queue/remote/21 \
+ ${destroot}${prefix}/var/qmail/queue/remote/22 \
+ ${destroot}${prefix}/var/qmail/queue/local/0 \
+ ${destroot}${prefix}/var/qmail/queue/local/1 \
+ ${destroot}${prefix}/var/qmail/queue/local/2 \
+ ${destroot}${prefix}/var/qmail/queue/local/3 \
+ ${destroot}${prefix}/var/qmail/queue/local/4 \
+ ${destroot}${prefix}/var/qmail/queue/local/5 \
+ ${destroot}${prefix}/var/qmail/queue/local/6 \
+ ${destroot}${prefix}/var/qmail/queue/local/7 \
+ ${destroot}${prefix}/var/qmail/queue/local/8 \
+ ${destroot}${prefix}/var/qmail/queue/local/9 \
+ ${destroot}${prefix}/var/qmail/queue/local/10 \
+ ${destroot}${prefix}/var/qmail/queue/local/11 \
+ ${destroot}${prefix}/var/qmail/queue/local/12 \
+ ${destroot}${prefix}/var/qmail/queue/local/13 \
+ ${destroot}${prefix}/var/qmail/queue/local/14 \
+ ${destroot}${prefix}/var/qmail/queue/local/15 \
+ ${destroot}${prefix}/var/qmail/queue/local/16 \
+ ${destroot}${prefix}/var/qmail/queue/local/17 \
+ ${destroot}${prefix}/var/qmail/queue/local/18 \
+ ${destroot}${prefix}/var/qmail/queue/local/19 \
+ ${destroot}${prefix}/var/qmail/queue/local/20 \
+ ${destroot}${prefix}/var/qmail/queue/local/21 \
+ ${destroot}${prefix}/var/qmail/queue/local/22 \
+ ${destroot}${prefix}/var/qmail/queue/mess/0 \
+ ${destroot}${prefix}/var/qmail/queue/mess/1 \
+ ${destroot}${prefix}/var/qmail/queue/mess/2 \
+ ${destroot}${prefix}/var/qmail/queue/mess/3 \
+ ${destroot}${prefix}/var/qmail/queue/mess/4 \
+ ${destroot}${prefix}/var/qmail/queue/mess/5 \
+ ${destroot}${prefix}/var/qmail/queue/mess/6 \
+ ${destroot}${prefix}/var/qmail/queue/mess/7 \
+ ${destroot}${prefix}/var/qmail/queue/mess/8 \
+ ${destroot}${prefix}/var/qmail/queue/mess/9 \
+ ${destroot}${prefix}/var/qmail/queue/mess/10 \
+ ${destroot}${prefix}/var/qmail/queue/mess/11 \
+ ${destroot}${prefix}/var/qmail/queue/mess/12 \
+ ${destroot}${prefix}/var/qmail/queue/mess/13 \
+ ${destroot}${prefix}/var/qmail/queue/mess/14 \
+ ${destroot}${prefix}/var/qmail/queue/mess/15 \
+ ${destroot}${prefix}/var/qmail/queue/mess/16 \
+ ${destroot}${prefix}/var/qmail/queue/mess/17 \
+ ${destroot}${prefix}/var/qmail/queue/mess/18 \
+ ${destroot}${prefix}/var/qmail/queue/mess/19 \
+ ${destroot}${prefix}/var/qmail/queue/mess/20 \
+ ${destroot}${prefix}/var/qmail/queue/mess/21 \
+ ${destroot}${prefix}/var/qmail/queue/mess/22
+
+post-extract {
+
+ # Merge Spamcontrol source with Qmail source
+ foreach file [glob ${worksrcpath}/qmail-1.03/*] {
+ file rename ${file} ${worksrcpath}/
+ }
+ file delete ${worksrcpath}/qmail-1.03
+
+ # Create an install file to install into destroot since
+ # destroot is not supported by qmail
+ file copy ${worksrcpath}/conf-qmail ${worksrcpath}/conf-destroot
+ reinplace "s|\/var\/qmail|${destroot}${prefix}/var/qmail|g" \
+ ${worksrcpath}/conf-destroot
+ file copy ${worksrcpath}/install.c ${worksrcpath}/install-destroot.c
+
+ # Change live install dir to reflect the prefix
+ reinplace "s|\/var\/qmail|${prefix}/var/qmail|g" \
+ ${worksrcpath}/conf-qmail
+}
+
+post-patch {
+ # Apply Spamcontrol patches
+ foreach file [glob ${worksrcpath}/*.patch] {
+ system "patch -p2 <${file}"
+ }
+
+ # Append our commands for making a destroot installer
+ # This is because Spamcontrol and us needs to patch Makefile
+ system "cat ${filespath}/append-Makefile >>${worksrcpath}/Makefile"
+
+ # Handle the variants, disable via source code define change
+ foreach file [glob ${worksrcpath}/*c] {
+ if {![variant_isset relaymailfrom]} {
+ reinplace "s|^#define RELAYMAILFROM|\/* #define RELAYMAILFROM *\/|g" \
+ ${file}
+ }
+ if {[variant_isset noreqbrackets]} {
+ reinplace "s|^#define REQBRACKETS|\/* #define REQBRACKETS *\/|g" \
+ ${file}
+ }
+ if {[variant_isset noverp]} {
+ reinplace "s|^#define VERP|\/* #define VERP *\/|g" \
+ ${file}
+ }
+ if {![variant_isset moreipme]} {
+ reinplace "s|^#define MOREIPME|\/* #define MOREIPME *\/|g" \
+ ${file}
+ }
+ if {![variant_isset bigtodo]} {
+ reinplace "s|^#define BIGTODO|\/* #define BIGTODO *\/|g" \
+ ${file}
+ }
+ }
+}
+
+configure {
+
+ # The qmail users and groups are required before compilation
+ addgroup qmail gid=2107
+ addgroup nofiles gid=2108
+ adduser alias uid=7790 gid=[existsgroup nofiles] realname=Qmail-alias-user home=${prefix}/var/qmail shell=/usr/bin/true
+ adduser qmaild uid=7791 gid=[existsgroup nofiles] realname=Qmail-SMTP-user home=${prefix}/var/qmail shell=/usr/bin/true
+ adduser qmaill uid=7792 gid=[existsgroup nofiles] realname=Qmail-log-user home=${prefix}/var/qmail shell=/usr/bin/true
+ adduser qmailp uid=7793 gid=[existsgroup nofiles] realname=Qmail-password-user home=${prefix}/var/qmail shell=/usr/bin/true
+ adduser qmailq uid=7794 gid=[existsgroup qmail] realname=Qmail-queue-user home=${prefix}/var/qmail shell=/usr/bin/true
+ adduser qmailr uid=7795 gid=[existsgroup qmail] realname=Qmail-remote-user home=${prefix}/var/qmail shell=/usr/bin/true
+ adduser qmails uid=7796 gid=[existsgroup qmail] realname=Qmail-send-user home=${prefix}/var/qmail shell=/usr/bin/true
+}
+
+post-destroot {
+ # Minimal requirements per Qmail install doc
+ touch ${destroot}${prefix}/var/qmail/alias/.qmail-postmaster
+ touch ${destroot}${prefix}/var/qmail/alias/.qmail-mailer-daemon
+ touch ${destroot}${prefix}/var/qmail/alias/.qmail-root
+
+ # Create the log directories
+ file mkdir ${destroot}${prefix}/var/log/qmail
+ file mkdir ${destroot}${prefix}/var/log/qmail/smtpd
+ system "chown -R qmaill ${destroot}${prefix}/var/log/qmail"
+ touch ${destroot}${prefix}/var/log/qmail/smtpd/.turd_qmail-spamcontrol
+
+ # Copy example files
+ file mkdir ${destroot}${prefix}/var/qmail/samples
+ file copy ${filespath}/qmailctl ${destroot}${prefix}/var/qmail/samples/qmailctl
+ file copy ${filespath}/run ${destroot}${prefix}/var/qmail/samples/run
+ file copy ${filespath}/README.txt ${destroot}${prefix}/var/qmail/samples/README.txt
+ file copy ${filespath}/qmail-send-run ${destroot}${prefix}/var/qmail/samples/qmail-send-run
+ file copy ${filespath}/qmail-send-log-run ${destroot}${prefix}/var/qmail/samples/qmail-send-log-run
+ file copy ${filespath}/qmail-smtpd-run ${destroot}${prefix}/var/qmail/samples/qmail-smtpd-run
+ file copy ${filespath}/qmail-smtpd-log-run ${destroot}${prefix}/var/qmail/samples/qmail-smtpd-log-run
+
+ # Additional Spamcontrol files
+ file mkdir ${destroot}${prefix}/var/qmail/scripts
+ file copy ${worksrcpath}/qmail-alias2recipients ${destroot}${prefix}/var/qmail/scripts
+ file copy ${worksrcpath}/qmail-users2recipients ${destroot}${prefix}/var/qmail/scripts
+ file copy ${worksrcpath}/qmail-pwd2recipients ${destroot}${prefix}/var/qmail/scripts
+ file copy ${worksrcpath}/qmail-vpopmail2recipients ${destroot}${prefix}/var/qmail/scripts
+ file copy ${worksrcpath}/conf-spamcontrol ${destroot}${prefix}/var/qmail/doc
+ file copy ${worksrcpath}/ucspi-ssl-0.70_ucspitls-0.4.patch_ ${destroot}${prefix}/var/qmail/doc
+ file copy ${worksrcpath}/clamav-0.90.1_output.patch_ ${destroot}${prefix}/var/qmail/doc
+ file copy ${worksrcpath}/Makefile.djbdns ${destroot}${prefix}/var/qmail/doc
+ file copy ${worksrcpath}/badmailfrom ${destroot}${prefix}/var/qmail/doc
+ file copy ${worksrcpath}/badmimetypes ${destroot}${prefix}/var/qmail/doc
+ file copy ${worksrcpath}/badloadertypes ${destroot}${prefix}/var/qmail/doc
+ file copy ${worksrcpath}/badrcptto ${destroot}${prefix}/var/qmail/doc
+ file copy ${worksrcpath}/tarpitcount ${destroot}${prefix}/var/qmail/doc
+ file copy ${worksrcpath}/install_spamcontrol.sh ${destroot}${prefix}/var/qmail/doc
+ file copy ${worksrcpath}/README_spamcontrol.html ${destroot}${prefix}/var/qmail/doc
+ file copy ${worksrcpath}/README.wildmat ${destroot}${prefix}/var/qmail/doc
+ file copy ${worksrcpath}/README.moreipme ${destroot}${prefix}/var/qmail/doc
+ file copy ${worksrcpath}/README.bigtodo ${destroot}${prefix}/var/qmail/doc
+ file copy ${worksrcpath}/README.qmailqueue ${destroot}${prefix}/var/qmail/doc
+ file copy ${worksrcpath}/README.bouncemaxbytes ${destroot}${prefix}/var/qmail/doc
+ file copy ${worksrcpath}/README.doublebouncetrim ${destroot}${prefix}/var/qmail/doc
+ file copy ${worksrcpath}/README.recipients ${destroot}${prefix}/var/qmail/doc
+ file copy ${worksrcpath}/README.djbdns ${destroot}${prefix}/var/qmail/doc
+ file copy ${worksrcpath}/INSTALL.spamcontrol ${destroot}${prefix}/var/qmail/doc
+ file copy ${worksrcpath}/HISTORY.spamcontrol ${destroot}${prefix}/var/qmail/doc
+ file copy ${worksrcpath}/FILES.spamcontrol ${destroot}${prefix}/var/qmail/doc
+ file copy ${worksrcpath}/LICENSE.spamcontrol ${destroot}${prefix}/var/qmail/doc
+ file copy ${worksrcpath}/TODO.spamcontrol ${destroot}${prefix}/var/qmail/doc
+ file copy ${worksrcpath}/RELEASE_22.spamcontrol ${destroot}${prefix}/var/qmail/doc
+ file copy ${worksrcpath}/RELEASE_23.spamcontrol ${destroot}${prefix}/var/qmail/doc
+ file copy ${worksrcpath}/RELEASE_24.spamcontrol ${destroot}${prefix}/var/qmail/doc
+ file copy ${worksrcpath}/LOGGING.spamcontrol ${destroot}${prefix}/var/qmail/doc
+ file copy ${worksrcpath}/SMTPREPLY.spamcontrol ${destroot}${prefix}/var/qmail/doc
+ file copy ${worksrcpath}/README.mav ${destroot}${prefix}/var/qmail/doc
+ file copy ${worksrcpath}/PROPOSAL.mav ${destroot}${prefix}/var/qmail/doc
+ file copy ${worksrcpath}/README.clamav ${destroot}${prefix}/var/qmail/doc
+
+ # User must run this
+ file copy ${worksrcpath}/config-fast ${destroot}${prefix}/var/qmail/scripts/config-fast
+
+ # Per Qmail install doc
+ file copy ${destroot}/${prefix}/var/qmail/boot/home ${destroot}${prefix}/var/qmail/rc
+
+ # Variant causes more empty directories to be required
+ if {[variant_isset bigtodo]} {
+ touch ${destroot}${prefix}/var/qmail/queue/todo/0/.turd_qmail-spamcontrol
+ touch ${destroot}${prefix}/var/qmail/queue/todo/1/.turd_qmail-spamcontrol
+ touch ${destroot}${prefix}/var/qmail/queue/todo/2/.turd_qmail-spamcontrol
+ touch ${destroot}${prefix}/var/qmail/queue/todo/3/.turd_qmail-spamcontrol
+ touch ${destroot}${prefix}/var/qmail/queue/todo/4/.turd_qmail-spamcontrol
+ touch ${destroot}${prefix}/var/qmail/queue/todo/5/.turd_qmail-spamcontrol
+ touch ${destroot}${prefix}/var/qmail/queue/todo/6/.turd_qmail-spamcontrol
+ touch ${destroot}${prefix}/var/qmail/queue/todo/7/.turd_qmail-spamcontrol
+ touch ${destroot}${prefix}/var/qmail/queue/todo/8/.turd_qmail-spamcontrol
+ touch ${destroot}${prefix}/var/qmail/queue/todo/9/.turd_qmail-spamcontrol
+ touch ${destroot}${prefix}/var/qmail/queue/todo/10/.turd_qmail-spamcontrol
+ touch ${destroot}${prefix}/var/qmail/queue/todo/11/.turd_qmail-spamcontrol
+ touch ${destroot}${prefix}/var/qmail/queue/todo/12/.turd_qmail-spamcontrol
+ touch ${destroot}${prefix}/var/qmail/queue/todo/13/.turd_qmail-spamcontrol
+ touch ${destroot}${prefix}/var/qmail/queue/todo/14/.turd_qmail-spamcontrol
+ touch ${destroot}${prefix}/var/qmail/queue/todo/15/.turd_qmail-spamcontrol
+ touch ${destroot}${prefix}/var/qmail/queue/todo/16/.turd_qmail-spamcontrol
+ touch ${destroot}${prefix}/var/qmail/queue/todo/17/.turd_qmail-spamcontrol
+ touch ${destroot}${prefix}/var/qmail/queue/todo/18/.turd_qmail-spamcontrol
+ touch ${destroot}${prefix}/var/qmail/queue/todo/19/.turd_qmail-spamcontrol
+ touch ${destroot}${prefix}/var/qmail/queue/todo/20/.turd_qmail-spamcontrol
+ touch ${destroot}${prefix}/var/qmail/queue/todo/21/.turd_qmail-spamcontrol
+ touch ${destroot}${prefix}/var/qmail/queue/todo/22/.turd_qmail-spamcontrol
+ touch ${destroot}${prefix}/var/qmail/queue/intd/0/.turd_qmail-spamcontrol
+ touch ${destroot}${prefix}/var/qmail/queue/intd/1/.turd_qmail-spamcontrol
+ touch ${destroot}${prefix}/var/qmail/queue/intd/2/.turd_qmail-spamcontrol
+ touch ${destroot}${prefix}/var/qmail/queue/intd/3/.turd_qmail-spamcontrol
+ touch ${destroot}${prefix}/var/qmail/queue/intd/4/.turd_qmail-spamcontrol
+ touch ${destroot}${prefix}/var/qmail/queue/intd/5/.turd_qmail-spamcontrol
+ touch ${destroot}${prefix}/var/qmail/queue/intd/6/.turd_qmail-spamcontrol
+ touch ${destroot}${prefix}/var/qmail/queue/intd/7/.turd_qmail-spamcontrol
+ touch ${destroot}${prefix}/var/qmail/queue/intd/8/.turd_qmail-spamcontrol
+ touch ${destroot}${prefix}/var/qmail/queue/intd/9/.turd_qmail-spamcontrol
+ touch ${destroot}${prefix}/var/qmail/queue/intd/10/.turd_qmail-spamcontrol
+ touch ${destroot}${prefix}/var/qmail/queue/intd/11/.turd_qmail-spamcontrol
+ touch ${destroot}${prefix}/var/qmail/queue/intd/12/.turd_qmail-spamcontrol
+ touch ${destroot}${prefix}/var/qmail/queue/intd/13/.turd_qmail-spamcontrol
+ touch ${destroot}${prefix}/var/qmail/queue/intd/14/.turd_qmail-spamcontrol
+ touch ${destroot}${prefix}/var/qmail/queue/intd/15/.turd_qmail-spamcontrol
+ touch ${destroot}${prefix}/var/qmail/queue/intd/16/.turd_qmail-spamcontrol
+ touch ${destroot}${prefix}/var/qmail/queue/intd/17/.turd_qmail-spamcontrol
+ touch ${destroot}${prefix}/var/qmail/queue/intd/18/.turd_qmail-spamcontrol
+ touch ${destroot}${prefix}/var/qmail/queue/intd/19/.turd_qmail-spamcontrol
+ touch ${destroot}${prefix}/var/qmail/queue/intd/20/.turd_qmail-spamcontrol
+ touch ${destroot}${prefix}/var/qmail/queue/intd/21/.turd_qmail-spamcontrol
+ touch ${destroot}${prefix}/var/qmail/queue/intd/22/.turd_qmail-spamcontrol
+ }
+ if {![variant_isset bigtodo]} {
+ touch ${destroot}${prefix}/var/qmail/queue/todo/.turd_qmail-spamcontrol
+ touch ${destroot}${prefix}/var/qmail/queue/intd/.turd_qmail-spamcontrol
+ }
+}
+
+post-install {
+ui_msg "\n
+To control qmail, highly recommended are the daemontools and ucspi-tcp ports
+A good reference for setting up qmail is www.lifewithqmail.org
+This port includes some sample files based on the Life with Qmail web site
+They can be found in ${prefix}/var/qmail/samples
+Also look at www.fehcom.de/qmail/spamcontrol.html for further info
+The fehcom site has doc for all the stuff added to the base qmail software
+There are numerous configuration options to qmail, please read all the doc!
+******************************
+For now, you must run ${prefix}/var/qmail/scripts/config-fast your.domain.name
+to set up some files for your mail server. your.domain.name should point
+to this machine you are installing qmail on.
+******************************
+\n"
+}
+
+post-activate {
+
+ # Remove the turd files
+ system "cd ${prefix}/var/qmail; find . -name .turd_qmail-spamcontrol -delete"
+ system "rm ${destroot}${prefix}/var/log/qmail/smtpd/.turd_qmail-spamcontrol"
+}
Property changes on: trunk/dports/mail/qmail-spamcontrol/Portfile
___________________________________________________________________
Name: svn:keywords
+ Id
Name: svn:eol-style
+ native
Added: trunk/dports/mail/qmail-spamcontrol/files/README.txt
===================================================================
--- trunk/dports/mail/qmail-spamcontrol/files/README.txt (rev 0)
+++ trunk/dports/mail/qmail-spamcontrol/files/README.txt 2008-01-26 05:16:35 UTC (rev 33386)
@@ -0,0 +1,22 @@
+The files in this directory are samples of the files referenced on the
+www.lifewithqmail.org web site. They should be moved and renamed accordingly.
+They require the use of several ports - daemontools and ucspi-tcp.
+If you are following the Life with Qmail directions, then you would rename and
+move the files like this:
+
+qmailctl -> QMAIL HOME/bin/qmailctl
+run -> QMAIL HOME/run
+qmail-send-run -> QMAIL HOME/supervise/qmail-send/run
+qmail-send-log-run -> QMAIL HOME/supervise/qmail-send/log/run
+qmail-smtpd-run -> QMAIL HOME/supervise/qmail-smtpd/run
+qmail-smtpd-log-run -> QMAIL HOME/supervise/qmail-smtpd/log/run
+
+You will definitely want to at least review the Life with Qmail site carefully
+if this is your first experience with Qmail. Also, this is the enhanced version
+of Qmail with the SPAMCONTROL patches from www.fehcom.de, you will want to read
+that site careifully to see what features you may want to take advantage of.
+
+The files here are samples only, modify and use them as you see fit!
+The qmail-smtpd-run file has an example of using some Spamcontrol add-ons as
+well a using some rbl spam lists. It also uses fixcrio which is part of
+ucspi-tcp to fix up buggy email software.
Property changes on: trunk/dports/mail/qmail-spamcontrol/files/README.txt
___________________________________________________________________
Name: svn:eol-style
+ LF
Added: trunk/dports/mail/qmail-spamcontrol/files/append-Makefile
===================================================================
--- trunk/dports/mail/qmail-spamcontrol/files/append-Makefile (rev 0)
+++ trunk/dports/mail/qmail-spamcontrol/files/append-Makefile 2008-01-26 05:16:35 UTC (rev 33386)
@@ -0,0 +1,21 @@
+
+setup-patch: it man install-destroot
+
+auto_destroot.c: \
+auto-str conf-destroot
+ ./auto-str auto_qmail `head -1 conf-destroot` > auto_destroot.c
+
+auto_destroot.o: \
+compile auto_destroot.c
+ ./compile auto_destroot.c
+
+install-destroot: \
+load install-destroot.o fifo.o hier.o auto_destroot.o auto_split.o auto_uids.o \
+strerr.a substdio.a open.a error.a str.a fs.a
+ ./load install-destroot fifo.o hier.o auto_destroot.o auto_split.o \
+auto_uids.o strerr.a substdio.a open.a error.a str.a fs.a
+
+install-destroot.o: \
+compile install-destroot.c substdio.h strerr.h error.h open.h readwrite.h \
+exit.h
+ ./compile install-destroot.c
Added: trunk/dports/mail/qmail-spamcontrol/files/patch-dns.c
===================================================================
--- trunk/dports/mail/qmail-spamcontrol/files/patch-dns.c (rev 0)
+++ trunk/dports/mail/qmail-spamcontrol/files/patch-dns.c 2008-01-26 05:16:35 UTC (rev 33386)
@@ -0,0 +1,11 @@
+diff -ur qmail-1.03.orig/dns.c qmail-1.03/dns.c
+--- dns.c.orig Mon Jun 15 06:53:16 1998
++++ dns.c Sat Jun 5 15:52:46 2004
+@@ -2,6 +2,7 @@
+ #include <netdb.h>
+ #include <sys/types.h>
+ #include <netinet/in.h>
++#include <nameser8_compat.h>
+ #include <arpa/nameser.h>
+ #include <resolv.h>
+ #include <errno.h>
Added: trunk/dports/mail/qmail-spamcontrol/files/patch-strerr_sys.c
===================================================================
--- trunk/dports/mail/qmail-spamcontrol/files/patch-strerr_sys.c (rev 0)
+++ trunk/dports/mail/qmail-spamcontrol/files/patch-strerr_sys.c 2008-01-26 05:16:35 UTC (rev 33386)
@@ -0,0 +1,12 @@
+diff -ur qmail-1.03.orig/strerr_sys.c qmail-1.03/strerr_sys.c
+--- strerr_sys.c.orig Mon Jun 15 06:53:16 1998
++++ strerr_sys.c Sat Jun 5 15:52:46 2004
+@@ -1,7 +1,7 @@
+ #include "error.h"
+ #include "strerr.h"
+
+-struct strerr strerr_sys;
++struct strerr strerr_sys = {0,0,0,0};
+
+ void strerr_sysinit()
+ {
Added: trunk/dports/mail/qmail-spamcontrol/files/qmail-send-log-run
===================================================================
--- trunk/dports/mail/qmail-spamcontrol/files/qmail-send-log-run (rev 0)
+++ trunk/dports/mail/qmail-spamcontrol/files/qmail-send-log-run 2008-01-26 05:16:35 UTC (rev 33386)
@@ -0,0 +1,2 @@
+#!/bin/sh
+exec /opt/local/sbin/setuidgid qmaill /opt/local/sbin/multilog t /opt/local/var/log/qmail
Added: trunk/dports/mail/qmail-spamcontrol/files/qmail-send-run
===================================================================
--- trunk/dports/mail/qmail-spamcontrol/files/qmail-send-run (rev 0)
+++ trunk/dports/mail/qmail-spamcontrol/files/qmail-send-run 2008-01-26 05:16:35 UTC (rev 33386)
@@ -0,0 +1,2 @@
+#!/bin/sh
+exec /opt/local/var/qmail/rc
Added: trunk/dports/mail/qmail-spamcontrol/files/qmail-smtpd-log-run
===================================================================
--- trunk/dports/mail/qmail-spamcontrol/files/qmail-smtpd-log-run (rev 0)
+++ trunk/dports/mail/qmail-spamcontrol/files/qmail-smtpd-log-run 2008-01-26 05:16:35 UTC (rev 33386)
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+exec /opt/local/sbin/setuidgid qmaill /opt/local/sbin/multilog t /opt/local/var/log/qmail/smtpd
Added: trunk/dports/mail/qmail-spamcontrol/files/qmail-smtpd-run
===================================================================
--- trunk/dports/mail/qmail-spamcontrol/files/qmail-smtpd-run (rev 0)
+++ trunk/dports/mail/qmail-spamcontrol/files/qmail-smtpd-run 2008-01-26 05:16:35 UTC (rev 33386)
@@ -0,0 +1,37 @@
+#!/bin/sh
+
+export TARPITCOUNT="3"
+export TARPITDELAY="10"
+export MFDNSCHECK=""
+QMAILDUID=`id -u qmaild`
+NOFILESGID=`id -g qmaild`
+MAXSMTPD=`cat /opt/local/var/qmail/control/concurrencyincoming`
+LOCAL=`head -1 /opt/local/var/qmail/control/me`
+
+if [ -z "$QMAILDUID" -o -z "$NOFILESGID" -o -z "$MAXSMTPD" -o -z "$LOCAL" ]; then
+ echo QMAILDUID, NOFILESGID, MAXSMTPD, or LOCAL is unset in
+ echo /opt/local/var/qmail/supervise/qmail-smtpd/run
+ exit 1
+fi
+
+if [ ! -f /opt/local/var/qmail/control/rcpthosts ]; then
+ echo "No /opt/local/var/qmail/control/rcpthosts"
+ echo "Refusing to start SMTP listener because it'll create an open relay"
+ exit 1
+fi
+
+exec /opt/local/sbin/softlimit -m 30000000 \
+ /opt/local/bin/tcpserver -v -R -l "$LOCAL" -x /opt/local/etc/tcp.smtp.cdb -c "$MAXSMTPD" \
+ -u "$QMAILDUID" -g "$NOFILESGID" 0 smtp \
+ /opt/local/bin/rblsmtpd -t 300 \
+ -b -r l1.spews.dnsbl.sorbs.net \
+ -b -r misc.dnsbl.sorbs.net \
+ -b -r http.dnsbl.sorbs.net \
+ -b -r socks.dnsbl.sorbs.net \
+ -b -r smtp.dnsbl.sorbs.net \
+ -b -r web.dnsbl.sorbs.net \
+ -b -r zombie.dnsbl.sorbs.net \
+ -b -r dul.dnsbl.sorbs.net \
+ -b -r rhsbl.sorbs.net \
+ -b -r sbl-xbl.spamhaus.org \
+ /opt/local/bin/fixcrio /opt/local/var/qmail/bin/qmail-smtpd 2>&1
Added: trunk/dports/mail/qmail-spamcontrol/files/qmailctl
===================================================================
--- trunk/dports/mail/qmail-spamcontrol/files/qmailctl (rev 0)
+++ trunk/dports/mail/qmail-spamcontrol/files/qmailctl 2008-01-26 05:16:35 UTC (rev 33386)
@@ -0,0 +1,105 @@
+#!/bin/sh
+
+PATH=/opt/local/var/qmail/bin:/opt/local/bin:/opt/local/sbin:/bin:/bin:/usr/bin:/usr/local/bin:/usr/local/sbin
+export PATH
+
+QMAILDUID=`id -u qmaild`
+NOFILESGID=`id -g qmaild`
+
+case "$1" in
+ start)
+ echo "Starting qmail"
+ if svok /opt/local/var/service/qmail-send ; then
+ svc -u /opt/local/var/service/qmail-send /opt/local/var/service/qmail-send/log
+ else
+ echo "qmail-send supervise not running"
+ fi
+ if svok /opt/local/var/service/qmail-smtpd ; then
+ svc -u /opt/local/var/service/qmail-smtpd /opt/local/var/service/qmail-smtpd/log
+ else
+ echo "qmail-smtpd supervise not running"
+ fi
+ if [ -d /var/lock/subsys ]; then
+ touch /var/lock/subsys/qmail
+ fi
+ ;;
+ stop)
+ echo "Stopping qmail..."
+ echo " qmail-smtpd"
+ svc -d /opt/local/var/service/qmail-smtpd /opt/local/var/service/qmail-smtpd/log
+ echo " qmail-send"
+ svc -d /opt/local/var/service/qmail-send /opt/local/var/service/qmail-send/log
+ if [ -f /opt/local/var/lock/subsys/qmail ]; then
+ rm /var/lock/subsys/qmail
+ fi
+ ;;
+ stat)
+ svstat /opt/local/var/service/qmail-send
+ svstat /opt/local/var/service/qmail-send/log
+ svstat /opt/local/var/service/qmail-smtpd
+ svstat /opt/local/var/service/qmail-smtpd/log
+ qmail-qstat
+ ;;
+ doqueue|alrm|flush)
+ echo "Flushing timeout table and sending ALRM signal to qmail-send."
+ /opt/local/var/qmail/bin/qmail-tcpok
+ svc -a /opt/local/var/service/qmail-send
+ ;;
+ queue)
+ qmail-qstat
+ qmail-qread
+ ;;
+ reload|hup)
+ echo "Sending HUP signal to qmail-send."
+ svc -h /opt/local/var/service/qmail-send
+ ;;
+ pause)
+ echo "Pausing qmail-send"
+ svc -p /opt/local/var/service/qmail-send
+ echo "Pausing qmail-smtpd"
+ svc -p /opt/local/var/service/qmail-smtpd
+ ;;
+ cont)
+ echo "Continuing qmail-send"
+ svc -c /opt/local/var/service/qmail-send
+ echo "Continuing qmail-smtpd"
+ svc -c /opt/local/var/service/qmail-smtpd
+ ;;
+ restart)
+ echo "Restarting qmail:"
+ echo "* Stopping qmail-smtpd."
+ svc -d /opt/local/var/service/qmail-smtpd /opt/local/var/service/qmail-smtpd/log
+ echo "* Sending qmail-send SIGTERM and restarting."
+ svc -t /opt/local/var/service/qmail-send /opt/local/var/service/qmail-send/log
+ echo "* Restarting qmail-smtpd."
+ svc -u /opt/local/var/service/qmail-smtpd /opt/local/var/service/qmail-smtpd/log
+ ;;
+ cdb)
+ tcprules /opt/local/etc/tcp.smtp.cdb /opt/local/etc/tcp.smtp.tmp < /opt/local/etc/tcp.smtp
+ chmod 644 /opt/local/etc/tcp.smtp.cdb
+ echo "Reloaded /opt/local/etc/tcp.smtp."
+ ;;
+ help)
+ cat <<HELP
+ stop -- stops mail service (smtp connections refused, nothing goes out)
+ start -- starts mail service (smtp connection accepted, mail can go out)
+ pause -- temporarily stops mail service (connections accepted, nothing leaves)
+ cont -- continues paused mail service
+ stat -- displays status of mail service
+ cdb -- rebuild the tcpserver cdb file for smtp
+restart -- stops and restarts smtp, sends qmail-send a TERM & restarts it
+doqueue -- schedules queued messages for immediate delivery
+ reload -- sends qmail-send HUP, rereading locals and virtualdomains
+ queue -- shows status of queue
+ alrm -- same as doqueue
+ flush -- same as doqueue
+ hup -- same as reload
+HELP
+ ;;
+ *)
+ echo "Usage: $0 {start|stop|restart|doqueue|flush|reload|stat|pause|cont|cdb|queue|help}"
+ exit 1
+ ;;
+esac
+
+exit 0
Added: trunk/dports/mail/qmail-spamcontrol/files/run
===================================================================
--- trunk/dports/mail/qmail-spamcontrol/files/run (rev 0)
+++ trunk/dports/mail/qmail-spamcontrol/files/run 2008-01-26 05:16:35 UTC (rev 33386)
@@ -0,0 +1,2 @@
+#!/bin/sh
+exec /opt/local/var/qmail/rc
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20080125/aaf5b31d/attachment-0001.html
More information about the macports-changes
mailing list