From a80e080173f99a601edd3df642ff775d9218f69b Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Fri, 10 Nov 2006 00:21:17 +0000 Subject: Try not to install two logwatch cron files #145361 by Brian Wood. Package-Manager: portage-2.1.2_rc1-r5 --- sys-apps/logwatch/ChangeLog | 5 ++++- sys-apps/logwatch/logwatch-7.3-r1.ebuild | 11 ++++++++++- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/sys-apps/logwatch/ChangeLog b/sys-apps/logwatch/ChangeLog index 54bb5a5d9fef..3474c6e24e8a 100644 --- a/sys-apps/logwatch/ChangeLog +++ b/sys-apps/logwatch/ChangeLog @@ -1,6 +1,9 @@ # ChangeLog for sys-apps/logwatch # Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/logwatch/ChangeLog,v 1.37 2006/08/01 00:51:07 tcort Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-apps/logwatch/ChangeLog,v 1.38 2006/11/10 00:21:17 vapier Exp $ + + 10 Nov 2006; Mike Frysinger logwatch-7.3-r1.ebuild: + Try not to install two logwatch cron files #145361 by Brian Wood. 01 Aug 2006; logwatch-7.1.ebuild: Stable on alpha wrt Bug #140600. diff --git a/sys-apps/logwatch/logwatch-7.3-r1.ebuild b/sys-apps/logwatch/logwatch-7.3-r1.ebuild index 223d6e8aa5d3..5405d9dc0fa2 100644 --- a/sys-apps/logwatch/logwatch-7.3-r1.ebuild +++ b/sys-apps/logwatch/logwatch-7.3-r1.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/logwatch/logwatch-7.3-r1.ebuild,v 1.1 2006/07/23 09:50:47 azarah Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-apps/logwatch/logwatch-7.3-r1.ebuild,v 1.2 2006/11/10 00:21:17 vapier Exp $ DESCRIPTION="Analyzes and Reports on system logs" HOMEPAGE="http://www.logwatch.org/" @@ -64,3 +64,12 @@ src_install() { doman logwatch.8 dodoc project/CHANGES README HOWTO-Customize-LogWatch } + +pkg_postinst() { + if [[ -e ${ROOT}/etc/cron.daily/logwatch ]] ; then + local md5=$(md5sum "${ROOT}"/etc/cron.daily/logwatch) + [[ ${md5} == "edb003cbc0686ed4cf37db16025635f3" ]] \ + && rm -f "${ROOT}"/etc/cron.daily/logwatch \ + || ewarn "You have two logwatch files in /etc/cron.daily/" + fi +} -- cgit v1.2.3-65-gdbad