summaryrefslogtreecommitdiffstats
path: root/meta-oe/dynamic-layers/perl-layer/recipes-support/rasdaemon/rasdaemon_0.8.3.bb
diff options
context:
space:
mode:
Diffstat (limited to 'meta-oe/dynamic-layers/perl-layer/recipes-support/rasdaemon/rasdaemon_0.8.3.bb')
-rw-r--r--meta-oe/dynamic-layers/perl-layer/recipes-support/rasdaemon/rasdaemon_0.8.3.bb50
1 files changed, 50 insertions, 0 deletions
diff --git a/meta-oe/dynamic-layers/perl-layer/recipes-support/rasdaemon/rasdaemon_0.8.3.bb b/meta-oe/dynamic-layers/perl-layer/recipes-support/rasdaemon/rasdaemon_0.8.3.bb
new file mode 100644
index 0000000000..301861de38
--- /dev/null
+++ b/meta-oe/dynamic-layers/perl-layer/recipes-support/rasdaemon/rasdaemon_0.8.3.bb
@@ -0,0 +1,50 @@
1DESCRIPTION = "Tools to provide a way to get Platform Reliability, Availability and Serviceability (RAS) reports made via the Kernel tracing events"
2HOMEPAGE = "https://github.com/mchehab/rasdaemon"
3LICENSE = "GPL-2.0-only"
4LIC_FILES_CHKSUM = "file://COPYING;md5=d3070efe0afa3dc41608bd82c00bb0dc"
5
6SRC_URI = "git://github.com/mchehab/rasdaemon.git;branch=master;protocol=https \
7 file://rasdaemon.service \
8 file://init"
9
10SRCREV = "db0870edd2919f4f4d0101843136bcae92ab0743"
11
12
13DEPENDS = "libtraceevent"
14RDEPENDS:${BPN} = "perl perl-module-file-basename perl-module-file-find perl-module-file-spec perl-module-getopt-long \
15 perl-module-posix perl-module-file-glob libdbi-perl libdbd-sqlite-perl"
16
17inherit autotools pkgconfig update-rc.d systemd
18
19PACKAGECONFIG ??= "sqlite3 mce aer extlog devlink diskerror"
20PACKAGECONFIG[sqlite3] = "--enable-sqlite3,--disable-sqlite3,sqlite3"
21PACKAGECONFIG[mce] = "--enable-mce,--disable-mce"
22PACKAGECONFIG[aer] = "--enable-aer,--disable-aer"
23PACKAGECONFIG[extlog] = "--enable-extlog,--disable-extlog"
24PACKAGECONFIG[devlink] = "--enable-devlink,--disable-devlink"
25PACKAGECONFIG[diskerror] = "--enable-diskerror,--disable-diskerror"
26PACKAGECONFIG[arm] = "--enable-arm,--disable-arm"
27PACKAGECONFIG[hisi-ns-decode] = "--enable-hisi-ns-decode,--disable-hisi-ns-decode"
28PACKAGECONFIG[non-standard] = "--enable-non-standard,--disable-non-standard"
29PACKAGECONFIG[abrt-report] = "--enable-abrt-report,--disable-abrt-report"
30
31DEPENDS:append:libc-musl = " argp-standalone"
32LDFLAGS:append:libc-musl = " -largp"
33
34do_install:append() {
35 install -d ${D}${sysconfdir}/init.d
36 install -m 755 ${UNPACKDIR}/init ${D}${sysconfdir}/init.d/rasdaemon
37 install -d ${D}${systemd_unitdir}/system
38 install -m 0644 ${UNPACKDIR}/rasdaemon.service ${D}${systemd_unitdir}/system
39}
40
41FILES:${PN} += "${sbindir}/rasdaemon \
42 ${sysconfdir}/init.d \
43 ${systemd_unitdir}/system/rasdaemon.service"
44
45SYSTEMD_SERVICE:${PN} = "rasdaemon.service"
46SYSTEMD_AUTO_ENABLE = "enable"
47
48INITSCRIPT_PACKAGES = "${PN}"
49INITSCRIPT_NAME:${PN} = "rasdaemon"
50INITSCRIPT_PARAMS:${PN} = "defaults 89"