source: trunk/dports/sysutils/clamav/Portfile @ 70604

Last change on this file since 70604 was 70541, checked in by dluke@…, 9 years ago

Version bump, clamav to 0.96.2 (remove patch that is now included in upstream release)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.3 KB
Line 
1# $Id: Portfile 70541 2010-08-12 19:45:47Z dluke@macports.org $
2
3PortSystem 1.0
4PortGroup muniversal 1.0
5
6name                    clamav
7version                 0.96.2
8categories              sysutils
9maintainers             geeklair.net:dluke
10description             clamav antivirus software
11
12long_description        Clam AntiVirus is a GPL anti-virus toolkit for UNIX. The \
13                        main purpose of this software is the integration with mail \
14                        servers (attachment scanning).
15               
16license                 GPL     
17homepage                http://www.clamav.net
18master_sites            sourceforge
19checksums       md5     a2c2555d86868f91a01d0e2c2403bbec \
20                sha1    1b7621a9829f1f0020901ce350d0e6112745c34d \
21                rmd160  d2d9fc9c7759c5b76072032b0d513eede19b978b
22
23platforms               darwin
24configure.args          --mandir=${prefix}/share/man \
25                        --with-zlib=${prefix}
26
27use_parallel_build      yes
28
29depends_lib             port:libiconv port:zlib port:bzip2 port:ncurses
30
31set merger_dont_diff    ${prefix}/bin/clamav-config
32
33platform darwin 7 {
34                        patchfiles-append patch-clamdtop.c.diff
35                        #workaround gcc bug 28045 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28045
36                        configure.cflags {-O0}
37                        }
38
39platform darwin 8 {
40                        configure.cflags {-O0}
41                }
42
43post-destroot {
44                        file rename "${destroot}${prefix}/etc/freshclam.conf" "${destroot}${prefix}/etc/example-freshclam.conf"
45                        file rename "${destroot}${prefix}/etc/clamd.conf" "${destroot}${prefix}/etc/example-clamd.conf"
46                       
47                        #muniversal should allow this to be hooked in some way that's less gross
48                        #this code copied from nspr's portfile
49                        if {[variant_isset universal]} {
50                                copy ${destroot}${prefix}/bin/${build_arch}-clamav-config ${destroot}${prefix}/bin/bak-config
51                                foreach file [glob ${destroot}${prefix}/bin/*clamav-config] {
52                                        delete $file
53                                        }
54                                move ${destroot}${prefix}/bin/bak-config ${destroot}${prefix}/bin/clamav-config
55                                reinplace "s|-arch ${build_arch}||g" ${destroot}${prefix}/bin/clamav-config
56                                reinplace "s|-L\$\{exec_prefix\}/lib/${build_arch}||g" ${destroot}${prefix}/bin/clamav-config
57                                }
58                        }
59
60variant clamav_milter description {build with libmilter support} {
61                        depends_lib-append port:libmilter
62                        configure.args-append --enable-milter
63                        post-destroot {
64                                file rename "${destroot}${prefix}/etc/clamav-milter.conf" "${destroot}${prefix}/etc/example-clamav-milter.conf"
65                                }
66                        }
67
68livecheck.type          regex
69livecheck.url           http://sourceforge.net/projects/clamav/files
70livecheck.regex         ${name}-(\\d+.\\d+.\\d+)${extract.suffix}
Note: See TracBrowser for help on using the repository browser.