1
1
PortSystem 1.0
2
- PortGroup muniversal 1.0
3
2
PortGroup legacysupport 1.0
3
+ PortGroup cmake 1.1
4
4
5
5
name clamav
6
- version 0.103.3
7
- revision 1
6
+ version 0.104.0
8
7
categories sysutils
9
8
maintainers {geeklair.net:dluke @danielluke}
10
9
description clamav antivirus software
@@ -16,27 +15,24 @@ long_description Clam AntiVirus is a GPL anti-virus toolkit for UNIX. The \
16
15
17
16
homepage http://www.clamav.net
18
17
master_sites http://www.clamav.net/downloads/production
19
- checksums rmd160 537e622e85490b64591734160820422da7d31777 \
20
- sha256 9f6e3d18449f3d1a3992771d696685249dfa12736fe2b2929858f2c7d8276ae9 \
21
- size 13389239
18
+ checksums rmd160 6cae80695cb2e2f5214ce6b999517e1f1f2a4305 \
19
+ sha256 a079d64cd55d6184510adfe0f341b2f278f7fb1bcc080d28d374298160f19cb2 \
20
+ size 11896747
22
21
23
22
platforms darwin
24
23
25
- configure.args --mandir=${prefix}/share/man \
26
- --with-zlib=${prefix} \
27
- --with-openssl=${prefix} \
28
- --with-pcre=${prefix} \
29
- --with-xml=${prefix} \
30
- --with-libcurl=${prefix} \
31
- --with-libjson=${prefix} \
32
- --disable-silent-rules \
33
- --enable-llvm=no
34
- #- disable llvm because of upstream bug
35
- #- https://bugzilla.clamav.net/show_bug.cgi?id=11309
24
+ # Disable tests to avoid extra dependencies
25
+ configure.args-append -D ENABLE_TESTS=OFF
36
26
37
- use_parallel_build yes
27
+ #Parallel build causes build failures as of 0.104.0
28
+ #use_parallel_build yes
38
29
39
- depends_build port:pkgconfig
30
+ depends_build port:cmake \
31
+ port:pkgconfig \
32
+ bin:git:git
33
+
34
+ #depends_test port:check \
35
+ # port:py39-pytest
40
36
41
37
depends_lib port:libiconv \
42
38
port:zlib \
@@ -49,11 +45,6 @@ depends_lib port:libiconv \
49
45
port:json-c \
50
46
port:libtool
51
47
52
- #- makefile hack to build even when chmlib is installed with its own lzx.h
53
- #- configure hack to use pkgc-config for libxml2 libraries because
54
- #- xml2-config includes the icu libraries and we overlink otherwiwse
55
- patchfiles patch-libclamav-Makefile.diff patch-configure.diff
56
-
57
48
## older systems support
58
49
# use linux version of openssl cert util on systems < 10.7 that don't support the macOS version
59
50
# ./shared/linux/cert_util_linux.c -> ./shared/mac/cert_util_mac.m
@@ -67,34 +58,22 @@ post-extract {
67
58
}
68
59
}
69
60
70
- test.run yes
71
- test.target check
72
-
73
- set merger_dont_diff ${prefix}/bin/clamav-config
74
-
75
61
platform darwin 8 {
76
- configure.cflags {-O0}
77
- }
78
-
79
- post-destroot {
80
- #muniversal should allow this to be hooked in some way that's less gross
81
- #this code copied from nspr's portfile
82
- if {[variant_exists universal] && [variant_isset universal]} {
83
- copy ${destroot}${prefix}/bin/${build_arch}-clamav-config ${destroot}${prefix}/bin/bak-config
84
- foreach file [glob ${destroot}${prefix}/bin/*clamav-config] {
85
- delete $file
86
- }
87
- move ${destroot}${prefix}/bin/bak-config ${destroot}${prefix}/bin/clamav-config
88
- reinplace "s|-arch ${build_arch}||g" ${destroot}${prefix}/bin/clamav-config
89
- reinplace "s|-L\$\{exec_prefix\}/lib/${build_arch}||g" ${destroot}${prefix}/bin/clamav-config
90
- }
91
- reinplace "s|-R${prefix}/lib||g" ${destroot}${prefix}/bin/clamav-config
92
- }
62
+ configure.args-append -D OPTIMIZE=OFF
63
+ }
93
64
94
65
variant clamav_milter description {build with libmilter support} {
95
- depends_lib-append port:libmilter
96
- configure.args-append --enable-milter
97
- }
66
+ depends_lib-append port:libmilter
67
+ configure.args-append -D ENABLE_MILTER=ON
68
+ }
69
+
70
+ #tests fail if this version of the port isn't installed
71
+ #should fix it to look in build directory first (only)
72
+ # also, need to build withthout ENABLE_TESTS=OFF if we want to run tests
73
+ # ... but don't want to force everyone to install check and python
74
+ #test.run yes
75
+ #test.cmd ctest
76
+ #test.target --rerun-failed --output-on-failure
98
77
99
78
livecheck.type regex
100
79
livecheck.url http://www.clamav.net/downloads
0 commit comments