1 |
commit: 30bc4b5a241f51f1aaaedeeaa74893a04a388bdc |
2 |
Author: Ben Kohler <bkohler <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Apr 24 12:53:48 2020 +0000 |
4 |
Commit: Ben Kohler <bkohler <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Apr 24 12:54:17 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=30bc4b5a |
7 |
|
8 |
app-admin/mcelog: bump to 169 |
9 |
|
10 |
Package-Manager: Portage-2.3.99, Repoman-2.3.22 |
11 |
Signed-off-by: Ben Kohler <bkohler <AT> gentoo.org> |
12 |
|
13 |
app-admin/mcelog/Manifest | 1 + |
14 |
app-admin/mcelog/mcelog-169.ebuild | 58 ++++++++++++++++++++++++++++++++++++++ |
15 |
2 files changed, 59 insertions(+) |
16 |
|
17 |
diff --git a/app-admin/mcelog/Manifest b/app-admin/mcelog/Manifest |
18 |
index 29d9dde7d14..9507a4566e9 100644 |
19 |
--- a/app-admin/mcelog/Manifest |
20 |
+++ b/app-admin/mcelog/Manifest |
21 |
@@ -1 +1,2 @@ |
22 |
DIST mcelog-168.tar.gz 312580 BLAKE2B 1a97869cc183c4263bf9868ccdc24b15658de0e863bd03ecdf61b0c6a03f5737dceec1b5237a8dfdf2f889cab9d55d3b5274bde5533841fc1aa56ed2189f5ffc SHA512 81f4ccb2632e5c34c52aea430a682e44d6b9850fbee2e9180a493025bbea660a7a4eaff3ee1e2f6e3d3700d3c951c09c4534b733cca5c809ad9c5a1ff8b07295 |
23 |
+DIST mcelog-169.tar.gz 312584 BLAKE2B 2c24f5db6178d3d3929fe18e8ee130ff827920bff4478cefc244893a68e7ec2e470cb39d1a044009f3c7ac280dbd41088f1716a3db17e23ca4979c554ae39d7a SHA512 df1bf5a3dd2cf4d8fa4fb454f4837841a832beff5c5521db404dbcee600ff7d492853e67323b00aeb3365d6734fa2ea879b13b942e8d431eaff15d31dfb1a1c8 |
24 |
|
25 |
diff --git a/app-admin/mcelog/mcelog-169.ebuild b/app-admin/mcelog/mcelog-169.ebuild |
26 |
new file mode 100644 |
27 |
index 00000000000..e0b67a2d755 |
28 |
--- /dev/null |
29 |
+++ b/app-admin/mcelog/mcelog-169.ebuild |
30 |
@@ -0,0 +1,58 @@ |
31 |
+# Copyright 1999-2020 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 |
+} |