From patchwork Sun Aug 5 15:54:06 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [19/30] libpam: use ${localstatedir} and ${sysconfdir} instead of /var and /etc Date: Sun, 05 Aug 2012 15:54:06 -0000 From: Javier Martinez Canillas X-Patchwork-Id: 33875 Message-Id: <1344182057-15981-20-git-send-email-javier@dowhile0.org> To: Richard Purdie Cc: openembedded-core@lists.openembedded.org It is considered good practice to use the build system provided variables instead of directly specify hardcoded paths. Signed-off-by: Javier Martinez Canillas --- meta/recipes-extended/pam/libpam_1.1.5.bb | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/meta/recipes-extended/pam/libpam_1.1.5.bb b/meta/recipes-extended/pam/libpam_1.1.5.bb index dd75d42..241519f 100644 --- a/meta/recipes-extended/pam/libpam_1.1.5.bb +++ b/meta/recipes-extended/pam/libpam_1.1.5.bb @@ -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/