# $Id: Portfile,v 1.32 2006/08/08 13:06:55 dluke Exp $

PortSystem 1.0
name			clamav
version		 	0.88.4
categories	  	sysutils
maintainers	 	dluke@geeklair.net
description	 	clamav antivirus software

long_description	Clam AntiVirus is a GPL anti-virus toolkit for UNIX. The \
			main purpose of this software is the integration with mail \
			servers (attachment scanning).
			
homepage		http://www.clamav.net
master_sites		sourceforge
checksums	 	md5 7759784aa4506b314e6543e0f2a8587b
platforms	   	darwin
configure.env		CPPFLAGS="-I${prefix}/include" LDFLAGS="-L${prefix}/lib"
configure.args  	--disable-clamav \
			--mandir=${prefix}/share/man

depends_lib		port:gmp

post-destroot {
			system "cd '${destroot}${prefix}/etc/'
			mv freshclam.conf example-freshclam.conf
			mv clamd.conf example-clamd.conf"
			}

post-install {		ui_msg "\nYou need to add a new clamav user and clamav\
				group to your system if you want to use clamav\
				in superuser mode.\n"
			}

# There's currently no sendmail or libmilter port to depend on
variant clamav-milter {	configure.args-append --enable-milter }
