summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2015-08-08 13:49:04 -0700
committerRobin H. Johnson <robbat2@gentoo.org>2015-08-08 17:38:18 -0700
commit56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch)
tree3f91093cdb475e565ae857f1c5a7fd339e2d781e /app-admin/mcelog
downloadgentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz
gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2
gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip
proj/gentoo: Initial commit
This commit represents a new era for Gentoo: Storing the gentoo-x86 tree in Git, as converted from CVS. This commit is the start of the NEW history. Any historical data is intended to be grafted onto this point. Creation process: 1. Take final CVS checkout snapshot 2. Remove ALL ChangeLog* files 3. Transform all Manifests to thin 4. Remove empty Manifests 5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$ 5.1. Do not touch files with -kb/-ko keyword flags. Signed-off-by: Robin H. Johnson <robbat2@gentoo.org> X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'app-admin/mcelog')
-rw-r--r--app-admin/mcelog/Manifest7
-rw-r--r--app-admin/mcelog/files/mcelog-0.8_pre1-timestamp-mcelog.patch8
-rw-r--r--app-admin/mcelog/files/mcelog-1.0_pre3_p20120918-bashism.patch21
-rw-r--r--app-admin/mcelog/files/mcelog-1.0_pre3_p20120918-build.patch42
-rw-r--r--app-admin/mcelog/files/mcelog.init29
-rw-r--r--app-admin/mcelog/files/mcelog.init-r116
-rw-r--r--app-admin/mcelog/files/mcelog.service10
-rw-r--r--app-admin/mcelog/mcelog-1.0_pre3.ebuild49
-rw-r--r--app-admin/mcelog/mcelog-1.0_pre3_p20120918-r1.ebuild59
-rw-r--r--app-admin/mcelog/mcelog-1.0_pre3_p20130621-r1.ebuild60
-rw-r--r--app-admin/mcelog/mcelog-1.0_pre3_p20130621.ebuild59
-rw-r--r--app-admin/mcelog/mcelog-100.ebuild59
-rw-r--r--app-admin/mcelog/mcelog-103.ebuild59
-rw-r--r--app-admin/mcelog/mcelog-109.ebuild59
-rw-r--r--app-admin/mcelog/mcelog-117.ebuild53
-rw-r--r--app-admin/mcelog/metadata.xml23
16 files changed, 613 insertions, 0 deletions
diff --git a/app-admin/mcelog/Manifest b/app-admin/mcelog/Manifest
new file mode 100644
index 000000000000..8df5b42b08c3
--- /dev/null
+++ b/app-admin/mcelog/Manifest
@@ -0,0 +1,7 @@
+DIST mcelog-1.0_pre3_p20120918.tar.gz 284893 SHA256 21c3cfa2d4a5998495a50705124af452ef92d2ddf909c2b00c87a37cead8179a SHA512 fcb97a2b5fb13f9a161b9a5e9c85947baa41f61ec9f04e32d09f4ffa4e0f1854a449e73661bdf0eabb568f6721727fcf3ed3fdfabe69c8e2a6133159d862e594 WHIRLPOOL c6e85b652cc756729df29dd7be00351573cafebd18c01ee01c9b38f5a39de93e380f0e6d1a37b1f56db34993fec5564bde0591346a98b88c997664f07495c469
+DIST mcelog-1.0_pre3_p20130621.tar.gz 287524 SHA256 688306b877f70bc9406434b9cf497799fc7ac0a2e2793742b4bccd0a806d8bb9 SHA512 75d3628dde144f95400cadd1e1085a78c5e6c12761279780363aae402fddd1700dcfa6736ec4c44331569ab2a06c48fd87b5bbdfd03e937c0a5dc9eb89a4f5ab WHIRLPOOL 2ca1c98114283afa9f02036bfa928086b7de4ca1fefc5184c334e317e6e313042bbbe46ef8468f71d79fb28c0983ba52bedb59f49783b83771446068e3631f41
+DIST mcelog-1.0pre3.tar.gz 176649 SHA256 0782e0aa952fa4bd641071e6b501774a63993a813a4f494ffd7819521a13c50c SHA512 ef571cde8ce170d2003e6789116ff88fedfd5aeeb75d09bc5f9cafcb30eb081ca572e2604ba160e83ad927433d963d3bcbae06bca4c499a1bebcb8cc632355b0 WHIRLPOOL 3627567c42bf8685fb355f84e9405b5f7e36df57e2b73f8b40df52d12a4d2e37ef3a8d03311ab48068b76ac03cbbe0dea9acc24a001274544321b76f42f78c66
+DIST mcelog-100.tar.gz 288423 SHA256 b18f029ec9f498b6249b3a3dfef7753ac9d45ebf3382af452cb3e14d49274bab SHA512 efd7864daaafe5d149fc27259d4fa72221372842d41ad57c046c967fd1eb710ef921f45111e95bfe76df119276b3b9af1bf1094a9411037eb1f5ac06e319e87d WHIRLPOOL 9f2f7fdbb3c94b7740f486005641a90529e240c34f3709989e6e0d448c96369f4562408aa678ea992f47f396cdfb60c71eadf75475c52ff0cd6318a99c4ad2eb
+DIST mcelog-103.tar.gz 289648 SHA256 0ff3d20b449cac5289fec65c662a0cafd4062e75d6b45d11a265e57804f0c230 SHA512 5473f563927a49c3ab7c2affddc638248b0baf4d4a5326db889bfd37889a477f7fe37113cbeb2f2a4962f0427cc73ce4afe3b17f032956c8fa866c3eb080795e WHIRLPOOL c041aeadfe3844755d86ad62be81136d8c51dcaad85c96df1739f39b395c9a069c46cce7b687556d7703d8a05645d8bfb59955fdea3e99dcf0d3ebbfc5399bf1
+DIST mcelog-109.tar.gz 291753 SHA256 0b842274e9d19f14d26d0797ebcfeb0cfcf5a34675fc0a2a6e9d4145e5176333 SHA512 f6b241c7a531b20d84714c66987b6ff75f064a8d1e2fe04fe376a2f600065f0890b68fac7c9683a0fdf4c2f30e0d5d95323435a62a1c6abcd3475163e5c95bd8 WHIRLPOOL 6abe80bdc5ee14d49d0c6a27d643863c696f3a8865d5874a963dec04a923c21fe2931249f9173dd0268b86345062f16fc488a63063c4dcb500420eec8531b8e5
+DIST mcelog-117.tar.gz 296068 SHA256 0e0422e8693e4592a85ed344738004dcedcd930234ab862b0bdcb6ae7aa44f2b SHA512 664e4d9224ec1878153561bebdf4f6c58ea44cf0d494a04eb38cdd73cc8158fabdb0b4823f2303e39818f104298208206dfb9ff64ef13654dadfb5e7a4f5e723 WHIRLPOOL 1919bb2069f216d6a649c883bb9a9417edc9b51d639a73a81f5d5a8d06d874447dc839401858b1d402bbed588077dab93273d012768cb5d1b3fff3ec378d662e
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/files/mcelog-1.0_pre3_p20120918-bashism.patch b/app-admin/mcelog/files/mcelog-1.0_pre3_p20120918-bashism.patch
new file mode 100644
index 000000000000..c6cba7d83bae
--- /dev/null
+++ b/app-admin/mcelog/files/mcelog-1.0_pre3_p20120918-bashism.patch
@@ -0,0 +1,21 @@
+From: Julian Ospald <hasufell@gentoo.org>
+Date: Sat Jan 26 17:40:22 UTC 2013
+Subject: remove bashisms
+
+--- triggers/cache-error-trigger
++++ triggers/cache-error-trigger
+@@ -1,4 +1,4 @@
+-#!/bin/bash
++#!/bin/sh
+ # cache error trigger. This shell script is executed by mcelog in daemon mode
+ # when a CPU reports excessive corrected cache errors. This could be a indication
+ # for future uncorrected errors.
+@@ -28,7 +28,7 @@
+ logger -s -p daemon.crit -t mcelog "Offlining CPU $i due to cache error threshold"
+ F=$(printf "/sys/devices/system/cpu/cpu%d/online" $i)
+ echo 0 > $F
+- if [ "$(< $F)" != "0" ] ; then
++ if [ "$(cat $F)" != "0" ] ; then
+ logger -s -p daemon.warn -t mcelog "Offlining CPU $i failed"
+ EXIT=1
+ fi
diff --git a/app-admin/mcelog/files/mcelog-1.0_pre3_p20120918-build.patch b/app-admin/mcelog/files/mcelog-1.0_pre3_p20120918-build.patch
new file mode 100644
index 000000000000..6444bfb133e8
--- /dev/null
+++ b/app-admin/mcelog/files/mcelog-1.0_pre3_p20120918-build.patch
@@ -0,0 +1,42 @@
+From: Julian Ospald <hasufell@gentoo.org>
+Date: Wed Oct 24 15:41:33 UTC 2012
+Subject: build system
+
+don't overwrite system CFLAGS, only append "-g -Os" if DEBUG=1 is passed
+as argument
+
+always use $(CC) instead of "gcc"
+
+--- Makefile
++++ Makefile
+@@ -1,4 +1,11 @@
+-CFLAGS := -g -Os
++CC ?= gcc
++
++# set to 1 to enable debug flags
++DEBUG = 0
++ifeq ($(DEBUG),1)
++CFLAGS += -g -Os
++endif
++
+ prefix := /usr
+ etcprefix :=
+ # Define appropiately for your distribution
+@@ -70,7 +77,7 @@
+ rm -f ${CLEAN} ${OBJ}
+
+ tsc: tsc.c
+- gcc -o tsc ${CFLAGS} -DSTANDALONE tsc.c ${LDFLAGS}
++ $(CC) -o tsc ${CFLAGS} -DSTANDALONE tsc.c ${LDFLAGS}
+
+ dbquery: db.o dbquery.o memutil.o
+
+@@ -101,7 +108,7 @@
+ echo $(SRC)
+
+ config-test: config.c
+- gcc -DTEST=1 config.c -o config-test
++ $(CC) -DTEST=1 config.c -o config-test
+
+ test:
+ $(MAKE) -C tests test DEBUG=""
diff --git a/app-admin/mcelog/files/mcelog.init b/app-admin/mcelog/files/mcelog.init
new file mode 100644
index 000000000000..d800b757b868
--- /dev/null
+++ b/app-admin/mcelog/files/mcelog.init
@@ -0,0 +1,29 @@
+#!/sbin/runscript
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+description='Start/stop mcelog in daemon mode'
+
+PIDFILE="/var/run/mcelog.pid"
+
+depend() {
+ after udev
+ need localmount
+ use logging
+}
+
+start() {
+ ebegin "Starting mcelog"
+ start-stop-daemon \
+ --start \
+ --pidfile ${PIDFILE} \
+ --exec /usr/sbin/mcelog -- --daemon --pidfile ${PIDFILE} ${MCELOG_OPTS}
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping mcelog"
+ start-stop-daemon --stop --pidfile ${PIDFILE}
+ eend $?
+}
diff --git a/app-admin/mcelog/files/mcelog.init-r1 b/app-admin/mcelog/files/mcelog.init-r1
new file mode 100644
index 000000000000..a282118ef0d4
--- /dev/null
+++ b/app-admin/mcelog/files/mcelog.init-r1
@@ -0,0 +1,16 @@
+#!/sbin/runscript
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+description='Start/stop mcelog in daemon mode'
+
+pidfile="/var/run/mcelog.pid"
+command="/usr/sbin/mcelog"
+command_args="--daemon --pidfile ${pidfile} ${MCELOG_OPTS}"
+
+depend() {
+ after udev
+ need localmount
+ use logging
+}
diff --git a/app-admin/mcelog/files/mcelog.service b/app-admin/mcelog/files/mcelog.service
new file mode 100644
index 000000000000..4bd553012c95
--- /dev/null
+++ b/app-admin/mcelog/files/mcelog.service
@@ -0,0 +1,10 @@
+[Unit]
+Description=Machine Check Exception Logging Daemon
+After=syslog.target
+
+[Service]
+ExecStart=/usr/sbin/mcelog --ignorenodev --daemon --foreground
+StandardOutput=syslog
+
+[Install]
+WantedBy=multi-user.target
diff --git a/app-admin/mcelog/mcelog-1.0_pre3.ebuild b/app-admin/mcelog/mcelog-1.0_pre3.ebuild
new file mode 100644
index 000000000000..a002946bf669
--- /dev/null
+++ b/app-admin/mcelog/mcelog-1.0_pre3.ebuild
@@ -0,0 +1,49 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+inherit eutils toolchain-funcs
+
+MY_PV="${PV/_/}"
+MY_P="${PN}-${MY_PV}"
+
+DESCRIPTION="A tool to log and decode Machine Check Exceptions"
+HOMEPAGE="http://www.kernel.org/pub/linux/utils/cpu/mce/"
+SRC_URI="mirror://kernel/linux/utils/cpu/mce/${MY_P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+S="${WORKDIR}/${MY_P}"
+
+# test suite needs mce-inject, we don't have a package for it yet
+RESTRICT="test"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ epatch "${FILESDIR}"/${PN}-0.8_pre1-timestamp-mcelog.patch
+
+ sed -i \
+ -e 's:-g:${CFLAGS}:g' \
+ -e 's:\tgcc:\t$(CC):g' Makefile || die "sed makefile failed"
+}
+
+src_compile() {
+ emake CC="$(tc-getCC)" || die
+}
+
+src_install() {
+ dosbin mcelog || die
+ doman mcelog.8
+
+ exeinto /etc/cron.daily
+ newexe mcelog.cron mcelog || die
+
+ insinto /etc/logrotate.d/
+ newins mcelog.logrotate mcelog || die
+
+ dodoc CHANGES README TODO *.pdf
+}
diff --git a/app-admin/mcelog/mcelog-1.0_pre3_p20120918-r1.ebuild b/app-admin/mcelog/mcelog-1.0_pre3_p20120918-r1.ebuild
new file mode 100644
index 000000000000..029d6d0f1a31
--- /dev/null
+++ b/app-admin/mcelog/mcelog-1.0_pre3_p20120918-r1.ebuild
@@ -0,0 +1,59 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit linux-info eutils toolchain-funcs vcs-snapshot
+
+COMMIT="0f5d0238ca7fb963a687a3c50c96c5f37a599c6b"
+DESCRIPTION="A tool to log and decode Machine Check Exceptions"
+HOMEPAGE="http://mcelog.org/"
+SRC_URI="https://github.com/andikleen/${PN}/tarball/${COMMIT} -> ${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE="selinux"
+
+RDEPEND="selinux? ( sec-policy/selinux-mcelog )"
+
+CONFIG_CHECK="~X86_MCE"
+
+# TODO: add mce-inject to the tree to support test phase
+RESTRICT="test"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${PN}-0.8_pre1-timestamp-${PN}.patch \
+ "${FILESDIR}"/${P}-build.patch \
+ "${FILESDIR}"/${P}-bashism.patch
+ tc-export CC
+}
+
+src_install() {
+ dosbin ${PN}
+
+ insinto /etc/cron.daily
+ newins ${PN}.cron ${PN}
+
+ insinto /etc/logrotate.d/
+ newins ${PN}.logrotate ${PN}
+
+ newinitd "${FILESDIR}"/${PN}.init ${PN}
+
+ insinto /etc/${PN}
+ doins mcelog.conf
+ exeinto /etc/${PN}
+ doexe triggers/*
+
+ dodoc CHANGES README TODO *.pdf
+ doman ${PN}.8
+}
+
+pkg_postinst() {
+ einfo "The default configuration set is now installed in /etc/${PN}"
+ einfo "you might want to edit those files."
+ einfo
+ einfo "A sample cronjob is installed into /etc/cron.daily"
+ einfo "without executable bit (system service is the preferred method now)"
+}
diff --git a/app-admin/mcelog/mcelog-1.0_pre3_p20130621-r1.ebuild b/app-admin/mcelog/mcelog-1.0_pre3_p20130621-r1.ebuild
new file mode 100644
index 000000000000..2765335f6329
--- /dev/null
+++ b/app-admin/mcelog/mcelog-1.0_pre3_p20130621-r1.ebuild
@@ -0,0 +1,60 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit linux-info eutils systemd toolchain-funcs vcs-snapshot
+
+COMMIT="b842ecb44965722ecd67bed1ed9d900073e3313f"
+DESCRIPTION="A tool to log and decode Machine Check Exceptions"
+HOMEPAGE="http://mcelog.org/"
+SRC_URI="https://github.com/andikleen/${PN}/tarball/${COMMIT} -> ${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE="selinux"
+
+RDEPEND="selinux? ( sec-policy/selinux-mcelog )"
+
+CONFIG_CHECK="~X86_MCE"
+
+# TODO: add mce-inject to the tree to support test phase
+RESTRICT="test"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${PN}-0.8_pre1-timestamp-${PN}.patch \
+ "${FILESDIR}"/${PN}-1.0_pre3_p20120918-build.patch \
+ "${FILESDIR}"/${PN}-1.0_pre3_p20120918-bashism.patch
+ tc-export CC
+}
+
+src_install() {
+ dosbin ${PN}
+
+ insinto /etc/cron.daily
+ newins ${PN}.cron ${PN}
+
+ insinto /etc/logrotate.d/
+ newins ${PN}.logrotate ${PN}
+
+ newinitd "${FILESDIR}"/${PN}.init ${PN}
+ systemd_dounit "${FILESDIR}"/${PN}.service
+
+ insinto /etc/${PN}
+ doins mcelog.conf
+ exeinto /etc/${PN}
+ doexe triggers/*
+
+ dodoc CHANGES README TODO *.pdf
+ doman ${PN}.8
+}
+
+pkg_postinst() {
+ einfo "The default configuration set is now installed in /etc/${PN}"
+ einfo "you might want to edit those files."
+ einfo
+ einfo "A sample cronjob is installed into /etc/cron.daily"
+ einfo "without executable bit (system service is the preferred method now)"
+}
diff --git a/app-admin/mcelog/mcelog-1.0_pre3_p20130621.ebuild b/app-admin/mcelog/mcelog-1.0_pre3_p20130621.ebuild
new file mode 100644
index 000000000000..9121b71ec080
--- /dev/null
+++ b/app-admin/mcelog/mcelog-1.0_pre3_p20130621.ebuild
@@ -0,0 +1,59 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit linux-info eutils toolchain-funcs vcs-snapshot
+
+COMMIT="b842ecb44965722ecd67bed1ed9d900073e3313f"
+DESCRIPTION="A tool to log and decode Machine Check Exceptions"
+HOMEPAGE="http://mcelog.org/"
+SRC_URI="https://github.com/andikleen/${PN}/tarball/${COMMIT} -> ${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="selinux"
+
+RDEPEND="selinux? ( sec-policy/selinux-mcelog )"
+
+CONFIG_CHECK="~X86_MCE"
+
+# TODO: add mce-inject to the tree to support test phase
+RESTRICT="test"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${PN}-0.8_pre1-timestamp-${PN}.patch \
+ "${FILESDIR}"/${PN}-1.0_pre3_p20120918-build.patch \
+ "${FILESDIR}"/${PN}-1.0_pre3_p20120918-bashism.patch
+ tc-export CC
+}
+
+src_install() {
+ dosbin ${PN}
+
+ insinto /etc/cron.daily
+ newins ${PN}.cron ${PN}
+
+ insinto /etc/logrotate.d/
+ newins ${PN}.logrotate ${PN}
+
+ newinitd "${FILESDIR}"/${PN}.init ${PN}
+
+ insinto /etc/${PN}
+ doins mcelog.conf
+ exeinto /etc/${PN}
+ doexe triggers/*
+
+ dodoc CHANGES README TODO *.pdf
+ doman ${PN}.8
+}
+
+pkg_postinst() {
+ einfo "The default configuration set is now installed in /etc/${PN}"
+ einfo "you might want to edit those files."
+ einfo
+ einfo "A sample cronjob is installed into /etc/cron.daily"
+ einfo "without executable bit (system service is the preferred method now)"
+}
diff --git a/app-admin/mcelog/mcelog-100.ebuild b/app-admin/mcelog/mcelog-100.ebuild
new file mode 100644
index 000000000000..1a2835513809
--- /dev/null
+++ b/app-admin/mcelog/mcelog-100.ebuild
@@ -0,0 +1,59 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit linux-info eutils systemd toolchain-funcs
+
+DESCRIPTION="A tool to log and decode Machine Check Exceptions"
+HOMEPAGE="http://mcelog.org/"
+SRC_URI="https://github.com/andikleen/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE="selinux"
+
+RDEPEND="selinux? ( sec-policy/selinux-mcelog )"
+
+CONFIG_CHECK="~X86_MCE"
+
+# TODO: add mce-inject to the tree to support test phase
+RESTRICT="test"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${PN}-0.8_pre1-timestamp-${PN}.patch \
+ "${FILESDIR}"/${PN}-1.0_pre3_p20120918-build.patch \
+ "${FILESDIR}"/${PN}-1.0_pre3_p20120918-bashism.patch
+ tc-export CC
+}
+
+src_install() {
+ dosbin ${PN}
+
+ insinto /etc/cron.daily
+ newins ${PN}.cron ${PN}
+
+ insinto /etc/logrotate.d/
+ newins ${PN}.logrotate ${PN}
+
+ newinitd "${FILESDIR}"/${PN}.init ${PN}
+ systemd_dounit "${FILESDIR}"/${PN}.service
+
+ insinto /etc/${PN}
+ doins mcelog.conf
+ exeinto /etc/${PN}
+ doexe triggers/*
+
+ dodoc CHANGES README TODO *.pdf
+ doman ${PN}.8
+}
+
+pkg_postinst() {
+ einfo "The default configuration set is now installed in /etc/${PN}"
+ einfo "you might want to edit those files."
+ einfo
+ einfo "A sample cronjob is installed into /etc/cron.daily"
+ einfo "without executable bit (system service is the preferred method now)"
+}
diff --git a/app-admin/mcelog/mcelog-103.ebuild b/app-admin/mcelog/mcelog-103.ebuild
new file mode 100644
index 000000000000..ba60b1f5c849
--- /dev/null
+++ b/app-admin/mcelog/mcelog-103.ebuild
@@ -0,0 +1,59 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit linux-info eutils systemd toolchain-funcs
+
+DESCRIPTION="A tool to log and decode Machine Check Exceptions"
+HOMEPAGE="http://mcelog.org/"
+SRC_URI="https://github.com/andikleen/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="selinux"
+
+RDEPEND="selinux? ( sec-policy/selinux-mcelog )"
+
+CONFIG_CHECK="~X86_MCE"
+
+# TODO: add mce-inject to the tree to support test phase
+RESTRICT="test"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${PN}-0.8_pre1-timestamp-${PN}.patch \
+ "${FILESDIR}"/${PN}-1.0_pre3_p20120918-build.patch \
+ "${FILESDIR}"/${PN}-1.0_pre3_p20120918-bashism.patch
+ tc-export CC
+}
+
+src_install() {
+ dosbin ${PN}
+
+ insinto /etc/cron.daily
+ newins ${PN}.cron ${PN}
+
+ insinto /etc/logrotate.d/
+ newins ${PN}.logrotate ${PN}
+
+ newinitd "${FILESDIR}"/${PN}.init-r1 ${PN}
+ systemd_dounit "${FILESDIR}"/${PN}.service
+
+ insinto /etc/${PN}
+ doins mcelog.conf
+ exeinto /etc/${PN}
+ doexe triggers/*
+
+ dodoc CHANGES README TODO *.pdf
+ doman ${PN}.8
+}
+
+pkg_postinst() {
+ einfo "The default configuration set is now installed in /etc/${PN}"
+ einfo "you might want to edit those files."
+ einfo
+ einfo "A sample cronjob is installed into /etc/cron.daily"
+ einfo "without executable bit (system service is the preferred method now)"
+}
diff --git a/app-admin/mcelog/mcelog-109.ebuild b/app-admin/mcelog/mcelog-109.ebuild
new file mode 100644
index 000000000000..029fa3b92569
--- /dev/null
+++ b/app-admin/mcelog/mcelog-109.ebuild
@@ -0,0 +1,59 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit linux-info eutils systemd toolchain-funcs
+
+DESCRIPTION="A tool to log and decode Machine Check Exceptions"
+HOMEPAGE="http://mcelog.org/"
+SRC_URI="https://github.com/andikleen/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="selinux"
+
+RDEPEND="selinux? ( sec-policy/selinux-mcelog )"
+
+CONFIG_CHECK="~X86_MCE"
+
+# TODO: add mce-inject to the tree to support test phase
+RESTRICT="test"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${PN}-0.8_pre1-timestamp-${PN}.patch \
+ "${FILESDIR}"/${PN}-1.0_pre3_p20120918-build.patch \
+ "${FILESDIR}"/${PN}-1.0_pre3_p20120918-bashism.patch
+ tc-export CC
+}
+
+src_install() {
+ dosbin ${PN}
+
+ insinto /etc/cron.daily
+ newins ${PN}.cron ${PN}
+
+ insinto /etc/logrotate.d/
+ newins ${PN}.logrotate ${PN}
+
+ newinitd "${FILESDIR}"/${PN}.init-r1 ${PN}
+ systemd_dounit "${FILESDIR}"/${PN}.service
+
+ insinto /etc/${PN}
+ doins mcelog.conf
+ exeinto /etc/${PN}
+ doexe triggers/*
+
+ dodoc CHANGES README TODO *.pdf
+ doman ${PN}.8
+}
+
+pkg_postinst() {
+ einfo "The default configuration set is now installed in /etc/${PN}"
+ einfo "you might want to edit those files."
+ einfo
+ einfo "A sample cronjob is installed into /etc/cron.daily"
+ einfo "without executable bit (system service is the preferred method now)"
+}
diff --git a/app-admin/mcelog/mcelog-117.ebuild b/app-admin/mcelog/mcelog-117.ebuild
new file mode 100644
index 000000000000..f46ca0c96188
--- /dev/null
+++ b/app-admin/mcelog/mcelog-117.ebuild
@@ -0,0 +1,53 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit linux-info eutils systemd toolchain-funcs
+
+DESCRIPTION="A tool to log and decode Machine Check Exceptions"
+HOMEPAGE="http://mcelog.org/"
+SRC_URI="https://github.com/andikleen/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="selinux"
+
+RDEPEND="selinux? ( sec-policy/selinux-mcelog )"
+
+CONFIG_CHECK="~X86_MCE"
+
+# TODO: add mce-inject to the tree to support test phase
+RESTRICT="test"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${PN}-0.8_pre1-timestamp-${PN}.patch \
+ "${FILESDIR}"/${PN}-1.0_pre3_p20120918-build.patch \
+ "${FILESDIR}"/${PN}-1.0_pre3_p20120918-bashism.patch
+ tc-export CC
+}
+
+src_install() {
+ default
+
+ insinto /etc/cron.daily
+ newins ${PN}.cron ${PN}
+
+ insinto /etc/logrotate.d/
+ newins ${PN}.logrotate ${PN}
+
+ newinitd "${FILESDIR}"/${PN}.init-r1 ${PN}
+ systemd_dounit "${FILESDIR}"/${PN}.service
+
+ dodoc *.pdf
+}
+
+pkg_postinst() {
+ einfo "The default configuration set is now installed in /etc/${PN}"
+ einfo "you might want to edit those files."
+ einfo
+ einfo "A sample cronjob is installed into /etc/cron.daily"
+ einfo "without executable bit (system service is the preferred method now)"
+}
diff --git a/app-admin/mcelog/metadata.xml b/app-admin/mcelog/metadata.xml
new file mode 100644
index 000000000000..df75688b46dc
--- /dev/null
+++ b/app-admin/mcelog/metadata.xml
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>proxy-maintainers</herd>
+ <maintainer>
+ <email>hasufell@gentoo.org</email>
+ <name>Julian Ospald</name>
+ <description>Maintainer, assign bugs to him</description>
+ </maintainer>
+ <maintainer>
+ <email>bkohler@gmail.com</email>
+ <name>Ben Kohler</name>
+ <description>Proxy maintainer. CC him on bugs</description>
+ </maintainer>
+ <longdescription lang="en">
+ Starting with version 2.6.4, the Linux kernel for x86-64 no longer
+ decodes and logs recoverable Machine Check Exception events to the
+ kernel log on its own.
+ </longdescription>
+ <upstream>
+ <remote-id type="github">andikleen/mcelog</remote-id>
+ </upstream>
+</pkgmetadata>