View | Details | Raw Unified | Return to bug 242231
Collapse All | Expand All

(-)Makefile (-2 lines)
Lines 15-22 Link Here
15
LICENSE=	GPLv2+
15
LICENSE=	GPLv2+
16
LICENSE_FILE=	${WRKSRC}/COPYING
16
LICENSE_FILE=	${WRKSRC}/COPYING
17
17
18
BROKEN=		fails to build
19
20
LIB_DEPENDS=	libicapapi.so:www/c-icap \
18
LIB_DEPENDS=	libicapapi.so:www/c-icap \
21
		libclamav.so:security/clamav
19
		libclamav.so:security/clamav
22
20
(-)files/patch-services_virus__scan_clamav__mod.c (+30 lines)
Line 0 Link Here
1
--- services/virus_scan/clamav_mod.c.orig	2019-11-25 19:36:11 UTC
2
+++ services/virus_scan/clamav_mod.c
3
@@ -104,8 +104,8 @@ extern ci_off_t CLAMAV_MAXFILESIZE;
4
 extern ci_off_t CLAMAV_MAXSCANSIZE;
5
 extern char *CLAMAV_TMP;
6
 
7
-#define CLAMAV_VERSION_SIZE 64
8
-static char CLAMAV_VERSION[CLAMAV_VERSION_SIZE];
9
+#define _CLAMAV_VERSION_SIZE 64
10
+static char _CLAMAV_VERSION[_CLAMAV_VERSION_SIZE];
11
 #define CLAMAV_SIGNATURE_SIZE SERVICE_ISTAG_SIZE + 1
12
 static char CLAMAV_SIGNATURE[CLAMAV_SIGNATURE_SIZE];
13
 
14
@@ -641,13 +641,13 @@ void clamav_set_versions()
15
     CLAMAV_SIGNATURE[CLAMAV_SIGNATURE_SIZE - 1] = '\0';
16
 
17
      /*set the clamav version*/
18
-     snprintf(CLAMAV_VERSION, CLAMAV_VERSION_SIZE - 1, "%s/%d", str_version, version);
19
-     CLAMAV_VERSION[CLAMAV_VERSION_SIZE - 1] = '\0';
20
+     snprintf(_CLAMAV_VERSION, _CLAMAV_VERSION_SIZE - 1, "%s/%d", str_version, version);
21
+     _CLAMAV_VERSION[_CLAMAV_VERSION_SIZE - 1] = '\0';
22
 }
23
 
24
 const char *clamav_version()
25
 {
26
-    return CLAMAV_VERSION;
27
+    return _CLAMAV_VERSION;
28
 }
29
 
30
 const char *clamav_signature()

Return to bug 242231