* [PATCH 0/2] Identify existing configuration files
@ 2015-03-03 21:32 Rob Woolley
2015-03-03 21:32 ` [PATCH 1/2] nfs-utils: Identify CONFFILES Rob Woolley
2015-03-03 21:32 ` [PATCH 2/2] logrotate: " Rob Woolley
0 siblings, 2 replies; 5+ messages in thread
From: Rob Woolley @ 2015-03-03 21:32 UTC (permalink / raw)
To: openembedded-core
Some package formats explicitly track which files are configuration files
so that they are not overwritten on updates.
This series explicitly identifies files that were already being packaged,
but not known as configuration files.
I built the RPM packages and compared the output of rpm -qp --filesbypkg with
rpm -qp --configfiles against the equivalent packages in CentOS 7.
meta/recipes-connectivity/nfs-utils/nfs-utils_1.3.1.bb | 6 ++++++
1 file changed, 6 insertions(+)
meta/recipes-extended/logrotate/logrotate_3.8.8.bb | 2 ++
1 file changed, 2 insertions(+)
Signed-off-by: Rob Woolley <rob.woolley@windriver.com>
^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH 1/2] nfs-utils: Identify CONFFILES
2015-03-03 21:32 [PATCH 0/2] Identify existing configuration files Rob Woolley
@ 2015-03-03 21:32 ` Rob Woolley
2015-03-03 21:39 ` Martin Jansa
2015-03-03 21:32 ` [PATCH 2/2] logrotate: " Rob Woolley
1 sibling, 1 reply; 5+ messages in thread
From: Rob Woolley @ 2015-03-03 21:32 UTC (permalink / raw)
To: openembedded-core
Some package formats explicitly track which files are configuration files
so that they are not overwritten on updates. Explicitly list the
configuration files.
Signed-off by: Rob Woolley <rob.woolley@windriver.com>
--- meta/recipes-connectivity/nfs-utils/nfs-utils_1.3.1.bb
+++ meta/recipes-connectivity/nfs-utils/nfs-utils_1.3.1.bb
@@ -68,6 +68,12 @@ PACKAGECONFIG[nfsidmap] = "--enable-nfsi
INHIBIT_AUTO_STAGE = "1"
PACKAGES =+ "${PN}-client ${PN}-stats"
+
+CONFFILES_${PN}-client += "/var/lib/nfs/etab"
+CONFFILES_${PN}-client += "/var/lib/nfs/rmtab"
+CONFFILES_${PN}-client += "/var/lib/nfs/state"
+CONFFILES_${PN}-client += "/var/lib/nfs/xtab"
+
FILES_${PN}-client = "${base_sbindir}/*mount.nfs* ${sbindir}/*statd \
${sbindir}/rpc.idmapd ${sbindir}/sm-notify \
${sbindir}/showmount ${sbindir}/nfsstat \
^ permalink raw reply [flat|nested] 5+ messages in thread* [PATCH 2/2] logrotate: Identify CONFFILES
2015-03-03 21:32 [PATCH 0/2] Identify existing configuration files Rob Woolley
2015-03-03 21:32 ` [PATCH 1/2] nfs-utils: Identify CONFFILES Rob Woolley
@ 2015-03-03 21:32 ` Rob Woolley
2015-03-04 12:30 ` Burton, Ross
1 sibling, 1 reply; 5+ messages in thread
From: Rob Woolley @ 2015-03-03 21:32 UTC (permalink / raw)
To: openembedded-core
Some package formats explicitly track which files are configuration files
so that they are not overwritten on updates. Explicitly list the
configuration files.
Signed-off by: Rob Woolley <rob.woolley@windriver.com>
--- meta/recipes-extended/logrotate/logrotate_3.8.8.bb
+++ meta/recipes-extended/logrotate/logrotate_3.8.8.bb
@@ -27,6 +27,8 @@ PACKAGECONFIG ?= "\
PACKAGECONFIG[acl] = ",,acl"
PACKAGECONFIG[selinux] = ",,libselinux"
+CONFFILES_${PN} += "/var/lib/logrotate.status /etc/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 = "\
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2015-03-04 12:30 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-03-03 21:32 [PATCH 0/2] Identify existing configuration files Rob Woolley
2015-03-03 21:32 ` [PATCH 1/2] nfs-utils: Identify CONFFILES Rob Woolley
2015-03-03 21:39 ` Martin Jansa
2015-03-03 21:32 ` [PATCH 2/2] logrotate: " Rob Woolley
2015-03-04 12:30 ` Burton, Ross
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox