Gentoo Archives: gentoo-commits

From: Matt Turner <mattst88@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-admin/mcelog/
Date: Fri, 11 May 2018 20:58:51
Message-Id: 1526072323.7da4d10a9543d8e6936aa95a934f4b96c3563e49.mattst88@gentoo
1 commit: 7da4d10a9543d8e6936aa95a934f4b96c3563e49
2 Author: Matt Turner <mattst88 <AT> gentoo <DOT> org>
3 AuthorDate: Fri May 11 20:58:12 2018 +0000
4 Commit: Matt Turner <mattst88 <AT> gentoo <DOT> org>
5 CommitDate: Fri May 11 20:58:43 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7da4d10a
7
8 app-admin/mcelog: Version bump to 157
9
10 app-admin/mcelog/Manifest | 1 +
11 app-admin/mcelog/mcelog-157.ebuild | 58 ++++++++++++++++++++++++++++++++++++++
12 2 files changed, 59 insertions(+)
13
14 diff --git a/app-admin/mcelog/Manifest b/app-admin/mcelog/Manifest
15 index b2db7791030..1d802848ade 100644
16 --- a/app-admin/mcelog/Manifest
17 +++ b/app-admin/mcelog/Manifest
18 @@ -1 +1,2 @@
19 DIST mcelog-154.tar.gz 297148 BLAKE2B 80b2b6b13222d0194d63516607b3132e2146894189e2c3c793c953dc43705a5b386ecb76ae3c8b7b345f8d440f547b3e566b16bf0802d17188cce978e1ad2fc1 SHA512 8a160aaa8a0ed736cb81082321e199e6a6e4f7f6528915752af545db28918e89dcb6bf321a92472d776c61914d08c613900273b3d265a375684e3212547abe38
20 +DIST mcelog-157.tar.gz 297194 BLAKE2B f34e57f282828941b7023b6f043084dec4591b071f4e23fff318ea4ff49c8be2c0eab3279d7803d3cf029351f51d2acdf16d4eb1998042a8002f6667c81df90d SHA512 831835058ab820497aed5640a424908e3ee138431041b1c70e2d4f601a242e0437d240a842de1c0bc10f41790f1ddff64054e79ff2a6de1c814710acd9210bbd
21
22 diff --git a/app-admin/mcelog/mcelog-157.ebuild b/app-admin/mcelog/mcelog-157.ebuild
23 new file mode 100644
24 index 00000000000..22442f62abb
25 --- /dev/null
26 +++ b/app-admin/mcelog/mcelog-157.ebuild
27 @@ -0,0 +1,58 @@
28 +# Copyright 1999-2018 Gentoo Foundation
29 +# Distributed under the terms of the GNU General Public License v2
30 +
31 +EAPI=6
32 +
33 +inherit linux-info systemd toolchain-funcs
34 +
35 +DESCRIPTION="A tool to log and decode Machine Check Exceptions"
36 +HOMEPAGE="http://mcelog.org/"
37 +SRC_URI="https://github.com/andikleen/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
38 +
39 +LICENSE="GPL-2"
40 +SLOT="0"
41 +KEYWORDS="~amd64 ~x86"
42 +IUSE="selinux"
43 +
44 +RDEPEND="selinux? ( sec-policy/selinux-mcelog )"
45 +
46 +# TODO: add mce-inject to the tree to support test phase
47 +RESTRICT="test"
48 +
49 +pkg_pretend() {
50 + if [[ ${MERGE_TYPE} != buildonly ]]; then
51 + local CONFIG_CHECK="~X86_MCE"
52 + kernel_is -ge 4 12 && CONFIG_CHECK+=" ~X86_MCELOG_LEGACY"
53 + check_extra_config
54 + fi
55 +}
56 +
57 +src_prepare() {
58 + eapply "${FILESDIR}"/${PN}-0.8_pre1-timestamp-${PN}.patch \
59 + "${FILESDIR}"/${PN}-129-debugflags.patch
60 + eapply_user
61 + tc-export CC
62 +}
63 +
64 +src_install() {
65 + default
66 +
67 + insinto /etc/cron.daily
68 + newins ${PN}.cron ${PN}
69 +
70 + insinto /etc/logrotate.d/
71 + newins ${PN}.logrotate ${PN}
72 +
73 + newinitd "${FILESDIR}"/${PN}.init-r1 ${PN}
74 + systemd_dounit "${FILESDIR}"/${PN}.service
75 +
76 + dodoc *.pdf
77 +}
78 +
79 +pkg_postinst() {
80 + einfo "The default configuration set is now installed in /etc/${PN}"
81 + einfo "you might want to edit those files."
82 + einfo
83 + einfo "A sample cronjob is installed into /etc/cron.daily"
84 + einfo "without executable bit (system service is the preferred method now)"
85 +}