* [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
* Re: [PATCH 1/2] nfs-utils: Identify CONFFILES
2015-03-03 21:32 ` [PATCH 1/2] nfs-utils: Identify CONFFILES Rob Woolley
@ 2015-03-03 21:39 ` Martin Jansa
0 siblings, 0 replies; 5+ messages in thread
From: Martin Jansa @ 2015-03-03 21:39 UTC (permalink / raw)
To: Rob Woolley; +Cc: openembedded-core
[-- Attachment #1: Type: text/plain, Size: 1279 bytes --]
On Tue, Mar 03, 2015 at 04:32:44PM -0500, Rob Woolley wrote:
> 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"
Use 1 multiline append and ${localstatedir}/lib/nfs.
> +
> FILES_${PN}-client = "${base_sbindir}/*mount.nfs* ${sbindir}/*statd \
> ${sbindir}/rpc.idmapd ${sbindir}/sm-notify \
> ${sbindir}/showmount ${sbindir}/nfsstat \
> --
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core
--
Martin 'JaMa' Jansa jabber: Martin.Jansa@gmail.com
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 188 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH 2/2] logrotate: Identify CONFFILES
2015-03-03 21:32 ` [PATCH 2/2] logrotate: " Rob Woolley
@ 2015-03-04 12:30 ` Burton, Ross
0 siblings, 0 replies; 5+ messages in thread
From: Burton, Ross @ 2015-03-04 12:30 UTC (permalink / raw)
To: Rob Woolley; +Cc: OE-core
[-- Attachment #1: Type: text/plain, Size: 205 bytes --]
On 3 March 2015 at 21:32, Rob Woolley <rob.woolley@windriver.com> wrote:
> +CONFFILES_${PN} += "/var/lib/logrotate.status /etc/logrotate.conf"
>
${localstatedir} and ${sysconfdir}, please.
Ross
[-- Attachment #2: Type: text/html, Size: 627 bytes --]
^ 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