summaryrefslogtreecommitdiff
path: root/meta-phosphor/recipes-extended/rsyslog/rsyslog_%.bbappend
diff options
context:
space:
mode:
Diffstat (limited to 'meta-phosphor/recipes-extended/rsyslog/rsyslog_%.bbappend')
-rw-r--r--meta-phosphor/recipes-extended/rsyslog/rsyslog_%.bbappend16
1 files changed, 16 insertions, 0 deletions
diff --git a/meta-phosphor/recipes-extended/rsyslog/rsyslog_%.bbappend b/meta-phosphor/recipes-extended/rsyslog/rsyslog_%.bbappend
new file mode 100644
index 000000000..0a2fb3334
--- /dev/null
+++ b/meta-phosphor/recipes-extended/rsyslog/rsyslog_%.bbappend
@@ -0,0 +1,16 @@
+FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
+
+SRC_URI += " \
+ file://rsyslog.conf \
+ file://server.conf \
+"
+
+PACKAGECONFIG ??= " \
+ rsyslogd rsyslogrt inet regexp uuid \
+ ${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)} \
+"
+
+do_install_append(){
+ install -m 0644 -D ${WORKDIR}/server.conf \
+ ${D}${sysconfdir}/rsyslog.d/server.conf
+}