# $Id: Portfile 59238 2009-10-12 14:40:46Z dluke@macports.org $ PortSystem 1.0 name clamav version 0.95.2 revision 2 categories sysutils maintainers geeklair.net:dluke 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). license GPL homepage http://www.clamav.net master_sites sourceforge checksums md5 930362397d30e01ba81b5f24c1046d48 \ sha1 7544b39d84f2233b984a9c2ce3ef74d407add483 \ rmd160 83cab51c224251316288e4c3189ba91f640e9f82 platforms darwin configure.args --mandir=${prefix}/share/man \ --with-zlib=${prefix} use_parallel_build yes depends_lib port:gmp port:libiconv port:zlib port:bzip2 port:ncurses platform darwin 7 { patchfiles patch-clamdtop.c.diff #workaround gcc bug 28045 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28045 configure.cflags {-O0} } platform darwin 8 { configure.cflags {-O0} } post-destroot { file rename "${destroot}${prefix}/etc/freshclam.conf" "${destroot}${prefix}/etc/example-freshclam.conf" file rename "${destroot}${prefix}/etc/clamd.conf" "${destroot}${prefix}/etc/example-clamd.conf" } variant clamav_milter description {build with libmilter support} { depends_lib-append port:libmilter configure.args-append --enable-milter post-destroot { file rename "${destroot}${prefix}/etc/clamav-milter.conf" "${destroot}${prefix}/etc/example-clamav-milter.conf" } }