blob: 62b9d51ba60a55f8f7925d46669c5094057bf71b (
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
|
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-forensics/rkhunter/rkhunter-1.1.8.ebuild,v 1.5 2004/10/23 18:18:01 kloeri Exp $
DESCRIPTION="Rootkit Hunter scans for known and unknown rootkits, backdoors, and sniffers."
HOMEPAGE="http://www.rootkit.org/"
SRC_URI="http://downloads.rootkit.nl/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="x86 ~ppc alpha ~amd64 sparc"
IUSE=""
S=${WORKDIR}/${PN}
DEPEND="app-arch/tar
app-arch/gzip
virtual/mta"
RDEPEND="app-shells/bash
dev-lang/perl"
src_install() {
cd ${S}/files
dodir /usr/lib/rkhunter
dodir /usr/lib/rkhunter/db
insinto /usr/lib/rkhunter/db
doins *.dat
dodir /usr/lib/rkhunter/scripts
exeinto /usr/lib/rkhunter/scripts
doexe *.pl check_update.sh
insinto /etc
doins rkhunter.conf
dosed "s:#DBDIR=/usr/local/rkhunter/db:DBDIR=/usr/lib/rkhunter/db\nINSTALLDIR=/usr:g" /etc/rkhunter.conf
exeinto /usr/bin
doexe rkhunter
dodoc CHANGELOG LICENSE README WISHLIST
exeinto /etc/cron.daily
newexe ${FILESDIR}/rkhunter.cron rkhunter
insinto /usr/share/bash-completion
newins ${FILESDIR}/${PN}.bash-completion ${PN}
}
pkg_postinst() {
echo
einfo "A cron script has been installed to /etc/cron.daily/rkhunter."
einfo "To enable it, edit /etc/cron.daily/rkhunter and follow the"
einfo "directions."
echo
einfo "To enable bash command-line completion for rkhunter, execute"
einfo "the following command as root:"
einfo " ln -s /usr/share/bash-completion/rkhunter /etc/bash_completion.d/"
echo
}
pkg_prerm() {
rm -rf /usr/lib/rkhunter/tmp
}
|