# Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/net-proxy/havp/havp-0.76.ebuild,v 1.1 2006/01/15 20:28:55 mrness Exp $ inherit eutils DESCRIPTION="HTTP AntiVirus Proxy" HOMEPAGE="http://www.server-side.de/" SRC_URI="http://www.server-side.de/download/${P}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86" IUSE="" DEPEND="app-antivirus/clamav" src_unpack() { unpack ${A} epatch "${FILESDIR}/${P}-gentoo.patch" } src_compile() { econf --with-scanner=libclamav || die "configure failed" emake || die "make failed" } src_install() { exeinto /usr/sbin doexe havp/havp newinitd "${FILESDIR}/havp.initd" havp insinto /etc doins -r etc/havp diropts -m 0700 -o nobody -g nobody keepdir /var/log/havp diropts -m 0750 dodir /var/run/havp /var/tmp/havp dodoc ChangeLog todo } pkg_postinst() { ewarn "/var/tmp/havp must be on a filesystem with mandatory locks!" ewarn "You should add \"mand\" to the mount options on the relevant line in /etc/fstab." }