summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian Ospald <hasufell@gentoo.org>2013-10-23 17:16:55 +0000
committerJulian Ospald <hasufell@gentoo.org>2013-10-23 17:16:55 +0000
commitd5480e43d8f630bfb306b4a88b5bdb236ac636c5 (patch)
tree172633001e533d964eaaf34c072133cacbf4295b /app-admin
parentNew ebuild for dev-java/glassfish-ejb-api, project GlassFish Enterprise JavaB... (diff)
downloadgentoo-2-d5480e43d8f630bfb306b4a88b5bdb236ac636c5.tar.gz
gentoo-2-d5480e43d8f630bfb306b4a88b5bdb236ac636c5.tar.bz2
gentoo-2-d5480e43d8f630bfb306b4a88b5bdb236ac636c5.zip
version bump by Ben Kohler
(Portage version: 2.2.7/cvs/Linux x86_64, signed Manifest commit with key E73C35B3)
Diffstat (limited to 'app-admin')
-rw-r--r--app-admin/mcelog/ChangeLog7
-rw-r--r--app-admin/mcelog/mcelog-100.ebuild59
2 files changed, 65 insertions, 1 deletions
diff --git a/app-admin/mcelog/ChangeLog b/app-admin/mcelog/ChangeLog
index 6a5e8182dfbf..0b85429fd4fb 100644
--- a/app-admin/mcelog/ChangeLog
+++ b/app-admin/mcelog/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for app-admin/mcelog
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-admin/mcelog/ChangeLog,v 1.36 2013/10/19 21:33:52 pacho Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-admin/mcelog/ChangeLog,v 1.37 2013/10/23 17:16:55 hasufell Exp $
+
+*mcelog-100 (23 Oct 2013)
+
+ 23 Oct 2013; Julian Ospald <hasufell@gentoo.org> +mcelog-100.ebuild:
+ version bump by Ben Kohler
19 Oct 2013; Pacho Ramos <pacho@gentoo.org>
mcelog-1.0_pre3_p20130621-r1.ebuild:
diff --git a/app-admin/mcelog/mcelog-100.ebuild b/app-admin/mcelog/mcelog-100.ebuild
new file mode 100644
index 000000000000..8274cfd34077
--- /dev/null
+++ b/app-admin/mcelog/mcelog-100.ebuild
@@ -0,0 +1,59 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-admin/mcelog/mcelog-100.ebuild,v 1.1 2013/10/23 17:16:55 hasufell Exp $
+
+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)"
+}