import ports/www/squidclamav, ok benoit

ClamAV-based virus scanner for c-icap. This uses clamd to scan;
for an alternative using libclamav, see the c-icap-clamav package.
This commit is contained in:
sthen 2013-04-16 10:00:46 +00:00
parent e297eb4781
commit 0d236f3eb5
4 changed files with 56 additions and 0 deletions

37
www/squidclamav/Makefile Normal file
View File

@ -0,0 +1,37 @@
# $OpenBSD: Makefile,v 1.1.1.1 2013/04/16 10:00:46 sthen Exp $
SHARED_ONLY= Yes
COMMENT= clamd-based virus scanner for c-icap
DISTNAME= squidclamav-6.10
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
CONFIGURE_STYLE= gnu
CONFIGURE_ARGS= --with-c-icap=${LOCALBASE}
FAKE_FLAGS= DEFAULT_DOC_DIR=${PREFIX}/share/doc/squidclamav
pre-configure:
perl -pi -e 's,/etc/squidclamav.conf,${SYSCONFDIR}/squidclamav.conf,' \
${WRKSRC}/src/squidclamav.h
post-install:
rm -f ${PREFIX}/lib/c_icap/squidclamav.la
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/squidclamav/
mv ${WRKINST}/etc/squidclamav.conf ${PREFIX}/share/examples/squidclamav/
.include <bsd.port.mk>

2
www/squidclamav/distinfo Normal file
View File

@ -0,0 +1,2 @@
SHA256 (squidclamav-6.10.tar.gz) = TR7XAStbjbQUPTgZawkovUTyRhImo/muLNw2Q1JKBUs=
SIZE (squidclamav-6.10.tar.gz) = 436639

View File

@ -0,0 +1,2 @@
ClamAV-based virus scanner for c-icap. This uses clamd to scan;
for an alternative using libclamav, see the c-icap-clamav package.

15
www/squidclamav/pkg/PLIST Normal file
View File

@ -0,0 +1,15 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2013/04/16 10:00:46 sthen Exp $
lib/c_icap/squidclamav.so
libexec/squidclamav/
libexec/squidclamav/clwarn.cgi
libexec/squidclamav/clwarn.cgi.de_DE
libexec/squidclamav/clwarn.cgi.en_EN
libexec/squidclamav/clwarn.cgi.fr_FR
libexec/squidclamav/clwarn.cgi.pt_BR
libexec/squidclamav/clwarn.cgi.ru_RU
@man man/man1/squidclamav.1
share/doc/squidclamav/
share/doc/squidclamav/README
share/examples/squidclamav/
share/examples/squidclamav/squidclamav.conf
@sample ${SYSCONFDIR}/squidclamav.conf