diff options
author | Mike Frysinger <vapier@gentoo.org> | 2006-11-10 00:21:17 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2006-11-10 00:21:17 +0000 |
commit | c2f68e3861718ffff1e07279e7803fd0042a3165 (patch) | |
tree | 7eb9a0ecde4b226f633b2fd79e60178c78161ed0 /sys-apps/logwatch | |
parent | do not use non-POSIX expression #154553 by Steve Haeck (diff) | |
download | gentoo-2-c2f68e3861718ffff1e07279e7803fd0042a3165.tar.gz gentoo-2-c2f68e3861718ffff1e07279e7803fd0042a3165.tar.bz2 gentoo-2-c2f68e3861718ffff1e07279e7803fd0042a3165.zip |
Try not to install two logwatch cron files #145361 by Brian Wood.
(Portage version: 2.1.2_rc1-r5)
Diffstat (limited to 'sys-apps/logwatch')
-rw-r--r-- | sys-apps/logwatch/ChangeLog | 5 | ||||
-rw-r--r-- | 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 <vapier@gentoo.org> logwatch-7.3-r1.ebuild: + Try not to install two logwatch cron files #145361 by Brian Wood. 01 Aug 2006; <tcort@gentoo.org> 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 +} |