diff options
author | 2008-10-06 20:00:12 +0000 | |
---|---|---|
committer | 2008-10-06 20:00:12 +0000 | |
commit | e91f3349d5863901b22b99e082f0664c61bb9345 (patch) | |
tree | fea804bd50a65998f360f5e726d9c06925e3f375 /app-forensics/chkrootkit/chkrootkit-0.48-r1.ebuild | |
parent | remove vntex block, its gone (diff) | |
download | historical-e91f3349d5863901b22b99e082f0664c61bb9345.tar.gz historical-e91f3349d5863901b22b99e082f0664c61bb9345.tar.bz2 historical-e91f3349d5863901b22b99e082f0664c61bb9345.zip |
Fixed chkutmp crash, bug #184962, thank barbaz for report and Stewart Gebbie for the fix.
Package-Manager: portage-2.2_rc11/cvs/Linux 2.6.26-gentoo-r1 i686
Diffstat (limited to 'app-forensics/chkrootkit/chkrootkit-0.48-r1.ebuild')
-rw-r--r-- | app-forensics/chkrootkit/chkrootkit-0.48-r1.ebuild | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/app-forensics/chkrootkit/chkrootkit-0.48-r1.ebuild b/app-forensics/chkrootkit/chkrootkit-0.48-r1.ebuild new file mode 100644 index 000000000000..e1f30d27d78e --- /dev/null +++ b/app-forensics/chkrootkit/chkrootkit-0.48-r1.ebuild @@ -0,0 +1,48 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-forensics/chkrootkit/chkrootkit-0.48-r1.ebuild,v 1.1 2008/10/06 20:00:11 pva 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/${P}-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}" + + epatch "${WORKDIR}/${P}-gentoo.diff" + epatch "${FILESDIR}/${P}-shell-history-anomalies.diff" + epatch "${FILESDIR}/${P}-chkutmp.c-some-overruns-fixes.patch" + sed -i 's:/var/adm/:/var/log/:g' chklastlog.c || die "sed chklastlog.c failed" +} + +src_compile() { + emake CC=$(tc-getCC) STRIP=true 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 +} |