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: Wed, 07 Aug 2019 13:33:01
Message-Id: 1565184768.465633841a4257bdae1f938a66243c87bb818084.bkohler@gentoo
1 commit: 465633841a4257bdae1f938a66243c87bb818084
2 Author: Ben Kohler <bkohler <AT> gentoo <DOT> org>
3 AuthorDate: Wed Aug 7 13:32:12 2019 +0000
4 Commit: Ben Kohler <bkohler <AT> gentoo <DOT> org>
5 CommitDate: Wed Aug 7 13:32:48 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=46563384
7
8 app-admin/mcelog: bump to 164
9
10 Package-Manager: Portage-2.3.71, Repoman-2.3.17
11 Signed-off-by: Ben Kohler <bkohler <AT> gentoo.org>
12
13 app-admin/mcelog/Manifest | 1 +
14 app-admin/mcelog/mcelog-164.ebuild | 58 ++++++++++++++++++++++++++++++++++++++
15 2 files changed, 59 insertions(+)
16
17 diff --git a/app-admin/mcelog/Manifest b/app-admin/mcelog/Manifest
18 index fa95c2af915..f58988e5509 100644
19 --- a/app-admin/mcelog/Manifest
20 +++ b/app-admin/mcelog/Manifest
21 @@ -1 +1,2 @@
22 DIST mcelog-162.tar.gz 308347 BLAKE2B bd438e85ea793c6c5ce4d561f0400e91b101a010cce7f937751a11a0a974fec49db7e9d768fc50db68a91c973c90c8ab1b4ffa80964cb6fde860b9f2ac217435 SHA512 d61a0b7ad3974098963edde1e9e9acdf4dbd1a025577b7044bafc17302abd19080c8145a2700c691400af0768ff4b6833d47697e1478c5bef8831f7f8b61ae48
23 +DIST mcelog-164.tar.gz 308393 BLAKE2B da1f425faa88eb8377eb11c3e13aa6fd4c0b4f4d3b02afc2fba8e4137979bb5619b075b0d0ecd80ec6059c9eb912376291e56e667bf7b838bd2f641c4a6c175f SHA512 10c8c580b10caa6d40c2a4887cb9e9ec07eb81a353d24a4d1a89ad8ec5cc29f7976c26335f077393794b060e62b5cbbe348c64567a3cf3fabc3ec5c3fe59da5a
24
25 diff --git a/app-admin/mcelog/mcelog-164.ebuild b/app-admin/mcelog/mcelog-164.ebuild
26 new file mode 100644
27 index 00000000000..557b542b3a9
28 --- /dev/null
29 +++ b/app-admin/mcelog/mcelog-164.ebuild
30 @@ -0,0 +1,58 @@
31 +# Copyright 1999-2019 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=6
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/cron.daily
71 + newins ${PN}.cron ${PN}
72 +
73 + insinto /etc/logrotate.d/
74 + newins ${PN}.logrotate ${PN}
75 +
76 + newinitd "${FILESDIR}"/${PN}.init-r1 ${PN}
77 + systemd_dounit "${FILESDIR}"/${PN}.service
78 +
79 + dodoc *.pdf
80 +}
81 +
82 +pkg_postinst() {
83 + einfo "The default configuration set is now installed in /etc/${PN}"
84 + einfo "you might want to edit those files."
85 + einfo
86 + einfo "A sample cronjob is installed into /etc/cron.daily"
87 + einfo "without executable bit (system service is the preferred method now)"
88 +}