# $Id: Portfile,v 1.10 2005/02/03 23:52:26 mww Exp $ PortSystem 1.0 name clamsmtp version 1.3 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 0eee3c63edb24788c7d81349f7b11363 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} }