diff options
Diffstat (limited to 'net-proxy/squidclam/squidclam-0.17.ebuild')
-rw-r--r-- | net-proxy/squidclam/squidclam-0.17.ebuild | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/net-proxy/squidclam/squidclam-0.17.ebuild b/net-proxy/squidclam/squidclam-0.17.ebuild new file mode 100644 index 000000000000..25313ff9beb7 --- /dev/null +++ b/net-proxy/squidclam/squidclam-0.17.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-proxy/squidclam/squidclam-0.17.ebuild,v 1.1 2005/10/12 21:27:05 mrness Exp $ + +DESCRIPTION="A redirector for Squid which scans accessed URLs for viruses, using Clam Anti-Virus" +HOMEPAGE="http://squidclam.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" +LICENSE="as-is" + +SLOT="0" +KEYWORDS="~sparc ~x86" +IUSE="" +DEPEND="net-misc/curl + app-antivirus/clamav" +RDEPEND="${DEPEND} + net-proxy/squid" + +src_unpack() { + unpack ${A} + + sed -i -e "s:/tmpdata/:/tmp/:" ${S}/sample.conf +} + +src_compile() { + ./configure || die "configure failed" + emake || die "make failed" +} + +src_install() { + dobin squidclam + insinto /etc + newins sample.conf squidclam.conf + dodoc antivir.php README Changelog TODO sample.conf +} + +pkg_postinst() { + ewarn "THIS PACKAGE IS IN ITS EARLY DEVELOPMENT STAGE!" + ewarn "See ${HOMEPAGE} for more info. + echo + einfo "Add following lines to your squid.conf:" + einfo "${HILITE} redirect_program /usr/bin/squidclam ${NORMAL}" + einfo "${HILITE} redirect_children 15 ${NORMAL} # make a wise choice" + einfo "and this line to your acl list to prevent loops:" + einfo "${HILITE} redirector_access deny localhost ${NORMAL}" + echo + ewarn "Squid doesn't pass complete ssl urls to the redirector!" + ewarn "Therefore scanning them is pretty useless." + ewarn "Add something like the following to avoid this and save bandwidth:" + einfo "${HILITE} acl SSL_ports port 443 563 ${NORMAL}" + einfo "${HILITE} redirector_access deny SSL_ports ${NORMAL}" + echo +} |