blob: 034ae3cfa7bae51884d3dcaceeccad7edfa6b803 [file] [log] [blame]
Ryan Sie826a1f72021-10-14 09:49:20 +08001FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:"
2
3SRC_URI += "file://rsyslog.conf \
4 file://rsyslog.logrotate \
5 file://rotate-event-logs.service \
6 file://rotate-event-logs.sh \
7 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}
16 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
19 install -d ${D}${bindir}
20 install -m 0755 ${WORKDIR}/rotate-event-logs.sh ${D}/${bindir}/rotate-event-logs.sh
21 rm ${D}${sysconfdir}/rsyslog.d/imjournal.conf
22}
23
24SYSTEMD_SERVICE:${PN} += " rotate-event-logs.service"