blob: 46862b9d06c0cb4922744d53d44cba6ba34cc44f [file] [log] [blame]
Mohaimen Alsamaraif59d0172021-08-17 09:34:22 -05001FILESEXTRAPATHS:prepend:kudo := "${THISDIR}/${PN}:"
mustafad5d20b32021-04-07 15:06:59 -05002
Mohaimen Alsamaraif59d0172021-08-17 09:34:22 -05003SRC_URI:append:kudo = " \
mustafad5d20b32021-04-07 15:06:59 -05004 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
Mohaimen Alsamaraif59d0172021-08-17 09:34:22 -050011FILES:${PN}:append:kudo = " ${systemd_system_unitdir}/rsyslog.service.d/rsyslog-override.conf"
mustafad5d20b32021-04-07 15:06:59 -050012
Mohaimen Alsamaraif59d0172021-08-17 09:34:22 -050013PACKAGECONFIG:append:kudo = " imjournal"
mustafad5d20b32021-04-07 15:06:59 -050014
Mohaimen Alsamaraif59d0172021-08-17 09:34:22 -050015do_install:append:kudo() {
mustafad5d20b32021-04-07 15:06:59 -050016 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
Mohaimen Alsamaraif59d0172021-08-17 09:34:22 -050025SYSTEMD_SERVICE:${PN}:append:kudo = " rotate-event-logs.service"