Mohaimen Alsamarai | f59d017 | 2021-08-17 09:34:22 -0500 | [diff] [blame] | 1 | FILESEXTRAPATHS:prepend:kudo := "${THISDIR}/${PN}:" |
mustafa | d5d20b3 | 2021-04-07 15:06:59 -0500 | [diff] [blame] | 2 | |
Mohaimen Alsamarai | f59d017 | 2021-08-17 09:34:22 -0500 | [diff] [blame] | 3 | SRC_URI:append:kudo = " \ |
mustafa | d5d20b3 | 2021-04-07 15:06:59 -0500 | [diff] [blame] | 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 | |
Mohaimen Alsamarai | f59d017 | 2021-08-17 09:34:22 -0500 | [diff] [blame] | 11 | FILES:${PN}:append:kudo = " ${systemd_system_unitdir}/rsyslog.service.d/rsyslog-override.conf" |
mustafa | d5d20b3 | 2021-04-07 15:06:59 -0500 | [diff] [blame] | 12 | |
Mohaimen Alsamarai | f59d017 | 2021-08-17 09:34:22 -0500 | [diff] [blame] | 13 | PACKAGECONFIG:append:kudo = " imjournal" |
mustafa | d5d20b3 | 2021-04-07 15:06:59 -0500 | [diff] [blame] | 14 | |
Mohaimen Alsamarai | f59d017 | 2021-08-17 09:34:22 -0500 | [diff] [blame] | 15 | do_install:append:kudo() { |
mustafa | d5d20b3 | 2021-04-07 15:06:59 -0500 | [diff] [blame] | 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 | |
Mohaimen Alsamarai | f59d017 | 2021-08-17 09:34:22 -0500 | [diff] [blame] | 25 | SYSTEMD_SERVICE:${PN}:append:kudo = " rotate-event-logs.service" |