summaryrefslogtreecommitdiff
path: root/www/squidclamav/Makefile
blob: 4c7ebe421744b822b9154c9824c17fd99d66e58e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# $NetBSD: Makefile,v 1.4 2012/10/03 21:59:04 wiz Exp $

DISTNAME=	squidclamav-6.8
PKGREVISION=	1
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

PKG_DESTDIR_SUPPORT=	user-destdir

DEPENDS+=	clamav>=0.97:../../security/clamav
DEPENDS+=	squid>=3.1.12:../../www/squid31

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"