1 |
commit: 67357634fbb1c2dff5d87e1ca2e0faeb3ed3041c |
2 |
Author: Ben Kohler <bkohler <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Jul 7 20:41:22 2021 +0000 |
4 |
Commit: Ben Kohler <bkohler <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Jul 7 20:41:34 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=67357634 |
7 |
|
8 |
app-admin/mcelog: bump to 177 |
9 |
|
10 |
Package-Manager: Portage-3.0.20, 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-177.ebuild | 58 ++++++++++++++++++++++++++++++++++++++ |
15 |
2 files changed, 59 insertions(+) |
16 |
|
17 |
diff --git a/app-admin/mcelog/Manifest b/app-admin/mcelog/Manifest |
18 |
index d571bce6ee0..3d2d8851297 100644 |
19 |
--- a/app-admin/mcelog/Manifest |
20 |
+++ b/app-admin/mcelog/Manifest |
21 |
@@ -1 +1,2 @@ |
22 |
DIST mcelog-175.tar.gz 315350 BLAKE2B a324af0f4961fb0f6f2af1b198e07a34c24fb5874edd550ca9bdfe452d84cf48d9565530a290a3cdba51eb4ad57f3bbe3d3c9b2beb6d3411195d6dccdb9dfd64 SHA512 992789817a3963a3f118121149bf9b217609f54d85a71c2adb671728cf04777ccb062033df68793afff5fb6a0080b50b4e6fa89cbcd0970d92ca4246155ea13a |
23 |
+DIST mcelog-177.tar.gz 315474 BLAKE2B 8c6920b01ba836460067f322a17e5a69c2a9a447127ae583ddd151f3cd290aca039a63e95601789cd71c4ef75d4213e39918e08b600aeda3e06bb800119209c5 SHA512 b73d103c7b326e6aa2cb22a05b7df29e24f5b8f9e564a9d2d05627e0af80ee581d62b422e35a68cf3e43a3e1aaf905cccb08a65286c9f77c8c8c2ac41e880fbf |
24 |
|
25 |
diff --git a/app-admin/mcelog/mcelog-177.ebuild b/app-admin/mcelog/mcelog-177.ebuild |
26 |
new file mode 100644 |
27 |
index 00000000000..0fceee0d5f2 |
28 |
--- /dev/null |
29 |
+++ b/app-admin/mcelog/mcelog-177.ebuild |
30 |
@@ -0,0 +1,58 @@ |
31 |
+# Copyright 1999-2021 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 ${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 |
+} |