blob: 92b3fb5213a8378fef414a0ca9471b958c3e0d42 [file] [log] [blame]
Grant Williams42a823e2022-06-01 15:00:04 -05001FILESEXTRAPATHS:prepend:mori := "${THISDIR}/${PN}:"
2
3SRC_URI:append:mori = " \
4 file://rsyslog.conf \
5 file://rsyslog.logrotate \
6 file://rotate-event-logs.service \
7 file://rotate-event-logs.sh \
8 file://rsyslog-override.conf \
9 "
10
11FILES:${PN}:append:mori = " ${systemd_system_unitdir}/rsyslog.service.d/rsyslog-override.conf"
12
13PACKAGECONFIG:append:mori = " imjournal"
14
15do_install:append:mori() {
16 install -m 0644 ${WORKDIR}/rotate-event-logs.service ${D}${systemd_system_unitdir}
17 install -d ${D}${systemd_system_unitdir}/rsyslog.service.d
18 install -m 0644 ${WORKDIR}/rsyslog-override.conf \
19 ${D}${systemd_system_unitdir}/rsyslog.service.d/rsyslog-override.conf
20 install -d ${D}${bindir}
21 install -m 0755 ${WORKDIR}/rotate-event-logs.sh ${D}/${bindir}/rotate-event-logs.sh
22 rm ${D}${sysconfdir}/rsyslog.d/imjournal.conf
23}
24
25SYSTEMD_SERVICE:${PN}:append:mori = " rotate-event-logs.service"