pkgsrc/www/squidclamav/Makefile
adam 5e7c911ee3 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.
2017-02-06 15:37:41 +00:00

36 lines
1.1 KiB
Makefile

# $NetBSD: Makefile,v 1.12 2017/02/06 15:37:41 adam Exp $
DISTNAME= squidclamav-6.16
CATEGORIES= www
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=squidclamav/}
MAINTAINER= adam@NetBSD.org
HOMEPAGE= http://squidclamav.darold.net/
COMMENT= Clamav ICAP service and redirector for Squid
LICENSE= gnu-lgpl-v2.1
DEPENDS+= clamav>=0.97:../../security/clamav
DEPENDS+= squid>=3.1.12:../../www/squid3
USE_LANGUAGES= c
USE_LIBTOOL= yes
USE_TOOLS+= perl
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --sysconfdir=${PKG_SYSCONFDIR}
CONFIGURE_ARGS= --with-c-icap=${BUILDLINK_PREFIX.c-icap}
REPLACE_PERL= cgi-bin/*
EGDIR= ${PREFIX}/share/squidclamav
CONF_FILES= ${EGDIR}/squidclamav.conf.default ${PKG_SYSCONFDIR}/squidclamav.conf
SUBST_CLASSES+= fix-cfg
SUBST_STAGE.fix-cfg= pre-configure
SUBST_MESSAGE.fix-cfg= Fixing config path.
SUBST_FILES.fix-cfg= configure
SUBST_FILES.fix-cfg+= src/squidclamav.h
SUBST_SED.fix-cfg= -e 's,CFGDIR=/etc,CFGDIR=${PKG_SYSCONFDIR},'
SUBST_SED.fix-cfg+= -e '/CONFIG_FILE/s,/etc,${PKG_SYSCONFDIR},'
.include "../../www/c-icap/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"