meta-fii: meta-mori: Add rsyslog configurations

Add the recipes-extended file containing the rsyslog configuration.

Signed-off-by: Grant Williams <grant.williams@fii-na.com>
Change-Id: I58c42c613111363db0d783aa5338a72a9f2004d3
diff --git a/meta-fii/meta-mori/recipes-extended/rsyslog/rsyslog_%.bbappend b/meta-fii/meta-mori/recipes-extended/rsyslog/rsyslog_%.bbappend
new file mode 100644
index 0000000..92b3fb5
--- /dev/null
+++ b/meta-fii/meta-mori/recipes-extended/rsyslog/rsyslog_%.bbappend
@@ -0,0 +1,25 @@
+FILESEXTRAPATHS:prepend:mori := "${THISDIR}/${PN}:"
+
+SRC_URI:append:mori = " \
+    file://rsyslog.conf \
+    file://rsyslog.logrotate \
+    file://rotate-event-logs.service \
+    file://rotate-event-logs.sh \
+    file://rsyslog-override.conf \
+    "
+
+FILES:${PN}:append:mori = " ${systemd_system_unitdir}/rsyslog.service.d/rsyslog-override.conf"
+
+PACKAGECONFIG:append:mori = " imjournal"
+
+do_install:append:mori() {
+    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}:append:mori = " rotate-event-logs.service"