blob: 1b7627e1ff5a42a0c80fd4ae7ff09ba78c5385dd (
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
|
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-mail/clamav/clamav-0.60.ebuild,v 1.5 2003/10/07 10:29:36 pyrania Exp $
inherit eutils flag-o-matic
has_version =sys-libs/glibc-2.2* && filter-flags -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
DESCRIPTION="Clam Anti-Virus Scanner"
HOMEPAGE="http://clamav.elektrapro.com"
SRC_URI="http://prdownloads.sourceforge.net/clamav/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="x86 ~ppc sparc ~mips ~alpha ~arm ~hppa"
DEPEND="virtual/glibc"
PROVIDE="virtual/antivirus"
pkg_setup() {
enewgroup clamav
enewuser clamav -1 /bin/false /dev/null clamav
pwconv || die
}
src_compile() {
econf || die
emake || die
}
src_install() {
make DESTDIR=${D} install || die
dodoc AUTHORS BUGS NEWS README ChangeLog TODO FAQ INSTALL
exeinto /etc/init.d ; newexe ${FILESDIR}/clamd.rc clamd
insinto /etc/conf.d ; newins ${FILESDIR}/clamd.conf clamd
}
|