diff options
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.bb | 50 |
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 @@ | |||
1 | DESCRIPTION = "Tools to provide a way to get Platform Reliability, Availability and Serviceability (RAS) reports made via the Kernel tracing events" | ||
2 | HOMEPAGE = "https://github.com/mchehab/rasdaemon" | ||
3 | LICENSE = "GPL-2.0-only" | ||
4 | LIC_FILES_CHKSUM = "file://COPYING;md5=d3070efe0afa3dc41608bd82c00bb0dc" | ||
5 | |||
6 | SRC_URI = "git://github.com/mchehab/rasdaemon.git;branch=master;protocol=https \ | ||
7 | file://rasdaemon.service \ | ||
8 | file://init" | ||
9 | |||
10 | SRCREV = "db0870edd2919f4f4d0101843136bcae92ab0743" | ||
11 | |||
12 | |||
13 | DEPENDS = "libtraceevent" | ||
14 | RDEPENDS:${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 | |||
17 | inherit autotools pkgconfig update-rc.d systemd | ||
18 | |||
19 | PACKAGECONFIG ??= "sqlite3 mce aer extlog devlink diskerror" | ||
20 | PACKAGECONFIG[sqlite3] = "--enable-sqlite3,--disable-sqlite3,sqlite3" | ||
21 | PACKAGECONFIG[mce] = "--enable-mce,--disable-mce" | ||
22 | PACKAGECONFIG[aer] = "--enable-aer,--disable-aer" | ||
23 | PACKAGECONFIG[extlog] = "--enable-extlog,--disable-extlog" | ||
24 | PACKAGECONFIG[devlink] = "--enable-devlink,--disable-devlink" | ||
25 | PACKAGECONFIG[diskerror] = "--enable-diskerror,--disable-diskerror" | ||
26 | PACKAGECONFIG[arm] = "--enable-arm,--disable-arm" | ||
27 | PACKAGECONFIG[hisi-ns-decode] = "--enable-hisi-ns-decode,--disable-hisi-ns-decode" | ||
28 | PACKAGECONFIG[non-standard] = "--enable-non-standard,--disable-non-standard" | ||
29 | PACKAGECONFIG[abrt-report] = "--enable-abrt-report,--disable-abrt-report" | ||
30 | |||
31 | DEPENDS:append:libc-musl = " argp-standalone" | ||
32 | LDFLAGS:append:libc-musl = " -largp" | ||
33 | |||
34 | do_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 | |||
41 | FILES:${PN} += "${sbindir}/rasdaemon \ | ||
42 | ${sysconfdir}/init.d \ | ||
43 | ${systemd_unitdir}/system/rasdaemon.service" | ||
44 | |||
45 | SYSTEMD_SERVICE:${PN} = "rasdaemon.service" | ||
46 | SYSTEMD_AUTO_ENABLE = "enable" | ||
47 | |||
48 | INITSCRIPT_PACKAGES = "${PN}" | ||
49 | INITSCRIPT_NAME:${PN} = "rasdaemon" | ||
50 | INITSCRIPT_PARAMS:${PN} = "defaults 89" | ||