[46600] trunk/dports/perl/p5-mail-spamassassin/Portfile

simon at macports.org simon at macports.org
Sun Feb 8 13:49:33 PST 2009


Revision: 46600
          http://trac.macports.org/changeset/46600
Author:   simon at macports.org
Date:     2009-02-08 13:49:31 -0800 (Sun, 08 Feb 2009)
Log Message:
-----------
perl/p5-mail-spamassassin: Many improvements by compconsultant at yahoo.com, closes #18371. Thanks.

Modified Paths:
--------------
    trunk/dports/perl/p5-mail-spamassassin/Portfile

Modified: trunk/dports/perl/p5-mail-spamassassin/Portfile
===================================================================
--- trunk/dports/perl/p5-mail-spamassassin/Portfile	2009-02-08 20:58:43 UTC (rev 46599)
+++ trunk/dports/perl/p5-mail-spamassassin/Portfile	2009-02-08 21:49:31 UTC (rev 46600)
@@ -4,7 +4,7 @@
 PortGroup           perl5 1.0
 
 perl5.setup         Mail-SpamAssassin 3.2.5
-revision            1
+revision            2
 categories-append   mail
 platforms           darwin
 maintainers         simon openmaintainer
@@ -28,11 +28,23 @@
                     port:p5-net-dns \
                     port:p5-net-ident \
                     port:p5-archive-tar \
-                    port:p5-lwp-authen-wsse
+                    port:p5-io-compress-zlib \
+                    port:p5-compress-zlib \
+                    port:p5-ip-country \
+                    port:p5-time-hires \
+                    port:p5-mail-dkim \
+                    port:p5-mail-spf \
+                    port:p5-libwww-perl \
+                    port:p5-mime-base64
 
 startupitem.create      yes
 startupitem.name        spamd
-startupitem.executable  "${prefix}/bin/spamd"
+if {[variant_isset vpopmail]} {
+    startupitem.executable  ${prefix}/bin/spamd -l -v -u vpopmail
+    patchfiles-append       patch-spamd.raw.diff
+} else {
+    startupitem.executable  ${prefix}/bin/spamd -l
+}
 
 patchfiles          patch-Makefile.PL.diff
 
@@ -57,31 +69,53 @@
     foreach file ${conf_files} {
         file rename ${etc}/${file} ${etc}/${file}.sample
     }
+
+    set docdir ${prefix}/share/doc/spamassassin
+    xinstall -d ${destroot}${docdir}
+    xinstall -m 0644 -W ${worksrcpath} \
+        README CREDITS INSTALL LICENSE NOTICE \
+        PACKAGING TRADEMARK UPGRADE USAGE changes \
+        ${destroot}${docdir}
+    xinstall -d ${destroot}${docdir}/sql
+    xinstall -m 0644 -W ${worksrcpath}/sql \
+        README README.AWL README.bayes awl_mysql.sql awl_pg.sql \
+        bayes_mysql.sql bayes_pg.sql userpref_mysql.sql userpref_pg.sql \
+        ${destroot}${docdir}/sql
+
+    set exdir ${prefix}/share/examples/spamassassin
+    xinstall -d ${destroot}${exdir}
+    xinstall -m 0644 -W ${worksrcpath} \
+        procmailrc.example sample-nonspam.txt sample-spam.txt \
+        ${destroot}${exdir}
 }
 
 post-install {
     ui_msg "****************************************************************"
     ui_msg "*                                                              *"
-    ui_msg "* If you run spamassassin for the first time, then you must    *"
-    ui_msg "* rename the following configuration files by removing the     *"
-    ui_msg "* .sample extension:                                           *"
+    ui_msg "* If you run spamassassin for the first time, you should copy  *"
+    ui_msg "* the following configuration files and remove the .sample     *"
+    ui_msg "* extension:                                                   *"
     ui_msg "*                                                              *"
     ui_msg "* cd ${prefix}/etc/mail/spamassassin                          *"
     foreach file ${conf_files} {
-        ui_msg "* mv ${file}.sample ${file}                                  *"
+        ui_msg "* cp ${file}.sample ${file}                                  *"
     }
     ui_msg "*                                                              *"
     ui_msg "****************************************************************"
 }
 
 
-variant razor {
+variant razor description {Use Vipuls Razor module} {
     depends_lib-append      port:p5-razor-agents
     configure.args-append   RUN_RAZOR_TESTS=yes
 }
 
-variant ssl {
+variant ssl description {Encrypt communication from spamc to spamd} {
     depends_lib-append      port:openssl \
                             port:p5-io-socket-ssl
     configure.args-append   ENABLE_SSL=yes
 }
+
+variant vpopmail description {Use Spamassassin with vpopmail} {
+    depends_lib-append      port:vpopmail
+}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090208/26a95f6e/attachment-0001.html>


More information about the macports-changes mailing list