Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [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" |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 4 | LIC_FILES_CHKSUM = "file://COPYING;md5=aa846ae365f71b69e9fa0d21a56391ec \ |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 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 | |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame^] | 12 | SRCREV = "1c0d5960b0bb4bac7566e6afe8bc9705399cc76b" |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 13 | |
| 14 | PR .= "+git${SRCPV}" |
| 15 | |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 16 | SRC_URI = "git://git.linuxfoundation.org/diamon/minicoredumper.git;protocol=http \ |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 17 | file://minicoredumper.service \ |
| 18 | file://minicoredumper.init \ |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 19 | file://0001-minicoredumper-Initialize-pointer-to-config-struct-t.patch \ |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 20 | " |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 21 | |
| 22 | S = "${WORKDIR}/git" |
| 23 | |
| 24 | SYSTEMD_SERVICE_${PN} = "minicoredumper.service" |
| 25 | SYSTEMD_AUTO_ENABLE = "enable" |
| 26 | |
| 27 | INITSCRIPT_PACKAGES = "${PN}" |
| 28 | INITSCRIPT_NAME_${PN} = "minicoredumper" |
| 29 | INITSCRIPT_PARAMS_${PN} = "defaults 89" |
| 30 | |
| 31 | do_install_append() { |
| 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 |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 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 |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 44 | } |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame^] | 45 | |
| 46 | # http://errors.yoctoproject.org/Errors/Details/186966/ |
| 47 | EXCLUDE_FROM_WORLD_libc-musl = "1" |