Remove shadow pam rules that are not in Tizen 43/23443/1
authorKévin THIERRY <kevin.thierry@open.eurogiciel.org>
Wed, 25 Jun 2014 14:00:10 +0000 (16:00 +0200)
committerKévin THIERRY <kevin.thierry@open.eurogiciel.org>
Wed, 25 Jun 2014 14:00:10 +0000 (16:00 +0200)
Remove upstream pam rules that are added in Poky but are not present in
Tizen Common. Creating rules to replace those ones in Tizen Common could
be a good idea.

Note that shadow is used in the Yocto build instead of pwdutils in Tizen
Common.

Change-Id: I9620e4267d20d5693b38c2d03af70c1de6f20a51
Signed-off-by: Kévin THIERRY <kevin.thierry@open.eurogiciel.org>
recipes-extended/shadow/shadow_4.1.4.3.bbappend

index 77ad159..03833d3 100644 (file)
@@ -16,3 +16,17 @@ PAM_SRC_URI += "file://pam.d/login \
                 file://pam.d/su \
                 file://pam.d/su-l \
                "
+
+do_install_append() {
+    # Remove rules that are not present in Tizen Common
+    rm -f \
+        ${D}${sysconfdir}/pam.d/chgpasswd \
+        ${D}${sysconfdir}/pam.d/chpasswd \
+        ${D}${sysconfdir}/pam.d/groupadd \
+        ${D}${sysconfdir}/pam.d/groupdel \
+        ${D}${sysconfdir}/pam.d/groupmems \
+        ${D}${sysconfdir}/pam.d/groupmod \
+        ${D}${sysconfdir}/pam.d/newusers \
+        ${D}${sysconfdir}/pam.d/userdel \
+        ${D}${sysconfdir}/pam.d/usermod
+}