1 |
commit: a6686c82c22a0fc316cdfa69938f1f51fc30bd40 |
2 |
Author: Ben Kohler <bkohler <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Jan 7 21:53:18 2021 +0000 |
4 |
Commit: Ben Kohler <bkohler <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Jan 7 21:53:42 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a6686c82 |
7 |
|
8 |
app-admin/mcelog: bump to 174 |
9 |
|
10 |
Package-Manager: Portage-3.0.12, Repoman-3.0.2 |
11 |
Signed-off-by: Ben Kohler <bkohler <AT> gentoo.org> |
12 |
|
13 |
app-admin/mcelog/Manifest | 1 + |
14 |
app-admin/mcelog/mcelog-174.ebuild | 58 ++++++++++++++++++++++++++++++++++++++ |
15 |
2 files changed, 59 insertions(+) |
16 |
|
17 |
diff --git a/app-admin/mcelog/Manifest b/app-admin/mcelog/Manifest |
18 |
index 0e469fe0612..2d317924d4f 100644 |
19 |
--- a/app-admin/mcelog/Manifest |
20 |
+++ b/app-admin/mcelog/Manifest |
21 |
@@ -1 +1,2 @@ |
22 |
DIST mcelog-173.tar.gz 313098 BLAKE2B f9ddcd85294bdcb1d9e8e888040af94e5e17f4902efb47788b69737bb3408e59014481f822ea083947725f75b7db21250f4c645e7b409a6c23ce7a9ce3708a62 SHA512 fd83828d19f889e3cbb2ffda8fca95f3097644161bfe2ede1fd7600718fa56d343cd985b831eb643dc613a453730e07847de0f05fb14b4a03a8dcd73281199e8 |
23 |
+DIST mcelog-174.tar.gz 313473 BLAKE2B 6ffbf6f53e4a08d0dbec04f6cfd96e6b564de5e85acc1f933856e317a26898ae002f19c3b948d9e6dfc56fa3de944045a7cc31e16f53a9c40bd872d4e4ad8a60 SHA512 fcca5f9b54d1f6889ab33d7a172a7ce1e89b4bb8c4b88d589e491068cba49518bd47a3d8886b70ac1b9693bef9e312640cbc64434d8679401bf2d1beda809448 |
24 |
|
25 |
diff --git a/app-admin/mcelog/mcelog-174.ebuild b/app-admin/mcelog/mcelog-174.ebuild |
26 |
new file mode 100644 |
27 |
index 00000000000..0fceee0d5f2 |
28 |
--- /dev/null |
29 |
+++ b/app-admin/mcelog/mcelog-174.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 |
+} |