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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Fri Oct 28 17:22:27 2005 UTC (8 years, 9 months ago) by ka0ttic
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
Version bump; tidy previous ebuild.
(Portage version: 2.0.53_rc6)

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.46.ebuild,v 1.2 2005/10/27 12:42:26 ka0ttic 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}/${P}-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 einfo "Edit /etc/cron.weekly/chkrootkit to activate chkrootkit!"
56 einfo
57 einfo "Some applications, such as portsentry, will cause chkrootkit"
58 einfo "to produce false positives. Read the chkrootkit FAQ at"
59 einfo "http://www.chkrootkit.org/ for more information."
60 echo
61 }

  ViewVC Help
Powered by ViewVC 1.1.20