diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-09-08 22:31:44 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-09-08 22:31:44 +0100 |
commit | 07e5258263817a33e6c141c7f2626f909688bdb1 (patch) | |
tree | 672db8f3d96096edfd3ef013d3869640a9856a0d /app-admin/mcelog/mcelog-195.ebuild | |
parent | 5e2dc8e9ee14034d872c67b64a63af413f63ad47 (diff) |
gentoo auto-resync : 08:09:2023 - 22:31:44
Diffstat (limited to 'app-admin/mcelog/mcelog-195.ebuild')
-rw-r--r-- | app-admin/mcelog/mcelog-195.ebuild | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/app-admin/mcelog/mcelog-195.ebuild b/app-admin/mcelog/mcelog-195.ebuild new file mode 100644 index 000000000000..88e6cd7ea15e --- /dev/null +++ b/app-admin/mcelog/mcelog-195.ebuild @@ -0,0 +1,54 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{9..11} ) + +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://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 )" +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 +} |