Vijay Khemka | c32281b | 2019-08-20 11:59:14 -0700 | [diff] [blame] | 1 | FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" |
| 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 | |
| 9 | PACKAGECONFIG_append = " imjournal" |
| 10 | |
| 11 | do_install_append() { |
| 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 | |
| 17 | SYSTEMD_SERVICE_${PN} += " rotate-event-logs.service rotate-event-logs.timer" |