Jae Hyun Yoo | 24e16a2 | 2021-08-06 10:55:59 -0700 | [diff] [blame] | 1 | FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:" |
Jason M. Bills | 276c818 | 2019-11-25 13:23:08 -0800 | [diff] [blame] | 2 | |
| 3 | SRC_URI += "file://rsyslog.conf \ |
| 4 | file://rsyslog.logrotate \ |
| 5 | file://rotate-event-logs.service \ |
Jason M. Bills | 9cbd07c | 2020-05-05 16:27:39 -0700 | [diff] [blame] | 6 | file://rotate-event-logs.sh \ |
Jason M. Bills | 276c818 | 2019-11-25 13:23:08 -0800 | [diff] [blame] | 7 | file://rsyslog-override.conf \ |
| 8 | " |
| 9 | |
Jae Hyun Yoo | 24e16a2 | 2021-08-06 10:55:59 -0700 | [diff] [blame] | 10 | FILES:${PN} += "${systemd_system_unitdir}/rsyslog.service.d/rsyslog-override.conf" |
Jason M. Bills | 276c818 | 2019-11-25 13:23:08 -0800 | [diff] [blame] | 11 | |
Jae Hyun Yoo | 24e16a2 | 2021-08-06 10:55:59 -0700 | [diff] [blame] | 12 | PACKAGECONFIG:append = " imjournal" |
Jason M. Bills | 276c818 | 2019-11-25 13:23:08 -0800 | [diff] [blame] | 13 | |
Jae Hyun Yoo | 24e16a2 | 2021-08-06 10:55:59 -0700 | [diff] [blame] | 14 | do_install:append() { |
Jason M. Bills | 276c818 | 2019-11-25 13:23:08 -0800 | [diff] [blame] | 15 | install -m 0644 ${WORKDIR}/rotate-event-logs.service ${D}${systemd_system_unitdir} |
Jason M. Bills | 276c818 | 2019-11-25 13:23:08 -0800 | [diff] [blame] | 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 |
Jason M. Bills | 9cbd07c | 2020-05-05 16:27:39 -0700 | [diff] [blame] | 19 | install -d ${D}${bindir} |
| 20 | install -m 0755 ${WORKDIR}/rotate-event-logs.sh ${D}/${bindir}/rotate-event-logs.sh |
Jason M. Bills | 276c818 | 2019-11-25 13:23:08 -0800 | [diff] [blame] | 21 | rm ${D}${sysconfdir}/rsyslog.d/imjournal.conf |
| 22 | } |
| 23 | |
Jae Hyun Yoo | 24e16a2 | 2021-08-06 10:55:59 -0700 | [diff] [blame] | 24 | SYSTEMD_SERVICE:${PN} += " rotate-event-logs.service" |