summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJavier Martinez Canillas <javier@dowhile0.org>2012-08-05 21:48:34 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-08-06 15:18:48 +0100
commit344c40b97bef42d84750e6ef1e6fa5abe6f42f8f (patch)
treed4d0f29e69ecd43d81ebfbbaf483986a6f63b9f2
parentdbabc444eead094af872ff9d918457882a19cb79 (diff)
downloadpoky-344c40b97bef42d84750e6ef1e6fa5abe6f42f8f.tar.gz
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. (From OE-Core rev: 7b13be661c869eb4bf88d16a928a97edd5bc203b) Signed-off-by: Javier Martinez Canillas <javier@dowhile0.org> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/recipes-extended/cronie/cronie_1.4.8.bb12
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)}"
18RDEPENDS_${PN} = "${@base_contains('DISTRO_FEATURES', 'pam', '${PAM_DEPS}', '', d)}" 18RDEPENDS_${PN} = "${@base_contains('DISTRO_FEATURES', 'pam', '${PAM_DEPS}', '', d)}"
19PAM_DEPS = "libpam libpam-runtime pam-plugin-access pam-plugin-loginuid" 19PAM_DEPS = "libpam libpam-runtime pam-plugin-access pam-plugin-loginuid"
20 20
21PR = "r2" 21PR = "r3"
22 22
23SRC_URI = "https://fedorahosted.org/releases/c/r/cronie/cronie-${PV}.tar.gz \ 23SRC_URI = "https://fedorahosted.org/releases/c/r/cronie/cronie-${PV}.tar.gz \
24 file://crond.init \ 24 file://crond.init \
@@ -61,14 +61,14 @@ do_install_append () {
61 # below setting is necessary to allow normal user using crontab 61 # below setting is necessary to allow normal user using crontab
62 62
63 # setgid for crontab binary 63 # setgid for crontab binary
64 chown root:crontab ${D}/usr/bin/crontab 64 chown root:crontab ${D}${bindir}/crontab
65 chmod 2755 ${D}/usr/bin/crontab 65 chmod 2755 ${D}${bindir}/crontab
66 66
67 # allow 'crontab' group write to /var/spool/cron 67 # allow 'crontab' group write to /var/spool/cron
68 chown root:crontab ${D}/var/spool/cron 68 chown root:crontab ${D}${localstatedir}/spool/cron
69 chmod 770 ${D}/var/spool/cron 69 chmod 770 ${D}${localstatedir}/spool/cron
70 70
71 chmod 600 ${D}/etc/crontab 71 chmod 600 ${D}${sysconfdir}/crontab
72} 72}
73 73
74FILES_${PN} += "${sysconfdir}/cron*" 74FILES_${PN} += "${sysconfdir}/cron*"