Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 254100 | Differences between
and this patch

Collapse All | Expand All

(-)/usr/portage/app-forensics/rkhunter/rkhunter-1.3.4.ebuild (-29 / +32 lines)
Lines 1-16 Link Here
1
# Copyright 1999-2009 Gentoo Foundation
1
# Copyright 1999-2009 Gentoo Foundation
2
# Distributed under the terms of the GNU General Public License v2
2
# Distributed under the terms of the GNU General Public License v2
3
# $Header: /var/cvsroot/gentoo-x86/app-forensics/rkhunter/rkhunter-1.3.4.ebuild,v 1.1 2009/01/05 17:26:49 patrick Exp $
3
# $Header: $
4
5
EAPI=2
4
6
5
inherit eutils bash-completion
7
inherit eutils bash-completion
6
8
7
DESCRIPTION="Rootkit Hunter scans for known and unknown rootkits, backdoors, and sniffers."
9
DESCRIPTION="Rootkit Hunter scans for known and unknown rootkits, backdoors, and sniffers."
8
HOMEPAGE="http://rkhunter.sf.net/"
10
HOMEPAGE="http://rkhunter.sf.net/"
9
SRC_URI="mirror://sourceforge/rkhunter/${P}.tar.gz"
11
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
10
12
11
LICENSE="GPL-2"
13
LICENSE="GPL-2"
12
SLOT="0"
14
SLOT="0"
13
KEYWORDS="~alpha ~amd64 ~mips ~ppc ~sparc ~x86"
15
KEYWORDS="~amd64"
14
IUSE=""
16
IUSE=""
15
17
16
RDEPEND="virtual/mta
18
RDEPEND="virtual/mta
Lines 20-64 RDEPEND="virtual/mta Link Here
20
22
21
S="${WORKDIR}/${P}/files"
23
S="${WORKDIR}/${P}/files"
22
24
23
src_unpack() {
25
src_prepare() {
24
	unpack ${A}
26
	epatch "${FILESDIR}/${PN}.conf.patch"
25
	cd "${S}"
27
	epatch "${FILESDIR}/${PN}-ppc64.patch"
26
	#epatch "${FILESDIR}"/${PN}-1.2.1-create-tmpdir.diff
27
	#epatch "${FILESDIR}"/${PN}-1.2.9-ppc64.patch
28
}
28
}
29
29
30
src_install() {
30
src_install() {
31
	insinto /usr/lib/rkhunter/db
31
	# rkhunter requires to be root
32
	doins *.dat || die "failed to install dat files"
32
	dosbin ${PN}
33
34
	exeinto /usr/lib/rkhunter/scripts
35
	doexe *.pl check_update.sh || die "failed to install scripts"
36
33
37
	dobin rkhunter || die "failed to install rkhunter script"
34
	# rkhunter doesn't create it by itself
35
	dodir /var/lib/${PN}/tmp
38
36
39
	insinto /etc
37
	insinto /etc
40
	doins rkhunter.conf || die "failed to install rkhunter.conf"
38
	doins ${PN}.conf || die "failed to install ${PN}.conf"
41
	dosed 's:^#\(DBDIR=.*\)local\(.*\)$:\1lib\2\nINSTALLDIR=/usr:' \
42
		/etc/rkhunter.conf || die "sed rkhunter.conf failed"
43
39
44
	#doman development/rkhunter.8 || die "doman failed"
40
	exeinto /usr/lib/${PN}/scripts
45
	dodoc CHANGELOG LICENSE README WISHLIST || die "dodoc failed"
41
	doexe *.pl || die "failed to install scripts"
42
43
	insinto /var/lib/${PN}/db
44
	doins *.dat || die "failed to install dat files"
45
46
	insinto /var/lib/${PN}/db/i18n
47
	doins i18n/*
48
49
	doman ${PN}.8 || die "doman failed"
50
	dodoc ACKNOWLEDGMENTS CHANGELOG FAQ README WISHLIST || die "dodoc failed"
46
51
47
	exeinto /etc/cron.daily
52
	exeinto /etc/cron.daily
48
	newexe "${FILESDIR}"/rkhunter.cron rkhunter || \
53
	newexe "${FILESDIR}/${PN}.cron" ${PN} || \
49
		die "failed to install cron script"
54
		die "failed to install cron script"
50
	dobashcompletion ${FILESDIR}/${PN}.bash-completion
55
56
	dobashcompletion "${FILESDIR}/${PN}.bash-completion"
51
}
57
}
52
58
53
pkg_postinst() {
59
pkg_postinst() {
54
	echo
60
	einfo
55
	elog "A cron script has been installed to /etc/cron.daily/rkhunter."
61
	einfo "A cron script has been installed to /etc/cron.daily/rkhunter."
56
	elog "To enable it, edit /etc/cron.daily/rkhunter and follow the"
62
	einfo "To enable it, edit /etc/cron.daily/rkhunter and follow the"
57
	elog "directions."
63
	einfo "directions."
58
	echo
64
	einfo
59
	bash-completion_pkg_postinst
65
	bash-completion_pkg_postinst
60
}
66
}
61
67
62
pkg_prerm() {
63
	rm -rf /usr/lib/rkhunter/tmp
64
}

Return to bug 254100