From: Javier Martinez Canillas Date: Sun, 5 Aug 2012 19:48:47 +0000 (+0200) Subject: libpam: use ${localstatedir} and ${sysconfdir} instead of /var and /etc X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4efdf2c82f886cb5ac688ccd94f733ddfdc84b5e;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git 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. (From OE-Core rev: 7556e60bf23c07646594a1704b3db7dfc29e631d) Signed-off-by: Javier Martinez Canillas Signed-off-by: Richard Purdie --- diff --git a/meta/recipes-extended/pam/libpam_1.1.5.bb b/meta/recipes-extended/pam/libpam_1.1.5.bb index dd75d427ec0..c035aafe14b 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/