summaryrefslogtreecommitdiff
path: root/meta
diff options
context:
space:
mode:
authorJavier Martinez Canillas <javier@dowhile0.org>2012-08-05 21:48:47 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-08-06 14:36:53 +0100
commit7556e60bf23c07646594a1704b3db7dfc29e631d (patch)
treea2bc99ef519d9c82a8320d52b21576e4eb84b9b7 /meta
parentb7134e8f76026d15a5e35c6a2e5d77d5e48c2787 (diff)
downloadopenembedded-core-7556e60bf23c07646594a1704b3db7dfc29e631d.tar.gz
openembedded-core-7556e60bf23c07646594a1704b3db7dfc29e631d.tar.bz2
openembedded-core-7556e60bf23c07646594a1704b3db7dfc29e631d.zip
libpam: use ${localstatedir} and ${sysconfdir} instead of /var and /etc
It is considered good practice to use the build system provided variables instead of directly specify hardcoded paths. Signed-off-by: Javier Martinez Canillas <javier@dowhile0.org> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r--meta/recipes-extended/pam/libpam_1.1.5.bb6
1 files changed, 3 insertions, 3 deletions
diff --git a/meta/recipes-extended/pam/libpam_1.1.5.bb b/meta/recipes-extended/pam/libpam_1.1.5.bb
index dd75d427ec..c035aafe14 100644
--- a/meta/recipes-extended/pam/libpam_1.1.5.bb
+++ b/meta/recipes-extended/pam/libpam_1.1.5.bb
@@ -9,7 +9,7 @@ SECTION = "base"
LICENSE = "GPLv2+ | BSD"
LIC_FILES_CHKSUM = "file://COPYING;md5=ca0395de9a86191a078b8b79302e3083"
-PR = "r4"
+PR = "r5"
SRC_URI = "https://fedorahosted.org/releases/l/i/linux-pam/Linux-PAM-${PV}.tar.bz2 \
file://99_pam \
@@ -79,9 +79,9 @@ do_install() {
autotools_do_install
# don't install /var/run when populating rootfs. Do it through volatile
- rm -rf ${D}/var
+ rm -rf ${D}${localstatedir}
install -d ${D}${sysconfdir}/default/volatiles
- install -m 0644 ${WORKDIR}/99_pam ${D}/etc/default/volatiles
+ install -m 0644 ${WORKDIR}/99_pam ${D}${sysconfdir}/default/volatiles
install -d ${D}${sysconfdir}/pam.d/
install -m 0644 ${WORKDIR}/pam.d/* ${D}${sysconfdir}/pam.d/