# $Id: Portfile,v 1.31 2006/07/10 14:38:12 dluke Exp $

PortSystem 1.0
name			clamav
version		 	0.88.3
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 330206089713e73a44afc7a4d6450225
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 }
