1 | # $Id: Portfile,v 1.8 2005/11/09 02:37:38 yeled Exp $ |
---|
2 | PortSystem 1.0 |
---|
3 | PortGroup perl5 1.0 |
---|
4 | |
---|
5 | perl5.setup Mail-SpamAssassin 3.1.3 |
---|
6 | maintainers darwinports@opendarwin.org |
---|
7 | categories-append mail |
---|
8 | description mail filter to identify spam |
---|
9 | long_description SpamAssassin(tm) is a mail filter to identify spam. \ |
---|
10 | Using its rule base, it uses a wide range of \ |
---|
11 | heuristic tests on mail headers and body text to \ |
---|
12 | identify spam, also known as unsolicited commercial \ |
---|
13 | email. |
---|
14 | homepage http://spamassassin.apache.org/ |
---|
15 | master_sites http://apache.easy-webs.de/spamassassin/ |
---|
16 | # http://apache.adult-pilot.net/spamassassin/source/ |
---|
17 | checksums md5 32ad78f3cdaddb02cdf0f55572604d07 |
---|
18 | platforms darwin sunos |
---|
19 | |
---|
20 | # Depends on these Perl modules |
---|
21 | depends_lib-append port:p5-digest-sha1 \ |
---|
22 | port:p5-html-parser \ |
---|
23 | port:p5-mailtools \ |
---|
24 | port:p5-mail-audit \ |
---|
25 | port:p5-net-dns \ |
---|
26 | port:p5-net-ident |
---|
27 | |
---|
28 | post-patch { |
---|
29 | reinplace "s|return ''|return 'PRIV'|" ${worksrcpath}/Makefile.PL |
---|
30 | } |
---|
31 | |
---|
32 | set datadir ${prefix}/share/spamassassin |
---|
33 | set confdir ${prefix}/etc/mail/spamassassin |
---|
34 | set statedir ${prefix}/var |
---|
35 | |
---|
36 | configure.args-append CONTACT_ADDRESS=root@localhost \ |
---|
37 | PREFIX=${prefix} \ |
---|
38 | SYSCONFDIR=${prefix}/etc \ |
---|
39 | DATADIR=${datadir} \ |
---|
40 | LOCALSTATEDIR=${statedir} \ |
---|
41 | CONFDIR=${confdir} |
---|
42 | |
---|
43 | variant razor { |
---|
44 | depends_lib-append port:p5-razor-agents |
---|
45 | configure.args-append RUN_RAZOR_TESTS=yes |
---|
46 | } |
---|
47 | |
---|
48 | variant ssl { |
---|
49 | depends_lib-append lib:libssl.0.9:openssl \ |
---|
50 | port:p5-io-socket-ssl |
---|
51 | configure.args-append ENABLE_SSL=yes |
---|
52 | } |
---|
53 | |
---|
54 | variant bayes { |
---|
55 | depends_lib-append port:p5-db_file |
---|
56 | } |
---|
57 | |
---|
58 | destroot.target-append conf__install data__install |
---|
59 | |
---|