pkgsrc/www/squidclamav/Makefile
wiz d2ca14a3f1 Bump all packages for perl-5.18, that
a) refer 'perl' in their Makefile, or
b) have a directory name of p5-*, or
c) have any dependency on any p5-* package

Like last time, where this caused no complaints.
2013-05-31 12:39:57 +00:00

37 lines
1.1 KiB
Makefile

# $NetBSD: Makefile,v 1.7 2013/05/31 12:42:54 wiz Exp $
DISTNAME= squidclamav-6.8
PKGREVISION= 2
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 ${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"