Grant Williams | 42a823e | 2022-06-01 15:00:04 -0500 | [diff] [blame] | 1 | FILESEXTRAPATHS:prepend:mori := "${THISDIR}/${PN}:" |
| 2 | |
| 3 | SRC_URI:append:mori = " \ |
| 4 | file://rsyslog.conf \ |
| 5 | file://rsyslog.logrotate \ |
| 6 | file://rotate-event-logs.service \ |
| 7 | file://rotate-event-logs.sh \ |
| 8 | file://rsyslog-override.conf \ |
| 9 | " |
| 10 | |
| 11 | FILES:${PN}:append:mori = " ${systemd_system_unitdir}/rsyslog.service.d/rsyslog-override.conf" |
| 12 | |
| 13 | PACKAGECONFIG:append:mori = " imjournal" |
| 14 | |
| 15 | do_install:append:mori() { |
| 16 | install -m 0644 ${WORKDIR}/rotate-event-logs.service ${D}${systemd_system_unitdir} |
| 17 | install -d ${D}${systemd_system_unitdir}/rsyslog.service.d |
| 18 | install -m 0644 ${WORKDIR}/rsyslog-override.conf \ |
| 19 | ${D}${systemd_system_unitdir}/rsyslog.service.d/rsyslog-override.conf |
| 20 | install -d ${D}${bindir} |
| 21 | install -m 0755 ${WORKDIR}/rotate-event-logs.sh ${D}/${bindir}/rotate-event-logs.sh |
| 22 | rm ${D}${sysconfdir}/rsyslog.d/imjournal.conf |
| 23 | } |
| 24 | |
| 25 | SYSTEMD_SERVICE:${PN}:append:mori = " rotate-event-logs.service" |