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

Contents of /app-forensics/chkrootkit/chkrootkit-0.46a.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Mon Oct 6 19:38:01 2008 UTC (5 years, 11 months ago) by pva
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +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.46a.ebuild,v 1.2 2007/01/24 03:16:55 genone 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/${PN}-0.45-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
23 # we can use the gentoo patch for 0.45 but it needs one change to apply
24 # cleanly -- certainly not enough to warrant using a separate 32k patch.
25 sed -e 's|\(xlogin\)|\^\1|' ${WORKDIR}/${PN}-0.45-gentoo.diff > \
26 ${WORKDIR}/${P}-gentoo.diff
27 epatch ${WORKDIR}/${P}-gentoo.diff
28
29 epatch ${FILESDIR}/${PN}-0.45-makefile.diff
30 epatch ${FILESDIR}/${PN}-0.46-add-missing-includes.diff
31
32 sed -i 's:${head} -:${head} -n :' chkrootkit || die "sed chkrootkit failed"
33 sed -i 's:/var/adm:/var/log:g' chklastlog.c || die "sed chklastlog.c failed"
34 }
35
36 src_compile() {
37 emake \
38 CC=$(tc-getCC) \
39 CFLAGS="${CFLAGS}" \
40 LDFLAGS="${LDFLAGS}" \
41 sense || die "emake sense failed"
42 }
43
44 src_install() {
45 dosbin chkdirs chklastlog chkproc chkrootkit chkwtmp chkutmp ifpromisc \
46 strings-static || die
47 dodoc ACKNOWLEDGMENTS README*
48
49 exeinto /etc/cron.weekly
50 newexe ${FILESDIR}/${PN}.cron ${PN} || die
51 }
52
53 pkg_postinst() {
54 echo
55 elog "Edit /etc/cron.weekly/chkrootkit to activate chkrootkit!"
56 elog
57 elog "Some applications, such as portsentry, will cause chkrootkit"
58 elog "to produce false positives. Read the chkrootkit FAQ at"
59 elog "http://www.chkrootkit.org/ for more information."
60 echo
61 }

  ViewVC Help
Powered by ViewVC 1.1.20