Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 15 Aug 2012 01:41:42 +0000 (UTC)
From:      Martin Matuska <mm@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r302557 - in head/www: . squidclamav squidclamav/files
Message-ID:  <201208150141.q7F1fgoN082044@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: mm
Date: Wed Aug 15 01:41:41 2012
New Revision: 302557
URL: http://svn.freebsd.org/changeset/ports/302557

Log:
  From the SquidClamav homepage:
  
  SquidClamav is an antivirus for Squid proxy based on the Awards winnings
  ClamAv anti-virus toolkit. Using it will help you securing your home or
  enterprise network web traffic. SquidClamav is the most efficient Squid
  Redirector and ICAP service antivirus tool for HTTP traffic available for
  free, it is written in C and can handle thousand of connections. The way
  to add more securing on your network for free is here.
  
  SquidClamav is build for speed and security in mind, it is first used
  and tested to secure a network with 2,500 and more users. It is also known
  to working fast with 15000+ users.
  
  SquidClamav since version 6.x works as an ICAP service through the c-icap
  server.
  
  With SquidClamav You have full control of what kind of HTTP stream must be
  scanned by Clamav antivirus, this control operate at 3 different levels:
  
  - At URL level, you can disable virus scanning for a set of web site,
    filename extension or anything that can be matched in an URL.
  - At client side by disabling virus scan and other redirector call
    to a set of username, source Ip addresses or computer DNS name.
  - At HTTP header level, where you can disable virus scanning following
    the content type or file size.
  
  WWW: http://squidclamav.darold.net

Added:
  head/www/squidclamav/
  head/www/squidclamav/Makefile   (contents, props changed)
  head/www/squidclamav/distinfo   (contents, props changed)
  head/www/squidclamav/files/
  head/www/squidclamav/files/patch-etc-Makefile.in   (contents, props changed)
  head/www/squidclamav/pkg-descr   (contents, props changed)
  head/www/squidclamav/pkg-plist   (contents, props changed)
Modified:
  head/www/Makefile

Modified: head/www/Makefile
==============================================================================
--- head/www/Makefile	Wed Aug 15 01:19:53 2012	(r302556)
+++ head/www/Makefile	Wed Aug 15 01:41:41 2012	(r302557)
@@ -1796,6 +1796,7 @@
     SUBDIR += squid
     SUBDIR += squid31
     SUBDIR += squid_radius_auth
+    SUBDIR += squidclamav
     SUBDIR += squidguard
     SUBDIR += squidpurge
     SUBDIR += squidstats

Added: head/www/squidclamav/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/www/squidclamav/Makefile	Wed Aug 15 01:41:41 2012	(r302557)
@@ -0,0 +1,35 @@
+# New ports collection makefile for:	squidclamav
+# Date created:				15 August 2012
+# Whom:					Martin Matuska <mm@FreeBSD.org>
+#
+# $FreeBSD: ports/www/c-icap/Makefile,v 1.22 2011/09/23 22:25:54 amdmi3 Exp $
+#
+
+PORTNAME=	squidclamav
+PORTVERSION=	6.8
+CATEGORIES=	www security
+MASTER_SITES=	SF/${PORTNAME}/${PORTNAME}/${PORTVERSION}/
+
+MAINTAINER=	mm@FreeBSD.org
+COMMENT=	Clamav c-icap service and redirector for Squid
+
+LICENSE=	GPLv3
+
+LIB_DEPENDS+=	icapapi:${PORTSDIR}/www/c-icap
+
+GNU_CONFIGURE=	yes
+CFLAGS+=	-DHAVE_STRNSTR
+
+MAN1=		squidclamav.1
+
+CONFIGURE_ARGS+=	--enable-static \
+			--sysconfdir="${PREFIX}/etc/c-icap" \
+			--with-c-icap=${LOCALBASE}
+
+post-patch:
+	@${REINPLACE_CMD} -e 's|CFGDIR=.*|CFGDIR="${PREFIX}/etc/c-icap"|g' \
+		${WRKSRC}/configure.in ${WRKSRC}/configure
+	@${REINPLACE_CMD} -e 's|/etc/squidclamav.conf|${PREFIX}/etc/c\\-icap/squidclamav.conf|g' \
+		${WRKSRC}/doc/squidclamav.1
+
+.include <bsd.port.mk>

Added: head/www/squidclamav/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/www/squidclamav/distinfo	Wed Aug 15 01:41:41 2012	(r302557)
@@ -0,0 +1,2 @@
+SHA256 (squidclamav-6.8.tar.gz) = 70dc1de6aa1a5cc705e336512699a0da530cf6f6e1130b261c5983ee89b34c49
+SIZE (squidclamav-6.8.tar.gz) = 840634

Added: head/www/squidclamav/files/patch-etc-Makefile.in
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/www/squidclamav/files/patch-etc-Makefile.in	Wed Aug 15 01:41:41 2012	(r302557)
@@ -0,0 +1,10 @@
+--- etc/Makefile.in.orig	2012-08-15 03:15:12.431509933 +0200
++++ etc/Makefile.in	2012-08-15 03:15:29.685506098 +0200
+@@ -338,6 +338,7 @@
+ 
+ install-data-local:
+ 	$(mkinstalldirs) $(DESTDIR)$(CFGINST)
++	$(INSTALL_DATA) $(srcdir)/squidclamav.conf $(DESTDIR)$(CFGINST)/squidclamav.conf.default
+ 	@if test -f "$(DESTDIR)$(CFGINST)/squidclamav.conf" ; then \
+ 		echo "$@ will not overwrite existing $(DESTDIR)$(CFGINST)/squidclamav.conf" ; \
+ 	else \

Added: head/www/squidclamav/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/www/squidclamav/pkg-descr	Wed Aug 15 01:41:41 2012	(r302557)
@@ -0,0 +1,27 @@
+From the SquidClamav homepage:
+
+SquidClamav is an antivirus for Squid proxy based on the Awards winnings
+ClamAv anti-virus toolkit. Using it will help you securing your home or
+enterprise network web traffic. SquidClamav is the most efficient Squid
+Redirector and ICAP service antivirus tool for HTTP traffic available for
+free, it is written in C and can handle thousand of connections. The way
+to add more securing on your network for free is here.
+
+SquidClamav is build for speed and security in mind, it is first used
+and tested to secure a network with 2,500 and more users. It is also known
+to working fast with 15000+ users. 
+
+SquidClamav since version 6.x works as an ICAP service through the c-icap
+server. 
+
+With SquidClamav You have full control of what kind of HTTP stream must be
+scanned by Clamav antivirus, this control operate at 3 different levels:
+
+- At URL level, you can disable virus scanning for a set of web site,
+  filename extension or anything that can be matched in an URL.
+- At client side by disabling virus scan and other redirector call
+  to a set of username, source Ip addresses or computer DNS name.
+- At HTTP header level, where you can disable virus scanning following
+  the content type or file size.
+
+WWW: http://squidclamav.darold.net

Added: head/www/squidclamav/pkg-plist
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/www/squidclamav/pkg-plist	Wed Aug 15 01:41:41 2012	(r302557)
@@ -0,0 +1,15 @@
+@unexec if cmp -s %D/etc/c-icap/squidclamav.conf %D/etc/c-icap/squidclamav.conf.default; then rm -f %D/etc/c-icap/squidclamav.conf; fi
+etc/c-icap/squidclamav.conf.default
+@exec [ -f %B/squidclamav.conf ] || cp %B/%f %B/squidclamav.conf
+%%DATADIR%%/README
+lib/c_icap/squidclamav.a
+lib/c_icap/squidclamav.la
+lib/c_icap/squidclamav.so
+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
+@dirrm libexec/squidclamav
+@dirrm %%DATADIR%%



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201208150141.q7F1fgoN082044>