diff options
author | Alin Năstac <mrness@gentoo.org> | 2007-11-02 15:49:02 +0000 |
---|---|---|
committer | Alin Năstac <mrness@gentoo.org> | 2007-11-02 15:49:02 +0000 |
commit | 2770f0add08edb3632df53f936e759c9ad1d81d6 (patch) | |
tree | 57fdac523dec0511151685868eab58ae9a4351df /net-proxy/squidclamav | |
parent | Remove obsolete versions. Version bump. Install HTML documentation. (diff) | |
download | gentoo-2-2770f0add08edb3632df53f936e759c9ad1d81d6.tar.gz gentoo-2-2770f0add08edb3632df53f936e759c9ad1d81d6.tar.bz2 gentoo-2-2770f0add08edb3632df53f936e759c9ad1d81d6.zip |
Version bump.
(Portage version: 2.1.2.12)
Diffstat (limited to 'net-proxy/squidclamav')
-rw-r--r-- | net-proxy/squidclamav/ChangeLog | 8 | ||||
-rw-r--r-- | net-proxy/squidclamav/files/digest-squidclamav-3.1 | 3 | ||||
-rw-r--r-- | net-proxy/squidclamav/files/squidclamav-3.1-gentoo.patch | 28 | ||||
-rw-r--r-- | net-proxy/squidclamav/squidclamav-3.1.ebuild | 44 |
4 files changed, 82 insertions, 1 deletions
diff --git a/net-proxy/squidclamav/ChangeLog b/net-proxy/squidclamav/ChangeLog index 54f51b75e203..5958e3b224a7 100644 --- a/net-proxy/squidclamav/ChangeLog +++ b/net-proxy/squidclamav/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for net-proxy/squidclamav # Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-proxy/squidclamav/ChangeLog,v 1.3 2007/04/11 13:38:04 mrness Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-proxy/squidclamav/ChangeLog,v 1.4 2007/11/02 15:49:01 mrness Exp $ + +*squidclamav-3.1 (02 Nov 2007) + + 02 Nov 2007; Alin Năstac <mrness@gentoo.org> + +files/squidclamav-3.1-gentoo.patch, +squidclamav-3.1.ebuild: + Version bump. 11 Apr 2007; Alin Năstac <mrness@gentoo.org> squidclamav-3.0.ebuild: Simplify postinst info messages. diff --git a/net-proxy/squidclamav/files/digest-squidclamav-3.1 b/net-proxy/squidclamav/files/digest-squidclamav-3.1 new file mode 100644 index 000000000000..3314613bb1e1 --- /dev/null +++ b/net-proxy/squidclamav/files/digest-squidclamav-3.1 @@ -0,0 +1,3 @@ +MD5 a181cc67d3e74af3558cbbddbd4a12ae squidclamav-3.1.tar.gz 118434 +RMD160 5431089570712111db13c8ea37fdabf1002a1ab2 squidclamav-3.1.tar.gz 118434 +SHA256 17b634239e1750e85253420f886a2b436621fc0ea8d992e058c03ec6d5c86f82 squidclamav-3.1.tar.gz 118434 diff --git a/net-proxy/squidclamav/files/squidclamav-3.1-gentoo.patch b/net-proxy/squidclamav/files/squidclamav-3.1-gentoo.patch new file mode 100644 index 000000000000..624d2ebaef14 --- /dev/null +++ b/net-proxy/squidclamav/files/squidclamav-3.1-gentoo.patch @@ -0,0 +1,28 @@ +diff -Nru squidclamav-3.1.orig/squidclamav.conf.dist squidclamav-3.1/squidclamav.conf.dist +--- squidclamav-3.1.orig/squidclamav.conf.dist 2007-08-22 15:50:41.000000000 +0300 ++++ squidclamav-3.1/squidclamav.conf.dist 2007-11-02 17:44:11.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,12 +39,12 @@ + #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 +-#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 + #abort ^.*\.gz$ diff --git a/net-proxy/squidclamav/squidclamav-3.1.ebuild b/net-proxy/squidclamav/squidclamav-3.1.ebuild new file mode 100644 index 000000000000..87a03ed773ae --- /dev/null +++ b/net-proxy/squidclamav/squidclamav-3.1.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.1.ebuild,v 1.1 2007/11/02 15:49:01 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-7.12.1 + 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" +} |