1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-25 04:43:33 +00:00
freebsd-ports/www/squidclamav/Makefile
2021-04-06 16:31:07 +02:00

34 lines
829 B
Makefile

# 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>