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.2 |
---|
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-append http://apache.adult-pilot.net/spamassassin/source/ |
---|
16 | checksums md5 f255d8e887ea7961939d40b184e82054 |
---|
17 | platforms darwin sunos |
---|
18 | |
---|
19 | # Depends on these Perl modules |
---|
20 | depends_lib-append port:p5-digest-sha1 \ |
---|
21 | port:p5-html-parser \ |
---|
22 | port:p5-mailtools \ |
---|
23 | port:p5-mail-audit \ |
---|
24 | port:p5-net-dns \ |
---|
25 | port:p5-net-ident |
---|
26 | |
---|
27 | post-patch { |
---|
28 | reinplace "s|return ''|return 'PRIV'|" ${worksrcpath}/Makefile.PL |
---|
29 | } |
---|
30 | |
---|
31 | set datadir ${prefix}/share/spamassassin |
---|
32 | set confdir ${prefix}/etc/mail/spamassassin |
---|
33 | set statedir ${prefix}/var |
---|
34 | |
---|
35 | configure.args-append CONTACT_ADDRESS=root@localhost \ |
---|
36 | PREFIX=${prefix} \ |
---|
37 | SYSCONFDIR=${prefix}/etc \ |
---|
38 | DATADIR=${datadir} \ |
---|
39 | LOCALSTATEDIR=${statedir} \ |
---|
40 | CONFDIR=${confdir} |
---|
41 | |
---|
42 | variant razor { |
---|
43 | depends_lib-append port:p5-razor-agents |
---|
44 | configure.args-append RUN_RAZOR_TESTS=yes |
---|
45 | } |
---|
46 | |
---|
47 | variant ssl { |
---|
48 | depends_lib-append lib:libssl.0.9:openssl \ |
---|
49 | port:p5-io-socket-ssl |
---|
50 | configure.args-append ENABLE_SSL=yes |
---|
51 | } |
---|
52 | |
---|
53 | variant bayes { |
---|
54 | depends_lib-append port:p5-db_file |
---|
55 | } |
---|
56 | |
---|
57 | destroot.target-append conf__install data__install |
---|
58 | |
---|