pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/www/c-icap-modules c-icap-modules: Avoid symbol clash ...
details: https://anonhg.NetBSD.org/pkgsrc/rev/f5ced64fa632
branches: trunk
changeset: 416880:f5ced64fa632
user: jperkin <jperkin%pkgsrc.org@localhost>
date: Fri Nov 01 15:22:31 2019 +0000
description:
c-icap-modules: Avoid symbol clash with newer clamav.
diffstat:
www/c-icap-modules/distinfo | 3 +-
www/c-icap-modules/patches/patch-services_virus__scan_clamav__mod.c | 32 ++++++++++
2 files changed, 34 insertions(+), 1 deletions(-)
diffs (51 lines):
diff -r 3a88de8e6db6 -r f5ced64fa632 www/c-icap-modules/distinfo
--- a/www/c-icap-modules/distinfo Fri Nov 01 06:10:23 2019 +0000
+++ b/www/c-icap-modules/distinfo Fri Nov 01 15:22:31 2019 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.8 2019/10/03 16:36:54 sborrill Exp $
+$NetBSD: distinfo,v 1.9 2019/11/01 15:22:31 jperkin Exp $
SHA1 (c_icap_modules-0.5.3.tar.gz) = df76f30b2cc29aeef700f477693e7017eaa847f4
RMD160 (c_icap_modules-0.5.3.tar.gz) = 350b5dec612dbb9efc1a57792c6ed2ea6a7c8c06
@@ -6,4 +6,5 @@
Size (c_icap_modules-0.5.3.tar.gz) = 452505 bytes
SHA1 (patch-services_content__filtering_Makefile.in) = cf07c131df55622100106964ae06f4bd946044dc
SHA1 (patch-services_url_check_Makefile.in) = 159f8ec62edc350086ba803cf9c51e9a8c063318
+SHA1 (patch-services_virus__scan_clamav__mod.c) = 2b54ed2972850545ffe258a3d17a87a459494a2d
SHA1 (patch-services_virus_scan_Makefile.in) = 2bd465cfddd34e04ea8c47fc247ff5a0066f01c6
diff -r 3a88de8e6db6 -r f5ced64fa632 www/c-icap-modules/patches/patch-services_virus__scan_clamav__mod.c
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/www/c-icap-modules/patches/patch-services_virus__scan_clamav__mod.c Fri Nov 01 15:22:31 2019 +0000
@@ -0,0 +1,32 @@
+$NetBSD: patch-services_virus__scan_clamav__mod.c,v 1.1 2019/11/01 15:22:31 jperkin Exp $
+
+Avoid symbol clash with newer clamav.
+
+--- services/virus_scan/clamav_mod.c.orig 2019-01-17 10:49:34.000000000 +0000
++++ services/virus_scan/clamav_mod.c
+@@ -105,7 +105,7 @@ extern ci_off_t CLAMAV_MAXSCANSIZE;
+ extern char *CLAMAV_TMP;
+
+ #define CLAMAV_VERSION_SIZE 64
+-static char CLAMAV_VERSION[CLAMAV_VERSION_SIZE];
++static char CLAMAV_ENGINE_VERSION[CLAMAV_VERSION_SIZE];
+ #define CLAMAV_SIGNATURE_SIZE SERVICE_ISTAG_SIZE + 1
+ static char CLAMAV_SIGNATURE[CLAMAV_SIGNATURE_SIZE];
+
+@@ -641,13 +641,13 @@ void clamav_set_versions()
+ CLAMAV_SIGNATURE[CLAMAV_SIGNATURE_SIZE - 1] = '\0';
+
+ /*set the clamav version*/
+- snprintf(CLAMAV_VERSION, CLAMAV_VERSION_SIZE - 1, "%s/%d", str_version, version);
+- CLAMAV_VERSION[CLAMAV_VERSION_SIZE - 1] = '\0';
++ snprintf(CLAMAV_ENGINE_VERSION, CLAMAV_VERSION_SIZE - 1, "%s/%d", str_version, version);
++ CLAMAV_ENGINE_VERSION[CLAMAV_VERSION_SIZE - 1] = '\0';
+ }
+
+ const char *clamav_version()
+ {
+- return CLAMAV_VERSION;
++ return CLAMAV_ENGINE_VERSION;
+ }
+
+ const char *clamav_signature()
Home |
Main Index |
Thread Index |
Old Index