summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Kohler <bkohler@gentoo.org>2023-03-13 08:08:04 -0500
committerBen Kohler <bkohler@gentoo.org>2023-03-13 08:09:32 -0500
commit7f5339b19daa085adf5894abd53354dcf436ad79 (patch)
treeae97118deb5059ebafcfdb25aa2b8fb8c88b2d27 /app-admin
parentsys-kernel/gentoo-sources: add 4.14.309 (diff)
downloadgentoo-7f5339b19daa085adf5894abd53354dcf436ad79.tar.gz
gentoo-7f5339b19daa085adf5894abd53354dcf436ad79.tar.bz2
gentoo-7f5339b19daa085adf5894abd53354dcf436ad79.zip
app-admin/mcelog: add 192
Signed-off-by: Ben Kohler <bkohler@gentoo.org>
Diffstat (limited to 'app-admin')
-rw-r--r--app-admin/mcelog/Manifest1
-rw-r--r--app-admin/mcelog/mcelog-192.ebuild51
2 files changed, 52 insertions, 0 deletions
diff --git a/app-admin/mcelog/Manifest b/app-admin/mcelog/Manifest
index 2c15d547344b..58f9ba78e3fd 100644
--- a/app-admin/mcelog/Manifest
+++ b/app-admin/mcelog/Manifest
@@ -1,2 +1,3 @@
DIST mcelog-190.tar.gz 314409 BLAKE2B 287b5ccba24ef7afe4b2653f2ab8ddd9ae94451e1131941d61031042a039cb9ed633f75b0ddf0035f3fef023cdf67c5c0b01169d0afac4ae47f9badcc55d16ef SHA512 26347d5255c602189961c63f8bf44f0c73b8f7fb0d455108c604a84e73e00303646961759101aab42157d12a7678f8c47277829b0460b0832a64c8b5c913d952
DIST mcelog-191.tar.gz 317354 BLAKE2B a02df41304aac994a37f4abd7be65408bd19d72e2aa20a15a3b55b6b152aebfad09309c9bfbb710e6bde493da980004a9f664ca71efeaf5ccd2ca0f0e1452adf SHA512 8716c2a63660d61da0fc9f1f8c5065cacc77c696456eed2167cd451e74e665e838bf5ab1d865d073379cb2fda2ff7c71e946cb74e905585d6c5d714159603a78
+DIST mcelog-192.tar.gz 317443 BLAKE2B 071c9e29aa049a2b559feb692d258df0685baaec614c4866d09cc8e9c8e8dad1e5064e661215c179649792cf3375e98aaa70fbe2629f5ba2b51b489ed9198b20 SHA512 dbdab35a4d3d2a3d395adb6384143d6ce53a2f598a9868e8777bd0588837621f7be74fdf6299b9949a4195ab6b242d9069686d07fe14fe23447d13e2dcfe7966
diff --git a/app-admin/mcelog/mcelog-192.ebuild b/app-admin/mcelog/mcelog-192.ebuild
new file mode 100644
index 000000000000..7d504ed20d59
--- /dev/null
+++ b/app-admin/mcelog/mcelog-192.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
+}