Thang Q. Nguyen | fa1aa4d | 2021-08-07 05:09:50 +0000 | [diff] [blame] | 1 | FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:" |
Thang Q. Nguyen | 09ea485 | 2020-12-30 08:07:10 +0000 | [diff] [blame] | 2 | |
| 3 | SRC_URI += "file://rsyslog.conf \ |
| 4 | file://rsyslog.logrotate \ |
| 5 | file://rotate-event-logs.service \ |
| 6 | file://rotate-event-logs.sh \ |
| 7 | file://rsyslog-override.conf \ |
| 8 | " |
| 9 | |
Thang Q. Nguyen | fa1aa4d | 2021-08-07 05:09:50 +0000 | [diff] [blame] | 10 | FILES:${PN} += "${systemd_system_unitdir}/rsyslog.service.d/rsyslog-override.conf" |
Thang Q. Nguyen | 09ea485 | 2020-12-30 08:07:10 +0000 | [diff] [blame] | 11 | |
Thang Q. Nguyen | fa1aa4d | 2021-08-07 05:09:50 +0000 | [diff] [blame] | 12 | PACKAGECONFIG:append = " imjournal" |
Thang Q. Nguyen | 09ea485 | 2020-12-30 08:07:10 +0000 | [diff] [blame] | 13 | |
Thang Q. Nguyen | fa1aa4d | 2021-08-07 05:09:50 +0000 | [diff] [blame] | 14 | do_install:append() { |
Thang Q. Nguyen | 09ea485 | 2020-12-30 08:07:10 +0000 | [diff] [blame] | 15 | install -m 0644 ${WORKDIR}/rotate-event-logs.service ${D}${systemd_system_unitdir} |
| 16 | install -d ${D}${systemd_system_unitdir}/rsyslog.service.d |
| 17 | install -m 0644 ${WORKDIR}/rsyslog-override.conf \ |
| 18 | ${D}${systemd_system_unitdir}/rsyslog.service.d/rsyslog-override.conf |
| 19 | install -d ${D}${bindir} |
| 20 | install -m 0755 ${WORKDIR}/rotate-event-logs.sh ${D}/${bindir}/rotate-event-logs.sh |
| 21 | rm ${D}${sysconfdir}/rsyslog.d/imjournal.conf |
| 22 | } |
| 23 | |
Thang Q. Nguyen | fa1aa4d | 2021-08-07 05:09:50 +0000 | [diff] [blame] | 24 | SYSTEMD_SERVICE:${PN} += " rotate-event-logs.service" |