# $Id$ PortSystem 1.0 PortGroup perl5 1.0 perl5.setup Mail-SpamAssassin 3.2.5 categories-append mail platforms darwin maintainers simon openmaintainer description mail filter to identify spam long_description SpamAssassin(tm) is a mail filter to identify spam. \ Using its rule base, it uses a wide range of \ heuristic tests on mail headers and body text to \ identify spam, also known as unsolicited commercial \ email. homepage http://spamassassin.apache.org/ checksums md5 7fdc1651d0371c4a7f95ac9ae6f828a6 \ sha1 14b1f6eae0221a152176f7f597f55581445e800a \ rmd160 5a72a97d124e72ff4da1627982748377f1e34128 depends_lib-append port:p5-digest-sha1 \ port:p5-html-parser \ port:p5-mailtools \ port:p5-mail-audit \ port:p5-net-dns \ port:p5-net-ident \ port:p5-archive-tar \ port:p5-lwp-authen-wsse startupitem.create yes startupitem.name spamd startupitem.executable "${prefix}/bin/spamd" post-patch { reinplace "s|return ''|return 'PRIV'|" ${worksrcpath}/Makefile.PL } configure.args-append CONTACT_ADDRESS=root@localhost \ PREFIX=${prefix} \ SYSCONFDIR=${prefix}/etc \ DATADIR=${prefix}/share/spamassassin \ LOCALSTATEDIR=${prefix}/var/spamassassin \ CONFDIR=${prefix}/etc/mail/spamassassin destroot.target-append conf__install data__install # All configuration files for spamassassin. set conf_files {init.pre local.cf v310.pre v312.pre v320.pre} post-destroot { set etc ${destroot}${prefix}/etc/mail/spamassassin foreach file ${conf_files} { file rename ${etc}/${file} ${etc}/${file}.sample } } 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 "* *" ui_msg "* cd ${prefix}/etc/mail/spamassassin *" foreach file ${conf_files} { ui_msg "* mv ${file}.sample ${file} *" } ui_msg "* *" ui_msg "****************************************************************" } variant razor { depends_lib-append port:p5-razor-agents configure.args-append RUN_RAZOR_TESTS=yes } variant ssl { depends_lib-append port:openssl \ port:p5-io-socket-ssl configure.args-append ENABLE_SSL=yes }