/[gentoo-x86]/app-forensics/chkrootkit/chkrootkit-0.44.ebuild
Gentoo

Contents of /app-forensics/chkrootkit/chkrootkit-0.44.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.9 - (show annotations) (download)
Sat Aug 6 16:15:17 2005 UTC (8 years, 8 months ago) by ka0ttic
Branch: MAIN
CVS Tags: HEAD
Changes since 1.8: +1 -1 lines
FILE REMOVED
Added ~mips for bug 88425.  Tidy old ebuilds.
(Portage version: 2.0.51.22-r2)

1 # Copyright 1999-2005 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/app-forensics/chkrootkit/chkrootkit-0.44.ebuild,v 1.8 2005/01/01 14:22:35 eradicator Exp $
4
5 inherit eutils flag-o-matic
6
7 DESCRIPTION="a tool to locally check for signs of a rootkit"
8 HOMEPAGE="http://www.chkrootkit.org/"
9 SRC_URI="ftp://ftp.pangeia.com.br/pub/seg/pac/${P}.tar.gz
10 mirror://gentoo/${P}-gentoo.diff.bz2"
11
12 LICENSE="AMS"
13 SLOT="0"
14 KEYWORDS="alpha amd64 arm hppa ia64 ~ppc ~ppc64 s390 sparc x86"
15 IUSE=""
16
17 DEPEND="virtual/libc"
18
19 src_unpack() {
20 unpack ${A}
21 cd ${S}
22 epatch ${WORKDIR}/${P}-gentoo.diff
23 sed -i 's:${head} -:${head} -n :' chkrootkit || die "sed chkrootkit failed"
24 sed -i 's:/var/adm:/var/log:g' chklastlog.c || die "sed chklastlog.c failed"
25 }
26
27 src_compile() {
28 emake \
29 CFLAGS="${CFLAGS}" \
30 LDFLAGS="${LDFLAGS}" \
31 sense || die "emake sense failed"
32 }
33
34 src_install() {
35 dosbin chkdirs chklastlog chkproc chkrootkit chkwtmp ifpromisc \
36 strings-static || die
37 dodoc README README.chklastlog README.chkwtmp
38
39 exeinto /etc/cron.weekly
40 newexe ${FILESDIR}/${PN}.cron ${PN} || die
41 }
42
43 pkg_postinst() {
44 echo
45 einfo "Edit /etc/cron.weekly/chkrootkit to activate chkrootkit!"
46 einfo
47 einfo "Some applications, such as portsentry, will cause chkrootkit"
48 einfo "to produce false positives. Read the chkrootkit FAQ at"
49 einfo "http://www.chkrootkit.org/ for more information."
50 echo
51 }

  ViewVC Help
Powered by ViewVC 1.1.20