# $Id: Portfile,v 1.9 2004/12/04 15:56:22 mww Exp $ PortSystem 1.0 name clamsmtp version 1.2 categories mail security platforms darwin maintainers mww@opendarwin.org description SMTP filter checking for viruses using the ClamAV anti-virus long_description ClamSMTP is an SMTP filter that allows you to check for \ viruses using the ClamAV anti-virus software. It accepts \ SMTP connections and forwards the SMTP commands and \ responses to another SMTP server. The 'DATA' email body is \ intercepted and scanned before forwarding. homepage http://memberwebs.com/nielsen/software/${name}/ master_sites ${homepage} checksums md5 8a704db5f833feab92aad723209acc13 depends_run bin:clamd:clamav configure.args --mandir=${prefix}/share/man post-configure { cd ${worksrcpath}/scripts reinplace "s|/usr/local|${prefix}|g" clamsmtpd.sh reinplace "s|/var/run/clamav|${prefix}/var/run|g" clamsmtpd.sh } build.args CFLAGS=-I${prefix}/include \ LDFLAGS=-L${prefix}/lib post-destroot { xinstall -m 755 -d ${destroot}${prefix}/etc/rc.d/ \ ${destroot}${prefix}/share/doc/${name}/ xinstall -m 644 ${worksrcpath}/scripts/clamsmtpd.sh \ ${destroot}${prefix}/etc/rc.d/ xinstall -m 644 ${worksrcpath}/doc/clamsmtpd.conf \ ${destroot}${prefix}/etc/clamsmtpd.conf.sample xinstall -m 644 -W ${worksrcpath} AUTHORS COPYING ChangeLog NEWS README \ ${destroot}${prefix}/share/doc/${name} }