app-admin/mcelog: add 201

Signed-off-by: Ben Kohler <bkohler@gentoo.org>
This commit is contained in:
Ben Kohler
2024-11-21 09:49:37 -06:00
parent 453a1693e7
commit 3354f1a184
2 changed files with 55 additions and 0 deletions

View File

@@ -1 +1,2 @@
DIST mcelog-200.tar.gz 316893 BLAKE2B 66b6f25720d09760aab79d0b410287e73087551ab54eaf7dc31c0f7f5c56a40583e933f9e6dae9b91c5594f5bdf51701c37328e76f930c937b448aaac7acd262 SHA512 70b075d3db2f0cb587e3e8ac8b74d840b6bb777ee89c9428f70f037f67e25a02ae87889b9f998431ef229e56705a27431df016b59ab0f1ebf5485a9d38665c7b
DIST mcelog-201.tar.gz 316983 BLAKE2B dae9cb88d7d05e7151886e717d5a5b41b5bbb3adc2a4aec87bb716461641b8579e1ad4e3febeaf5af48e82934e96e96d728d81cf19d2995a747ad8618ff3fdc2 SHA512 d91cc85337a0ebd1ccb66b936bf7db80384bd5255b0a18117dcb6121e272ff12547d41246ee548f768934b6e7a0b1219c03e84f3a5290d49d0f6960764a7c078

View File

@@ -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
}