Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [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-2-Clause" |
| 4 | LIC_FILES_CHKSUM = "file://COPYING;md5=71827c617ec7b45a0dd23658347cc1e9 \ |
| 5 | file://COPYING.BSD;md5=b915ac80d5236d6aa659cb986daf00e5 \ |
| 6 | file://COPYING.LGPLv2.1;md5=321bf41f280cf805086dd5a720b37785 \ |
| 7 | " |
| 8 | DEPENDS = "elfutils dbus dbus-glib-native glib-2.0 dbus-glib util-linux json-c" |
| 9 | |
| 10 | inherit autotools pkgconfig systemd update-rc.d |
| 11 | |
| 12 | SRCREV = "16a0d44f1725eaa93096eaa0e086f42ef4c2712c" |
| 13 | |
| 14 | PR .= "+git${SRCPV}" |
| 15 | |
Andrew Geissler | 595f630 | 2022-01-24 19:11:47 +0000 | [diff] [blame] | 16 | SRC_URI = "git://github.com/diamon/minicoredumper;protocol=https;branch=master \ |
William A. Kennington III | b95905d | 2021-06-02 12:40:56 -0700 | [diff] [blame] | 17 | file://0001-replace-pthread_mutexattr_setrobust_np-with-pthread_.patch \ |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 18 | file://minicoredumper.service \ |
| 19 | file://minicoredumper.init \ |
| 20 | " |
| 21 | |
| 22 | S = "${WORKDIR}/git" |
| 23 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 24 | SYSTEMD_SERVICE:${PN} = "minicoredumper.service" |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 25 | SYSTEMD_AUTO_ENABLE = "enable" |
| 26 | |
| 27 | INITSCRIPT_PACKAGES = "${PN}" |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 28 | INITSCRIPT_NAME:${PN} = "minicoredumper" |
| 29 | INITSCRIPT_PARAMS:${PN} = "defaults 89" |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 30 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 31 | do_install:append() { |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 32 | rmdir ${D}${localstatedir}/run |
| 33 | install -d ${D}/${sysconfdir}/minicoredumper |
| 34 | cp -rf ${S}/etc/* ${D}/${sysconfdir}/ |
| 35 | |
| 36 | install -d ${D}${systemd_system_unitdir} |
| 37 | install -m 0644 ${WORKDIR}/minicoredumper.service ${D}${systemd_system_unitdir} |
| 38 | install -d ${D}${sysconfdir}/init.d |
| 39 | install -m 0644 ${WORKDIR}/minicoredumper.init ${D}${sysconfdir}/init.d/minicoredumper |
| 40 | |
| 41 | # correct path of minicoredumper |
| 42 | sed -i -e s:/usr/bin/minicoredumper:${sbindir}/minicoredumper:g ${D}${sysconfdir}/init.d/minicoredumper |
| 43 | sed -i -e s:/usr/bin/minicoredumper:${sbindir}/minicoredumper:g ${D}${systemd_system_unitdir}/minicoredumper.service |
| 44 | } |
| 45 | |
| 46 | # http://errors.yoctoproject.org/Errors/Details/186966/ |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 47 | COMPATIBLE_HOST:libc-musl = 'null' |