summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Kohler <bkohler@gentoo.org>2023-01-13 07:21:32 -0600
committerBen Kohler <bkohler@gentoo.org>2023-01-13 07:23:23 -0600
commit49851cee46ac136dd2ea109186ba70fc7d09b650 (patch)
tree8c29c76f3bdb6b76712143a8bc9176c3c5734138 /app-admin/mcelog
parentnet-misc/dropbox: add 165.4.4300 (diff)
downloadgentoo-49851cee46ac136dd2ea109186ba70fc7d09b650.tar.gz
gentoo-49851cee46ac136dd2ea109186ba70fc7d09b650.tar.bz2
gentoo-49851cee46ac136dd2ea109186ba70fc7d09b650.zip
app-admin/mcelog: add 191
Signed-off-by: Ben Kohler <bkohler@gentoo.org>
Diffstat (limited to 'app-admin/mcelog')
-rw-r--r--app-admin/mcelog/Manifest1
-rw-r--r--app-admin/mcelog/mcelog-191.ebuild51
2 files changed, 52 insertions, 0 deletions
diff --git a/app-admin/mcelog/Manifest b/app-admin/mcelog/Manifest
index 9ea154a97a0b..2c15d547344b 100644
--- a/app-admin/mcelog/Manifest
+++ b/app-admin/mcelog/Manifest
@@ -1 +1,2 @@
DIST mcelog-190.tar.gz 314409 BLAKE2B 287b5ccba24ef7afe4b2653f2ab8ddd9ae94451e1131941d61031042a039cb9ed633f75b0ddf0035f3fef023cdf67c5c0b01169d0afac4ae47f9badcc55d16ef SHA512 26347d5255c602189961c63f8bf44f0c73b8f7fb0d455108c604a84e73e00303646961759101aab42157d12a7678f8c47277829b0460b0832a64c8b5c913d952
+DIST mcelog-191.tar.gz 317354 BLAKE2B a02df41304aac994a37f4abd7be65408bd19d72e2aa20a15a3b55b6b152aebfad09309c9bfbb710e6bde493da980004a9f664ca71efeaf5ccd2ca0f0e1452adf SHA512 8716c2a63660d61da0fc9f1f8c5065cacc77c696456eed2167cd451e74e665e838bf5ab1d865d073379cb2fda2ff7c71e946cb74e905585d6c5d714159603a78
diff --git a/app-admin/mcelog/mcelog-191.ebuild b/app-admin/mcelog/mcelog-191.ebuild
new file mode 100644
index 000000000000..7d504ed20d59
--- /dev/null
+++ b/app-admin/mcelog/mcelog-191.ebuild
@@ -0,0 +1,51 @@
+# 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"
+
+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
+ 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
+}