1 |
commit: 311c7f0ece9291da2cacda6b616b7b1ba1477cc3 |
2 |
Author: Ben Kohler <bkohler <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Jul 13 14:17:04 2021 +0000 |
4 |
Commit: Ben Kohler <bkohler <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Jul 13 14:23:33 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=311c7f0e |
7 |
|
8 |
app-admin/mcelog: bump to EAPI=8 |
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/mcelog-177-r1.ebuild | 52 +++++++++++++++++++++++++++++++++++ |
14 |
1 file changed, 52 insertions(+) |
15 |
|
16 |
diff --git a/app-admin/mcelog/mcelog-177-r1.ebuild b/app-admin/mcelog/mcelog-177-r1.ebuild |
17 |
new file mode 100644 |
18 |
index 00000000000..2ed1d04cc6a |
19 |
--- /dev/null |
20 |
+++ b/app-admin/mcelog/mcelog-177-r1.ebuild |
21 |
@@ -0,0 +1,52 @@ |
22 |
+# Copyright 1999-2021 Gentoo Authors |
23 |
+# Distributed under the terms of the GNU General Public License v2 |
24 |
+ |
25 |
+EAPI=8 |
26 |
+ |
27 |
+inherit linux-info systemd toolchain-funcs |
28 |
+ |
29 |
+DESCRIPTION="A tool to log and decode Machine Check Exceptions" |
30 |
+HOMEPAGE="http://mcelog.org/" |
31 |
+SRC_URI="https://github.com/andikleen/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
32 |
+ |
33 |
+LICENSE="GPL-2" |
34 |
+SLOT="0" |
35 |
+KEYWORDS="~amd64 ~x86" |
36 |
+IUSE="selinux" |
37 |
+ |
38 |
+RDEPEND="selinux? ( sec-policy/selinux-mcelog )" |
39 |
+ |
40 |
+# TODO: add mce-inject to the tree to support test phase |
41 |
+RESTRICT="test" |
42 |
+ |
43 |
+pkg_pretend() { |
44 |
+ if [[ ${MERGE_TYPE} != buildonly ]]; then |
45 |
+ local CONFIG_CHECK="~X86_MCE" |
46 |
+ kernel_is -ge 4 12 && CONFIG_CHECK+=" ~X86_MCELOG_LEGACY" |
47 |
+ check_extra_config |
48 |
+ fi |
49 |
+} |
50 |
+ |
51 |
+src_prepare() { |
52 |
+ eapply "${FILESDIR}"/${PN}-0.8_pre1-timestamp-${PN}.patch \ |
53 |
+ "${FILESDIR}"/${PN}-129-debugflags.patch |
54 |
+ eapply_user |
55 |
+ tc-export CC |
56 |
+} |
57 |
+ |
58 |
+src_install() { |
59 |
+ default |
60 |
+ |
61 |
+ insinto /etc/logrotate.d/ |
62 |
+ newins ${PN}.logrotate ${PN} |
63 |
+ |
64 |
+ newinitd "${FILESDIR}"/${PN}.init-r1 ${PN} |
65 |
+ systemd_dounit ${PN}.service |
66 |
+ |
67 |
+ dodoc *.pdf |
68 |
+} |
69 |
+ |
70 |
+pkg_postinst() { |
71 |
+ einfo "The default configuration set is now installed in /etc/${PN}" |
72 |
+ einfo "you might want to edit those files." |
73 |
+} |