summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2008-02-22 19:35:31 +0000
committerRobin H. Johnson <robbat2@gentoo.org>2008-02-22 19:35:31 +0000
commit7402ecb1f92e161540933280c05d54350613aa00 (patch)
tree94ab0866b1e14b86c7beceec8e3cc6b0134f5ab8 /app-admin
parentremove old versions (diff)
downloadgentoo-2-7402ecb1f92e161540933280c05d54350613aa00.tar.gz
gentoo-2-7402ecb1f92e161540933280c05d54350613aa00.tar.bz2
gentoo-2-7402ecb1f92e161540933280c05d54350613aa00.zip
Add timestamps to MCE output.
(Portage version: 2.1.4.4)
Diffstat (limited to 'app-admin')
-rw-r--r--app-admin/mcelog/ChangeLog6
-rw-r--r--app-admin/mcelog/files/mcelog-0.8_pre1-timestamp-mcelog.patch8
-rw-r--r--app-admin/mcelog/mcelog-0.8_pre1.ebuild8
3 files changed, 20 insertions, 2 deletions
diff --git a/app-admin/mcelog/ChangeLog b/app-admin/mcelog/ChangeLog
index a3443dc96b5d..e9258d558a41 100644
--- a/app-admin/mcelog/ChangeLog
+++ b/app-admin/mcelog/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for app-admin/mcelog
# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-admin/mcelog/ChangeLog,v 1.15 2008/02/22 05:31:53 robbat2 Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-admin/mcelog/ChangeLog,v 1.16 2008/02/22 19:35:30 robbat2 Exp $
+
+ 22 Feb 2008; Robin H. Johnson <robbat2@gentoo.org>
+ +files/mcelog-0.8_pre1-timestamp-mcelog.patch, mcelog-0.8_pre1.ebuild:
+ Add timestamps to MCE output.
22 Feb 2008; Robin H. Johnson <robbat2@gentoo.org> mcelog-0.8_pre1.ebuild:
Fix it now that zmedico has a good bug report.
diff --git a/app-admin/mcelog/files/mcelog-0.8_pre1-timestamp-mcelog.patch b/app-admin/mcelog/files/mcelog-0.8_pre1-timestamp-mcelog.patch
new file mode 100644
index 000000000000..d24afdbfe00e
--- /dev/null
+++ b/app-admin/mcelog/files/mcelog-0.8_pre1-timestamp-mcelog.patch
@@ -0,0 +1,8 @@
+diff -Nuar mcelog-0.8pre.orig/mcelog.cron mcelog-0.8pre/mcelog.cron
+--- mcelog-0.8pre.orig/mcelog.cron 2006-02-08 05:09:03.000000000 -0800
++++ mcelog-0.8pre/mcelog.cron 2008-02-22 11:32:06.717012502 -0800
+@@ -1,2 +1,3 @@
+ #!/bin/bash
+-/usr/sbin/mcelog --ignorenodev --filter >> /var/log/mcelog
++header="$(date +"%b %d %H:%M:%S") $(hostname) "
++/usr/sbin/mcelog --ignorenodev --filter | sed "s,^,$header,g" >> /var/log/mcelog
diff --git a/app-admin/mcelog/mcelog-0.8_pre1.ebuild b/app-admin/mcelog/mcelog-0.8_pre1.ebuild
index 25dedfc02b5b..b6b9cb3f1c3a 100644
--- a/app-admin/mcelog/mcelog-0.8_pre1.ebuild
+++ b/app-admin/mcelog/mcelog-0.8_pre1.ebuild
@@ -1,9 +1,10 @@
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-admin/mcelog/mcelog-0.8_pre1.ebuild,v 1.5 2008/02/22 05:31:53 robbat2 Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-admin/mcelog/mcelog-0.8_pre1.ebuild,v 1.6 2008/02/22 19:35:30 robbat2 Exp $
MY_PV="${PV/_pre1/pre}"
MY_P="${PN}-${MY_PV}"
+
DESCRIPTION="A tool to log and decode Machine Check Exceptions"
HOMEPAGE="ftp://ftp.x86-64.org/pub/linux/tools/mcelog/"
SRC_URI="ftp://ftp.x86-64.org/pub/linux/tools/${PN}/${MY_P}.tar.gz"
@@ -20,6 +21,11 @@ RDEPEND="virtual/cron"
S="${WORKDIR}/${MY_P}"
+src_unpack() {
+ unpack ${A}
+ epatch "${FILESDIR}"/${PN}-0.8_pre1-timestamp-mcelog.patch
+}
+
src_install() {
dosbin mcelog dbquery
doman mcelog.8