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>
This commit is contained in:
parent
dbabc444ee
commit
344c40b97b
|
@ -18,7 +18,7 @@ DEPENDS += "${@base_contains('DISTRO_FEATURES', 'pam', 'libpam', '', d)}"
|
||||||
RDEPENDS_${PN} = "${@base_contains('DISTRO_FEATURES', 'pam', '${PAM_DEPS}', '', d)}"
|
RDEPENDS_${PN} = "${@base_contains('DISTRO_FEATURES', 'pam', '${PAM_DEPS}', '', d)}"
|
||||||
PAM_DEPS = "libpam libpam-runtime pam-plugin-access pam-plugin-loginuid"
|
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 \
|
SRC_URI = "https://fedorahosted.org/releases/c/r/cronie/cronie-${PV}.tar.gz \
|
||||||
file://crond.init \
|
file://crond.init \
|
||||||
|
@ -61,14 +61,14 @@ do_install_append () {
|
||||||
# below setting is necessary to allow normal user using crontab
|
# below setting is necessary to allow normal user using crontab
|
||||||
|
|
||||||
# setgid for crontab binary
|
# setgid for crontab binary
|
||||||
chown root:crontab ${D}/usr/bin/crontab
|
chown root:crontab ${D}${bindir}/crontab
|
||||||
chmod 2755 ${D}/usr/bin/crontab
|
chmod 2755 ${D}${bindir}/crontab
|
||||||
|
|
||||||
# allow 'crontab' group write to /var/spool/cron
|
# allow 'crontab' group write to /var/spool/cron
|
||||||
chown root:crontab ${D}/var/spool/cron
|
chown root:crontab ${D}${localstatedir}/spool/cron
|
||||||
chmod 770 ${D}/var/spool/cron
|
chmod 770 ${D}${localstatedir}/spool/cron
|
||||||
|
|
||||||
chmod 600 ${D}/etc/crontab
|
chmod 600 ${D}${sysconfdir}/crontab
|
||||||
}
|
}
|
||||||
|
|
||||||
FILES_${PN} += "${sysconfdir}/cron*"
|
FILES_${PN} += "${sysconfdir}/cron*"
|
||||||
|
|
Loading…
Reference in New Issue