diff options
author | Ryan Sie <ryans@supermicro.com.tw> | 2021-10-14 04:49:20 +0300 |
---|---|---|
committer | Patrick Williams <patrick@stwcx.xyz> | 2021-10-15 04:32:08 +0300 |
commit | 826a1f731b1f4c1cd62f892515bfead9d4c5ecbf (patch) | |
tree | 7d7537f1d098bfc469cf4be95c77a208111d8b9f /meta-supermicro/meta-common/recipes-extended/rsyslog/rsyslog_%.bbappend | |
parent | faf59e054914202c4d2ee3ae7201616fedbaefe6 (diff) | |
download | openbmc-826a1f731b1f4c1cd62f892515bfead9d4c5ecbf.tar.xz |
update meta-supermicro layer for new bitbake
Signed-off-by: Ryan Sie <ryans@supermicro.com.tw>
Change-Id: I05c85576fad2dae9f9a3e90afdac7565d9cefcf4
Diffstat (limited to 'meta-supermicro/meta-common/recipes-extended/rsyslog/rsyslog_%.bbappend')
-rw-r--r-- | meta-supermicro/meta-common/recipes-extended/rsyslog/rsyslog_%.bbappend | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/meta-supermicro/meta-common/recipes-extended/rsyslog/rsyslog_%.bbappend b/meta-supermicro/meta-common/recipes-extended/rsyslog/rsyslog_%.bbappend new file mode 100644 index 000000000..034ae3cfa --- /dev/null +++ b/meta-supermicro/meta-common/recipes-extended/rsyslog/rsyslog_%.bbappend @@ -0,0 +1,24 @@ +FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:" + +SRC_URI += "file://rsyslog.conf \ + file://rsyslog.logrotate \ + file://rotate-event-logs.service \ + file://rotate-event-logs.sh \ + file://rsyslog-override.conf \ + " + +FILES:${PN} += "${systemd_system_unitdir}/rsyslog.service.d/rsyslog-override.conf" + +PACKAGECONFIG:append = " imjournal" + +do_install:append() { + install -m 0644 ${WORKDIR}/rotate-event-logs.service ${D}${systemd_system_unitdir} + install -d ${D}${systemd_system_unitdir}/rsyslog.service.d + install -m 0644 ${WORKDIR}/rsyslog-override.conf \ + ${D}${systemd_system_unitdir}/rsyslog.service.d/rsyslog-override.conf + install -d ${D}${bindir} + install -m 0755 ${WORKDIR}/rotate-event-logs.sh ${D}/${bindir}/rotate-event-logs.sh + rm ${D}${sysconfdir}/rsyslog.d/imjournal.conf +} + +SYSTEMD_SERVICE:${PN} += " rotate-event-logs.service" |