summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlin Năstac <mrness@gentoo.org>2006-09-20 20:08:31 +0000
committerAlin Năstac <mrness@gentoo.org>2006-09-20 20:08:31 +0000
commit875e5f0f11e615d0c08e0bb4cae30b6554e1c8b7 (patch)
tree23bbdf8d910cf1448a2e5f61c76d202f9bf3af4f /net-proxy/squidclamav
parentstable for x86 (diff)
downloadhistorical-875e5f0f11e615d0c08e0bb4cae30b6554e1c8b7.tar.gz
historical-875e5f0f11e615d0c08e0bb4cae30b6554e1c8b7.tar.bz2
historical-875e5f0f11e615d0c08e0bb4cae30b6554e1c8b7.zip
Initial import from bug #138855, thanks to Cedric Krier <ced@ced.homedns.org>.
Package-Manager: portage-2.1.1
Diffstat (limited to 'net-proxy/squidclamav')
-rw-r--r--net-proxy/squidclamav/ChangeLog11
-rw-r--r--net-proxy/squidclamav/Manifest30
-rw-r--r--net-proxy/squidclamav/files/digest-squidclamav-3.03
-rw-r--r--net-proxy/squidclamav/files/squidclamav-3.0-gentoo.patch19
-rw-r--r--net-proxy/squidclamav/metadata.xml7
-rw-r--r--net-proxy/squidclamav/squidclamav-3.0.ebuild52
6 files changed, 122 insertions, 0 deletions
diff --git a/net-proxy/squidclamav/ChangeLog b/net-proxy/squidclamav/ChangeLog
new file mode 100644
index 000000000000..68b392394831
--- /dev/null
+++ b/net-proxy/squidclamav/ChangeLog
@@ -0,0 +1,11 @@
+# ChangeLog for net-proxy/squidclamav
+# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/net-proxy/squidclamav/ChangeLog,v 1.1 2006/09/20 20:08:31 mrness Exp $
+
+*squidclamav-3.0 (20 Sep 2006)
+
+ 20 Sep 2006; Alin Nastac <mrness@gentoo.org>
+ +files/squidclamav-3.0-gentoo.patch, +metadata.xml,
+ +squidclamav-3.0.ebuild:
+ Initial import from bug #138855, thanks to Cedric Krier <ced@ced.homedns.org>.
+
diff --git a/net-proxy/squidclamav/Manifest b/net-proxy/squidclamav/Manifest
new file mode 100644
index 000000000000..c4e1f75e95da
--- /dev/null
+++ b/net-proxy/squidclamav/Manifest
@@ -0,0 +1,30 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA1
+
+AUX squidclamav-3.0-gentoo.patch 661 RMD160 8f972f27c37a76dc955a289266ddfc461227f9fd SHA1 8790331ee7c8de74957417066fb6dbbcfe170f9e SHA256 9bf7e316520ffedc322fecf7d3f9eed31b18aaf5ca3f8ec73dd320d77e444528
+MD5 8e1662e9916165026ef30be441b2aabf files/squidclamav-3.0-gentoo.patch 661
+RMD160 8f972f27c37a76dc955a289266ddfc461227f9fd files/squidclamav-3.0-gentoo.patch 661
+SHA256 9bf7e316520ffedc322fecf7d3f9eed31b18aaf5ca3f8ec73dd320d77e444528 files/squidclamav-3.0-gentoo.patch 661
+DIST squidclamav-3.0.tar.gz 128954 RMD160 7d24d0a3c722413a666a0a4ee82c3b1e3e2357b4 SHA1 8fbfa33392a3b403739041c8fd023c63740462cb SHA256 190f62280bbef6a38da1cfcf16ba1158bb65a5be7e18221f83565ca701c3a3b6
+EBUILD squidclamav-3.0.ebuild 1667 RMD160 d58cfc8f1c0677a96fb1ad2dc63214331034e20a SHA1 cd54a41e168feddfb4e9b898c4f53e23785b15da SHA256 65f4428e4cf3512139e739c11d00939c22f003374406b35ed1350d6832151131
+MD5 c31170bf9c52065b782f52098cd44919 squidclamav-3.0.ebuild 1667
+RMD160 d58cfc8f1c0677a96fb1ad2dc63214331034e20a squidclamav-3.0.ebuild 1667
+SHA256 65f4428e4cf3512139e739c11d00939c22f003374406b35ed1350d6832151131 squidclamav-3.0.ebuild 1667
+MISC ChangeLog 457 RMD160 c6c28f693911ec5420b6887f93f7ea6fabd6422d SHA1 66a5a2e8439ef73e6499a9070e98fe27fa6100a4 SHA256 47ea5a8eb6d488f3ae3e4d66e9f4806a456025aae0b62d93a965f35b09f78a87
+MD5 958dcc3e99c35281d7791427d68a5203 ChangeLog 457
+RMD160 c6c28f693911ec5420b6887f93f7ea6fabd6422d ChangeLog 457
+SHA256 47ea5a8eb6d488f3ae3e4d66e9f4806a456025aae0b62d93a965f35b09f78a87 ChangeLog 457
+MISC metadata.xml 327 RMD160 f8064541c8e6cb884bc8742791f177f1fa5bafcf SHA1 c19339e33115e3eec128917cfdf1645d4f06e001 SHA256 e36b5b3fe77428545f7ae44d2f036f11dcbd84a6391e5c6d691ac1698d46af71
+MD5 e326529b235145b7616df6fde4656721 metadata.xml 327
+RMD160 f8064541c8e6cb884bc8742791f177f1fa5bafcf metadata.xml 327
+SHA256 e36b5b3fe77428545f7ae44d2f036f11dcbd84a6391e5c6d691ac1698d46af71 metadata.xml 327
+MD5 bd82363bdd4b1baaacd4eef70943a237 files/digest-squidclamav-3.0 247
+RMD160 63c23fb9423e9a0c9629ba16321b21cdc2f658d1 files/digest-squidclamav-3.0 247
+SHA256 1c2effbf3d4a6b9fa48a427e76f31a73efe68e712e3644d7c56ab5fb72b0a5b7 files/digest-squidclamav-3.0 247
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v1.4.5 (GNU/Linux)
+
+iD8DBQFFEZ/K3sf9c6kjmR8RApsCAJ9Kw39FlV6NlzKBkp7uihpPLH+i6ACguX7k
+dDRnEKID4ozb+/i+EzaMPVI=
+=V4Mu
+-----END PGP SIGNATURE-----
diff --git a/net-proxy/squidclamav/files/digest-squidclamav-3.0 b/net-proxy/squidclamav/files/digest-squidclamav-3.0
new file mode 100644
index 000000000000..d4ef69021cf7
--- /dev/null
+++ b/net-proxy/squidclamav/files/digest-squidclamav-3.0
@@ -0,0 +1,3 @@
+MD5 1f45ae6208b82d19a56e34a7a3b56ea5 squidclamav-3.0.tar.gz 128954
+RMD160 7d24d0a3c722413a666a0a4ee82c3b1e3e2357b4 squidclamav-3.0.tar.gz 128954
+SHA256 190f62280bbef6a38da1cfcf16ba1158bb65a5be7e18221f83565ca701c3a3b6 squidclamav-3.0.tar.gz 128954
diff --git a/net-proxy/squidclamav/files/squidclamav-3.0-gentoo.patch b/net-proxy/squidclamav/files/squidclamav-3.0-gentoo.patch
new file mode 100644
index 000000000000..e345af62c3bc
--- /dev/null
+++ b/net-proxy/squidclamav/files/squidclamav-3.0-gentoo.patch
@@ -0,0 +1,19 @@
+diff -Nru squidclamav.orig/squidclamav.conf.dist squidclamav/squidclamav.conf.dist
+--- squidclamav.orig/squidclamav.conf.dist 2006-08-28 11:55:15.000000000 +0300
++++ squidclamav/squidclamav.conf.dist 2006-09-20 22:28:12.728508250 +0300
+@@ -36,12 +36,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/metadata.xml b/net-proxy/squidclamav/metadata.xml
new file mode 100644
index 000000000000..b8bdd9e16a4e
--- /dev/null
+++ b/net-proxy/squidclamav/metadata.xml
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>net-proxy</herd>
+<longdescription>SquidClamAV is a Squid redirector which allows easy antivirus file scanning.
+It can use either a local or a remote ClamAV daemon.</longdescription>
+</pkgmetadata>
diff --git a/net-proxy/squidclamav/squidclamav-3.0.ebuild b/net-proxy/squidclamav/squidclamav-3.0.ebuild
new file mode 100644
index 000000000000..18e00dd49d04
--- /dev/null
+++ b/net-proxy/squidclamav/squidclamav-3.0.ebuild
@@ -0,0 +1,52 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-proxy/squidclamav/squidclamav-3.0.ebuild,v 1.1 2006/09/20 20:08:31 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="~x86"
+IUSE=""
+
+DEPEND=">=net-misc/curl-7.12.1
+ dev-libs/openssl
+ sys-libs/zlib
+ app-arch/bzip2"
+RDEPEND="${DEPEND}
+ net-proxy/squid"
+
+S="${WORKDIR}/${PN}"
+
+src_unpack() {
+ unpack ${A}
+
+ epatch "${FILESDIR}/${P}-gentoo.patch"
+}
+
+src_install() {
+ dosbin squidclamav
+ 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 " - for squid ver 2.5"
+ einfo " ${HILITE}redirect_program /usr/sbin/squidclamav${NORMAL}"
+ einfo " ${HILITE}redirect_children 15${NORMAL}"
+ einfo " ${HILITE}redirector_access deny localhost${NORMAL} # prevent loops"
+ einfo " ${HILITE}redirector_access deny SSL_ports${NORMAL} # SSL URLs cannot be scanned"
+ einfo " - for squid ver 2.6"
+ einfo " ${HILITE}url_rewrite_program /usr/sbin/squidclamav${NORMAL}"
+ einfo " ${HILITE}url_rewrite_children 15${NORMAL}"
+ einfo " ${HILITE}url_rewrite_access deny localhost${NORMAL} # prevent loops"
+ einfo " ${HILITE}url_rewrite_access deny SSL_ports${NORMAL} # SSL URLs cannot be scanned"
+}