ajacoutot 9ecb6ea3d9 /etc/rc.d -> ${RCDIR}
(as pedantic and useless as /usr/local vs LOCALBASE|PREFIX but well...)

ok sthen@
2014-07-19 22:36:13 +00:00

42 lines
968 B
Makefile

# $OpenBSD: Makefile,v 1.7 2014/07/19 22:36:13 ajacoutot Exp $
SHARED_ONLY= Yes
COMMENT= clamd-based virus scanner for c-icap
REVISION= 1
DISTNAME= squidclamav-6.11
CATEGORIES= www
HOMEPAGE= http://squidclamav.darold.net/
MAINTAINER= Stuart Henderson <sthen@openbsd.org>
# GPLv3+
PERMIT_PACKAGE_CDROM= Yes
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=squidclamav/}
BUILD_DEPENDS= ${RUN_DEPENDS}
RUN_DEPENDS= www/c-icap/c-icap>=0.3.1
CONFIGURE_STYLE= gnu
CONFIGURE_ARGS= --with-c-icap=${LOCALBASE}
FAKE_FLAGS= DEFAULT_DOC_DIR=${PREFIX}/share/doc/squidclamav \
CONFIGDIR=${PREFIX}/share/examples/squidclamav
pre-configure:
perl -pi -e 's,/etc/squidclamav.conf,${SYSCONFDIR}/squidclamav.conf,' \
${WRKSRC}/src/squidclamav.h
pre-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/squidclamav
post-install:
rm -f ${PREFIX}/lib/c_icap/squidclamav.la
mv ${PREFIX}/share/c_icap/templates/squidclamav/en/MALWARE_FOUND{,.default}
.include <bsd.port.mk>