blob: e60b3e83fb83c8727017ffa7f16302840b0af784 [file] [log] [blame]
Patrick Williams6f746642021-08-06 07:40:55 -05001FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:"
Vijay Khemkac32281b2019-08-20 11:59:14 -07002
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
Potin Lai5bb66632023-02-03 23:32:40 +08009PACKAGECONFIG:append = " imjournal klog imfile"
Vijay Khemkac32281b2019-08-20 11:59:14 -070010
Patrick Williams6f746642021-08-06 07:40:55 -050011do_install:append() {
Vijay Khemkac32281b2019-08-20 11:59:14 -070012 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 Williams6f746642021-08-06 07:40:55 -050017SYSTEMD_SERVICE:${PN} += " rotate-event-logs.service rotate-event-logs.timer"