diff options
Diffstat (limited to 'app-forensics/chkrootkit')
-rw-r--r-- | app-forensics/chkrootkit/ChangeLog | 7 | ||||
-rw-r--r-- | app-forensics/chkrootkit/chkrootkit-0.49.ebuild | 20 | ||||
-rw-r--r-- | app-forensics/chkrootkit/metadata.xml | 3 |
3 files changed, 22 insertions, 8 deletions
diff --git a/app-forensics/chkrootkit/ChangeLog b/app-forensics/chkrootkit/ChangeLog index 6bb6124802c5..d9508cbd80bc 100644 --- a/app-forensics/chkrootkit/ChangeLog +++ b/app-forensics/chkrootkit/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for app-forensics/chkrootkit # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-forensics/chkrootkit/ChangeLog,v 1.64 2011/09/22 20:30:14 radhermit Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-forensics/chkrootkit/ChangeLog,v 1.65 2011/09/28 00:40:46 radhermit Exp $ + + 28 Sep 2011; Tim Harder <radhermit@gentoo.org> chkrootkit-0.49.ebuild, + metadata.xml: + Add cron use flag to control cron dependency and script installation (bug + #384409). 22 Sep 2011; Tim Harder <radhermit@gentoo.org> chkrootkit-0.49.ebuild: Minor quoting and spacing fixes. diff --git a/app-forensics/chkrootkit/chkrootkit-0.49.ebuild b/app-forensics/chkrootkit/chkrootkit-0.49.ebuild index 4c5287e9a27e..4cca5d0b479d 100644 --- a/app-forensics/chkrootkit/chkrootkit-0.49.ebuild +++ b/app-forensics/chkrootkit/chkrootkit-0.49.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2011 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-forensics/chkrootkit/chkrootkit-0.49.ebuild,v 1.6 2011/09/22 20:30:14 radhermit Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-forensics/chkrootkit/chkrootkit-0.49.ebuild,v 1.7 2011/09/28 00:40:46 radhermit Exp $ EAPI="4" @@ -14,9 +14,9 @@ SRC_URI="ftp://ftp.pangeia.com.br/pub/seg/pac/${P}.tar.gz LICENSE="BSD-2" SLOT="0" KEYWORDS="~alpha amd64 arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc x86" -IUSE="" +IUSE="+cron" -RDEPEND="virtual/cron" +RDEPEND="cron? ( virtual/cron )" src_prepare() { epatch "${WORKDIR}"/${P}-gentoo.diff @@ -31,13 +31,19 @@ src_install() { dosbin chkdirs chklastlog chkproc chkrootkit chkwtmp chkutmp ifpromisc strings-static dodoc ACKNOWLEDGMENTS README* - exeinto /etc/cron.weekly - newexe "${FILESDIR}"/${PN}.cron ${PN} + if use cron ; then + exeinto /etc/cron.weekly + newexe "${FILESDIR}"/${PN}.cron ${PN} + fi } pkg_postinst() { - elog - elog "Edit /etc/cron.weekly/chkrootkit to activate chkrootkit!" + if use cron ; then + elog + elog "Edit /etc/cron.weekly/chkrootkit to activate chkrootkit!" + elog + fi + elog elog "Some applications, such as portsentry, will cause chkrootkit" elog "to produce false positives. Read the chkrootkit FAQ at" diff --git a/app-forensics/chkrootkit/metadata.xml b/app-forensics/chkrootkit/metadata.xml index 73acb1019b53..710ea088e6a5 100644 --- a/app-forensics/chkrootkit/metadata.xml +++ b/app-forensics/chkrootkit/metadata.xml @@ -2,4 +2,7 @@ <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> <pkgmetadata> <herd>forensics</herd> + <use> + <flag name="cron">Install cron script for weekly rootkit scans</flag> + </use> </pkgmetadata> |