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 15:18:48 +0100 |
commit | 344c40b97bef42d84750e6ef1e6fa5abe6f42f8f (patch) | |
tree | d4d0f29e69ecd43d81ebfbbaf483986a6f63b9f2 /meta/recipes-extended/cronie | |
parent | dbabc444eead094af872ff9d918457882a19cb79 (diff) | |
download | poky-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>
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)}" | |||
18 | RDEPENDS_${PN} = "${@base_contains('DISTRO_FEATURES', 'pam', '${PAM_DEPS}', '', d)}" | 18 | RDEPENDS_${PN} = "${@base_contains('DISTRO_FEATURES', 'pam', '${PAM_DEPS}', '', d)}" |
19 | PAM_DEPS = "libpam libpam-runtime pam-plugin-access pam-plugin-loginuid" | 19 | PAM_DEPS = "libpam libpam-runtime pam-plugin-access pam-plugin-loginuid" |
20 | 20 | ||
21 | PR = "r2" | 21 | PR = "r3" |
22 | 22 | ||
23 | SRC_URI = "https://fedorahosted.org/releases/c/r/cronie/cronie-${PV}.tar.gz \ | 23 | SRC_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 | ||
74 | FILES_${PN} += "${sysconfdir}/cron*" | 74 | FILES_${PN} += "${sysconfdir}/cron*" |