diff options
Diffstat (limited to 'meta-oe/dynamic-layers/perl-layer/recipes-support/rasdaemon/rasdaemon_0.8.0.bb')
| -rw-r--r-- | meta-oe/dynamic-layers/perl-layer/recipes-support/rasdaemon/rasdaemon_0.8.0.bb | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/meta-oe/dynamic-layers/perl-layer/recipes-support/rasdaemon/rasdaemon_0.8.0.bb b/meta-oe/dynamic-layers/perl-layer/recipes-support/rasdaemon/rasdaemon_0.8.0.bb new file mode 100644 index 0000000000..c083a3a37a --- /dev/null +++ b/meta-oe/dynamic-layers/perl-layer/recipes-support/rasdaemon/rasdaemon_0.8.0.bb | |||
| @@ -0,0 +1,51 @@ | |||
| 1 | DESCRIPTION = "Tools to provide a way to get Platform Reliability, Availability and Serviceability (RAS) reports made via the Kernel tracing events" | ||
| 2 | HOMEPAGE = "http://git.infradead.org/users/mchehab/rasdaemon.git" | ||
| 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 = "4e83b848e7961af25028f3a2cecf37a63279a2bf" | ||
| 11 | |||
| 12 | S = "${WORKDIR}/git" | ||
| 13 | |||
| 14 | DEPENDS = "libtraceevent" | ||
| 15 | RDEPENDS:${BPN} = "perl perl-module-file-basename perl-module-file-find perl-module-file-spec perl-module-getopt-long \ | ||
| 16 | perl-module-posix perl-module-file-glob libdbi-perl libdbd-sqlite-perl" | ||
| 17 | |||
| 18 | inherit autotools pkgconfig update-rc.d systemd | ||
| 19 | |||
| 20 | PACKAGECONFIG ??= "sqlite3 mce aer extlog devlink diskerror" | ||
| 21 | PACKAGECONFIG[sqlite3] = "--enable-sqlite3,--disable-sqlite3,sqlite3" | ||
| 22 | PACKAGECONFIG[mce] = "--enable-mce,--disable-mce" | ||
| 23 | PACKAGECONFIG[aer] = "--enable-aer,--disable-aer" | ||
| 24 | PACKAGECONFIG[extlog] = "--enable-extlog,--disable-extlog" | ||
| 25 | PACKAGECONFIG[devlink] = "--enable-devlink,--disable-devlink" | ||
| 26 | PACKAGECONFIG[diskerror] = "--enable-diskerror,--disable-diskerror" | ||
| 27 | PACKAGECONFIG[arm] = "--enable-arm,--disable-arm" | ||
| 28 | PACKAGECONFIG[hisi-ns-decode] = "--enable-hisi-ns-decode,--disable-hisi-ns-decode" | ||
| 29 | PACKAGECONFIG[non-standard] = "--enable-non-standard,--disable-non-standard" | ||
| 30 | PACKAGECONFIG[abrt-report] = "--enable-abrt-report,--disable-abrt-report" | ||
| 31 | |||
| 32 | DEPENDS:append:libc-musl = " argp-standalone" | ||
| 33 | LDFLAGS:append:libc-musl = " -largp" | ||
| 34 | |||
| 35 | do_install:append() { | ||
| 36 | install -d ${D}${sysconfdir}/init.d | ||
| 37 | install -m 755 ${WORKDIR}/init ${D}${sysconfdir}/init.d/rasdaemon | ||
| 38 | install -d ${D}${systemd_unitdir}/system | ||
| 39 | install -m 0644 ${WORKDIR}/rasdaemon.service ${D}${systemd_unitdir}/system | ||
| 40 | } | ||
| 41 | |||
| 42 | FILES:${PN} += "${sbindir}/rasdaemon \ | ||
| 43 | ${sysconfdir}/init.d \ | ||
| 44 | ${systemd_unitdir}/system/rasdaemon.service" | ||
| 45 | |||
| 46 | SYSTEMD_SERVICE:${PN} = "rasdaemon.service" | ||
| 47 | SYSTEMD_AUTO_ENABLE = "enable" | ||
| 48 | |||
| 49 | INITSCRIPT_PACKAGES = "${PN}" | ||
| 50 | INITSCRIPT_NAME:${PN} = "rasdaemon" | ||
| 51 | INITSCRIPT_PARAMS:${PN} = "defaults 89" | ||
