summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Kohler <bkohler@gentoo.org>2018-06-24 20:53:15 -0500
committerBen Kohler <bkohler@gentoo.org>2018-06-24 20:53:15 -0500
commit2dbd1e94b97bc584a9024896262bd2182124b1c4 (patch)
tree735e53c73d8b8bcf1935b0be1a8c8526f281135d /app-admin/mcelog
parentapp-admin/mcelog: update maintainer email & remove proxy-maint (diff)
downloadgentoo-2dbd1e94b97bc584a9024896262bd2182124b1c4.tar.gz
gentoo-2dbd1e94b97bc584a9024896262bd2182124b1c4.tar.bz2
gentoo-2dbd1e94b97bc584a9024896262bd2182124b1c4.zip
app-admin/mcelog: bump to 159
Package-Manager: Portage-2.3.40, Repoman-2.3.9
Diffstat (limited to 'app-admin/mcelog')
-rw-r--r--app-admin/mcelog/Manifest1
-rw-r--r--app-admin/mcelog/mcelog-159.ebuild58
2 files changed, 59 insertions, 0 deletions
diff --git a/app-admin/mcelog/Manifest b/app-admin/mcelog/Manifest
index 1d802848adee..3a1db740b0f0 100644
--- a/app-admin/mcelog/Manifest
+++ b/app-admin/mcelog/Manifest
@@ -1,2 +1,3 @@
DIST mcelog-154.tar.gz 297148 BLAKE2B 80b2b6b13222d0194d63516607b3132e2146894189e2c3c793c953dc43705a5b386ecb76ae3c8b7b345f8d440f547b3e566b16bf0802d17188cce978e1ad2fc1 SHA512 8a160aaa8a0ed736cb81082321e199e6a6e4f7f6528915752af545db28918e89dcb6bf321a92472d776c61914d08c613900273b3d265a375684e3212547abe38
DIST mcelog-157.tar.gz 297194 BLAKE2B f34e57f282828941b7023b6f043084dec4591b071f4e23fff318ea4ff49c8be2c0eab3279d7803d3cf029351f51d2acdf16d4eb1998042a8002f6667c81df90d SHA512 831835058ab820497aed5640a424908e3ee138431041b1c70e2d4f601a242e0437d240a842de1c0bc10f41790f1ddff64054e79ff2a6de1c814710acd9210bbd
+DIST mcelog-159.tar.gz 301033 BLAKE2B fb2cebc6f87429c5d8ba734ab5ab008552da1c492ccba53cec7a51e88e6a9ffaca14cf797ada952dbd24f0d17e52b45958defd82d46da533c9d97dbff96c67a7 SHA512 f5828f9b675eb091f297a2176e2b709a8180e9b29ad11438880a2f5a5a98a410413f20ad2fbb7ac06fe7e7980e1ea7fcb8c8ca5d90a04ed2d7dcd553a9b76b49
diff --git a/app-admin/mcelog/mcelog-159.ebuild b/app-admin/mcelog/mcelog-159.ebuild
new file mode 100644
index 000000000000..22442f62abb9
--- /dev/null
+++ b/app-admin/mcelog/mcelog-159.ebuild
@@ -0,0 +1,58 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit linux-info 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 )"
+
+# TODO: add mce-inject to the tree to support test phase
+RESTRICT="test"
+
+pkg_pretend() {
+ if [[ ${MERGE_TYPE} != buildonly ]]; then
+ local CONFIG_CHECK="~X86_MCE"
+ kernel_is -ge 4 12 && CONFIG_CHECK+=" ~X86_MCELOG_LEGACY"
+ check_extra_config
+ fi
+}
+
+src_prepare() {
+ eapply "${FILESDIR}"/${PN}-0.8_pre1-timestamp-${PN}.patch \
+ "${FILESDIR}"/${PN}-129-debugflags.patch
+ eapply_user
+ 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)"
+}