ChangeLog

# ChangeLog for app-forensics/chkrootkit
# Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2
# $Header: /var/cvsroot/gentoo-x86/app-forensics/chkrootkit/ChangeLog,v 1.46 2008/03/12 09:47:31 phreak Exp $

12 Mar 2008; Christian Heim metadata.xml:
Removing Robert Clark (hyakuhei, #154737) from metadata.xml.

21 May 2007; Jeroen Roovers chkrootkit-0.47.ebuild:
Stable for HPPA (bug #170634).

20 May 2007; Raúl Porcel chkrootkit-0.47.ebuild:
alpha/ia64 stable wrt #170634

19 May 2007; Peter Weller chkrootkit-0.47.ebuild:
Stable on amd64 wrt bug 170634

19 May 2007; nixnut chkrootkit-0.47.ebuild:
Stable on ppc wrt bug 170634

19 May 2007; Andrej Kacian chkrootkit-0.47.ebuild:
Stable on x86, bug #170634.

19 May 2007; Markus Rothe chkrootkit-0.47.ebuild:
Stable on ppc64; bug #170634

18 May 2007; Robert Clark metadata.xml:
Added myself to metadata.xml as maintainer

18 May 2007; Gustavo Zacarias
chkrootkit-0.47.ebuild:
Stable on sparc wrt #170634

19 Mar 2007; Bryan Østergaard metadata.xml:
Remove ka0ttic from metadata.xml due to retirement.

26 Jan 2007; Alexander H. Færøy
chkrootkit-0.45.ebuild:
Stable on MIPS.

24 Jan 2007; Marius Mauch chkrootkit-0.44-r1.ebuild,
chkrootkit-0.45.ebuild, chkrootkit-0.46a.ebuild:
Replacing einfo with elog

*chkrootkit-0.47 (19 Nov 2006)

19 Nov 2006; Tristan Heaven
+files/chkrootkit-0.47-add-missing-includes.diff,
+files/chkrootkit-0.47-makefile.diff, +chkrootkit-0.47.ebuild:
Version bump, bug #154823

*chkrootkit-0.46a (28 Oct 2005)

28 Oct 2005; Aaron Walker -chkrootkit-0.46.ebuild,
+chkrootkit-0.46a.ebuild:
Version bump; tidy previous ebuild.

27 Oct 2005; Aaron Walker chkrootkit-0.46.ebuild:
Bah fix the keywords...

*chkrootkit-0.46 (27 Oct 2005)

27 Oct 2005; Aaron Walker
+files/chkrootkit-0.46-add-missing-includes.diff, +chkrootkit-0.46.ebuild:
Version bump.

06 Aug 2005; Aaron Walker -chkrootkit-0.43-r3.ebuild,
-chkrootkit-0.43-r4.ebuild, -chkrootkit-0.44.ebuild,
chkrootkit-0.44-r1.ebuild, chkrootkit-0.45.ebuild:
Added ~mips for bug 88425. Tidy old ebuilds.

03 Aug 2005; Bryan Østergaard chkrootkit-0.45.ebuild:
Stable on alpha.

06 Jun 2005; Markus Rothe chkrootkit-0.45.ebuild:
Stable on ppc64

29 May 2005; Marcus D. Hanwell chkrootkit-0.45.ebuild:
Stable on amd64.

27 May 2005; Joseph Jezak chkrootkit-0.45.ebuild:
Marked ppc stable.

26 May 2005; Gustavo Zacarias
chkrootkit-0.45.ebuild:
Stable on sparc

25 May 2005; Aaron Walker chkrootkit-0.45.ebuild:
Stable on x86.

08 Apr 2005; Markus Rothe chkrootkit-0.44-r1.ebuild:
Stable on ppc64

*chkrootkit-0.45 (25 Feb 2005)

25 Feb 2005; Aaron Walker
+files/chkrootkit-0.45-makefile.diff, +chkrootkit-0.45.ebuild:
Version bump.

*chkrootkit-0.44-r1 (23 Jan 2005)

23 Jan 2005; Daniel Black
+files/chkrootkit-0.44-coreutils-static-falsepositive.patch,
+chkrootkit-0.44-r1.ebuild:
Revision bump to solve false detections with static coreutils (du and ls). Bug
#73372 refers. Thanks to the author Nelson Murilo for
a very rapid response.

28 Dec 2004; Ciaran McCreesh :
Change encoding to UTF-8 for GLEP 31 compliance

16 Dec 2004; Dylan Carlson chkrootkit-0.44.ebuild:
Stable on amd64.

11 Nov 2004; Bryan Østergaard chkrootkit-0.44.ebuild:
Stable on alpha.

01 Nov 2004; Gustavo Zacarias chkrootkit-0.44.ebuild:
Stable on sparc

30 Oct 2004; Aaron Walker chkrootkit-0.44.ebuild:
Marked stable on x86.

17 Oct 2004; Dylan Carlson
chkrootkit-0.43-r4.ebuild:
stable on amd64.

08 Oct 2004; Jason Wever chkrootkit-0.43-r4.ebuild:
Stable on sparc.

05 Oct 2004; Bryan Østergaard chkrootkit-0.43-r4.ebuild:
Stable on alpha.

04 Oct 2004; Aaron Walker -chkrootkit-0.43-r2.ebuild,
chkrootkit-0.43-r4.ebuild, -chkrootkit-0.43.ebuild:
Marked 0.43-r4 stable on x86; clean up old versions.

28 Sep 2004; Aaron Walker chkrootkit-0.44.ebuild:
Updated ebuild & diff to respect user CFLAGS/LDFLAGS as well as
FEATURES=nostrip. Added warning message for false positives (bug #65635).
Also, marked ~ppc64 (should've been carried over from 0.43-r3).

19 Sep 2004; Bryan Østergaard,,,
chkrootkit-0.43-r3.ebuild:
Stable on alpha.

*chkrootkit-0.44 (18 Sep 2004)

18 Sep 2004; Aaron Walker
-files/chkrootkit-0.37-gentoo.diff, -chkrootkit-0.37.ebuild,
+chkrootkit-0.44.ebuild:
Version bump and clean up.

18 Sep 2004; Travis Tilley chkrootkit-0.43-r3.ebuild:
stable on amd64

18 Sep 2004; Jason Wever chkrootkit-0.43-r3.ebuild:
Stable on sparc.

18 Sep 2004; Tom Gall chkrootkit-0.43-r3.ebuild:
stable on ppc

18 Sep 2004; Tom Gall chkrootkit-0.43-r3.ebuild:
stable on ppc64

18 Sep 2004; Aaron Walker chkrootkit-0.43-r3.ebuild:
Marked 0.43-r3 stable on x86.

12 Sep 2004; Aaron Walker metadata.xml:
Updated metadata (no-herd => forensics)

*chkrootkit-0.43-r2 (12 Sep 2004)

12 Sep 2004; Daniel Black +metadata.xml,
+files/chkrootkit-0.37-gentoo.diff, +files/chkrootkit.cron,
+chkrootkit-0.37.ebuild, +chkrootkit-0.43-r2.ebuild,
+chkrootkit-0.43-r3.ebuild, +chkrootkit-0.43-r4.ebuild,
+chkrootkit-0.43.ebuild:
Moved from app-admin/chkrootkit to app-forensics/chkrootkit.

11 Sep 2004; Aaron Walker metadata.xml:
Updated metadata info.

28 Aug 2004; Bryan Østergaard chkrootkit-0.43-r4.ebuild:
Fix bug 62049.

*chkrootkit-0.43-r4 (27 Aug 2004)

27 Aug 2004; +files/chkrootkit.cron,
+chkrootkit-0.43-r4.ebuild:
Added cron.weekly entry - disabled per default. See bug # 56267.

26 Aug 2004; Jason Wever chkrootkit-0.43-r2.ebuild:
Stable on sparc.

22 Aug 2004; Bryan Østergaard :
Fix digest again..

22 Aug 2004; Bryan Østergaard :
Fix broken digest.

22 Aug 2004; Bryan Østergaard chkrootkit-0.43-r2.ebuild:
Stable on alpha + x86.

*chkrootkit-0.43-r3 (22 Aug 2004)

22 Aug 2004; Bryan Østergaard
-files/chkrootkit-0.39a-gentoo.diff, -files/chkrootkit-0.41-gentoo.diff,
-files/chkrootkit-0.42b-gentoo.diff, chkrootkit-0.43-r2.ebuild,
+chkrootkit-0.43-r3.ebuild, chkrootkit-0.43.ebuild:
Fix bug 57700, new revision by Aaron Walker. Move big patches to gentoo
mirrors and clean out stray patches from files/.

29 Jul 2004; chkrootkit-0.43-r2.ebuild:
app-admin/chkrootkit: strings-static is not static. bug 57701

27 Jul 2004; Michael Sterrett
-chkrootkit-0.42b.ebuild, -chkrootkit-0.43-r1.ebuild:
prune ebuilds

24 Jul 2004; chkrootkit-0.43-r1.ebuild,
chkrootkit-0.43-r2.ebuild, chkrootkit-0.43.ebuild:
force broken chklastlog to use /var/log vs /var/adm. bug 57698

*chkrootkit-0.43-r2 (08 Jul 2004)

08 Jul 2004; Martin Holzer
+files/chkrootkit-0.43-r2-gentoo.diff, chkrootkit-0.43-r1.ebuild,
+chkrootkit-0.43-r2.ebuild:
fixing a forgotten string.

*chkrootkit-0.43-r1 (03 Jul 2004)

03 Jul 2004; +files/chkrootkit-0.43-r1-gentoo.diff,
+chkrootkit-0.43-r1.ebuild:
Fixed the buggy patch.. Closing bug #55796.

29 Jun 2004; Aron Griffis chkrootkit-0.42b.ebuild,
chkrootkit-0.43.ebuild:
add sed-4 dep

23 Jun 2004; chkrootkit-0.43.ebuild:
Mark stable on amd64

16 Jun 2004; Bryan Østergaard chkrootkit-0.43.ebuild:
Stable on alpha.

07 Jun 2004; Jason Wever chkrootkit-0.43.ebuild:
Stable on sparc.

06 Jun 2004; Daniel Black chkrootkit-0.37.ebuild,
chkrootkit-0.43.ebuild, +metadata.xml:
x86 stable. QA fix on 0.37 - IUSE

01 Jun 2004; Michael Sterrett
chkrootkit-0.42b.ebuild, chkrootkit-0.43.ebuild:
fix depend; tidy

30 Apr 2004; Martin Holzer chkrootkit-0.43.ebuild,
files/chkrootkit-0.43-gentoo.diff:
finaly closes 41040.

09 Apr 2004; chkrootkit-0.42b.ebuild:
Added filter-ldflags -pie to avoid static linking problems when LDFLAGS=-pie
is used. bug 47057

02 Mar 2004; Jason Wever chkrootkit-0.42b.ebuild:
Stable on sparc I am, yes.

*chkrootkit-0.43 (29 Feb 2004)

29 Feb 2004; Markus Nigbur chkrootkit-0.43.ebuild:
Version bump. Closing #41040.

29 Feb 2004; Markus Nigbur chkrootkit-0.42b.ebuild:
Stable on x86

08 Feb 2004; Dylan Carlson chkrootkit-0.42b.ebuild:
added amd64 keyword.

04 Jan 2004; Jason Wever chkrootkit-0.37.ebuild,
chkrootkit-0.39a.ebuild, chkrootkit-0.41-r1.ebuild, chkrootkit-0.42b.ebuild:
Marked 0.41-r1 stable on sparc and updated copyright info in all ebuilds.

24 Nov 2003; Seemant Kulleen chkrootkit-0.42b.ebuild:
coreutils fix -- head -1 to head -n 1 syntax

16 Oct 2003; Aron Griffis chkrootkit-0.42b.ebuild:
Stable on alpha

14 Oct 2003; Chuck Short chkrootkit-0.42b.ebuild:
Added ~ia64 to keywords.

*chkrootkit-0.42b (06 Oct 2003)

06 Oct 2003; Martin Holzer chkrootkit-0.42b.ebuild,
files/chkrootkit-0.42b-gentoo.diff:
Version bumped. Closes #30368

03 Oct 2003; Aron Griffis chkrootkit-0.41-r1.ebuild:
Stable on alpha

*chkrootkit-0.41-r1 (18 Jul 2003)

18 Jul 2003; Martin Holzer chkrootkit-0.41-r1.ebuild,
chkrootkit-0.41.ebuild, files/chkrootkit-0.41-gentoo.diff:
little bugfix.

*chkrootkit-0.41 (16 Jul 2003)

16 Jul 2003; Martin Holzer chkrootkit-0.41.ebuild:
Version bumped. Ebuild ssubmitted by Daniel Seyffer
in #24313.

*chkrootkit-0.39a (27 Feb 2003)

27 Feb 2003; Daniel Ahlberg :
Version bump. Found by Daniel Seyffer in #15743.

06 Dec 2002; Rodney Rees : changed sparc ~sparc keywords

*chkrootkit-0.37 (18 Sept 2002)

15 Dec 2002; Bjoern Brauel chkrootkit-0.37.ebuild :
Add alpha to KEYWORDS

29 Nov 2002; Daniel Ahlberg chkrootkit-0.37.ebuild :
Added patch from Kurt V. Hindenburg in #11164.

18 Sept 2002; Daniel Seyffer
chkrootkit-0.37.ebuild :
New features according to www.chkrootkit.org:
chklastlog.c fix; chkproc.c improvements;
new rootkits detected:
OpenBSD rk v1
Illogic rootkit
SK rootkit
new worms detected:
Scalper (FreeBSD/Apache chunked encoding worm)
Slapper (Apache/mod_ssl Worm)

*chkrootkit-0.36 (18 Jul 2002)

29 Jul 2002; Calum Selkirk chkrootkit-0.36.ebuild :
Added ppc KEYWORDS. Added RDEPEND.

18 Jul 2002; Daniel Robbins : Added missing ChangeLog

Manifest

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

AUX chkrootkit-0.44-coreutils-static-falsepositive.patch 793 RMD160 476ad936624ea622e89e0ca231885c209e69c0f2 SHA1 f29c45a58374ae993a5afb4ee87968b2a47896f4 SHA256 68b783a18a9e2c246a6daf45bc6ae13fd251cac00bf34d6fe315504ae8720fc7
AUX chkrootkit-0.45-makefile.diff 1866 RMD160 053ef2e9f5a45427f32f9a1af1934e5e0420b06f SHA1 a5d5f9ac8381735651a2fa8f24f5ac61afe92160 SHA256 b31448e463b7a73eed9bf366b74048288ef1dc1967609af52fa9913c145d7b3d
AUX chkrootkit-0.46-add-missing-includes.diff 769 RMD160 5247693018ac56376f67dc3598a452f46b38cb63 SHA1 8c571297cecc4b3b78cb742b17c6a9a10967655c SHA256 9798aebaa3aa6c864d51d660186d6493ab31e10249c6d191329b82fe1fce07ef
AUX chkrootkit-0.47-add-missing-includes.diff 152 RMD160 12cec174e951f388021cf877115e1e710c0e55e9 SHA1 ccf69ed8f3c635c628541e248e1825692e0c8943 SHA256 3b194908c2127a0e48558ad6b058cac6eb1048e3abab6814af09c23085c4070b
AUX chkrootkit-0.47-makefile.diff 1895 RMD160 f9993fe6b97afefd4838a142050e90bce7c29737 SHA1 da6a7185fb9201fbce8caec65ed2c2d7f911e706 SHA256 7f92e89219f0d308f534072329e0904fe372d3ff7612c33265dec5c3c11014c9
AUX chkrootkit.cron 78 RMD160 54e1c50088e2a90fad7340c0d0ebbe2099ff3dcc SHA1 1598c7ea3abf7c2497c30953d92d51cb42496eeb SHA256 3dfcff479e3b9e1cd79c6a65e0e668750dec0a88b09715d4fdf163c692a22412
DIST chkrootkit-0.44-gentoo.diff.bz2 4049 RMD160 253fb7a550d5c4b159095001f714b6ad0d561019 SHA1 36a062d5298f5f6eff302fe541ec49789130744d SHA256 7de153ab7cef65df3c3c2d37c73dff8cf4e26596ff2d45a7d40e77c63e746e65
DIST chkrootkit-0.44.tar.gz 34163 RMD160 8a6fc38b300ed2ada879e15d7abe008914e16b75 SHA1 54610d8dac4d0585306d95be5a55c2ac02c5fec6 SHA256 d01098099b7b094310dfd8cf8d2d9adb068b47fe1643fba716d6a658c3ecbab5
DIST chkrootkit-0.45-gentoo.diff.bz2 3729 RMD160 84c1ca6b0f791b0727a1e61d104b23b4b3a9eb68 SHA1 b28633113895723de85ddc3b66b561d4a68c746c SHA256 ca26f4113c2e511f87179bc673faa198ab9b2e6d6de0134443ed301f0ebb1362
DIST chkrootkit-0.45.tar.gz 36359 RMD160 f8aebf97993a8fbd51d98478dcf185f5e8a0f501 SHA1 2344585d0184d73a817fb8d4849dd8db36e7a6fa SHA256 67ce369dee026bd488baa977483c0d9784bc6763c815f6018ce19227669ec926
DIST chkrootkit-0.46a.tar.gz 37140 RMD160 9016abfd7cd3d986aec86722c9a9b88dea7bf49b SHA1 5213b107cda5e5165da463650885efe8c15a14d2 SHA256 ec23b4be57e08f6c28f646a447a8545f9c612fd4b296133ac9c3c3ac13e1d696
DIST chkrootkit-0.47.tar.gz 37791 RMD160 291746f60d0cc3bcf0e63387f3d7ff16a4215d17 SHA1 ef9ba1208572662a0da51dc284de550bf6378143 SHA256 5a5aeb597769cc2843648858b95fc7abd3485ba7edd1800d69e0125220c6669f
EBUILD chkrootkit-0.44-r1.ebuild 1585 RMD160 67df115fcd9b61a4cd432a36fd1ec7007aeeca27 SHA1 e79dc07905364fde17bb72a7103268b1eb9e563a SHA256 904cdf299664cb6e08615aa2525ec235175a3a33e64977bbaecfd9d7e23d018d
EBUILD chkrootkit-0.45.ebuild 1506 RMD160 79e694d8fa21bae185be417e024d043e499472ce SHA1 af3a5e405fd02cbccfa4c04820b449932d447e00 SHA256 a6b8380ce124d1d2f9d57e3dca546dcd2e22242f621daa1b7326d5c8c499e3c7
EBUILD chkrootkit-0.46a.ebuild 1841 RMD160 2f8bb02d49e33e5fb5c2afdc342f1a003ae7657d SHA1 ed795997e1ae6126986b63e5fb21d9310ff79bb3 SHA256 e7c5e7cbecf4e536bc9933f1b7939f99fc6466673889e33b21455d712a7e2bd1
EBUILD chkrootkit-0.47.ebuild 1732 RMD160 a01de8a106fd460668e11d2443dd54e7cef6b87a SHA1 ddd02869aa3b65ea592340e3bcd89de1b9c8c404 SHA256 0363cf50aab5fef3d6959fcb58b7ee21a01c18b708cae9e60e9a2abb2aa0a5e6
MISC ChangeLog 11856 RMD160 6fae55ea11a8fe408de12117ee219e5603660d2c SHA1 09b0d75cc257c1e6f50b437ffdd335e8e73766ff SHA256 6be2dfb4be4cc62298d8fa76b16afba87f0c61ff924900e85ed2b17391ec8ec2
MISC metadata.xml 163 RMD160 cd9adc76a05a5a4d079045e90a823e487000fbe0 SHA1 499d07496dd075e4685d50b4a3284386d29d7de4 SHA256 a072456ba64483cd3108f6125498634a060a449c9ce7dfa512549fbf78601e09
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.7 (GNU/Linux)

iD8DBQFH16a4yuNVb5qfaOYRAjK3AJ910V+qZ7KJb/Tc85eZNKJqkgGnNgCgjXdK
dMcINgcJfXjFhKuWyI0ksGk=
=7mOV
-----END PGP SIGNATURE-----

chkrootkit-0.44-r1.ebuild

# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-forensics/chkrootkit/chkrootkit-0.44-r1.ebuild,v 1.4 2007/01/24 03:16:55 genone Exp $

inherit eutils flag-o-matic toolchain-funcs

DESCRIPTION="a tool to locally check for signs of a rootkit"
HOMEPAGE="http://www.chkrootkit.org/"
SRC_URI="ftp://ftp.pangeia.com.br/pub/seg/pac/${P}.tar.gz
mirror://gentoo/${P}-gentoo.diff.bz2"

LICENSE="AMS"
SLOT="0"
KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sparc x86"
IUSE=""

DEPEND="virtual/libc"

src_unpack() {
unpack ${A}
cd ${S}
epatch ${WORKDIR}/${P}-gentoo.diff || die "patch failed"
sed -i 's:${head} -:${head} -n :' chkrootkit || die "sed chkrootkit failed"
sed -i 's:/var/adm:/var/log:g' chklastlog.c || die "sed chklastlog.c failed"
epatch ${FILESDIR}/${P}-coreutils-static-falsepositive.patch || die "patch failed"
}

src_compile() {
emake \
CC=$(tc-getCC) \
CFLAGS="${CFLAGS}" \
LDFLAGS="${LDFLAGS}" \
sense || die "emake sense failed"
}

src_install() {
dosbin chkdirs chklastlog chkproc chkrootkit chkwtmp ifpromisc \
strings-static || die
dodoc README README.chklastlog README.chkwtmp

exeinto /etc/cron.weekly
newexe ${FILESDIR}/${PN}.cron ${PN} || die
}

pkg_postinst() {
echo
elog "Edit /etc/cron.weekly/chkrootkit to activate chkrootkit!"
elog
elog "Some applications, such as portsentry, will cause chkrootkit"
elog "to produce false positives. Read the chkrootkit FAQ at"
elog "http://www.chkrootkit.org/ for more information."
echo
}

chkrootkit-0.45.ebuild

# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-forensics/chkrootkit/chkrootkit-0.45.ebuild,v 1.11 2007/01/26 20:10:52 eroyf Exp $

inherit eutils flag-o-matic toolchain-funcs

DESCRIPTION="a tool to locally check for signs of a rootkit"
HOMEPAGE="http://www.chkrootkit.org/"
SRC_URI="ftp://ftp.pangeia.com.br/pub/seg/pac/${P}.tar.gz
mirror://gentoo/${P}-gentoo.diff.bz2"

LICENSE="AMS"
SLOT="0"
KEYWORDS="alpha amd64 arm hppa ia64 mips ppc ppc64 s390 sparc x86"
IUSE=""

DEPEND="virtual/libc"

src_unpack() {
unpack ${A}
cd ${S}
epatch ${FILESDIR}/${P}-makefile.diff
epatch ${WORKDIR}/${P}-gentoo.diff
sed -i 's:${head} -:${head} -n :' chkrootkit || die "sed chkrootkit failed"
sed -i 's:/var/adm:/var/log:g' chklastlog.c || die "sed chklastlog.c failed"
}

src_compile() {
emake \
CC=$(tc-getCC) \
CFLAGS="${CFLAGS}" \
LDFLAGS="${LDFLAGS}" \
sense || die "emake sense failed"
}

src_install() {
dosbin chkdirs chklastlog chkproc chkrootkit chkwtmp chkutmp ifpromisc \
strings-static || die
dodoc ACKNOWLEDGMENTS README*

exeinto /etc/cron.weekly
newexe ${FILESDIR}/${PN}.cron ${PN} || die
}

pkg_postinst() {
echo
elog "Edit /etc/cron.weekly/chkrootkit to activate chkrootkit!"
elog
elog "Some applications, such as portsentry, will cause chkrootkit"
elog "to produce false positives. Read the chkrootkit FAQ at"
elog "http://www.chkrootkit.org/ for more information."
echo
}

chkrootkit-0.46a.ebuild

# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-forensics/chkrootkit/chkrootkit-0.46a.ebuild,v 1.2 2007/01/24 03:16:55 genone Exp $

inherit eutils flag-o-matic toolchain-funcs

DESCRIPTION="a tool to locally check for signs of a rootkit"
HOMEPAGE="http://www.chkrootkit.org/"
SRC_URI="ftp://ftp.pangeia.com.br/pub/seg/pac/${P}.tar.gz
mirror://gentoo/${PN}-0.45-gentoo.diff.bz2"

LICENSE="AMS"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86"
IUSE=""

DEPEND="virtual/libc"

src_unpack() {
unpack ${A}
cd ${S}

# we can use the gentoo patch for 0.45 but it needs one change to apply
# cleanly -- certainly not enough to warrant using a separate 32k patch.
sed -e 's|\(xlogin\)|\^\1|' ${WORKDIR}/${PN}-0.45-gentoo.diff > \
${WORKDIR}/${P}-gentoo.diff
epatch ${WORKDIR}/${P}-gentoo.diff

epatch ${FILESDIR}/${PN}-0.45-makefile.diff
epatch ${FILESDIR}/${PN}-0.46-add-missing-includes.diff

sed -i 's:${head} -:${head} -n :' chkrootkit || die "sed chkrootkit failed"
sed -i 's:/var/adm:/var/log:g' chklastlog.c || die "sed chklastlog.c failed"
}

src_compile() {
emake \
CC=$(tc-getCC) \
CFLAGS="${CFLAGS}" \
LDFLAGS="${LDFLAGS}" \
sense || die "emake sense failed"
}

src_install() {
dosbin chkdirs chklastlog chkproc chkrootkit chkwtmp chkutmp ifpromisc \
strings-static || die
dodoc ACKNOWLEDGMENTS README*

exeinto /etc/cron.weekly
newexe ${FILESDIR}/${PN}.cron ${PN} || die
}

pkg_postinst() {
echo
elog "Edit /etc/cron.weekly/chkrootkit to activate chkrootkit!"
elog
elog "Some applications, such as portsentry, will cause chkrootkit"
elog "to produce false positives. Read the chkrootkit FAQ at"
elog "http://www.chkrootkit.org/ for more information."
echo
}

chkrootkit-0.47.ebuild

# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-forensics/chkrootkit/chkrootkit-0.47.ebuild,v 1.9 2007/06/24 21:15:11 vapier Exp $

inherit eutils toolchain-funcs

DESCRIPTION="a tool to locally check for signs of a rootkit"
HOMEPAGE="http://www.chkrootkit.org/"
SRC_URI="ftp://ftp.pangeia.com.br/pub/seg/pac/${P}.tar.gz
mirror://gentoo/${PN}-0.45-gentoo.diff.bz2"

LICENSE="AMS"
SLOT="0"
KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86"
IUSE=""

src_unpack() {
unpack ${A}
cd "${S}"

# we can use the gentoo patch for 0.45 but it needs one change to apply
# cleanly -- certainly not enough to warrant using a separate 32k patch.
sed -e 's|\(xlogin\)|\^\1|' "${WORKDIR}"/${PN}-0.45-gentoo.diff > \
"${WORKDIR}"/${P}-gentoo.diff

epatch \
"${WORKDIR}"/${P}-gentoo.diff \
"${FILESDIR}"/${P}-makefile.diff \
"${FILESDIR}"/${P}-add-missing-includes.diff

sed -i 's:${head} -:${head} -n :' chkrootkit || die "sed chkrootkit failed"
sed -i 's:/var/adm:/var/log:g' chklastlog.c || die "sed chklastlog.c failed"
}

src_compile() {
emake CC=$(tc-getCC) sense || die "emake sense failed"
}

src_install() {
dosbin chkdirs chklastlog chkproc chkrootkit chkwtmp chkutmp ifpromisc \
strings-static || die
dodoc ACKNOWLEDGMENTS README*

exeinto /etc/cron.weekly
newexe "${FILESDIR}"/${PN}.cron ${PN} || die
}

pkg_postinst() {
echo
elog "Edit /etc/cron.weekly/chkrootkit to activate chkrootkit!"
elog
elog "Some applications, such as portsentry, will cause chkrootkit"
elog "to produce false positives. Read the chkrootkit FAQ at"
elog "http://www.chkrootkit.org/ for more information."
echo
}

files

metadata.xml




forensics