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: Mon, 04 Oct 2021 11:35:08
Message-Id: 1633347295.32dca9201754082c6e1be63ecc6e3dd2d71d1262.bkohler@gentoo
1 commit: 32dca9201754082c6e1be63ecc6e3dd2d71d1262
2 Author: Ben Kohler <bkohler <AT> gentoo <DOT> org>
3 AuthorDate: Mon Oct 4 10:32:32 2021 +0000
4 Commit: Ben Kohler <bkohler <AT> gentoo <DOT> org>
5 CommitDate: Mon Oct 4 11:34:55 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=32dca920
7
8 app-admin/mcelog: bump to 179
9
10 Package-Manager: Portage-3.0.26, Repoman-3.0.3
11 Signed-off-by: Ben Kohler <bkohler <AT> gentoo.org>
12
13 app-admin/mcelog/Manifest | 1 +
14 app-admin/mcelog/mcelog-179.ebuild | 47 ++++++++++++++++++++++++++++++++++++++
15 2 files changed, 48 insertions(+)
16
17 diff --git a/app-admin/mcelog/Manifest b/app-admin/mcelog/Manifest
18 index 8f227ee1c1c..4f92b2b8c3c 100644
19 --- a/app-admin/mcelog/Manifest
20 +++ b/app-admin/mcelog/Manifest
21 @@ -1 +1,2 @@
22 DIST mcelog-178.tar.gz 315460 BLAKE2B 65d424f70c615a694dfb18a0d7049965280141858a2c527fbe1db806d675785a0edba161dd6ac4bf6660e1bb2334d394f98bc85058c17d79b2c25106297ae95e SHA512 f024908c877b489148e23bbb8b34d587d1b88e13e43bb401b4594eafb577a24a4b478fd4aa7e221d2d9e633b509b641123418dc36a52425193083d26d2ca60bb
23 +DIST mcelog-179.tar.gz 315590 BLAKE2B 14de21330af412847ba627fccd41d20bdeb0f2f926ca81e7a564c4915cedccb8a2fe7c97227527a73ee0bfcc14757c30f67df47f26890319f4f6dae44551df4f SHA512 f9384abba55d5e6b181786feb28c72ba813d1d7b672b948f2e5c6cd6eaa11dd2ae6597301cd812f45a162f12fdabf7cb670daa325e5ab0cd072d99a880917981
24
25 diff --git a/app-admin/mcelog/mcelog-179.ebuild b/app-admin/mcelog/mcelog-179.ebuild
26 new file mode 100644
27 index 00000000000..ec0ee80a3ef
28 --- /dev/null
29 +++ b/app-admin/mcelog/mcelog-179.ebuild
30 @@ -0,0 +1,47 @@
31 +# Copyright 1999-2021 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=8
35 +
36 +inherit linux-info systemd toolchain-funcs
37 +
38 +DESCRIPTION="A tool to log and decode Machine Check Exceptions"
39 +HOMEPAGE="http://mcelog.org/"
40 +SRC_URI="https://github.com/andikleen/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
41 +
42 +LICENSE="GPL-2"
43 +SLOT="0"
44 +KEYWORDS="~amd64 ~x86"
45 +IUSE="selinux"
46 +
47 +RDEPEND="selinux? ( sec-policy/selinux-mcelog )"
48 +
49 +# TODO: add mce-inject to the tree to support test phase
50 +RESTRICT="test"
51 +
52 +pkg_pretend() {
53 + if [[ ${MERGE_TYPE} != buildonly ]]; then
54 + local CONFIG_CHECK="~X86_MCE"
55 + kernel_is -ge 4 12 && CONFIG_CHECK+=" ~X86_MCELOG_LEGACY"
56 + check_extra_config
57 + fi
58 +}
59 +
60 +src_prepare() {
61 + eapply "${FILESDIR}"/${PN}-0.8_pre1-timestamp-${PN}.patch \
62 + "${FILESDIR}"/${PN}-129-debugflags.patch
63 + eapply_user
64 + tc-export CC
65 +}
66 +
67 +src_install() {
68 + default
69 +
70 + insinto /etc/logrotate.d/
71 + newins ${PN}.logrotate ${PN}
72 +
73 + newinitd "${FILESDIR}"/${PN}.init-r1 ${PN}
74 + systemd_dounit ${PN}.service
75 +
76 + dodoc *.pdf
77 +}