1 |
commit: 16c8bc19aa6bd45c9de7a928317b13981deedd6f |
2 |
Author: Matthew Thode <prometheanfire <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Nov 19 18:57:39 2018 +0000 |
4 |
Commit: Matthew Thode <prometheanfire <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Nov 19 18:57:39 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=16c8bc19 |
7 |
|
8 |
app-admin/rasdaemon: bump and install openrc files |
9 |
|
10 |
Fixes: https://bugs.gentoo.org/670644 |
11 |
Package-Manager: Portage-2.3.51, Repoman-2.3.12 |
12 |
Signed-off-by: Matthew Thode <prometheanfire <AT> gentoo.org> |
13 |
|
14 |
app-admin/rasdaemon/Manifest | 1 + |
15 |
app-admin/rasdaemon/files/ras-mc-ctl.openrc | 10 ++++++ |
16 |
app-admin/rasdaemon/files/rasdaemon.openrc | 18 +++++++++++ |
17 |
app-admin/rasdaemon/rasdaemon-0.6.2.ebuild | 50 +++++++++++++++++++++++++++++ |
18 |
4 files changed, 79 insertions(+) |
19 |
|
20 |
diff --git a/app-admin/rasdaemon/Manifest b/app-admin/rasdaemon/Manifest |
21 |
index de797238347..7d14f3d5052 100644 |
22 |
--- a/app-admin/rasdaemon/Manifest |
23 |
+++ b/app-admin/rasdaemon/Manifest |
24 |
@@ -1 +1,2 @@ |
25 |
DIST rasdaemon-0.6.1.tar.bz2 363201 BLAKE2B bdc7ec3c2e7e4b2fee02dddc55b5afd82df64717f45da15dbfd5fee87721b80ac425af5806ee7462cad29c6ab2953a2e649c4b1e455983d8821a1f633d76c85d SHA512 a221a7ea0e4555befbf8acb9d4ce22d5cc7861a0da458111a24905fa06be0e8f3b18d8de5334310a423657febc0532d2705236de89cb1788302bf487ede29f60 |
26 |
+DIST rasdaemon-0.6.2.tar.bz2 375140 BLAKE2B fd22185172777865120fbd13b7bfb5db9b9b0348fe8575ca6b5f16fd662c1e847729e239342b1c9ece70a4e79ad00352bb69d9f80cfbc8da2c961e68874dd03b SHA512 d8c1ee2cc801124837b3a0739f3016a206165306e300ce51e6aac2cef56bb65479f96cdb019ba3a5cffeba94e7b67ca22686d4ac94bfa8a8a1145db6ba51096b |
27 |
|
28 |
diff --git a/app-admin/rasdaemon/files/ras-mc-ctl.openrc b/app-admin/rasdaemon/files/ras-mc-ctl.openrc |
29 |
new file mode 100644 |
30 |
index 00000000000..d9790c482e2 |
31 |
--- /dev/null |
32 |
+++ b/app-admin/rasdaemon/files/ras-mc-ctl.openrc |
33 |
@@ -0,0 +1,10 @@ |
34 |
+#!/sbin/openrc-run |
35 |
+# Copyright 1999-2018 Gentoo Authors |
36 |
+# Distributed under the terms of the GNU General Public License v2 |
37 |
+ |
38 |
+description="Starts ${SVCNAME} service for rasdaemon" |
39 |
+ |
40 |
+command="/usr/bin/${SVCNAME}" |
41 |
+command_args="--register-labels" |
42 |
+pidfile=/run/${SVCNAME}.pid |
43 |
+command_background=true |
44 |
|
45 |
diff --git a/app-admin/rasdaemon/files/rasdaemon.openrc b/app-admin/rasdaemon/files/rasdaemon.openrc |
46 |
new file mode 100644 |
47 |
index 00000000000..c16f18dbe3f |
48 |
--- /dev/null |
49 |
+++ b/app-admin/rasdaemon/files/rasdaemon.openrc |
50 |
@@ -0,0 +1,18 @@ |
51 |
+#!/sbin/openrc-run |
52 |
+# Copyright 1999-2018 Gentoo Authors |
53 |
+# Distributed under the terms of the GNU General Public License v2 |
54 |
+ |
55 |
+description="Starts ${SVCNAME} service" |
56 |
+ |
57 |
+command="/usr/bin/${SVCNAME}" |
58 |
+command_args="--foreground --record" |
59 |
+pidfile=/run/${SVCNAME}.pid |
60 |
+command_background=true |
61 |
+ |
62 |
+start_post() { |
63 |
+ "${command}" --enable |
64 |
+} |
65 |
+ |
66 |
+stop_post() { |
67 |
+ "${command}" --disable |
68 |
+} |
69 |
|
70 |
diff --git a/app-admin/rasdaemon/rasdaemon-0.6.2.ebuild b/app-admin/rasdaemon/rasdaemon-0.6.2.ebuild |
71 |
new file mode 100644 |
72 |
index 00000000000..330e1815fc3 |
73 |
--- /dev/null |
74 |
+++ b/app-admin/rasdaemon/rasdaemon-0.6.2.ebuild |
75 |
@@ -0,0 +1,50 @@ |
76 |
+# Copyright 1999-2018 Gentoo Authors |
77 |
+# Distributed under the terms of the GNU General Public License v2 |
78 |
+ |
79 |
+EAPI=6 |
80 |
+ |
81 |
+inherit linux-info systemd |
82 |
+ |
83 |
+DESCRIPTION="Reliability, Availability and Serviceability logging tool" |
84 |
+HOMEPAGE="http://www.infradead.org/~mchehab/rasdaemon/" |
85 |
+SRC_URI="http://www.infradead.org/~mchehab/${PN}/${P}.tar.bz2" |
86 |
+ |
87 |
+LICENSE="GPL-2" |
88 |
+SLOT="0" |
89 |
+KEYWORDS="~amd64 ~x86" |
90 |
+IUSE="" |
91 |
+ |
92 |
+DEPEND="" |
93 |
+RDEPEND=" |
94 |
+ ${DEPEND} |
95 |
+ sys-devel/gettext |
96 |
+ dev-db/sqlite |
97 |
+ sys-apps/dmidecode |
98 |
+ dev-perl/DBD-SQLite |
99 |
+" |
100 |
+ |
101 |
+pkg_setup() { |
102 |
+ linux-info_pkg_setup |
103 |
+ local CONFIG_CHECK="~FUNCTION_TRACER ~FUNCTION_GRAPH_TRACER ~STACK_TRACER ~DYNAMIC_FTRACE" |
104 |
+ check_extra_config |
105 |
+} |
106 |
+ |
107 |
+src_configure() { |
108 |
+ econf --enable-abrt-report \ |
109 |
+ --enable-aer \ |
110 |
+ --enable-arm \ |
111 |
+ --enable-extlog \ |
112 |
+ --enable-hisi-ns-decode \ |
113 |
+ --enable-mce \ |
114 |
+ --enable-non-standard \ |
115 |
+ --enable-sqlite3 \ |
116 |
+ --localstatedir=/var |
117 |
+} |
118 |
+ |
119 |
+src_install() { |
120 |
+ default |
121 |
+ systemd_dounit misc/*.service |
122 |
+ |
123 |
+ newinitd "${FILESDIR}/rasdaemon.openrc" rasdaemon |
124 |
+ newinitd "${FILESDIR}/ras-mc-ctl.openrc" ras-mc-ctl |
125 |
+} |