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: Sat, 14 Dec 2019 13:17:09
Message-Id: 1576329414.3c6e529f5050da20dd8263c51d7c8d7dc0d592a5.bkohler@gentoo
1 commit: 3c6e529f5050da20dd8263c51d7c8d7dc0d592a5
2 Author: Ben Kohler <bkohler <AT> gentoo <DOT> org>
3 AuthorDate: Sat Dec 14 13:16:37 2019 +0000
4 Commit: Ben Kohler <bkohler <AT> gentoo <DOT> org>
5 CommitDate: Sat Dec 14 13:16:54 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3c6e529f
7
8 app-admin/mcelog: bump to 167
9
10 Package-Manager: Portage-2.3.81, Repoman-2.3.20
11 Signed-off-by: Ben Kohler <bkohler <AT> gentoo.org>
12
13 app-admin/mcelog/Manifest | 1 +
14 app-admin/mcelog/mcelog-167.ebuild | 58 ++++++++++++++++++++++++++++++++++++++
15 2 files changed, 59 insertions(+)
16
17 diff --git a/app-admin/mcelog/Manifest b/app-admin/mcelog/Manifest
18 index 95fbd33212e..b63629aa227 100644
19 --- a/app-admin/mcelog/Manifest
20 +++ b/app-admin/mcelog/Manifest
21 @@ -2,3 +2,4 @@ DIST mcelog-162.tar.gz 308347 BLAKE2B bd438e85ea793c6c5ce4d561f0400e91b101a010cc
22 DIST mcelog-164.tar.gz 308393 BLAKE2B da1f425faa88eb8377eb11c3e13aa6fd4c0b4f4d3b02afc2fba8e4137979bb5619b075b0d0ecd80ec6059c9eb912376291e56e667bf7b838bd2f641c4a6c175f SHA512 10c8c580b10caa6d40c2a4887cb9e9ec07eb81a353d24a4d1a89ad8ec5cc29f7976c26335f077393794b060e62b5cbbe348c64567a3cf3fabc3ec5c3fe59da5a
23 DIST mcelog-165.tar.gz 308405 BLAKE2B 8e6cf59bfa3a5c667c1b709f9c0c5c82f8710ff1aa7c5758c1573a2c832030bb31735f8dd5a53fab26745739cdfac3001cb7a752df579cf452874d19e9e7da65 SHA512 466a07a90679380783524854934d6d66cbc53474616de9141cd36dd2a3b757cacccf1db50c8d4cd54763cea63ac9c09daf6e27ccf3bcf17d62da7fc3396281eb
24 DIST mcelog-166.tar.gz 312451 BLAKE2B 430630f6f693ae22961bae2381117dbb6d3bca228d6bdcbbe007d2a2681cda53f8c29cf18b98a47a88d36fd059e3e08aff5b9ad22243d7ce5083f5643768b0e6 SHA512 35514188cf4932b4ecffb8d8149534367a424adb76f03833d53d3c2a0dae2ca89de90d071e48ed67a17a8a70a67efc14aa186280e9145b7572887dccdf9a01af
25 +DIST mcelog-167.tar.gz 312512 BLAKE2B 5642a421149847bddc46e776932c0fcaab1e281904a6be4ff8a3254d9e292d5fb77e6fbd5097c7afe0b39eca2f2db1752cdf67714a8a3d2f836785ebde3c0c90 SHA512 0229df9a4772e916af79aa35cdbc644feff76870d87a8c3c6ce5d132cf8c98bc48ec48ba564496071cb803537d3504c84963639370d9aed11d23833b65b3b306
26
27 diff --git a/app-admin/mcelog/mcelog-167.ebuild b/app-admin/mcelog/mcelog-167.ebuild
28 new file mode 100644
29 index 00000000000..557b542b3a9
30 --- /dev/null
31 +++ b/app-admin/mcelog/mcelog-167.ebuild
32 @@ -0,0 +1,58 @@
33 +# Copyright 1999-2019 Gentoo Authors
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=6
37 +
38 +inherit linux-info 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 +
51 +# TODO: add mce-inject to the tree to support test phase
52 +RESTRICT="test"
53 +
54 +pkg_pretend() {
55 + if [[ ${MERGE_TYPE} != buildonly ]]; then
56 + local CONFIG_CHECK="~X86_MCE"
57 + kernel_is -ge 4 12 && CONFIG_CHECK+=" ~X86_MCELOG_LEGACY"
58 + check_extra_config
59 + fi
60 +}
61 +
62 +src_prepare() {
63 + eapply "${FILESDIR}"/${PN}-0.8_pre1-timestamp-${PN}.patch \
64 + "${FILESDIR}"/${PN}-129-debugflags.patch
65 + eapply_user
66 + tc-export CC
67 +}
68 +
69 +src_install() {
70 + default
71 +
72 + insinto /etc/cron.daily
73 + newins ${PN}.cron ${PN}
74 +
75 + insinto /etc/logrotate.d/
76 + newins ${PN}.logrotate ${PN}
77 +
78 + newinitd "${FILESDIR}"/${PN}.init-r1 ${PN}
79 + systemd_dounit "${FILESDIR}"/${PN}.service
80 +
81 + dodoc *.pdf
82 +}
83 +
84 +pkg_postinst() {
85 + einfo "The default configuration set is now installed in /etc/${PN}"
86 + einfo "you might want to edit those files."
87 + einfo
88 + einfo "A sample cronjob is installed into /etc/cron.daily"
89 + einfo "without executable bit (system service is the preferred method now)"
90 +}