# HG changeset patch # User Binki # Date 2008-12-16 15:54:44 # Node ID b98933debf93c971cd26d57fe895b55f4b4f5a9c # Parent b23b8b48be0f57a421c0cd7745e70db2980749d2 forgot to include these files in previous bump to net-proxy/squidclamav-3.9 diff --git a/net-proxy/squidclamav/files/squidclamav-3.9-gentoo.patch b/net-proxy/squidclamav/files/squidclamav-3.9-gentoo.patch new file mode 100644 --- /dev/null +++ b/net-proxy/squidclamav/files/squidclamav-3.9-gentoo.patch @@ -0,0 +1,29 @@ +diff -Nru squidclamav-3.2.orig/squidclamav.conf.dist squidclamav-3.2/squidclamav.conf.dist +--- squidclamav-3.9.orig/squidclamav.conf.dist 2007-08-22 15:50:41.000000000 +0300 ++++ squidclamav-3.9/squidclamav.conf.dist 2007-12-30 13:56:58.000000000 +0200 +@@ -29,7 +29,7 @@ + # + # stat 0|1 + # +-# squidguard /usr/local/squidGuard/bin/squidGuard ++# squidguard /usr/bin/squidGuard + # + # whitelist this.trustdomain.com + # whitelist .*\.domain\.* +@@ -39,13 +39,13 @@ + #proxy http://127.0.0.1:3128/ + #logfile /var/log/squidclamav.log + #redirect http://proxy.domain.com/cgi-bin/clwarn.cgi +-#squidguard /usr/local/squidGuard/bin/squidGuard ++#squidguard /usr/bin/squidGuard + #debug 0 + #force 1 + #stat 1 + #maxredir 10 +-#clamd_local /tmp/clamd +-#clamd_ip 192.168.1.5 ++#clamd_local /var/run/clamav/clamd.sock ++#clamd_ip 127.0.0.1 + #clamd_port 3310 + #timeout 60 + #useragent Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) diff --git a/net-proxy/squidclamav/squidclamav-3.9.ebuild b/net-proxy/squidclamav/squidclamav-3.9.ebuild new file mode 100644 --- /dev/null +++ b/net-proxy/squidclamav/squidclamav-3.9.ebuild @@ -0,0 +1,44 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-proxy/squidclamav/squidclamav-3.2.ebuild,v 1.1 2007/12/30 12:16:37 mrness Exp $ + +inherit eutils + +DESCRIPTION="A Squid redirector to allow easy antivirus file scanning, using ClamAV" +HOMEPAGE="http://www.samse.fr/GPL/" +SRC_URI="http://www.samse.fr/GPL/${PN}/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +DEPEND="net-misc/curl + dev-libs/openssl + sys-libs/zlib + app-arch/bzip2" +RDEPEND="${DEPEND} + net-proxy/squid" + +src_unpack() { + unpack ${A} + + epatch "${FILESDIR}/${P}-gentoo.patch" +} + +src_install() { + dosbin squidclamav || die "dosbin failed" + insinto /etc + newins squidclamav.conf.dist squidclamav.conf + keepdir /var/log/squidclamav + fowners squid:squid /var/log/squidclamav + dodoc ChangeLog README squidclamav.conf.dist clwarn.cgi* +} + +pkg_postinst() { + einfo "To enable squidclam, add the following lines to /etc/squid/squid.conf:" + einfo " url_rewrite_program /usr/sbin/squidclamav" + einfo " url_rewrite_children 15" + einfo " url_rewrite_access deny localhost # prevent loops" + einfo " url_rewrite_access deny SSL_ports # SSL URLs cannot be scanned" +}