blob: aa3a1285056898966b9e65d0729dde981a1deaff (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
# 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.77.ebuild,v 1.1 2006/03/06 19:05:20 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."
}
|