blob: eeeea1a309bb532a07865ec598f340d01cae59db [file] [log] [blame]
Vijay Khemkac32281b2019-08-20 11:59:14 -07001FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
2
Vijay Khemkac32281b2019-08-20 11:59:14 -07003SRC_URI += "file://rsyslog.conf \
4 file://rsyslog.logrotate \
5 file://rotate-event-logs.service \
6 file://rotate-event-logs.timer \
7"
8
9PACKAGECONFIG_append = " imjournal"
10
11do_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
17SYSTEMD_SERVICE_${PN} += " rotate-event-logs.service rotate-event-logs.timer"