Gentoo Archives: gentoo-commits

From: Ben Kohler <bkohler@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-admin/mcelog/
Date: Sun, 06 Nov 2022 13:04:36
Message-Id: 1667739865.22ecf44d3a7898704b59e36e669acf2da142aeed.bkohler@gentoo
1 commit: 22ecf44d3a7898704b59e36e669acf2da142aeed
2 Author: Ben Kohler <bkohler <AT> gentoo <DOT> org>
3 AuthorDate: Sun Nov 6 12:51:39 2022 +0000
4 Commit: Ben Kohler <bkohler <AT> gentoo <DOT> org>
5 CommitDate: Sun Nov 6 13:04:25 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=22ecf44d
7
8 app-admin/mcelog: add 190
9
10 Signed-off-by: Ben Kohler <bkohler <AT> gentoo.org>
11
12 app-admin/mcelog/Manifest | 1 +
13 app-admin/mcelog/mcelog-190.ebuild | 51 ++++++++++++++++++++++++++++++++++++++
14 2 files changed, 52 insertions(+)
15
16 diff --git a/app-admin/mcelog/Manifest b/app-admin/mcelog/Manifest
17 index 4ea533048401..3e30d27af4e3 100644
18 --- a/app-admin/mcelog/Manifest
19 +++ b/app-admin/mcelog/Manifest
20 @@ -1,2 +1,3 @@
21 DIST mcelog-182.tar.gz 314857 BLAKE2B fc0716a468ce3eb4fd08806913c7e5e7481f0181f1217bf6e7bc6d675651dd04adac3cd0927428a6f88b15ddd919fbb1c26a4cfd977c3d902906fc09170bb1b3 SHA512 546fd30d16b00efb79e0df49c4c2d7cff08280762f04c4f67c3ceed500dcd19ba63a6eeb55f6ee444f9bbae04431745eb8aa3ded609c10e6be69cf5dd7722443
22 DIST mcelog-189.tar.gz 314373 BLAKE2B fcd0a2c52eaa8e75b5d4233190e5daccef2500fba024f505a109bd4b4b69881fc65fe28a15c7a1dea7fcc8ad7d3c6a67e14891ae486d5fa352ccaeae7a71fbd7 SHA512 391123c6153788c533dc8caa749997732495206d59801fde80380c2dbc188236a78bd18bfb6fb27fa9112f436dd3e66314f75ce5aed2c85f3a821fe0c12ff7ea
23 +DIST mcelog-190.tar.gz 314409 BLAKE2B 287b5ccba24ef7afe4b2653f2ab8ddd9ae94451e1131941d61031042a039cb9ed633f75b0ddf0035f3fef023cdf67c5c0b01169d0afac4ae47f9badcc55d16ef SHA512 26347d5255c602189961c63f8bf44f0c73b8f7fb0d455108c604a84e73e00303646961759101aab42157d12a7678f8c47277829b0460b0832a64c8b5c913d952
24
25 diff --git a/app-admin/mcelog/mcelog-190.ebuild b/app-admin/mcelog/mcelog-190.ebuild
26 new file mode 100644
27 index 000000000000..b365ebd24343
28 --- /dev/null
29 +++ b/app-admin/mcelog/mcelog-190.ebuild
30 @@ -0,0 +1,51 @@
31 +# Copyright 1999-2022 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=8
35 +
36 +PYTHON_COMPAT=( python3_{9..11} )
37 +
38 +inherit linux-info python-any-r1 systemd toolchain-funcs
39 +
40 +DESCRIPTION="A tool to log and decode Machine Check Exceptions"
41 +HOMEPAGE="http://mcelog.org/"
42 +SRC_URI="https://github.com/andikleen/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
43 +
44 +LICENSE="GPL-2"
45 +SLOT="0"
46 +KEYWORDS="~amd64 ~x86"
47 +IUSE="selinux"
48 +
49 +RDEPEND="selinux? ( sec-policy/selinux-mcelog )"
50 +DEPEND="${PYTHON_DEPS}"
51 +
52 +# TODO: add mce-inject to the tree to support test phase
53 +RESTRICT="test"
54 +
55 +pkg_pretend() {
56 + if [[ ${MERGE_TYPE} != buildonly ]]; then
57 + local CONFIG_CHECK="~X86_MCE"
58 + kernel_is -ge 4 12 && CONFIG_CHECK+=" ~X86_MCELOG_LEGACY"
59 + check_extra_config
60 + fi
61 +}
62 +
63 +src_prepare() {
64 + eapply "${FILESDIR}"/${PN}-0.8_pre1-timestamp-${PN}.patch \
65 + "${FILESDIR}"/${PN}-129-debugflags.patch
66 + eapply_user
67 + tc-export CC
68 + python_fix_shebang genconfig.py
69 +}
70 +
71 +src_install() {
72 + default
73 +
74 + insinto /etc/logrotate.d/
75 + newins ${PN}.logrotate ${PN}
76 +
77 + newinitd "${FILESDIR}"/${PN}.init-r1 ${PN}
78 + systemd_dounit ${PN}.service
79 +
80 + dodoc *.pdf
81 +}