Patrick Williams | 6f74664 | 2021-08-06 07:40:55 -0500 | [diff] [blame] | 1 | FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:" |
Vijay Khemka | c32281b | 2019-08-20 11:59:14 -0700 | [diff] [blame] | 2 | |
Vijay Khemka | c32281b | 2019-08-20 11:59:14 -0700 | [diff] [blame] | 3 | SRC_URI += "file://rsyslog.conf \ |
| 4 | file://rsyslog.logrotate \ |
| 5 | file://rotate-event-logs.service \ |
| 6 | file://rotate-event-logs.timer \ |
| 7 | " |
| 8 | |
Potin Lai | 5bb6663 | 2023-02-03 23:32:40 +0800 | [diff] [blame^] | 9 | PACKAGECONFIG:append = " imjournal klog imfile" |
Vijay Khemka | c32281b | 2019-08-20 11:59:14 -0700 | [diff] [blame] | 10 | |
Patrick Williams | 6f74664 | 2021-08-06 07:40:55 -0500 | [diff] [blame] | 11 | do_install:append() { |
Vijay Khemka | c32281b | 2019-08-20 11:59:14 -0700 | [diff] [blame] | 12 | install -m 0644 ${WORKDIR}/rotate-event-logs.service ${D}${systemd_system_unitdir} |
| 13 | install -m 0644 ${WORKDIR}/rotate-event-logs.timer ${D}${systemd_system_unitdir} |
| 14 | rm ${D}${sysconfdir}/rsyslog.d/imjournal.conf |
| 15 | } |
| 16 | |
Patrick Williams | 6f74664 | 2021-08-06 07:40:55 -0500 | [diff] [blame] | 17 | SYSTEMD_SERVICE:${PN} += " rotate-event-logs.service rotate-event-logs.timer" |