commit: 120712f1a8aa3426ba453a2e51862cebd32174bd
Author: Ben Kohler <bkohler <AT> gentoo <DOT> org>
AuthorDate: Thu Dec 12 19:54:43 2024 +0000
Commit: Ben Kohler <bkohler <AT> gentoo <DOT> org>
CommitDate: Thu Dec 12 19:55:00 2024 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=120712f1
app-admin/mcelog: add 202
Signed-off-by: Ben Kohler <bkohler <AT> gentoo.org>
app-admin/mcelog/Manifest | 1 +
app-admin/mcelog/mcelog-202.ebuild | 54 ++++++++++++++++++++++++++++++++++++++
2 files changed, 55 insertions(+)
diff --git a/app-admin/mcelog/Manifest b/app-admin/mcelog/Manifest
index 38f933b15202..67f971f36add 100644
--- a/app-admin/mcelog/Manifest
+++ b/app-admin/mcelog/Manifest
@@ -1,2 +1,3 @@
DIST mcelog-200.tar.gz 316893 BLAKE2B
66b6f25720d09760aab79d0b410287e73087551ab54eaf7dc31c0f7f5c56a40583e933f9e6dae9b91c5594f5bdf51701c37328e76f930c937b448aaac7acd262
SHA512
70b075d3db2f0cb587e3e8ac8b74d840b6bb777ee89c9428f70f037f67e25a02ae87889b9f998431ef229e56705a27431df016b59ab0f1ebf5485a9d38665c7b
DIST mcelog-201.tar.gz 316983 BLAKE2B
dae9cb88d7d05e7151886e717d5a5b41b5bbb3adc2a4aec87bb716461641b8579e1ad4e3febeaf5af48e82934e96e96d728d81cf19d2995a747ad8618ff3fdc2
SHA512
d91cc85337a0ebd1ccb66b936bf7db80384bd5255b0a18117dcb6121e272ff12547d41246ee548f768934b6e7a0b1219c03e84f3a5290d49d0f6960764a7c078
+DIST mcelog-202.tar.gz 317033 BLAKE2B
c50d12dd620609c57e935a136666608acaee1b29b4807d77ff9033477382747d122b263aa57e3b604b4cb4000bac413ad60fb91a1feb8f0409c4095b2608f491
SHA512
3240958e467757913759b904ef780630735e741a657b4e37689e61de91400581cfac22753b651c6204bab8e073ff0a3a1d110d01ea1b44081f01aeaa90ee25ac
diff --git a/app-admin/mcelog/mcelog-202.ebuild
b/app-admin/mcelog/mcelog-202.ebuild
new file mode 100644
index 000000000000..07d93a66d81f
--- /dev/null
+++ b/app-admin/mcelog/mcelog-202.ebuild
@@ -0,0 +1,54 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{10..12} )
+
+inherit linux-info python-any-r1 systemd toolchain-funcs
+
+DESCRIPTION="A tool to log and decode Machine Check Exceptions"
+HOMEPAGE="http://mcelog.org/"
+SRC_URI="https://git.kernel.org/pub/scm/utils/cpu/mce/mcelog.git/snapshot/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="selinux"
+
+RDEPEND="selinux? ( sec-policy/selinux-mcelog )"
+DEPEND="${PYTHON_DEPS}"
+
+# TODO: add mce-inject to the tree to support test phase
+RESTRICT="test"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-0.8_pre1-timestamp-${PN}.patch
+ "${FILESDIR}"/${PN}-129-debugflags.patch
+)
+
+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() {
+ default
+ tc-export CC
+ python_fix_shebang genconfig.py
+}
+
+src_install() {
+ default
+
+ insinto /etc/logrotate.d/
+ newins ${PN}.logrotate ${PN}
+
+ newinitd "${FILESDIR}"/${PN}.init-r1 ${PN}
+ systemd_dounit ${PN}.service
+
+ dodoc *.pdf
+}