source: trunk/dports/mail/dspam/Portfile @ 67495

Last change on this file since 67495 was 67495, checked in by jmr@…, 7 years ago

dspam: update to 3.9.0 (#23904)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 4.0 KB
Line 
1# -*- 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
2# $Id: Portfile 67495 2010-05-11 07:21:30Z jmr@macports.org $
3
4PortSystem 1.0
5
6name            dspam
7version         3.9.0
8categories      mail net
9maintainers     yahoo.com:compconsultant
10description     Scalable, open-source statistical anti-spam filter
11long_description Open-source anti-spam filter with multiple algorithms and \
12                 useful admin tools and cgi quarantine interface.
13
14homepage        http://dspam.sourceforge.net/
15platforms       darwin freebsd
16master_sites    sourceforge
17
18checksums       md5 10d092b57d628d8c91655fee5dc0d0cd \
19                sha1 b238f076f67866b5450ae9b8329857b4e2d83dd1 \
20                rmd160 cbde359e4e846e8be352c087c4af46148e685761
21
22configure.args  --sysconfdir='${prefix}/etc' \
23                --mandir='${prefix}/share/man' \
24                --with-logdir=${prefix}/var/log/dspam \
25                --enable-daemon
26
27destroot.keepdirs       ${destroot}${prefix}/var/log/dspam
28
29variant vpopmail {
30                configure.args-append --with-dspam-home-owner=vpopmail \
31                                      --with-dspam-home-group=vchkpw \
32                                      --with-dspam-owner=vpopmail \
33                                      --with-dspam-group=vchkpw
34                depends_lib     port:vpopmail
35}
36
37variant mysql5 conflicts postgres sqlite {
38                depends_lib     path:bin/mysql_config5:mysql5
39                configure.args-append --with-storage-driver=mysql_drv \
40                                      --with-mysql-includes=${prefix}/include/mysql5/mysql \
41                                      --with-mysql-libraries=${prefix}/lib/mysql5/mysql \
42                                      --enable-preferences-extension \
43                                      --enable-virtual-users
44}
45
46variant sqlite conflicts postgres mysql5 {
47                depends_lib     port:sqlite3
48                configure.args-append --with-sqlite-libaries=${prefix}/lib
49}
50variant postgres conflicts sqlite mysql5 {
51                depends_lib     port:postgresql80
52                configure.args-append --with-storage-driver=pgsql_drv \
53                                      --with-pgsql-includes=${prefix}/include/pgsql8 \
54                                      --with-pgsql-libraries=${prefix}/lib/pgsql8
55}
56
57post-destroot {
58        file mkdir ${destroot}${prefix}/var/dspam/samples
59        file mkdir ${destroot}${prefix}/share/doc/dspam
60        file mkdir ${destroot}${prefix}/var/dspam/mysql
61        file mkdir ${destroot}${prefix}/var/dspam/pgsql
62        file mkdir ${destroot}${prefix}/var/dspam/sqlite
63        file mkdir ${destroot}${prefix}/var/dspam/webui
64        file mkdir ${destroot}${prefix}/var/dspam/webui/cgi-bin
65        file mkdir ${destroot}${prefix}/var/dspam/webui/htdocs
66        file copy ${worksrcpath}/README ${destroot}${prefix}/share/doc/dspam/
67        file copy ${worksrcpath}/UPGRADING ${destroot}${prefix}/share/doc/dspam/
68        system "cp -R ${worksrcpath}/webui/cgi-bin/* ${destroot}${prefix}/var/dspam/webui/cgi-bin/"
69        system "rm ${destroot}${prefix}/var/dspam/webui/cgi-bin/Make*"
70        system "cp -R ${worksrcpath}/webui/htdocs/* ${destroot}${prefix}/var/dspam/webui/htdocs/"
71        system "rm ${destroot}${prefix}/var/dspam/webui/htdocs/Make*"
72        file copy ${worksrcpath}/scripts/train.pl ${destroot}${prefix}/var/dspam/samples/
73        system "cp ${worksrcpath}/txt/*.txt ${destroot}${prefix}/var/dspam/samples/"
74        system "cp ${worksrcpath}/doc/*.txt ${destroot}${prefix}/share/doc/dspam/"
75        system "cp -R ${worksrcpath}/src/tools.mysql_drv/*sql ${destroot}${prefix}/var/dspam/mysql"
76        system "cp -R ${worksrcpath}/src/tools.pgsql_drv/*sql ${destroot}${prefix}/var/dspam/pgsql"
77        system "cp -R ${worksrcpath}/src/tools.sqlite_drv/*sql ${destroot}${prefix}/var/dspam/sqlite"
78        if {[variant_isset vpopmail]} {
79                system "chown -R vpopmail:vchkpw ${destroot}${prefix}/var/dspam"
80                system "chown -R vpopmail:vchkpw ${destroot}${prefix}/var/log/dspam"
81        }
82}
Note: See TracBrowser for help on using the repository browser.