summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian Ospald <hasufell@gentoo.org>2014-09-09 01:58:51 +0000
committerJulian Ospald <hasufell@gentoo.org>2014-09-09 01:58:51 +0000
commit778f77984a1cb91a0b4f2ca4aea69e2dcf68ca0a (patch)
tree0329414b758916d4d5a7dc34fa6df22ce24b1dad /app-admin/mcelog/mcelog-103.ebuild
parentsparc stable for bz512012 (diff)
downloadhistorical-778f77984a1cb91a0b4f2ca4aea69e2dcf68ca0a.tar.gz
historical-778f77984a1cb91a0b4f2ca4aea69e2dcf68ca0a.tar.bz2
historical-778f77984a1cb91a0b4f2ca4aea69e2dcf68ca0a.zip
version bump by Ben Kohler and Lars Wendler wrt #519494
Package-Manager: portage-2.2.10/cvs/Linux x86_64 Manifest-Sign-Key: 0xE73C35B3
Diffstat (limited to 'app-admin/mcelog/mcelog-103.ebuild')
-rw-r--r--app-admin/mcelog/mcelog-103.ebuild59
1 files changed, 59 insertions, 0 deletions
diff --git a/app-admin/mcelog/mcelog-103.ebuild b/app-admin/mcelog/mcelog-103.ebuild
new file mode 100644
index 000000000000..16e6e8bd4f7e
--- /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
+# $Header: /var/cvsroot/gentoo-x86/app-admin/mcelog/mcelog-103.ebuild,v 1.1 2014/09/09 01:58:47 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-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)"
+}