blob: 104d13b4a3676fa09dca3e401e6d8e38f6f60920 [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
Patrick Williams6f746642021-08-06 07:40:55 -05009PACKAGECONFIG:append = " imjournal"
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"