blob: 20cbaf8cd7f9ad29cbd43e93ac795999fc2e02a9 [file] [log] [blame]
Jae Hyun Yoo24e16a22021-08-06 10:55:59 -07001FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:"
Jason M. Bills276c8182019-11-25 13:23:08 -08002
3SRC_URI += "file://rsyslog.conf \
4 file://rsyslog.logrotate \
5 file://rotate-event-logs.service \
Jason M. Bills9cbd07c2020-05-05 16:27:39 -07006 file://rotate-event-logs.sh \
Jason M. Bills276c8182019-11-25 13:23:08 -08007 file://rsyslog-override.conf \
8"
9
Jae Hyun Yoo24e16a22021-08-06 10:55:59 -070010FILES:${PN} += "${systemd_system_unitdir}/rsyslog.service.d/rsyslog-override.conf"
Jason M. Bills276c8182019-11-25 13:23:08 -080011
Jae Hyun Yoo24e16a22021-08-06 10:55:59 -070012PACKAGECONFIG:append = " imjournal"
Jason M. Bills276c8182019-11-25 13:23:08 -080013
Jae Hyun Yoo24e16a22021-08-06 10:55:59 -070014do_install:append() {
Jason M. Bills276c8182019-11-25 13:23:08 -080015 install -m 0644 ${WORKDIR}/rotate-event-logs.service ${D}${systemd_system_unitdir}
Jason M. Bills276c8182019-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. Bills9cbd07c2020-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. Bills276c8182019-11-25 13:23:08 -080021 rm ${D}${sysconfdir}/rsyslog.d/imjournal.conf
22}
23
Jae Hyun Yoo24e16a22021-08-06 10:55:59 -070024SYSTEMD_SERVICE:${PN} += " rotate-event-logs.service"