blob: 863f314e28e85d7137c8e5e95eac20d0e4369a05 [file] [log] [blame]
Thang Q. Nguyenfa1aa4d2021-08-07 05:09:50 +00001FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:"
Thang Q. Nguyen09ea4852020-12-30 08:07:10 +00002
3SRC_URI += "file://rsyslog.conf \
4 file://rsyslog.logrotate \
5 file://rotate-event-logs.service \
6 file://rotate-event-logs.sh \
7 file://rsyslog-override.conf \
Chau Ly74946012023-01-13 03:41:22 +00008 file://hostconsole.conf \
Thang Q. Nguyen09ea4852020-12-30 08:07:10 +00009 "
10
Thang Q. Nguyenfa1aa4d2021-08-07 05:09:50 +000011FILES:${PN} += "${systemd_system_unitdir}/rsyslog.service.d/rsyslog-override.conf"
Thang Q. Nguyen09ea4852020-12-30 08:07:10 +000012
Thang Q. Nguyenfa1aa4d2021-08-07 05:09:50 +000013PACKAGECONFIG:append = " imjournal"
Thang Q. Nguyen09ea4852020-12-30 08:07:10 +000014
Thang Q. Nguyenfa1aa4d2021-08-07 05:09:50 +000015do_install:append() {
Thang Q. Nguyen09ea4852020-12-30 08:07:10 +000016 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
Chau Ly74946012023-01-13 03:41:22 +000022 install -m 0755 ${WORKDIR}/hostconsole.conf ${D}${sysconfdir}/rsyslog.d/hostconsole.conf
Thang Q. Nguyen09ea4852020-12-30 08:07:10 +000023 rm ${D}${sysconfdir}/rsyslog.d/imjournal.conf
24}
25
Thang Q. Nguyenfa1aa4d2021-08-07 05:09:50 +000026SYSTEMD_SERVICE:${PN} += " rotate-event-logs.service"