From patchwork Sun Aug 5 15:53:53 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [06/30] cronie: use variables instead of hardcoded paths Date: Sun, 05 Aug 2012 15:53:53 -0000 From: Javier Martinez Canillas X-Patchwork-Id: 33851 Message-Id: <1344182057-15981-7-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/cronie/cronie_1.4.8.bb | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/meta/recipes-extended/cronie/cronie_1.4.8.bb b/meta/recipes-extended/cronie/cronie_1.4.8.bb index 2d25627..74203ed 100644 --- a/meta/recipes-extended/cronie/cronie_1.4.8.bb +++ b/meta/recipes-extended/cronie/cronie_1.4.8.bb @@ -61,14 +61,14 @@ do_install_append () { # below setting is necessary to allow normal user using crontab # setgid for crontab binary - chown root:crontab ${D}/usr/bin/crontab - chmod 2755 ${D}/usr/bin/crontab + chown root:crontab ${D}${bindir}/crontab + chmod 2755 ${D}${bindir}/crontab # allow 'crontab' group write to /var/spool/cron - chown root:crontab ${D}/var/spool/cron - chmod 770 ${D}/var/spool/cron + chown root:crontab ${D}${localstatedir}/spool/cron + chmod 770 ${D}${localstatedir}/spool/cron - chmod 600 ${D}/etc/crontab + chmod 600 ${D}${sysconfdir}/crontab } FILES_${PN} += "${sysconfdir}/cron*"