blob: 278debb32ba33b68a1199067f30437fd9546d053 [file] [log] [blame]
mustafad5d20b32021-04-07 15:06:59 -05001FILESEXTRAPATHS_prepend_kudo := "${THISDIR}/${PN}:"
2
3SRC_URI_append_kudo = " \
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_kudo = " ${systemd_system_unitdir}/rsyslog.service.d/rsyslog-override.conf"
12
13PACKAGECONFIG_append_kudo = " imjournal"
14
15do_install_append_kudo() {
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_kudo = " rotate-event-logs.service"