diff options
author | Javier Martinez Canillas <javier@dowhile0.org> | 2012-08-05 21:48:34 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-08-06 14:19:19 +0100 |
commit | 7b13be661c869eb4bf88d16a928a97edd5bc203b (patch) | |
tree | 5337a8087719074c05cfd1aacd2ebc43330d4214 /meta/recipes-extended/cronie | |
parent | 0a8003a3542d17332488ca715619990b222ceb71 (diff) | |
download | openembedded-core-7b13be661c869eb4bf88d16a928a97edd5bc203b.tar.gz openembedded-core-7b13be661c869eb4bf88d16a928a97edd5bc203b.tar.bz2 openembedded-core-7b13be661c869eb4bf88d16a928a97edd5bc203b.zip |
cronie: use variables instead of hardcoded paths
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/recipes-extended/cronie')
-rw-r--r-- | meta/recipes-extended/cronie/cronie_1.4.8.bb | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/meta/recipes-extended/cronie/cronie_1.4.8.bb b/meta/recipes-extended/cronie/cronie_1.4.8.bb index 2d256277bc..ce59437ecd 100644 --- a/meta/recipes-extended/cronie/cronie_1.4.8.bb +++ b/meta/recipes-extended/cronie/cronie_1.4.8.bb @@ -18,7 +18,7 @@ DEPENDS += "${@base_contains('DISTRO_FEATURES', 'pam', 'libpam', '', d)}" RDEPENDS_${PN} = "${@base_contains('DISTRO_FEATURES', 'pam', '${PAM_DEPS}', '', d)}" PAM_DEPS = "libpam libpam-runtime pam-plugin-access pam-plugin-loginuid" -PR = "r2" +PR = "r3" SRC_URI = "https://fedorahosted.org/releases/c/r/cronie/cronie-${PV}.tar.gz \ file://crond.init \ @@ -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*" |