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 \ |
Chau Ly | 7494601 | 2023-01-13 03:41:22 +0000 | [diff] [blame] | 8 | file://hostconsole.conf \ |
Thang Q. Nguyen | 09ea485 | 2020-12-30 08:07:10 +0000 | [diff] [blame] | 9 | " |
| 10 | |
Thang Q. Nguyen | fa1aa4d | 2021-08-07 05:09:50 +0000 | [diff] [blame] | 11 | FILES:${PN} += "${systemd_system_unitdir}/rsyslog.service.d/rsyslog-override.conf" |
Thang Q. Nguyen | 09ea485 | 2020-12-30 08:07:10 +0000 | [diff] [blame] | 12 | |
Thang Q. Nguyen | fa1aa4d | 2021-08-07 05:09:50 +0000 | [diff] [blame] | 13 | PACKAGECONFIG:append = " imjournal" |
Thang Q. Nguyen | 09ea485 | 2020-12-30 08:07:10 +0000 | [diff] [blame] | 14 | |
Thang Q. Nguyen | fa1aa4d | 2021-08-07 05:09:50 +0000 | [diff] [blame] | 15 | do_install:append() { |
Thang Q. Nguyen | 09ea485 | 2020-12-30 08:07:10 +0000 | [diff] [blame] | 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 |
Chau Ly | 7494601 | 2023-01-13 03:41:22 +0000 | [diff] [blame] | 22 | install -m 0755 ${WORKDIR}/hostconsole.conf ${D}${sysconfdir}/rsyslog.d/hostconsole.conf |
Thang Q. Nguyen | 09ea485 | 2020-12-30 08:07:10 +0000 | [diff] [blame] | 23 | rm ${D}${sysconfdir}/rsyslog.d/imjournal.conf |
| 24 | } |
| 25 | |
Thang Q. Nguyen | fa1aa4d | 2021-08-07 05:09:50 +0000 | [diff] [blame] | 26 | SYSTEMD_SERVICE:${PN} += " rotate-event-logs.service" |