[92417] trunk/dports/mail/dspam/Portfile

ryandesign at macports.org ryandesign at macports.org
Fri Apr 27 21:53:24 PDT 2012


Revision: 92417
          https://trac.macports.org/changeset/92417
Author:   ryandesign at macports.org
Date:     2012-04-27 21:53:24 -0700 (Fri, 27 Apr 2012)
Log Message:
-----------
dspam: maintainer update to 3.10.2; install a sample conf file and add notes explaining how to create the real one; add variant descriptions; rewrite master_sites to avoid redirects; see #34237

Modified Paths:
--------------
    trunk/dports/mail/dspam/Portfile

Modified: trunk/dports/mail/dspam/Portfile
===================================================================
--- trunk/dports/mail/dspam/Portfile	2012-04-28 04:48:28 UTC (rev 92416)
+++ trunk/dports/mail/dspam/Portfile	2012-04-28 04:53:24 UTC (rev 92417)
@@ -4,7 +4,7 @@
 PortSystem 1.0
 
 name            dspam
-version         3.9.0
+version         3.10.2
 categories      mail net
 maintainers     yahoo.com:compconsultant
 description     Scalable, open-source statistical anti-spam filter
@@ -13,11 +13,11 @@
 
 homepage        http://dspam.sourceforge.net/
 platforms       darwin freebsd
-master_sites    sourceforge
+master_sites    sourceforge:project/dspam/dspam/dspam-${version}
 
-checksums       md5 10d092b57d628d8c91655fee5dc0d0cd \
-                sha1 b238f076f67866b5450ae9b8329857b4e2d83dd1 \
-                rmd160 cbde359e4e846e8be352c087c4af46148e685761
+checksums       md5 0e0e405d3284485b2a43f47eaf6b09bb \
+                sha1 21133e0ee1880f3e8c849365b7e27a73f6d0413a \
+                rmd160 7e112981e45e483350b9afc056ebfa4c5561036c
 
 configure.args  --sysconfdir='${prefix}/etc' \
                 --mandir='${prefix}/share/man' \
@@ -26,7 +26,7 @@
 
 destroot.keepdirs       ${destroot}${prefix}/var/log/dspam
 
-variant vpopmail {
+variant vpopmail description {Configure dspam to work with vpopmail} {
                 configure.args-append --with-dspam-home-owner=vpopmail \
                                       --with-dspam-home-group=vchkpw \
                                       --with-dspam-owner=vpopmail \
@@ -34,7 +34,7 @@
                 depends_lib     port:vpopmail
 }
 
-variant mysql5 conflicts postgres sqlite {
+variant mysql5 conflicts postgres sqlite description {Configure dspam to work with mysql5} {
                 depends_lib     path:bin/mysql_config5:mysql5
                 configure.args-append --with-storage-driver=mysql_drv \
                                       --with-mysql-includes=${prefix}/include/mysql5/mysql \
@@ -43,11 +43,11 @@
                                       --enable-virtual-users
 }
 
-variant sqlite conflicts postgres mysql5 {
+variant sqlite conflicts postgres mysql5 description {Configure dspam to work with sqlite} {
                 depends_lib     port:sqlite3
                 configure.args-append --with-sqlite-libaries=${prefix}/lib
 }
-variant postgres conflicts sqlite mysql5 {
+variant postgres conflicts sqlite mysql5 description {Configure dspam to work with postgresql80} {
                 depends_lib     port:postgresql80
                 configure.args-append --with-storage-driver=pgsql_drv \
                                       --with-pgsql-includes=${prefix}/include/pgsql8 \
@@ -55,6 +55,7 @@
 }
 
 post-destroot {
+        file rename ${destroot}${prefix}/etc/dspam.conf ${destroot}${prefix}/etc/dspam.conf.sample
         file mkdir ${destroot}${prefix}/var/dspam/samples
         file mkdir ${destroot}${prefix}/share/doc/dspam
         file mkdir ${destroot}${prefix}/var/dspam/mysql
@@ -65,11 +66,12 @@
         file mkdir ${destroot}${prefix}/var/dspam/webui/htdocs
         file copy ${worksrcpath}/README ${destroot}${prefix}/share/doc/dspam/
         file copy ${worksrcpath}/UPGRADING ${destroot}${prefix}/share/doc/dspam/
+        file copy ${worksrcpath}/RELEASE.NOTES ${destroot}${prefix}/share/doc/dspam/
+        file copy ${worksrcpath}/CHANGELOG ${destroot}${prefix}/share/doc/dspam/
         system "cp -R ${worksrcpath}/webui/cgi-bin/* ${destroot}${prefix}/var/dspam/webui/cgi-bin/"
         system "rm ${destroot}${prefix}/var/dspam/webui/cgi-bin/Make*"
         system "cp -R ${worksrcpath}/webui/htdocs/* ${destroot}${prefix}/var/dspam/webui/htdocs/"
         system "rm ${destroot}${prefix}/var/dspam/webui/htdocs/Make*"
-        file copy ${worksrcpath}/scripts/train.pl ${destroot}${prefix}/var/dspam/samples/
         system "cp ${worksrcpath}/txt/*.txt ${destroot}${prefix}/var/dspam/samples/"
         system "cp ${worksrcpath}/doc/*.txt ${destroot}${prefix}/share/doc/dspam/"
         system "cp -R ${worksrcpath}/src/tools.mysql_drv/*sql ${destroot}${prefix}/var/dspam/mysql"
@@ -80,3 +82,8 @@
                 system "chown -R vpopmail:vchkpw ${destroot}${prefix}/var/log/dspam"
         }
 }
+
+notes "
+Please create the dspam configuration file ${prefix}/etc/dspam.conf\
+by using the sample file ${prefix}/etc/dspam.conf.sample as a reference
+"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120427/e2ed2264/attachment.html>


More information about the macports-changes mailing list