[gentoo-commits] repo/gentoo:master commit in: app-admin/rasdaemon/files/, app-admin/rasdaemon/
commit: 538061f2f97f1a31eafa7681c679f2b08600ac44 Author: Sam James gentoo org> AuthorDate: Mon Jan 9 05:41:58 2023 + Commit: Sam James gentoo org> CommitDate: Mon Jan 9 05:41:58 2023 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=538061f2 app-admin/rasdaemon: drop 0.6.7-r1 Signed-off-by: Sam James gentoo.org> app-admin/rasdaemon/Manifest | 1 - .../rasdaemon/files/rasdaemon-0.6.7-musl.patch | 34 -- .../rasdaemon/files/sysconfig-fix-0.6.7.patch | 32 - app-admin/rasdaemon/rasdaemon-0.6.7-r1.ebuild | 79 -- 4 files changed, 146 deletions(-) diff --git a/app-admin/rasdaemon/Manifest b/app-admin/rasdaemon/Manifest index 7c6fda66f703..1e16c310cda2 100644 --- a/app-admin/rasdaemon/Manifest +++ b/app-admin/rasdaemon/Manifest @@ -1,2 +1 @@ -DIST rasdaemon-0.6.7.tar.bz2 422473 BLAKE2B 32a95ed9ca217fb69b197f88fa296bf0d3b4230a1ae11c60582911ff84abbe8b9a67b318774b8c4b765dbedbd4458eb220ca3b8ff4c9d065eb893a9a6a9916c5 SHA512 15beae5d4964c49b7b7f9e731948b5def9622fba5d7d17ce52a282d7834d256366cdf3cf427b82b2a6a8fd0c99f202f545000bdb06064fbae7ae0296aef0946c DIST rasdaemon-0.6.8.tar.gz 161343 BLAKE2B 95dab212e404480d45e5b07fa0f9ec7361036c9295a81dd082657c71cf8ad1114cc28f163b8975733e2042dfeb957f8da71dc52440249c75c24653c1ce235e86 SHA512 634638154c6b0bf7a079d6aba884a55e540c9edc3c25715a792ad7535c68629618e9cef8b6ec7e20845f78bd57f712d437be4d772523020f09d30cce42759a30 diff --git a/app-admin/rasdaemon/files/rasdaemon-0.6.7-musl.patch b/app-admin/rasdaemon/files/rasdaemon-0.6.7-musl.patch deleted file mode 100644 index 9df9eff6d947.. --- a/app-admin/rasdaemon/files/rasdaemon-0.6.7-musl.patch +++ /dev/null @@ -1,34 +0,0 @@ -From c450d2334d59c2441d9b4fcee1284afb55b9639c Mon Sep 17 00:00:00 2001 -From: Stijn Tintel -Date: Wed, 1 Sep 2021 03:32:18 +0300 -Subject: [PATCH] rasdaemon: fix compile against musl libc - -Fix the following compile errors that occurs when building against musl: - -ras-events.c: In function 'read_ras_event_all_cpus': -ras-events.c:366:16: error: 'PATH_MAX' undeclared (first use in this function) - 366 | char pipe_raw[PATH_MAX]; - |^~~~ - -ras-events.c: In function 'handle_ras_events_cpu': -ras-events.c:564:16: error: 'PATH_MAX' undeclared (first use in this function) - 564 | char pipe_raw[PATH_MAX]; - | - -Signed-off-by: Stijn Tintel - ras-events.c | 1 + - 1 file changed, 1 insertion(+) - -diff --git a/ras-events.c b/ras-events.c -index fe4bd26..39cab20 100644 a/ras-events.c -+++ b/ras-events.c -@@ -18,6 +18,7 @@ - #include - #include - #include -+#include - #include - #include - #include diff --git a/app-admin/rasdaemon/files/sysconfig-fix-0.6.7.patch b/app-admin/rasdaemon/files/sysconfig-fix-0.6.7.patch deleted file mode 100644 index ce4f5ce92bc2.. --- a/app-admin/rasdaemon/files/sysconfig-fix-0.6.7.patch +++ /dev/null @@ -1,32 +0,0 @@ -From 2379c720a7e490854a2f352ca53af6fbd99c0832 Mon Sep 17 00:00:00 2001 -From: Matt Whitlock -Date: Wed, 9 Jun 2021 10:25:18 -0400 -Subject: [PATCH] configure.ac: fix SYSCONFDEFDIR default value - -configure.ac was using AC_ARG_WITH incorrectly, yielding a generated configure script like: - -# Check whether --with-sysconfdefdir was given. -if test "${with_sysconfdefdir+set}" = set; then : - withval=$with_sysconfdefdir; SYSCONFDEFDIR=$withval -else - "/etc/sysconfig" -fi - -This commit fixes the default case so that the SYSCONFDEFDIR variable is assigned the value "/etc/sysconfig" rather than trying to execute "/etc/sysconfig" as a command. - configure.ac | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/configure.ac b/configure.ac -index f7d1947..33b81fe 100644 a/configure.ac -+++ b/configure.ac -@@ -172,7 +172,7 @@ AC_SUBST([RASSTATEDIR]) - AC_ARG_WITH(sysconfdefdir, - AC_HELP_STRING([--with-sysconfdefdir=DIR], [rasdaemon environment file dir]), - [SYSCONFDEFDIR=$withval], --["/etc/sysconfig"]) -+[SYSCONFDEFDIR=/etc/sysconfig]) - AC_SUBST([SYSCONFDEFDIR]) - - AC_DEFINE([RAS_DB_FNAME], ["ras-mc_event.db"], [ras events database]) diff --git a/app-admin/rasdaemon/rasdaemon-0.6.7-r1.ebuild b/app-admin/rasdaemon/rasdaemon-0.6.7-r1.ebuild deleted file mode 100644 index 0ca8b21dd672.. --- a/app-admin/rasdaemon/rasdaemon-0.6.7-r1.ebuild +++ /dev/null @@ -1,79 +0,0 @@ -# Copyright 1999-2022 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -inherit autotools flag-o-matic linux-info systemd - -DESCRIPTION="Reliability, Availability and Serviceability logging tool" -HOMEPAGE="http://www.infradead.org/~mchehab/rasdaemon/"; -SRC_URI="http://www.infradead.org/~mchehab/${PN}/${P}.tar.bz2"; - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="amd64 ~arm64 x86" -IUSE="sqlite" - -DEPEND="" -RDEPEND=" - ${DEPEND} - sys-devel/gettext - sys-apps/dmidecode
[gentoo-commits] repo/gentoo:master commit in: app-admin/rasdaemon/files/, app-admin/rasdaemon/
commit: 20dc1a7757bbe3576f39ba7cf8a57049c75ba1ba Author: Fabian Groffen gentoo org> AuthorDate: Tue Jan 25 20:00:12 2022 + Commit: Fabian Groffen gentoo org> CommitDate: Tue Jan 25 20:00:57 2022 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=20dc1a77 app-admin/rasdaemon-0.6.7-r1: fix build for musl Closes: https://bugs.gentoo.org/713386 Package-Manager: Portage-3.0.28, Repoman-3.0.3 Signed-off-by: Fabian Groffen gentoo.org> .../rasdaemon/files/rasdaemon-0.6.7-musl.patch | 34 ++ app-admin/rasdaemon/rasdaemon-0.6.7-r1.ebuild | 79 ++ 2 files changed, 113 insertions(+) diff --git a/app-admin/rasdaemon/files/rasdaemon-0.6.7-musl.patch b/app-admin/rasdaemon/files/rasdaemon-0.6.7-musl.patch new file mode 100644 index ..9df9eff6d947 --- /dev/null +++ b/app-admin/rasdaemon/files/rasdaemon-0.6.7-musl.patch @@ -0,0 +1,34 @@ +From c450d2334d59c2441d9b4fcee1284afb55b9639c Mon Sep 17 00:00:00 2001 +From: Stijn Tintel +Date: Wed, 1 Sep 2021 03:32:18 +0300 +Subject: [PATCH] rasdaemon: fix compile against musl libc + +Fix the following compile errors that occurs when building against musl: + +ras-events.c: In function 'read_ras_event_all_cpus': +ras-events.c:366:16: error: 'PATH_MAX' undeclared (first use in this function) + 366 | char pipe_raw[PATH_MAX]; + |^~~~ + +ras-events.c: In function 'handle_ras_events_cpu': +ras-events.c:564:16: error: 'PATH_MAX' undeclared (first use in this function) + 564 | char pipe_raw[PATH_MAX]; + | + +Signed-off-by: Stijn Tintel +--- + ras-events.c | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/ras-events.c b/ras-events.c +index fe4bd26..39cab20 100644 +--- a/ras-events.c b/ras-events.c +@@ -18,6 +18,7 @@ + #include + #include + #include ++#include + #include + #include + #include diff --git a/app-admin/rasdaemon/rasdaemon-0.6.7-r1.ebuild b/app-admin/rasdaemon/rasdaemon-0.6.7-r1.ebuild new file mode 100644 index ..7a8d2aa43192 --- /dev/null +++ b/app-admin/rasdaemon/rasdaemon-0.6.7-r1.ebuild @@ -0,0 +1,79 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit autotools flag-o-matic linux-info systemd + +DESCRIPTION="Reliability, Availability and Serviceability logging tool" +HOMEPAGE="http://www.infradead.org/~mchehab/rasdaemon/"; +SRC_URI="http://www.infradead.org/~mchehab/${PN}/${P}.tar.bz2"; + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~x86" +IUSE="sqlite" + +DEPEND="" +RDEPEND=" + ${DEPEND} + sys-devel/gettext + sys-apps/dmidecode + sqlite? ( + dev-db/sqlite + dev-perl/DBD-SQLite + ) + elibc_musl? ( sys-libs/argp-standalone ) +" + +PATCHES=( + "${FILESDIR}/sysconfig-fix-0.6.7.patch" + "${FILESDIR}"/${P}-musl.patch +) + +pkg_setup() { + linux-info_pkg_setup + local CONFIG_CHECK="~ACPI_EXTLOG" + check_extra_config +} + +src_prepare() { + default + + # avoid re-configure due to automake trigger + eautoreconf +} + +src_configure() { + local myconf=( + $(use_enable sqlite sqlite3) + --enable-abrt-report + --enable-aer + --enable-arm + --enable-extlog + --enable-hisi-ns-decode + --enable-mce + --enable-non-standard + --enable-devlink + --enable-diskerror + --enable-memory-ce-pfa + --includedir="/usr/include/${PN}" + --localstatedir=/var + ) + + use elibc_musl && append-libs argp + + econf "${myconf[@]}" +} + +src_install() { + default + + keepdir "/var/lib/${PN}" + + systemd_dounit misc/*.service + + newinitd "${FILESDIR}/rasdaemon.openrc-r2" rasdaemon + newinitd "${FILESDIR}/ras-mc-ctl.openrc-r1" ras-mc-ctl + newconfd "${FILESDIR}"/rasdaemon.confd rasdaemon +}
[gentoo-commits] repo/gentoo:master commit in: app-admin/rasdaemon/files/
commit: 74796bf9788e1ca466bdcbde6c7b548765f2cabf Author: Michael Mair-Keimberger gmail com> AuthorDate: Mon Jan 18 19:43:53 2021 + Commit: Conrad Kostecki gentoo org> CommitDate: Wed Jan 20 23:04:39 2021 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=74796bf9 app-admin/rasdaemon: remove unused files Closes: https://github.com/gentoo/gentoo/pull/19111 Package-Manager: Portage-3.0.13, Repoman-3.0.2 Signed-off-by: Michael Mair-Keimberger gmail.com> Signed-off-by: Conrad Kostecki gentoo.org> app-admin/rasdaemon/files/ras-mc-ctl.openrc | 10 -- app-admin/rasdaemon/files/rasdaemon.openrc| 18 -- app-admin/rasdaemon/files/rasdaemon.openrc-r1 | 24 3 files changed, 52 deletions(-) diff --git a/app-admin/rasdaemon/files/ras-mc-ctl.openrc b/app-admin/rasdaemon/files/ras-mc-ctl.openrc deleted file mode 100644 index c428d78e64d..000 --- a/app-admin/rasdaemon/files/ras-mc-ctl.openrc +++ /dev/null @@ -1,10 +0,0 @@ -#!/sbin/openrc-run -# Copyright 1999-2018 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -description="Starts ${SVCNAME} service for rasdaemon" - -command="/usr/sbin/${SVCNAME}" -command_args="--register-labels" -pidfile=/run/${SVCNAME}.pid -command_background=true diff --git a/app-admin/rasdaemon/files/rasdaemon.openrc b/app-admin/rasdaemon/files/rasdaemon.openrc deleted file mode 100644 index 08fc09e6416..000 --- a/app-admin/rasdaemon/files/rasdaemon.openrc +++ /dev/null @@ -1,18 +0,0 @@ -#!/sbin/openrc-run -# Copyright 1999-2018 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -description="Starts ${SVCNAME} service" - -command="/usr/sbin/${SVCNAME}" -command_args="--foreground --record" -pidfile=/run/${SVCNAME}.pid -command_background=true - -start_post() { - "${command}" --enable -} - -stop_post() { - "${command}" --disable -} diff --git a/app-admin/rasdaemon/files/rasdaemon.openrc-r1 b/app-admin/rasdaemon/files/rasdaemon.openrc-r1 deleted file mode 100644 index 6532826add5..000 --- a/app-admin/rasdaemon/files/rasdaemon.openrc-r1 +++ /dev/null @@ -1,24 +0,0 @@ -#!/sbin/openrc-run -# Copyright 1999-2018 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -description="Starts Reliablity, Availability and Serviceability (RAS) service" - -depend() { - need localmount - use logger -} - -command="/usr/sbin/rasdaemon" -command_args="--foreground --record" -command_background=true -pidfile=/run/${RC_SVCNAME}.pid - - -start_post() { - "${command}" --enable >/dev/null 2>&1 -} - -stop_post() { - "${command}" --disable >/dev/null 2>&1 -}
[gentoo-commits] repo/gentoo:master commit in: app-admin/rasdaemon/files/
commit: 9331aa256a31193661e89aaef8a239708c034c5a Author: Matthew Thode gentoo org> AuthorDate: Wed Aug 14 22:24:38 2019 + Commit: Matthew Thode gentoo org> CommitDate: Wed Aug 14 22:24:38 2019 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9331aa25 app-admin/rasdaemon: add missing dash to comment in conf.d file Fixes: https://bugs.gentoo.org/692100 Package-Manager: Portage-2.3.69, Repoman-2.3.17 Signed-off-by: Matthew Thode gentoo.org> app-admin/rasdaemon/files/rasdaemon.confd | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app-admin/rasdaemon/files/rasdaemon.confd b/app-admin/rasdaemon/files/rasdaemon.confd index 2b89db191cd..3241ef438da 100644 --- a/app-admin/rasdaemon/files/rasdaemon.confd +++ b/app-admin/rasdaemon/files/rasdaemon.confd @@ -1,2 +1,2 @@ -# pass the -record option if sqlite is enabled and you wish store events in sqlite -#RASDAEMON_ARGS=-record +# pass the --record option if sqlite is enabled and you wish store events in sqlite +#RASDAEMON_ARGS=--record
[gentoo-commits] repo/gentoo:master commit in: app-admin/rasdaemon/files/, app-admin/rasdaemon/
commit: e7e05995da72932bbe91c2b72d498ce86b862218 Author: Matthew Thode gentoo org> AuthorDate: Fri May 24 04:32:36 2019 + Commit: Matthew Thode gentoo org> CommitDate: Fri May 24 04:32:53 2019 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e7e05995 app-admin/rasdaemon: we don't need sqlite Thanks to Paul B. Henson acm.org> for the help Fixes: https://bugs.gentoo.org/686128 Package-Manager: Portage-2.3.62, Repoman-2.3.12 Signed-off-by: Matthew Thode gentoo.org> app-admin/rasdaemon/files/rasdaemon.confd | 2 + app-admin/rasdaemon/files/rasdaemon.openrc-r2 | 21 + app-admin/rasdaemon/rasdaemon-0.6.2-r4.ebuild | 64 +++ 3 files changed, 87 insertions(+) diff --git a/app-admin/rasdaemon/files/rasdaemon.confd b/app-admin/rasdaemon/files/rasdaemon.confd new file mode 100644 index 000..2b89db191cd --- /dev/null +++ b/app-admin/rasdaemon/files/rasdaemon.confd @@ -0,0 +1,2 @@ +# pass the -record option if sqlite is enabled and you wish store events in sqlite +#RASDAEMON_ARGS=-record diff --git a/app-admin/rasdaemon/files/rasdaemon.openrc-r2 b/app-admin/rasdaemon/files/rasdaemon.openrc-r2 new file mode 100644 index 000..c8a2bc4b0e6 --- /dev/null +++ b/app-admin/rasdaemon/files/rasdaemon.openrc-r2 @@ -0,0 +1,21 @@ +#!/sbin/openrc-run +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +description="Starts Reliablity, Availability and Serviceability (RAS) service" + +depend() { + need localmount + use logger +} + +command="/usr/sbin/rasdaemon" +command_args="${RASDAEMON_ARGS}" + +start_post() { + "${command}" --enable >/dev/null 2>&1 +} + +stop_post() { + "${command}" --disable >/dev/null 2>&1 +} diff --git a/app-admin/rasdaemon/rasdaemon-0.6.2-r4.ebuild b/app-admin/rasdaemon/rasdaemon-0.6.2-r4.ebuild new file mode 100644 index 000..5659b1666af --- /dev/null +++ b/app-admin/rasdaemon/rasdaemon-0.6.2-r4.ebuild @@ -0,0 +1,64 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit linux-info systemd + +DESCRIPTION="Reliability, Availability and Serviceability logging tool" +HOMEPAGE="http://www.infradead.org/~mchehab/rasdaemon/"; +SRC_URI="http://www.infradead.org/~mchehab/${PN}/${P}.tar.bz2"; + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="sqlite" + +DEPEND="" +RDEPEND=" + ${DEPEND} + sys-devel/gettext + sys-apps/dmidecode + sqlite? ( + dev-db/sqlite + dev-perl/DBD-SQLite + ) +" + +pkg_setup() { + linux-info_pkg_setup + local CONFIG_CHECK="~ACPI_EXTLOG" + check_extra_config +} + +src_configure() { + local myconf=( + --enable-abrt-report + --enable-aer + --enable-arm + --enable-extlog + --enable-hisi-ns-decode + --enable-mce + --enable-non-standard + --enable-sqlite3 + --includedir="/usr/include/${PN}" + --localstatedir=/var + ) + if use sqlite ; then + myconf="${myconf} --enable-sqlite3)" + fi + + econf "${myconf[@]}" +} + +src_install() { + default + + keepdir "/var/lib/${PN}" + + systemd_dounit misc/*.service + + newinitd "${FILESDIR}/rasdaemon.openrc-r2" rasdaemon + newinitd "${FILESDIR}/ras-mc-ctl.openrc-r1" ras-mc-ctl + newconfd "${FILESDIR}"/rasdaemon.confd rasdaemon +}
[gentoo-commits] repo/gentoo:master commit in: app-admin/rasdaemon/files/, app-admin/rasdaemon/
commit: 16c8bc19aa6bd45c9de7a928317b13981deedd6f Author: Matthew Thode gentoo org> AuthorDate: Mon Nov 19 18:57:39 2018 + Commit: Matthew Thode gentoo org> CommitDate: Mon Nov 19 18:57:39 2018 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=16c8bc19 app-admin/rasdaemon: bump and install openrc files Fixes: https://bugs.gentoo.org/670644 Package-Manager: Portage-2.3.51, Repoman-2.3.12 Signed-off-by: Matthew Thode gentoo.org> app-admin/rasdaemon/Manifest| 1 + app-admin/rasdaemon/files/ras-mc-ctl.openrc | 10 ++ app-admin/rasdaemon/files/rasdaemon.openrc | 18 +++ app-admin/rasdaemon/rasdaemon-0.6.2.ebuild | 50 + 4 files changed, 79 insertions(+) diff --git a/app-admin/rasdaemon/Manifest b/app-admin/rasdaemon/Manifest index de797238347..7d14f3d5052 100644 --- a/app-admin/rasdaemon/Manifest +++ b/app-admin/rasdaemon/Manifest @@ -1 +1,2 @@ DIST rasdaemon-0.6.1.tar.bz2 363201 BLAKE2B bdc7ec3c2e7e4b2fee02dddc55b5afd82df64717f45da15dbfd5fee87721b80ac425af5806ee7462cad29c6ab2953a2e649c4b1e455983d8821a1f633d76c85d SHA512 a221a7ea0e4555befbf8acb9d4ce22d5cc7861a0da458111a24905fa06be0e8f3b18d8de5334310a423657febc0532d2705236de89cb1788302bf487ede29f60 +DIST rasdaemon-0.6.2.tar.bz2 375140 BLAKE2B fd22185172777865120fbd13b7bfb5db9b9b0348fe8575ca6b5f16fd662c1e847729e239342b1c9ece70a4e79ad00352bb69d9f80cfbc8da2c961e68874dd03b SHA512 d8c1ee2cc801124837b3a0739f3016a206165306e300ce51e6aac2cef56bb65479f96cdb019ba3a5cffeba94e7b67ca22686d4ac94bfa8a8a1145db6ba51096b diff --git a/app-admin/rasdaemon/files/ras-mc-ctl.openrc b/app-admin/rasdaemon/files/ras-mc-ctl.openrc new file mode 100644 index 000..d9790c482e2 --- /dev/null +++ b/app-admin/rasdaemon/files/ras-mc-ctl.openrc @@ -0,0 +1,10 @@ +#!/sbin/openrc-run +# Copyright 1999-2018 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +description="Starts ${SVCNAME} service for rasdaemon" + +command="/usr/bin/${SVCNAME}" +command_args="--register-labels" +pidfile=/run/${SVCNAME}.pid +command_background=true diff --git a/app-admin/rasdaemon/files/rasdaemon.openrc b/app-admin/rasdaemon/files/rasdaemon.openrc new file mode 100644 index 000..c16f18dbe3f --- /dev/null +++ b/app-admin/rasdaemon/files/rasdaemon.openrc @@ -0,0 +1,18 @@ +#!/sbin/openrc-run +# Copyright 1999-2018 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +description="Starts ${SVCNAME} service" + +command="/usr/bin/${SVCNAME}" +command_args="--foreground --record" +pidfile=/run/${SVCNAME}.pid +command_background=true + +start_post() { + "${command}" --enable +} + +stop_post() { + "${command}" --disable +} diff --git a/app-admin/rasdaemon/rasdaemon-0.6.2.ebuild b/app-admin/rasdaemon/rasdaemon-0.6.2.ebuild new file mode 100644 index 000..330e1815fc3 --- /dev/null +++ b/app-admin/rasdaemon/rasdaemon-0.6.2.ebuild @@ -0,0 +1,50 @@ +# Copyright 1999-2018 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit linux-info systemd + +DESCRIPTION="Reliability, Availability and Serviceability logging tool" +HOMEPAGE="http://www.infradead.org/~mchehab/rasdaemon/"; +SRC_URI="http://www.infradead.org/~mchehab/${PN}/${P}.tar.bz2"; + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +DEPEND="" +RDEPEND=" + ${DEPEND} + sys-devel/gettext + dev-db/sqlite + sys-apps/dmidecode + dev-perl/DBD-SQLite +" + +pkg_setup() { + linux-info_pkg_setup + local CONFIG_CHECK="~FUNCTION_TRACER ~FUNCTION_GRAPH_TRACER ~STACK_TRACER ~DYNAMIC_FTRACE" + check_extra_config +} + +src_configure() { + econf --enable-abrt-report \ + --enable-aer \ + --enable-arm \ + --enable-extlog \ + --enable-hisi-ns-decode \ + --enable-mce \ + --enable-non-standard \ + --enable-sqlite3 \ + --localstatedir=/var +} + +src_install() { + default + systemd_dounit misc/*.service + + newinitd "${FILESDIR}/rasdaemon.openrc" rasdaemon + newinitd "${FILESDIR}/ras-mc-ctl.openrc" ras-mc-ctl +}