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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.12 - (show annotations) (download)
Mon Oct 6 19:38:01 2008 UTC (5 years, 9 months ago) by pva
Branch: MAIN
CVS Tags: HEAD
Changes since 1.11: +1 -1 lines
FILE REMOVED
Version bump, thank Alon Bar-Lev and Alex Efros for work, bug #205419. Fixed shell history anomalies, bug #226067, thank Horst Prote for report and fix. Remove old.
(Portage version: 2.2_rc11/cvs/Linux 2.6.26-gentoo-r1 i686)

1 # Copyright 1999-2007 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.45.ebuild,v 1.11 2007/01/26 20:10:52 eroyf Exp $
4
5 inherit eutils flag-o-matic toolchain-funcs
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 mips ppc ppc64 s390 sparc x86"
15 IUSE=""
16
17 DEPEND="virtual/libc"
18
19 src_unpack() {
20 unpack ${A}
21 cd ${S}
22 epatch ${FILESDIR}/${P}-makefile.diff
23 epatch ${WORKDIR}/${P}-gentoo.diff
24 sed -i 's:${head} -:${head} -n :' chkrootkit || die "sed chkrootkit failed"
25 sed -i 's:/var/adm:/var/log:g' chklastlog.c || die "sed chklastlog.c failed"
26 }
27
28 src_compile() {
29 emake \
30 CC=$(tc-getCC) \
31 CFLAGS="${CFLAGS}" \
32 LDFLAGS="${LDFLAGS}" \
33 sense || die "emake sense failed"
34 }
35
36 src_install() {
37 dosbin chkdirs chklastlog chkproc chkrootkit chkwtmp chkutmp ifpromisc \
38 strings-static || die
39 dodoc ACKNOWLEDGMENTS README*
40
41 exeinto /etc/cron.weekly
42 newexe ${FILESDIR}/${PN}.cron ${PN} || die
43 }
44
45 pkg_postinst() {
46 echo
47 elog "Edit /etc/cron.weekly/chkrootkit to activate chkrootkit!"
48 elog
49 elog "Some applications, such as portsentry, will cause chkrootkit"
50 elog "to produce false positives. Read the chkrootkit FAQ at"
51 elog "http://www.chkrootkit.org/ for more information."
52 echo
53 }

  ViewVC Help
Powered by ViewVC 1.1.20