[oe-commits] Rob Woolley : logrotate: Identify CONFFILES

git at git.openembedded.org git at git.openembedded.org
Mon Mar 16 17:43:01 UTC 2015


Module: openembedded-core.git
Branch: master-next
Commit: d82426eb81c57f114788f8f088f59377f0253b29
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=d82426eb81c57f114788f8f088f59377f0253b29

Author: Rob Woolley <rob.woolley at windriver.com>
Date:   Mon Mar  9 19:52:58 2015 -0400

logrotate: Identify CONFFILES

Some package formats explicitly track which files are configuration files
so that they are not overwritten on updates. We must use an explicit list
instead of a wildcard as logrotate also provides files under ${sysconfdir}
that are not configuration files.

Signed-off by: Rob Woolley <rob.woolley at windriver.com>

---

 meta/recipes-extended/logrotate/logrotate_3.8.8.bb | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/meta/recipes-extended/logrotate/logrotate_3.8.8.bb b/meta/recipes-extended/logrotate/logrotate_3.8.8.bb
index 00432de..e3cfa90 100644
--- a/meta/recipes-extended/logrotate/logrotate_3.8.8.bb
+++ b/meta/recipes-extended/logrotate/logrotate_3.8.8.bb
@@ -27,6 +27,9 @@ PACKAGECONFIG ?= "\
 PACKAGECONFIG[acl] = ",,acl"
 PACKAGECONFIG[selinux] = ",,libselinux"
 
+CONFFILES_${PN} += "${localstatedir}/lib/logrotate.status \
+		    ${sysconfdir}/logrotate.conf"
+
 # If RPM_OPT_FLAGS is unset, it adds -g itself rather than obeying our
 # optimization variables, so use it rather than EXTRA_CFLAGS.
 EXTRA_OEMAKE = "\



More information about the Openembedded-commits mailing list