mustafa | d5d20b3 | 2021-04-07 15:06:59 -0500 | [diff] [blame^] | 1 | FILESEXTRAPATHS_prepend_kudo := "${THISDIR}/${PN}:" |
| 2 | |
| 3 | SRC_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 | |
| 11 | FILES_${PN}_append_kudo = " ${systemd_system_unitdir}/rsyslog.service.d/rsyslog-override.conf" |
| 12 | |
| 13 | PACKAGECONFIG_append_kudo = " imjournal" |
| 14 | |
| 15 | do_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 | |
| 25 | SYSTEMD_SERVICE_${PN}_append_kudo = " rotate-event-logs.service" |