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

Last change on this file since 124224 was 124224, checked in by dluke@…, 5 years ago

clamav: revbump for libmilter ipv6 support (+clamav_milter)

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