# $Id: Portfile 38126 2008-07-07 16:04:43Z dluke@macports.org $ PortSystem 1.0 name clamav version 0.93.2 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 bb415e83efa7322244cc51bf3a1fc8ef \ sha1 d1397956e7eb3b218073a5b969c825783333eb48 \ rmd160 90d08ac2990db3c4551dbb663f1537774c3def8a platforms darwin configure.args --disable-clamav \ --mandir=${prefix}/share/man \ --with-zlib=${prefix} use_parallel_build yes depends_lib port:gmp port:libiconv port:zlib port:bzip2 #workaround gcc bug 28045 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28045 configure.cflags {-fdefer-pop -fdelayed-branch -fguess-branch-probability \ -fcprop-registers -floop-optimize -fif-conversion \ -fif-conversion2 -ftree-ccp -ftree-dce -ftree-dominator-opts \ -ftree-dse -ftree-ter -ftree-lrs -ftree-sra -ftree-copyrename \ -ftree-fre -ftree-ch -fmerge-constants \ -fthread-jumps -fcrossjumping -foptimize-sibling-calls \ -fcse-follow-jumps -fcse-skip-blocks -fgcse -fgcse-lm \ -fexpensive-optimizations -fstrength-reduce -frerun-cse-after-loop \ -frerun-loop-opt -fcaller-saves -fforce-mem -fpeephole2 \ -fschedule-insns -fschedule-insns2 -fsched-spec -fregmove \ -fdelete-null-pointer-checks -freorder-functions \ -funit-at-a-time -falign-functions -falign-jumps -falign-loops \ -falign-labels -ftree-pre} platform darwin i386 { #The gcc on intel macs crashes when using the above cflags configure.cflags {-O0} } platform darwin 7 { #The gcc on 10.3.9 doesn't like the above cflags either configure.cflags {-O0} } 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 description {build with libmilter support} { configure.args-append --enable-milter }