blob: 5fd46bd70e93837c56e57a65b52ac16ddc1c5478 [file] [log] [blame]
Patrick Williams6f746642021-08-06 07:40:55 -05001FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:"
Vijay Khemkac32281b2019-08-20 11:59:14 -07002
Amithash Prasasd34247ac2024-01-16 16:13:48 -08003require conf/recipes/fb-consoles.inc
4
Vijay Khemkac32281b2019-08-20 11:59:14 -07005SRC_URI += "file://rsyslog.conf \
6 file://rsyslog.logrotate \
7 file://rotate-event-logs.service \
8 file://rotate-event-logs.timer \
Amithash Prasasd34247ac2024-01-16 16:13:48 -08009 file://rsyslog-oob-console.conf.in \
Vijay Khemkac32281b2019-08-20 11:59:14 -070010"
11
Potin Lai5bb66632023-02-03 23:32:40 +080012PACKAGECONFIG:append = " imjournal klog imfile"
Vijay Khemkac32281b2019-08-20 11:59:14 -070013
Patrick Williams6f746642021-08-06 07:40:55 -050014do_install:append() {
Vijay Khemkac32281b2019-08-20 11:59:14 -070015 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 rm ${D}${sysconfdir}/rsyslog.d/imjournal.conf
Amithash Prasasd34247ac2024-01-16 16:13:48 -080018 for host in ${OBMC_HOST_INSTANCES}; do
19 host_name="host${host}"
20 conf=${D}${sysconfdir}/rsyslog.d/${host_name}.conf
21 install -m 644 ${WORKDIR}/rsyslog-oob-console.conf.in ${conf}
22 sed -i "s/__OOB_CONSOLE_HOST__/${host_name}/g;" ${conf}
23 done
Vijay Khemkac32281b2019-08-20 11:59:14 -070024}
25
Patrick Williams6f746642021-08-06 07:40:55 -050026SYSTEMD_SERVICE:${PN} += " rotate-event-logs.service rotate-event-logs.timer"