Patrick Williams | ddad1a1 | 2017-02-23 20:36:32 -0600 | [diff] [blame^] | 1 | SUMMARY = "minicoredumper provides an alternate core dump facility for Linux \ |
| 2 | to allow minimal and customized crash dumps" |
| 3 | LICENSE = " LGPLv2.1 & BSD" |
| 4 | LIC_FILES_CHKSUM = "file://COPYING;md5=45445387350de96a0e70410470ee5cab" |
| 5 | DEPENDS = "elfutils dbus dbus-glib-native glib-2.0 dbus-glib util-linux" |
| 6 | |
| 7 | inherit autotools pkgconfig systemd update-rc.d |
| 8 | |
| 9 | SRC_URI = "https://linutronix.de/${BPN}/files/${BPN}-${PV}.tar.gz \ |
| 10 | file://minicoredumper.service \ |
| 11 | file://minicoredumper.init \ |
| 12 | " |
| 13 | SRC_URI[md5sum] = "5ba9d116b52a8e2fb93456260644e753" |
| 14 | SRC_URI[sha256sum] = "1b0eeb3d70dbd2ad6f2f673e4e3446e5dd784e132730e21d8f9dc0977e47dd9a" |
| 15 | |
| 16 | SYSTEMD_SERVICE_${PN} = "minicoredumper.service" |
| 17 | SYSTEMD_AUTO_ENABLE = "enable" |
| 18 | |
| 19 | INITSCRIPT_PACKAGES = "${PN}" |
| 20 | INITSCRIPT_NAME_${PN} = "minicoredumper" |
| 21 | INITSCRIPT_PARAMS_${PN} = "defaults 89" |
| 22 | |
| 23 | do_install_append() { |
| 24 | install -d ${D}/${sysconfdir}/minicoredumper |
| 25 | cp -rf ${S}/etc/* ${D}/${sysconfdir}/ |
| 26 | |
| 27 | install -d ${D}${systemd_system_unitdir} |
| 28 | install -m 0644 ${WORKDIR}/minicoredumper.service ${D}${systemd_system_unitdir} |
| 29 | install -d ${D}${sysconfdir}/init.d |
| 30 | install -m 0644 ${WORKDIR}/minicoredumper.init ${D}${sysconfdir}/init.d/minicoredumper |
| 31 | } |