[oe-commits] Jian Liu : libpam: avoid overwritting editable files during package updating

git at git.openembedded.org git at git.openembedded.org
Wed Dec 3 12:24:35 UTC 2014


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

Author: Jian Liu <jian.liu at windriver.com>
Date:   Fri Nov 21 17:17:13 2014 +0800

libpam: avoid overwritting editable files during package updating

Use CONFFILES to mark editable files as such,
  /etc/pam.d/common-session
  /etc/pam.d/common-auth
  /etc/pam.d/common-password
  /etc/pam.d/common-session-noninteractive
  /etc/pam.d/common-account

If there is no %config micro before the file name in the spec file,
this file will be overwritten after updating package.
This will make our settings lost.

Signed-off-by: Jian Liu <jian.liu at windriver.com>
Signed-off-by: Ross Burton <ross.burton at intel.com>

---

 meta/recipes-extended/pam/libpam_1.1.6.bb | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/meta/recipes-extended/pam/libpam_1.1.6.bb b/meta/recipes-extended/pam/libpam_1.1.6.bb
index 3b6d514..b3b39da 100644
--- a/meta/recipes-extended/pam/libpam_1.1.6.bb
+++ b/meta/recipes-extended/pam/libpam_1.1.6.bb
@@ -163,3 +163,9 @@ python do_pam_sanity () {
 addtask pam_sanity before do_configure
 
 BBCLASSEXTEND = "nativesdk native"
+
+CONFFILES_${PN}-runtime += "${sysconfdir}/pam.d/common-session"
+CONFFILES_${PN}-runtime += "${sysconfdir}/pam.d/common-auth"
+CONFFILES_${PN}-runtime += "${sysconfdir}/pam.d/common-password"
+CONFFILES_${PN}-runtime += "${sysconfdir}/pam.d/common-session-noninteractive"
+CONFFILES_${PN}-runtime += "${sysconfdir}/pam.d/common-account"



More information about the Openembedded-commits mailing list