View | Details | Raw Unified | Return to bug 227420 | Differences between
and this patch

Collapse All | Expand All

(-)Makefile (-4 / +2 lines)
Lines 2-8 Link Here
2
# $FreeBSD$
2
# $FreeBSD$
3
3
4
PORTNAME=	clamav
4
PORTNAME=	clamav
5
PORTVERSION=	0.99.4
5
PORTVERSION=	0.100.0
6
CATEGORIES=	security
6
CATEGORIES=	security
7
MASTER_SITES=	http://www.clamav.net/downloads/production/
7
MASTER_SITES=	http://www.clamav.net/downloads/production/
8
8
Lines 79-86 Link Here
79
		--enable-gethostbyname_r \
79
		--enable-gethostbyname_r \
80
		--disable-dependency-tracking \
80
		--disable-dependency-tracking \
81
		--disable-zlib-vcheck \
81
		--disable-zlib-vcheck \
82
		--enable-clamdtop \
82
		--enable-clamdtop
83
		--disable-llvm
84
CPPFLAGS+=	-I${LOCALBASE}/include
83
CPPFLAGS+=	-I${LOCALBASE}/include
85
84
86
# This port has a problem with -pthread,
85
# This port has a problem with -pthread,
Lines 202-208 Link Here
202
		  ${STAGEDIR}${DBDIR} \
201
		  ${STAGEDIR}${DBDIR} \
203
		  ${STAGEDIR}${LOGDIR} \
202
		  ${STAGEDIR}${LOGDIR} \
204
		  ${STAGEDIR}${RUNDIR}
203
		  ${STAGEDIR}${RUNDIR}
205
	${INSTALL_DATA} ${WRKSRC}/NEWS ${WRKSRC}/ChangeLog ${STAGEDIR}${DOCSDIR}
206
	${INSTALL_DATA} ${WRKSRC}/docs/html/* ${STAGEDIR}${DOCSDIR}/html
204
	${INSTALL_DATA} ${WRKSRC}/docs/html/* ${STAGEDIR}${DOCSDIR}/html
207
205
208
.include <bsd.port.post.mk>
206
.include <bsd.port.post.mk>
(-)distinfo (-3 / +3 lines)
Lines 1-3 Link Here
1
TIMESTAMP = 1520002083
1
TIMESTAMP = 1523370392
2
SHA256 (clamav-0.99.4.tar.gz) = d72ac3273bde8d2e5e28ec9978373ee3ab4529fd868bc3fc4d2d2671228f2461
2
SHA256 (clamav-0.100.0.tar.gz) = c5c5edaf75a3c53ac0f271148fd6447310bce53f448ec7e6205124a25918f65c
3
SIZE (clamav-0.99.4.tar.gz) = 16083015
3
SIZE (clamav-0.100.0.tar.gz) = 16036757
(-)files/patch-libclamav_bytecode__api.c (-44 lines)
Lines 1-44 Link Here
1
--- libclamav/bytecode_api.c.orig	2016-04-22 15:02:19 UTC
2
+++ libclamav/bytecode_api.c
3
@@ -811,8 +811,19 @@ int32_t cli_bcapi_inflate_init(struct cli_bc_ctx *ctx,
4
         cli_dbgmsg("bytecode api: inflate_init: invalid buffers!\n");
5
         return -1;
6
     }
7
-    memset(&stream, 0, sizeof(stream));
8
-    ret = inflateInit2(&stream, windowBits);
9
+    b = cli_realloc(ctx->inflates, sizeof(*ctx->inflates)*n);
10
+    if (!b) {
11
+        return -1;
12
+    }
13
+    ctx->inflates = b;
14
+    ctx->ninflates = n;
15
+    b = &b[n-1];
16
+
17
+    b->from = from;
18
+    b->to = to;
19
+    b->needSync = 0;
20
+    memset(&b->stream, 0, sizeof(stream));
21
+    ret = inflateInit2(&b->stream, windowBits);
22
     switch (ret) {
23
         case Z_MEM_ERROR:
24
             cli_dbgmsg("bytecode api: inflateInit2: out of memory!\n");
25
@@ -830,19 +841,6 @@ int32_t cli_bcapi_inflate_init(struct cli_bc_ctx *ctx,
26
             return -1;
27
     }
28
 
29
-    b = cli_realloc(ctx->inflates, sizeof(*ctx->inflates)*n);
30
-    if (!b) {
31
-        inflateEnd(&stream);
32
-        return -1;
33
-    }
34
-    ctx->inflates = b;
35
-    ctx->ninflates = n;
36
-    b = &b[n-1];
37
-
38
-    b->from = from;
39
-    b->to = to;
40
-    b->needSync = 0;
41
-    memcpy(&b->stream, &stream, sizeof(stream));
42
     return n-1;
43
 }
44
 
(-)files/patch-libclamav_regex_pcre.c (-12 lines)
Lines 1-12 Link Here
1
--- libclamav/regex_pcre.c.orig	2018-01-23 21:04:06 UTC
2
+++ libclamav/regex_pcre.c
3
@@ -112,7 +112,8 @@ int cli_pcre_addoptions(struct cli_pcre_
4
 #if USING_PCRE2
5
 int cli_pcre_compile(struct cli_pcre_data *pd, long long unsigned match_limit, long long unsigned match_limit_recursion, unsigned int options, int opt_override)
6
 {
7
-    int errornum, erroffset;
8
+    int errornum;
9
+    size_t erroffset;
10
     pcre2_general_context *gctx;
11
     pcre2_compile_context *cctx;
12
 
(-)pkg-plist (-7 / +12 lines)
Lines 1-10 Link Here
1
bin/clamav-config
1
bin/clamav-config
2
bin/clambc
2
bin/clambc
3
bin/clamconf
3
bin/clamconf
4
bin/clamdscan
4
bin/clamdtop
5
bin/clamdtop
5
bin/clamscan
6
bin/clamscan
6
bin/clamsubmit
7
bin/clamsubmit
7
bin/clamdscan
8
bin/freshclam
8
bin/freshclam
9
bin/sigtool
9
bin/sigtool
10
%%MILTER%%sbin/clamav-milter
10
%%MILTER%%sbin/clamav-milter
Lines 14-26 Link Here
14
lib/libclamav.so
14
lib/libclamav.so
15
lib/libclamav.so.7
15
lib/libclamav.so.7
16
lib/libclamav.so.7.1.1
16
lib/libclamav.so.7.1.1
17
%%UNRAR%%lib/libclamunrar.so
17
lib/libclammspack.a
18
%%UNRAR%%lib/libclamunrar.so.7
18
lib/libclammspack.so
19
%%UNRAR%%lib/libclamunrar.so.7.1.1
19
lib/libclammspack.so.0
20
%%UNRAR%%lib/libclamunrar_iface.so
20
lib/libclammspack.so.0.1.0
21
%%UNRAR%%lib/libclamunrar_iface.so.7
21
lib/libclamunrar.so
22
%%UNRAR%%lib/libclamunrar_iface.so.7.1.1
22
lib/libclamunrar.so.7
23
lib/libclamunrar.so.7.1.1
24
lib/libclamunrar_iface.so
25
lib/libclamunrar_iface.so.7
26
lib/libclamunrar_iface.so.7.1.1
23
libdata/pkgconfig/libclamav.pc
27
libdata/pkgconfig/libclamav.pc
28
libdata/pkgconfig/libclammspack.pc
24
man/man1/clambc.1.gz
29
man/man1/clambc.1.gz
25
man/man1/clamconf.1.gz
30
man/man1/clamconf.1.gz
26
man/man1/clamdscan.1.gz
31
man/man1/clamdscan.1.gz

Return to bug 227420