blob: 0021688202bae365f1325698721bcaabe0327681 (
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
|
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-antivirus/klamav/klamav-0.42.ebuild,v 1.9 2008/09/06 15:19:41 keytoaster Exp $
inherit kde
MY_P="${P}-source"
S="${WORKDIR}/${MY_P}/${P}"
DESCRIPTION="KlamAV is a KDE frontend for the ClamAV antivirus."
HOMEPAGE="http://klamav.sourceforge.net/"
SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 ppc ppc64 sparc x86"
IUSE=""
DEPEND=">=app-antivirus/clamav-0.90"
RDEPEND="${DEPEND}"
need-kde 3.5
PATCHES=( "${FILESDIR}/${PN}-0.41-cl_loaddbdir.patch" )
src_unpack(){
kde_src_unpack
# Make things work with clamav versions >= 0.93. Fixes bug 219021.
if has_version '>=app-antivirus/clamav-0.93' ; then
epatch "${FILESDIR}/${P}-clamav093.patch"
fi
# Fix compiliaton error with >=clamav-0.94, bug #236838
if has_version '>=app-antivirus/clamav-0.94' ; then
epatch "${FILESDIR}/klamav-clamav094.patch"
fi
# Assure a future version won't try to build this.
rm -rf "${WORKDIR}/${MY_P}/dazuko"* || die "We missed to eradicate some files"
rm -f "${S}"/configure
}
src_compile(){
# Disable updates from the GUI. We have package managers for that. cf. bug 171414
myconf="--with-disableupdates"
kde_src_compile
}
pkg_postinst(){
elog "The on-access scanning functionality is provided by"
elog "the Dazuko kernel module. To use it, install sys-fs/dazuko."
}
|