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" |
Andrew Geissler | 9aee500 | 2022-03-30 16:27:02 +0000 | [diff] [blame] | 3 | LICENSE = " LGPL-2.1-only & BSD-2-Clause" |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 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 | |
Patrick Williams | 864cc43 | 2023-02-09 14:54:44 -0600 | [diff] [blame^] | 10 | inherit autotools pkgconfig ptest systemd update-rc.d |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 11 | |
Patrick Williams | 864cc43 | 2023-02-09 14:54:44 -0600 | [diff] [blame^] | 12 | SRCREV = "0bed11b3d69877ce59b1a71359349af60f2009ff" |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 13 | |
Andrew Geissler | 595f630 | 2022-01-24 19:11:47 +0000 | [diff] [blame] | 14 | SRC_URI = "git://github.com/diamon/minicoredumper;protocol=https;branch=master \ |
Patrick Williams | 864cc43 | 2023-02-09 14:54:44 -0600 | [diff] [blame^] | 15 | file://0001-minicoredumper_demo-Use-optnone-attribute-with-clang.patch \ |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 16 | file://minicoredumper.service \ |
| 17 | file://minicoredumper.init \ |
Patrick Williams | 864cc43 | 2023-02-09 14:54:44 -0600 | [diff] [blame^] | 18 | file://run-ptest \ |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 19 | " |
| 20 | |
| 21 | S = "${WORKDIR}/git" |
| 22 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 23 | SYSTEMD_SERVICE:${PN} = "minicoredumper.service" |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 24 | SYSTEMD_AUTO_ENABLE = "enable" |
| 25 | |
| 26 | INITSCRIPT_PACKAGES = "${PN}" |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 27 | INITSCRIPT_NAME:${PN} = "minicoredumper" |
| 28 | INITSCRIPT_PARAMS:${PN} = "defaults 89" |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 29 | |
Patrick Williams | 864cc43 | 2023-02-09 14:54:44 -0600 | [diff] [blame^] | 30 | EXTRA_OECONF:append = " \ |
| 31 | ${@bb.utils.contains('PTEST_ENABLED', '1', '--with-minicoredumper_demo', '--without-libminicoredumper', d)} \ |
| 32 | " |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 33 | do_install:append() { |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 34 | rmdir ${D}${localstatedir}/run |
| 35 | install -d ${D}/${sysconfdir}/minicoredumper |
| 36 | cp -rf ${S}/etc/* ${D}/${sysconfdir}/ |
| 37 | |
| 38 | install -d ${D}${systemd_system_unitdir} |
| 39 | install -m 0644 ${WORKDIR}/minicoredumper.service ${D}${systemd_system_unitdir} |
| 40 | install -d ${D}${sysconfdir}/init.d |
| 41 | install -m 0644 ${WORKDIR}/minicoredumper.init ${D}${sysconfdir}/init.d/minicoredumper |
| 42 | |
| 43 | # correct path of minicoredumper |
| 44 | sed -i -e s:/usr/bin/minicoredumper:${sbindir}/minicoredumper:g ${D}${sysconfdir}/init.d/minicoredumper |
| 45 | sed -i -e s:/usr/bin/minicoredumper:${sbindir}/minicoredumper:g ${D}${systemd_system_unitdir}/minicoredumper.service |
| 46 | } |
| 47 | |
| 48 | # http://errors.yoctoproject.org/Errors/Details/186966/ |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 49 | COMPATIBLE_HOST:libc-musl = 'null' |