version 6.16 This release fixes a major bug with debugs macro that can have bad side effects like printing an error after configuration reload an possibly some other wrong behaviors. - Change log level of configuration reloading message. - Show line in configuration file that can not be parsed by add_pattern(). - Enclose debugs macro to avoid misusage. Thanks to Denis Volpato Martins for the patch. - Fix Apache complain "AH01215: CGI::param called in list context from package main line 14, this can lead to vulnerabilities." Thanks to thctlo for the report. Please upgrade asap.diff -r1.11 -r1.12 pkgsrc/www/squidclamav/Makefile
(adam)
@@ -1,37 +1,36 @@ | @@ -1,37 +1,36 @@ | |||
1 | # $NetBSD: Makefile,v 1.11 2016/07/09 06:39:14 wiz Exp $ | 1 | # $NetBSD: Makefile,v 1.12 2017/02/06 15:37:41 adam Exp $ | |
2 | 2 | |||
3 | DISTNAME= squidclamav-6.10 | 3 | DISTNAME= squidclamav-6.16 | |
4 | PKGREVISION= 3 | |||
5 | CATEGORIES= www | 4 | CATEGORIES= www | |
6 | MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=squidclamav/} | 5 | MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=squidclamav/} | |
7 | 6 | |||
8 | MAINTAINER= adam@NetBSD.org | 7 | MAINTAINER= adam@NetBSD.org | |
9 | HOMEPAGE= http://squidclamav.darold.net/ | 8 | HOMEPAGE= http://squidclamav.darold.net/ | |
10 | COMMENT= Clamav ICAP service and redirector for Squid | 9 | COMMENT= Clamav ICAP service and redirector for Squid | |
11 | LICENSE= gnu-lgpl-v2.1 | 10 | LICENSE= gnu-lgpl-v2.1 | |
12 | 11 | |||
13 | DEPENDS+= clamav>=0.97:../../security/clamav | 12 | DEPENDS+= clamav>=0.97:../../security/clamav | |
14 | DEPENDS+= squid>=3.1.12:../../www/squid3 | 13 | DEPENDS+= squid>=3.1.12:../../www/squid3 | |
15 | 14 | |||
16 | USE_LANGUAGES= c | 15 | USE_LANGUAGES= c | |
17 | USE_LIBTOOL= yes | 16 | USE_LIBTOOL= yes | |
18 | USE_TOOLS+= perl | 17 | USE_TOOLS+= perl | |
19 | GNU_CONFIGURE= yes | 18 | GNU_CONFIGURE= yes | |
20 | CONFIGURE_ARGS= --sysconfdir=${PKG_SYSCONFDIR} | 19 | CONFIGURE_ARGS= --sysconfdir=${PKG_SYSCONFDIR} | |
21 | CONFIGURE_ARGS= --with-c-icap=${BUILDLINK_PREFIX.c-icap} | 20 | CONFIGURE_ARGS= --with-c-icap=${BUILDLINK_PREFIX.c-icap} | |
22 | 21 | |||
23 | REPLACE_PERL= cgi-bin/* | 22 | REPLACE_PERL= cgi-bin/* | |
24 | 23 | |||
25 | EGDIR= ${PREFIX}/share/squidclamav | 24 | EGDIR= ${PREFIX}/share/squidclamav | |
26 | CONF_FILES= ${EGDIR}/squidclamav.conf ${PKG_SYSCONFDIR}/squidclamav.conf | 25 | CONF_FILES= ${EGDIR}/squidclamav.conf.default ${PKG_SYSCONFDIR}/squidclamav.conf | |
27 | 26 | |||
28 | SUBST_CLASSES+= fix-cfg | 27 | SUBST_CLASSES+= fix-cfg | |
29 | SUBST_STAGE.fix-cfg= pre-configure | 28 | SUBST_STAGE.fix-cfg= pre-configure | |
30 | SUBST_MESSAGE.fix-cfg= Fixing config path. | 29 | SUBST_MESSAGE.fix-cfg= Fixing config path. | |
31 | SUBST_FILES.fix-cfg= configure | 30 | SUBST_FILES.fix-cfg= configure | |
32 | SUBST_FILES.fix-cfg+= src/squidclamav.h | 31 | SUBST_FILES.fix-cfg+= src/squidclamav.h | |
33 | SUBST_SED.fix-cfg= -e 's,CFGDIR=/etc,CFGDIR=${PKG_SYSCONFDIR},' | 32 | SUBST_SED.fix-cfg= -e 's,CFGDIR=/etc,CFGDIR=${PKG_SYSCONFDIR},' | |
34 | SUBST_SED.fix-cfg+= -e '/CONFIG_FILE/s,/etc,${PKG_SYSCONFDIR},' | 33 | SUBST_SED.fix-cfg+= -e '/CONFIG_FILE/s,/etc,${PKG_SYSCONFDIR},' | |
35 | 34 | |||
36 | .include "../../www/c-icap/buildlink3.mk" | 35 | .include "../../www/c-icap/buildlink3.mk" | |
37 | .include "../../mk/bsd.pkg.mk" | 36 | .include "../../mk/bsd.pkg.mk" |
@@ -1,11 +1,12 @@ | @@ -1,11 +1,12 @@ | |||
1 | @comment $NetBSD: PLIST,v 1.1.1.1 2011/05/11 04:31:15 adam Exp $ | 1 | @comment $NetBSD: PLIST,v 1.2 2017/02/06 15:37:41 adam Exp $ | |
2 | lib/c_icap/squidclamav.la | 2 | lib/c_icap/squidclamav.la | |
3 | libexec/squidclamav/clwarn.cgi | 3 | libexec/squidclamav/clwarn.cgi | |
4 | libexec/squidclamav/clwarn.cgi.de_DE | 4 | libexec/squidclamav/clwarn.cgi.de_DE | |
5 | libexec/squidclamav/clwarn.cgi.en_EN | 5 | libexec/squidclamav/clwarn.cgi.en_EN | |
6 | libexec/squidclamav/clwarn.cgi.fr_FR | 6 | libexec/squidclamav/clwarn.cgi.fr_FR | |
7 | libexec/squidclamav/clwarn.cgi.pt_BR | 7 | libexec/squidclamav/clwarn.cgi.pt_BR | |
8 | libexec/squidclamav/clwarn.cgi.ru_RU | 8 | libexec/squidclamav/clwarn.cgi.ru_RU | |
9 | man/man1/squidclamav.1 | 9 | man/man1/squidclamav.1 | |
10 | share/c_icap/templates/squidclamav/en/MALWARE_FOUND | |||
10 | share/squidclamav/README | 11 | share/squidclamav/README | |
11 | share/squidclamav/squidclamav.conf | 12 | share/squidclamav/squidclamav.conf.default |
@@ -1,7 +1,8 @@ | @@ -1,7 +1,8 @@ | |||
1 | $NetBSD: distinfo,v 1.5 2015/11/04 02:47:39 agc Exp $ | 1 | $NetBSD: distinfo,v 1.6 2017/02/06 15:37:41 adam Exp $ | |
2 | 2 | |||
3 | SHA1 (squidclamav-6.10.tar.gz) = b049d9f64cfc19d257db4e866c7cc0f1cb4b40c3 | 3 | SHA1 (squidclamav-6.16.tar.gz) = c54a2b4770815c5048f7313e9fb435c48738c9e3 | |
4 | RMD160 (squidclamav-6.10.tar.gz) = 3ed39f62bbf16ece8e07ba4a95e983dcdf4c69f5 | 4 | RMD160 (squidclamav-6.16.tar.gz) = 55da34d1e375cf30822329c36662987c332e126b | |
5 | SHA512 (squidclamav-6.10.tar.gz) = 36a49720ea8984d3075364cc6150bd5063983aaeaaad538f6e4fde013b92243b0aeb39ef151e0a6752259739e1258d8170fa27eedf3a91384a5814fd81ae9382 | 5 | SHA512 (squidclamav-6.16.tar.gz) = 8beecf1eccbad7b2f7a1a5fa53d9695cd09cd7debbca13318e14e280211c68d341b6b562778d052c1f345ef32f82cd0c37d711ad7834c2fce95e102bc85dab6a | |
6 | Size (squidclamav-6.10.tar.gz) = 436639 bytes | 6 | Size (squidclamav-6.16.tar.gz) = 444046 bytes | |
7 | SHA1 (patch-etc_Makefile.in) = 23a87a5ee484ab7ef7c50a5716f436b83f7e7449 | 7 | SHA1 (patch-etc_Makefile.in) = f443ab6019bec365a7e9aca53e9ac1a4275b9129 | |
8 | SHA1 (patch-src_squidclamav.h) = 737d78065fe1d357dd873a5d1b1bd63f3b7724b4 |
@@ -1,15 +1,28 @@ | @@ -1,15 +1,28 @@ | |||
1 | $NetBSD: patch-etc_Makefile.in,v 1.1.1.1 2011/05/11 04:31:15 adam Exp $ | 1 | $NetBSD: patch-etc_Makefile.in,v 1.2 2017/02/06 15:37:41 adam Exp $ | |
2 | 2 | |||
3 | Handle configuration files. | 3 | Handle configuration files. | |
4 | 4 | |||
5 | --- etc/Makefile.in.orig 2011-05-10 09:05:26.000000000 +0000 | 5 | --- etc/Makefile.in.orig 2016-08-30 21:02:59.000000000 +0000 | |
6 | +++ etc/Makefile.in | 6 | +++ etc/Makefile.in | |
7 | @@ -167,7 +167,7 @@ top_build_prefix = @top_build_prefix@ | 7 | @@ -175,7 +175,7 @@ top_srcdir = @top_srcdir@ | |
8 | top_builddir = @top_builddir@ | 8 | CONFS = squidclamav.conf | |
9 | top_srcdir = @top_srcdir@ | 9 | cicapdatadir = @DATADIR@ | |
10 | EXTRA_DIST = squidclamav.conf | 10 | CONFIGDIR = @CONFDIR@ | |
11 | -CFGINST = @CFGDIR@ | 11 | -CFGINST = @CFGDIR@ | |
12 | +CFGINST = $(datadir)/squidclamav | 12 | +CFGINST = $(datadir)/squidclamav | |
13 | TMPLS = templates/en/MALWARE_FOUND | |||
14 | EXTRA_DIST = squidclamav.conf $(TMPLS) | |||
13 | all: all-am | 15 | all: all-am | |
16 | @@ -370,10 +370,9 @@ uninstall-am: | |||
14 | 17 | |||
15 | .SUFFIXES: | 18 | ||
19 | install-data-local: | |||
20 | - $(mkinstalldirs) $(DESTDIR)$(CONFIGDIR) | |||
21 | + $(mkinstalldirs) $(DESTDIR)$(CFGINST) | |||
22 | for f in $(CONFS); do \ | |||
23 | - $(INSTALL) $$f $(DESTDIR)$(CONFIGDIR)/$$f.default; \ | |||
24 | - if test ! -f $(DESTDIR)$(CONFIGDIR)/$$f; then $(INSTALL) $$f $(DESTDIR)$(CONFIGDIR)/$$f; fi \ | |||
25 | + $(INSTALL) $$f $(DESTDIR)$(CFGINST)/$$f.default; \ | |||
26 | done | |||
27 | $(mkinstalldirs) $(DESTDIR)$(cicapdatadir)/templates/squidclamav/en/ | |||
28 | for f in $(TMPLS); do $(INSTALL) $$f $(DESTDIR)$(cicapdatadir)/templates/squidclamav/en/; done |
$NetBSD: patch-src_squidclamav.h,v 1.1 2017/02/06 15:37:41 adam Exp $
Remove unused but conflicting strlcat() definition.
--- src/squidclamav.h.orig 2017-02-06 15:28:58.000000000 +0000
+++ src/squidclamav.h
@@ -30,7 +30,6 @@ void chomp(char *);
int isPathExists(const char *);
int isFileExists(const char *);
int isPathSecure(const char *);
-size_t strlcat(char *dst, const char *src, size_t siz);
size_t xstrnlen(const char *s, size_t n);
char** split( char* str, const char* delim);