mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2025-12-08 00:05:33 +03:00
app-admin/mcelog: add 207
Signed-off-by: Ben Kohler <bkohler@gentoo.org>
This commit is contained in:
parent
15c05ee704
commit
eaf7b5aaab
@ -1 +1,2 @@
|
||||
DIST mcelog-206.tar.gz 317364 BLAKE2B 39d78b0fb430cd5d3d518983809a7ff5d5c644a9e3234424a1a08ab0f1e241e469d17ce3e064481c14fa849fa63448d3f2084c04dd8ef411fb7365ef1267e3c3 SHA512 ec49e884e8722844c908494108ab8a7261dfafe91f39848371bb9532ad70d982bf3edc7d2008210eb3b0c9d26d53e54759544de7116f1c84c46921e118367ffc
|
||||
DIST mcelog-207.tar.gz 319946 BLAKE2B 021335d0bfea68bdc964421abaac47d1414e62585b890c972ab076d384f0d9659ffadf34d6b3c66ee3b6c3e4589ba710075780e99f381c565ee44c1111cf6412 SHA512 e539f82c71ee9573a0676ae3dc2756a679e0ca45743daa3e5d306db4939372ff6fcc4e83abee5d9855ddf70ee8413ceb73ea8b54c06a78f6b30140e40f5d46d4
|
||||
|
||||
54
app-admin/mcelog/mcelog-207.ebuild
Normal file
54
app-admin/mcelog/mcelog-207.ebuild
Normal file
@ -0,0 +1,54 @@
|
||||
# Copyright 1999-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{10..13} )
|
||||
|
||||
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
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user