[oe] [meta-oe][PATCH] rsyslog: install logrotate configuration file into correct location

Qi.Chen at windriver.com Qi.Chen at windriver.com
Fri Aug 18 03:05:27 UTC 2017


From: Chen Qi <Qi.Chen at windriver.com>

Previously we used update-alternatives to manage this configuration file,
creating link under /etc/logrotate.d/ directory.

However, we later dropped the update-alternatives approach and explicitly
setting rsyslog to conflict with other syslog providers.

So we need to install the logrotate configuration file under /etc/logrotate.d
to make things right.

Signed-off-by: Chen Qi <Qi.Chen at windriver.com>
---
 meta-oe/recipes-extended/rsyslog/rsyslog_8.22.0.bb | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/meta-oe/recipes-extended/rsyslog/rsyslog_8.22.0.bb b/meta-oe/recipes-extended/rsyslog/rsyslog_8.22.0.bb
index 6e3a75c..bd317be 100644
--- a/meta-oe/recipes-extended/rsyslog/rsyslog_8.22.0.bb
+++ b/meta-oe/recipes-extended/rsyslog/rsyslog_8.22.0.bb
@@ -119,9 +119,10 @@ do_install_ptest() {
 
 do_install_append() {
     install -d "${D}${sysconfdir}/init.d"
+    install -d "${D}${sysconfdir}/logrotate.d"
     install -m 755 ${WORKDIR}/initscript ${D}${sysconfdir}/init.d/syslog
     install -m 644 ${WORKDIR}/rsyslog.conf ${D}${sysconfdir}/rsyslog.conf
-    install -m 644 ${WORKDIR}/rsyslog.logrotate ${D}${sysconfdir}/logrotate.rsyslog
+    install -m 644 ${WORKDIR}/rsyslog.logrotate ${D}${sysconfdir}/logrotate.d/logrotate.rsyslog
 }
 
 FILES_${PN} += "${bindir}"
-- 
1.9.1




More information about the Openembedded-devel mailing list