blob: c42693787d53fdaa25633ff0eec4282f047fd9ab [file] [log] [blame]
Jason M. Bills176b19e2019-11-25 13:23:08 -08001FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
2
3SRC_URI += "file://rsyslog.conf \
4 file://rsyslog.logrotate \
5 file://rotate-event-logs.service \
Jason M. Billsb22e8f72020-05-05 16:27:39 -07006 file://rotate-event-logs.sh \
Jason M. Bills176b19e2019-11-25 13:23:08 -08007 file://rsyslog-override.conf \
8"
9
10FILES_${PN} += "${systemd_system_unitdir}/rsyslog.service.d/rsyslog-override.conf"
11
12PACKAGECONFIG_append = " imjournal"
13
14do_install_append() {
15 install -m 0644 ${WORKDIR}/rotate-event-logs.service ${D}${systemd_system_unitdir}
Jason M. Bills176b19e2019-11-25 13:23:08 -080016 install -d ${D}${systemd_system_unitdir}/rsyslog.service.d
17 install -m 0644 ${WORKDIR}/rsyslog-override.conf \
18 ${D}${systemd_system_unitdir}/rsyslog.service.d/rsyslog-override.conf
Jason M. Billsb22e8f72020-05-05 16:27:39 -070019 install -d ${D}${bindir}
20 install -m 0755 ${WORKDIR}/rotate-event-logs.sh ${D}/${bindir}/rotate-event-logs.sh
Jason M. Bills176b19e2019-11-25 13:23:08 -080021 rm ${D}${sysconfdir}/rsyslog.d/imjournal.conf
22}
23
Jason M. Billsb22e8f72020-05-05 16:27:39 -070024SYSTEMD_SERVICE_${PN} += " rotate-event-logs.service"