1 |
commit: 01149efff6d5d1131ae7bec755c9b80ea4210048 |
2 |
Author: Ben Kohler <bkohler <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Sep 25 12:01:24 2018 +0000 |
4 |
Commit: Ben Kohler <bkohler <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Sep 25 12:01:43 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=01149eff |
7 |
|
8 |
app-admin/mcelog: bump to 161 |
9 |
|
10 |
Package-Manager: Portage-2.3.50, Repoman-2.3.11 |
11 |
|
12 |
app-admin/mcelog/Manifest | 1 + |
13 |
app-admin/mcelog/mcelog-161.ebuild | 58 ++++++++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 59 insertions(+) |
15 |
|
16 |
diff --git a/app-admin/mcelog/Manifest b/app-admin/mcelog/Manifest |
17 |
index fff18657442..aea877a1775 100644 |
18 |
--- a/app-admin/mcelog/Manifest |
19 |
+++ b/app-admin/mcelog/Manifest |
20 |
@@ -1,2 +1,3 @@ |
21 |
DIST mcelog-154.tar.gz 297148 BLAKE2B 80b2b6b13222d0194d63516607b3132e2146894189e2c3c793c953dc43705a5b386ecb76ae3c8b7b345f8d440f547b3e566b16bf0802d17188cce978e1ad2fc1 SHA512 8a160aaa8a0ed736cb81082321e199e6a6e4f7f6528915752af545db28918e89dcb6bf321a92472d776c61914d08c613900273b3d265a375684e3212547abe38 |
22 |
DIST mcelog-160.tar.gz 307762 BLAKE2B da2c4b7fd2a7e69ff75aa8df4f96616b180b94b0b2f82fdfd4bbcf11515e58585cd371a36c6aaa205c87f627893fa11f165c51ead58d01c89875e76325a56efa SHA512 b31d7bd97b45a11997cff9ce5af534ced56658557544d6c812b0b284fdf40efc6a6cc48f5a6bb80a396273c5b1c870005f7c6dea92445639b0e4642edcee9520 |
23 |
+DIST mcelog-161.tar.gz 308227 BLAKE2B cd208cce2685b779a2cac6d347b890d5bff5f07d2e7165c1d078f914aefcc26bef2ab968ec6baac4410134d8188dd73e4f3d77f13603307f8c6b592554146497 SHA512 af38fcc1cc9621d6cfbda2b9acc7698cddbe631690bf394398978bdafd0d98075539012827ca876cef3f64cc56a00d31d0bd0f4fe2ea9171eb41bf0163e35f0e |
24 |
|
25 |
diff --git a/app-admin/mcelog/mcelog-161.ebuild b/app-admin/mcelog/mcelog-161.ebuild |
26 |
new file mode 100644 |
27 |
index 00000000000..87b3afeab5c |
28 |
--- /dev/null |
29 |
+++ b/app-admin/mcelog/mcelog-161.ebuild |
30 |
@@ -0,0 +1,58 @@ |
31 |
+# Copyright 1999-2018 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 |
+} |