[79446] trunk/dports/mail

pixilla at macports.org pixilla at macports.org
Mon Jun 13 09:14:35 PDT 2011


Revision: 79446
          http://trac.macports.org/changeset/79446
Author:   pixilla at macports.org
Date:     2011-06-13 09:14:34 -0700 (Mon, 13 Jun 2011)
Log Message:
-----------
mail/amavisd-new: New port. Closes #29343

Added Paths:
-----------
    trunk/dports/mail/amavisd-new/
    trunk/dports/mail/amavisd-new/Portfile

Added: trunk/dports/mail/amavisd-new/Portfile
===================================================================
--- trunk/dports/mail/amavisd-new/Portfile	                        (rev 0)
+++ trunk/dports/mail/amavisd-new/Portfile	2011-06-13 16:14:34 UTC (rev 79446)
@@ -0,0 +1,108 @@
+# -*- coding: utf-8; mode: tcl; tab-width: 4; truncate-lines: t; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4
+# $Id$
+
+PortSystem          1.0
+
+name                amavisd-new
+version             2.6.6
+categories          mail
+maintainers         pixilla openmaintainer
+platforms           darwin
+description         amavisd-new is a high-performance interface between mailer (MTA) and content \
+                    checkers: virus scanners, and/or SpamAssassin.
+long_description    ${description} It is written in Perl for maintainability, without paying a \
+                    significant price for speed. It talks to MTA via (E)SMTP or LMTP, or by using \
+                    helper programs. Best with Postfix, fine with dual-sendmail setup and Exim v4, \
+                    works with sendmail/milter, or with any MTA as a SMTP relay. For Courier and \
+                    qmail MTA integration there is a patch in the distributed package.
+homepage            http://www.ijs.si/software/amavisd/
+master_sites        ${homepage}
+
+checksums           sha1    c350253b51f912fe3aaa88cdbda72ad031078210 \
+                    rmd160  e8c27c5c236665a373fc29b2f48d47e9c8eac89b
+
+depends_run         port:perl5 \
+                    port:p5-archive-zip \
+                    port:p5-berkeleydb \
+                    port:p5-convert-tnef \
+                    port:p5-convert-uulib \
+                    port:p5-digest-md5 \
+                    port:p5-io-compress \
+                    port:p5-io-stringy \
+                    port:p5-mail-dkim \
+                    port:p5-mailtools \
+                    port:p5-mime-tools \
+                    port:p5-mime-base64 \
+                    port:p5-net-server \
+                    port:p5-time-hires \
+                    port:p5-unix-syslog \
+                    port:p5-mail-spamassassin \
+                    port:p5-dbd-mysql \
+                    port:p5-mail-clamav \
+                    port:clamav \
+                    port:clamav-server
+
+set daemon_user     _amavisd
+set daemon_group    _amavisd
+set amavisd_home    ${prefix}/var/amavis
+
+post-patch {
+    reinplace "s|#!/usr/bin/perl|#!${prefix}/bin/perl|" \
+              ${worksrcpath}/amavisd
+    file copy ${worksrcpath}/amavisd.conf ${worksrcpath}/amavisd.conf.example
+    reinplace "s|\$daemon_user\  =\ 'vscan'|\$daemon_user\  =\ '${daemon_user}'|" \
+              ${worksrcpath}/amavisd.conf.example
+    reinplace "s|\$daemon_group\ =\ 'vscan'|\$daemon_group\  =\ '${daemon_group}'|" \
+              ${worksrcpath}/amavisd.conf.example
+    reinplace "s|#\ \$MYHOME\ =\ '/var/amavis'|\$MYHOME\ =\ '${amavisd_home}'|" \
+              ${worksrcpath}/amavisd.conf.example
+    reinplace "s|\$QUARANTINEDIR\ =\ '/var/virusmails'|\$QUARANTINEDIR\ =\ '${amavisd_home}/quarantine'|" \
+              ${worksrcpath}/amavisd.conf.example
+}
+
+use_configure       no
+
+build               {}
+
+destroot {
+    if { ![existsgroup ${daemon_group}]} {
+        addgroup ${daemon_group}
+    }
+    if { ![existsuser ${daemon_user}]} {
+        set gid ${daemon_group}
+        adduser ${daemon_user} gid=${gid} realname="AMaViS Daemon" home=${amavisd_home}
+    }
+    xinstall -m 750 -o ${daemon_user} -g ${daemon_group} \
+        ${worksrcpath}/amavisd \
+        ${destroot}${prefix}/sbin/amavisd
+    xinstall -m 640 -o root -g ${daemon_group} \
+        ${worksrcpath}/amavisd.conf.example \
+        ${destroot}${prefix}/etc/amavisd.conf.example
+    xinstall -m 750 -o ${daemon_user} -g ${daemon_group} -d \
+        ${destroot}${amavisd_home} \
+        ${destroot}${amavisd_home}/tmp \
+        ${destroot}${amavisd_home}/var \
+        ${destroot}${amavisd_home}/db \
+        ${destroot}${amavisd_home}/home \
+        ${destroot}${amavisd_home}/quarantine
+    xinstall -m 640 -o ${daemon_user} -g ${daemon_group} \
+        /dev/null \
+        ${destroot}${amavisd_home}/tmp/.turd_${name}
+    xinstall -m 640 -o ${daemon_user} -g ${daemon_group} \
+        /dev/null \
+        ${destroot}${amavisd_home}/var/.turd_${name}
+    xinstall -m 640 -o ${daemon_user} -g ${daemon_group} \
+        /dev/null \
+        ${destroot}${amavisd_home}/db/.turd_${name}
+    xinstall -m 640 -o ${daemon_user} -g ${daemon_group} \
+        /dev/null \
+        ${destroot}${amavisd_home}/home/.turd_${name}
+    xinstall -m 640 -o ${daemon_user} -g ${daemon_group} \
+        /dev/null \
+        ${destroot}${amavisd_home}/quarantine/.turd_${name}
+    copy ${worksrcpath} ${destroot}${prefix}/share/${name}
+}
+
+livecheck.url       ${master_sites}
+livecheck.type      regex
+livecheck.regex     "${name}-(\\d+\\.\\d+(\[0-9rc.\]+)?)${extract.suffix}"


Property changes on: trunk/dports/mail/amavisd-new/Portfile
___________________________________________________________________
Added: svn:keywords
   + Id
Added: svn:eol-style
   + native
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110613/c82d8ab2/attachment.html>


More information about the macports-changes mailing list