1 | # $Id: Portfile 32127 2007-12-17 15:35:59Z dluke@macports.org $ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | name clamav |
---|
5 | version 0.92 |
---|
6 | categories sysutils |
---|
7 | maintainers dluke@geeklair.net |
---|
8 | description clamav antivirus software |
---|
9 | |
---|
10 | long_description Clam AntiVirus is a GPL anti-virus toolkit for UNIX. The \ |
---|
11 | main purpose of this software is the integration with mail \ |
---|
12 | servers (attachment scanning). |
---|
13 | |
---|
14 | homepage http://www.clamav.net |
---|
15 | master_sites sourceforge |
---|
16 | checksums md5 e500651858a9187a87025c8a5c23969c \ |
---|
17 | sha1 b6573acd9a7bb6bf3bd4b39a0102ce0be764c5bc \ |
---|
18 | rmd160 37f0450b9b3c6fc863f94811ae372ece1677d791 |
---|
19 | platforms darwin |
---|
20 | configure.args --disable-clamav \ |
---|
21 | --mandir=${prefix}/share/man |
---|
22 | |
---|
23 | depends_lib port:gmp |
---|
24 | |
---|
25 | #workaround gcc bug 28045 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28045 |
---|
26 | configure.cflags {-fdefer-pop -fdelayed-branch -fguess-branch-probability \ |
---|
27 | -fcprop-registers -floop-optimize -fif-conversion \ |
---|
28 | -fif-conversion2 -ftree-ccp -ftree-dce -ftree-dominator-opts \ |
---|
29 | -ftree-dse -ftree-ter -ftree-lrs -ftree-sra -ftree-copyrename \ |
---|
30 | -ftree-fre -ftree-ch -fmerge-constants \ |
---|
31 | -fthread-jumps -fcrossjumping -foptimize-sibling-calls \ |
---|
32 | -fcse-follow-jumps -fcse-skip-blocks -fgcse -fgcse-lm \ |
---|
33 | -fexpensive-optimizations -fstrength-reduce -frerun-cse-after-loop \ |
---|
34 | -frerun-loop-opt -fcaller-saves -fforce-mem -fpeephole2 \ |
---|
35 | -fschedule-insns -fschedule-insns2 -fsched-spec -fregmove \ |
---|
36 | -fdelete-null-pointer-checks -freorder-functions \ |
---|
37 | -funit-at-a-time -falign-functions -falign-jumps -falign-loops \ |
---|
38 | -falign-labels -ftree-pre} |
---|
39 | |
---|
40 | platform darwin i386 { |
---|
41 | #The gcc on intel macs crashes when using the above cflags |
---|
42 | configure.cflags {-O0} |
---|
43 | } |
---|
44 | |
---|
45 | post-destroot { |
---|
46 | system "cd '${destroot}${prefix}/etc/' |
---|
47 | mv freshclam.conf example-freshclam.conf |
---|
48 | mv clamd.conf example-clamd.conf" |
---|
49 | } |
---|
50 | |
---|
51 | post-install { ui_msg "\nYou need to add a new clamav user and clamav\ |
---|
52 | group to your system if you want to use clamav\ |
---|
53 | in superuser mode.\n" |
---|
54 | } |
---|
55 | |
---|
56 | # There's currently no sendmail or libmilter port to depend on |
---|
57 | variant clamav_milter { configure.args-append --enable-milter } |
---|