aboutsummaryrefslogtreecommitdiff
path: root/www/squidclamav/Makefile
blob: 47aa9ab725da5a383a4771116b044934138d3ca3 (plain) (blame)
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
# Created by: Martin Matuska <mm@FreeBSD.org>

PORTNAME=	squidclamav
PORTVERSION=	7.1
CATEGORIES=	www security
MASTER_SITES=	SF

MAINTAINER=	garga@FreeBSD.org
COMMENT=	Clamav c-icap service and redirector for Squid

LICENSE=	GPLv3+

LIB_DEPENDS=	libicapapi.so:www/c-icap

USES=		cpe libtool shebangfix

GNU_CONFIGURE=	yes
CONFIGURE_ARGS=	--enable-shared --enable-static \
		--sysconfdir="${PREFIX}/etc/c-icap" \
		--with-c-icap=${LOCALBASE}
SHEBANG_FILES=	cgi-bin/clwarn.cgi*
CPE_VENDOR=	darold
INSTALL_TARGET=	install-strip

CFLAGS+=	-DHAVE_STRNSTR

post-patch:
	@${REINPLACE_CMD} -e 's|CFGDIR=.*|CFGDIR="${PREFIX}/etc/c-icap"|g' \
		${WRKSRC}/configure
	@${REINPLACE_CMD} -e 's|/etc/squidclamav.conf|${PREFIX}/etc/c\\-icap/squidclamav.conf|g' \
		${WRKSRC}/doc/squidclamav.1 ${WRKSRC}/src/squidclamav.h

.include <bsd.port.mk>