blob: 7e282804e8c246dc13b2f7d38210800a44bf2d6e [file] [log] [blame]
Jason M. Bills276c8182019-11-25 13:23:08 -08001FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
2
3SRC_URI += "file://rsyslog.conf \
4 file://rsyslog.logrotate \
5 file://rotate-event-logs.service \
6 file://rotate-event-logs.timer \
7 file://rsyslog-override.conf \
8"
9
10FILES_${PN} += "${systemd_system_unitdir}/rsyslog.service.d/rsyslog-override.conf"
11
12PACKAGECONFIG_append = " imjournal"
13
14do_install_append() {
15 install -m 0644 ${WORKDIR}/rotate-event-logs.service ${D}${systemd_system_unitdir}
16 install -m 0644 ${WORKDIR}/rotate-event-logs.timer ${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 rm ${D}${sysconfdir}/rsyslog.d/imjournal.conf
21}
22
23SYSTEMD_SERVICE_${PN} += " rotate-event-logs.service rotate-event-logs.timer"