# -*- 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 # $Id$ PortSystem 1.0 name amavisd-new version 2.6.5 categories mail maintainers pixilla openmaintainer platforms darwin description Interface between mailer (MTA) and one or more content checkers. long_description amavisd-new is a high-performance and reliable interface between mailer \ (MTA) and one or more content checkers: virus scanners, and/or \ Mail::SpamAssassin Perl module. It is written in Perl, ensuring high \ reliability, portability and maintainability. It talks to MTA via \ (E)SMTP or LMTP protocols, or by using helper programs. No timing gaps \ exist in the design, which could cause a mail loss. homepage http://www.ijs.si/software/amavisd/ master_sites ${homepage} checksums sha1 1f76196653e19886ee8352815c3f4d80f4984876 \ rmd160 c28d9c9fc11ac8d942f82874981b6d9889b8c167 depends_run port:perl5 \ port:p5-archive-zip \ port:p5-berkeleydb \ port:p5-convert-tnef \ port:p5-convert-uulib \ port:p5-digest-md5 \ port:p5-io-compress \ port:p5-io-stringy \ port:p5-mail-dkim \ port:p5-mailtools \ port:p5-mime-tools \ port:p5-mime-base64 \ port:p5-net-server \ port:p5-time-hires \ port:p5-unix-syslog set daemon_user _amavisd set daemon_group _amavisd set amavisd_home ${prefix}/var/amavis post-patch { reinplace "s|#!/usr/bin/perl|#!${prefix}/bin/perl|" \ ${worksrcpath}/amavisd file copy ${worksrcpath}/amavisd.conf ${worksrcpath}/amavisd.conf.example reinplace "s|\$daemon_user\ =\ 'vscan'|\$daemon_user\ =\ '${daemon_user}'|" \ ${worksrcpath}/amavisd.conf.example reinplace "s|\$daemon_group\ =\ 'vscan'|\$daemon_group\ =\ '${daemon_group}'|" \ ${worksrcpath}/amavisd.conf.example reinplace "s|#\ \$MYHOME\ =\ '/var/amavis'|\$MYHOME\ =\ '${amavisd_home}'|" \ ${worksrcpath}/amavisd.conf.example reinplace "s|\$QUARANTINEDIR\ =\ '/var/virusmails'|\$QUARANTINEDIR\ =\ '${amavisd_home}/quarantine'|" \ ${worksrcpath}/amavisd.conf.example } use_configure no build {} destroot { if { ![existsgroup ${daemon_group}]} { addgroup ${daemon_group} } if { ![existsuser ${daemon_user}]} { set gid ${daemon_group} adduser ${daemon_user} gid=${gid} realname="AMaViS Daemon" home=${amavisd_home} } xinstall -m 750 -o ${daemon_user} -g ${daemon_group} \ ${worksrcpath}/amavisd \ ${destroot}${prefix}/sbin/amavisd xinstall -m 640 -o root -g ${daemon_group} \ ${worksrcpath}/amavisd.conf.example \ ${destroot}${prefix}/etc/amavisd.conf.example xinstall -m 750 -o ${daemon_user} -g ${daemon_group} -d \ ${destroot}${amavisd_home} \ ${destroot}${amavisd_home}/tmp \ ${destroot}${amavisd_home}/var \ ${destroot}${amavisd_home}/db \ ${destroot}${amavisd_home}/home \ ${destroot}${amavisd_home}/quarantine xinstall -m 640 -o ${daemon_user} -g ${daemon_group} \ /dev/null \ ${destroot}${amavisd_home}/tmp/.turd_${name} xinstall -m 640 -o ${daemon_user} -g ${daemon_group} \ /dev/null \ ${destroot}${amavisd_home}/var/.turd_${name} xinstall -m 640 -o ${daemon_user} -g ${daemon_group} \ /dev/null \ ${destroot}${amavisd_home}/db/.turd_${name} xinstall -m 640 -o ${daemon_user} -g ${daemon_group} \ /dev/null \ ${destroot}${amavisd_home}/home/.turd_${name} xinstall -m 640 -o ${daemon_user} -g ${daemon_group} \ /dev/null \ ${destroot}${amavisd_home}/quarantine/.turd_${name} copy ${worksrcpath} ${destroot}${prefix}/share/${name} } livecheck.url ${master_sites} livecheck.type regex livecheck.regex "${name}-(\\d+\\.\\d+(\[0-9rc.\]+)?)${extract.suffix}"