blob: 6b4cf9d72bd17cb949bd953b239a8c47d09d0d87 (
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
50
51
52
53
54
55
56
57
58
59
60
61
62
|
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-proxy/dansguardian-dgav/dansguardian-dgav-6.4.4.ebuild,v 1.2 2006/05/04 04:36:50 squinky86 Exp $
inherit eutils
DG_PN=${PN/-*/}
AV_PN=${PN/*-/}
DG_PV=2.8.0.6
DESCRIPTION="DansGuardian with Anti-Virus plugin"
HOMEPAGE="http://sourceforge.net/projects/dgav/"
SRC_URI="http://mirror.dansguardian.org/downloads/2/Stable/${DG_PN}-${DG_PV}.source.tar.gz
mirror://sourceforge/${AV_PN}/${DG_PN}-${DG_PV}-antivirus-${PV}.patch.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~sparc ~x86"
IUSE=""
DEPEND="!net-proxy/dansguardian
net-libs/libesmtp
app-antivirus/clamav"
S="${WORKDIR}/${DG_PN}-${DG_PV}"
src_unpack() {
unpack ${A}
cd "${S}" || die "source dir not found"
epatch "../${DG_PN}-${DG_PV}-antivirus-${PV}.patch"
epatch "${FILESDIR}/${P}-xnaughty.patch"
epatch "${FILESDIR}/${P}-gentoo.patch"
}
src_compile() {
./configure \
--prefix= \
--installprefix="${D}" \
--mandir=/usr/share/man/ \
--cgidir=/var/www/localhost/cgi-bin/ \
--logrotatedir="${D}/etc/logrotate.d" \
--with-av-engine=clamdscan,aveserver,trophie,sophie \
--runas_usr=clamav --runas_grp=clamav || die "./configure failed"
emake OPTIMISE="${CFLAGS}" || die "emake failed"
}
src_install() {
make install || die "make install failed"
newinitd "${FILESDIR}/dansguardian.init" dansguardian
insinto /etc/logrotate.d
newins "${FILESDIR}/dansguardian.logrotate" dansguardian
doman dansguardian.8
dodoc README*
#Create log directory
diropts -m0700 -o clamav
keepdir /var/log/dansguardian
}
|