/[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.2 - (hide annotations) (download)
Wed Jan 24 03:16:55 2007 UTC (11 years, 10 months ago) by genone
Branch: MAIN
Changes since 1.1: +7 -7 lines
Replacing einfo with elog
(Portage version: 2.1.2-r2)

1 genone 1.2 # Copyright 1999-2007 Gentoo Foundation
2 ka0ttic 1.1 # Distributed under the terms of the GNU General Public License v2
3 genone 1.2 # $Header: /var/cvsroot/gentoo-x86/app-forensics/chkrootkit/chkrootkit-0.46a.ebuild,v 1.1 2005/10/28 17:22:27 ka0ttic Exp $
4 ka0ttic 1.1
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 genone 1.2 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 ka0ttic 1.1 echo
61     }

  ViewVC Help
Powered by ViewVC 1.1.20