2020-02-03 20:40:37 +00:00
|
|
|
# $OpenBSD: Makefile,v 1.19 2020/02/03 20:40:41 sthen Exp $
|
2013-04-16 10:00:46 +00:00
|
|
|
|
|
|
|
COMMENT= clamd-based virus scanner for c-icap
|
|
|
|
|
2016-08-31 13:33:00 +00:00
|
|
|
DISTNAME= squidclamav-6.16
|
2020-02-03 20:40:37 +00:00
|
|
|
REVISION= 2
|
2013-04-16 10:00:46 +00:00
|
|
|
|
|
|
|
CATEGORIES= www
|
|
|
|
|
|
|
|
HOMEPAGE= http://squidclamav.darold.net/
|
|
|
|
|
|
|
|
# GPLv3+
|
2019-06-03 16:06:50 +00:00
|
|
|
PERMIT_PACKAGE= Yes
|
2013-04-16 10:00:46 +00:00
|
|
|
|
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=squidclamav/}
|
|
|
|
|
|
|
|
BUILD_DEPENDS= ${RUN_DEPENDS}
|
2015-09-08 18:18:04 +00:00
|
|
|
RUN_DEPENDS= www/c-icap/c-icap>=0.4.1
|
2013-04-16 10:00:46 +00:00
|
|
|
|
2015-01-09 18:16:56 +00:00
|
|
|
CONFIGURE_STYLE= autoconf
|
|
|
|
AUTOCONF_VERSION= 2.68
|
2013-04-16 10:00:46 +00:00
|
|
|
CONFIGURE_ARGS= --with-c-icap=${LOCALBASE}
|
|
|
|
|
2014-03-31 13:04:11 +00:00
|
|
|
FAKE_FLAGS= DEFAULT_DOC_DIR=${PREFIX}/share/doc/squidclamav \
|
|
|
|
CONFIGDIR=${PREFIX}/share/examples/squidclamav
|
2013-04-16 10:00:46 +00:00
|
|
|
|
|
|
|
pre-configure:
|
|
|
|
perl -pi -e 's,/etc/squidclamav.conf,${SYSCONFDIR}/squidclamav.conf,' \
|
|
|
|
${WRKSRC}/src/squidclamav.h
|
|
|
|
|
2014-03-31 13:04:11 +00:00
|
|
|
pre-install:
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/squidclamav
|
|
|
|
|
2013-04-16 10:00:46 +00:00
|
|
|
post-install:
|
|
|
|
rm -f ${PREFIX}/lib/c_icap/squidclamav.la
|
2014-03-31 13:04:11 +00:00
|
|
|
mv ${PREFIX}/share/c_icap/templates/squidclamav/en/MALWARE_FOUND{,.default}
|
2013-04-16 10:00:46 +00:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|