# Copyright 1999-2009 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ EAPI="2" inherit eutils DESCRIPTION="A Squid redirector to allow easy antivirus file scanning, using ClamAV" HOMEPAGE="http://www.samse.fr/GPL/" SRC_URI="http://downloads.sourceforge.net/project/${PN}/${PN}/5.3/${P}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~amd64 ~x86" IUSE="" DEPEND="app-antivirus/clamav net-misc/curl dev-libs/openssl sys-libs/zlib app-arch/bzip2" RDEPEND="${DEPEND}" src_compile() { emake || die "emake failed" } src_install() { emake DESTDIR="${D}" install || die "install failed" dodoc AUTHORS ChangeLog COPYING NEWS README || die } pkg_postinst() { einfo "To integrate squidclamav into squid, edit squid.conf:" einfo "On ACL definition set:" einfo " acl localhost src 127.0.0.1/255.255.255.255" einfo " acl to_localhost dst 127.0.0.0/8" einfo " acl purge method PURGE" einfo "On http_acces definition set:" einfo " http_access deny to_localhost" einfo " http_access allow localhost" einfo " http_access allow purge localhost" einfo " http_access deny purge" einfo " redirector_access deny localhost" einfo "On redirect section set:" einfo " redirect_program /usr/local/bin/squidclamav" einfo " redirect_children 15" }