diff options
author | Amarnath Valluri <amarnath.valluri@intel.com> | 2015-07-22 10:55:43 +0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-07-23 08:48:40 +0100 |
commit | d87878ee12b9fcf9699e55817f137c1682d58ce4 (patch) | |
tree | c6c9eda520d17796470ff22bb92e58e96b0a32c9 /meta/recipes-extended/cronie/cronie_1.5.0.bb | |
parent | fbea156fffb846551e2f878ad3353db8f95d35cc (diff) | |
download | poky-d87878ee12b9fcf9699e55817f137c1682d58ce4.tar.gz |
cronie: Upgrade v1.4.12 to v1.5.0
(From OE-Core rev: 1cb0bceddf64fcca4140aa2fd318db29e128c3e1)
Signed-off-by: Amarnath Valluri <amarnath.valluri@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-extended/cronie/cronie_1.5.0.bb')
-rw-r--r-- | meta/recipes-extended/cronie/cronie_1.5.0.bb | 81 |
1 files changed, 81 insertions, 0 deletions
diff --git a/meta/recipes-extended/cronie/cronie_1.5.0.bb b/meta/recipes-extended/cronie/cronie_1.5.0.bb new file mode 100644 index 0000000000..38bd5935cc --- /dev/null +++ b/meta/recipes-extended/cronie/cronie_1.5.0.bb | |||
@@ -0,0 +1,81 @@ | |||
1 | SUMMARY = "Cron daemon for executing programs at set times" | ||
2 | DESCRIPTION = "Cronie contains the standard UNIX daemon crond that runs \ | ||
3 | specified programs at scheduled times and related tools. It is based on the \ | ||
4 | original cron and has security and configuration enhancements like the \ | ||
5 | ability to use pam and SELinux." | ||
6 | HOMEPAGE = "https://fedorahosted.org/cronie/" | ||
7 | BUGTRACKER = "mmaslano@redhat.com" | ||
8 | |||
9 | # Internet Systems Consortium License | ||
10 | LICENSE = "ISC & BSD-3-Clause & BSD-2-Clause & GPLv2+" | ||
11 | LIC_FILES_CHKSUM = "file://COPYING;md5=dd2a592170760e1386c769e1043b3722 \ | ||
12 | file://src/cron.c;endline=20;md5=b425c334265026177128353a142633b4 \ | ||
13 | file://src/popen.c;beginline=3;endline=31;md5=edd50742d8def712e9472dba353668a9" | ||
14 | |||
15 | SECTION = "utils" | ||
16 | |||
17 | SRC_URI = "https://fedorahosted.org/releases/c/r/cronie/cronie-${PV}.tar.gz \ | ||
18 | file://crond.init \ | ||
19 | file://crontab \ | ||
20 | file://crond.service \ | ||
21 | ${@bb.utils.contains('DISTRO_FEATURES', 'pam', '${PAM_SRC_URI}', '', d)}" | ||
22 | |||
23 | PAM_SRC_URI = "file://crond_pam_config.patch" | ||
24 | PAM_DEPS = "libpam libpam-runtime pam-plugin-access pam-plugin-loginuid" | ||
25 | |||
26 | SRC_URI[md5sum] = "9db75e1884d83a45e002d145c6c54d45" | ||
27 | SRC_URI[sha256sum] = "9cf0e3f4f5042a9c09413d62c8e0c055e12401f70b112465f0f81f2c84ebfb3f" | ||
28 | |||
29 | inherit autotools update-rc.d useradd systemd | ||
30 | |||
31 | PACKAGECONFIG ?= "${@bb.utils.contains('DISTRO_FEATURES', 'pam', 'pam', '', d)}" | ||
32 | |||
33 | PACKAGECONFIG[audit] = "--with-audit,--without-audit,audit," | ||
34 | PACKAGECONFIG[pam] = "--with-pam,--without-pam,libpam,${PAM_DEPS}" | ||
35 | |||
36 | INITSCRIPT_NAME = "crond" | ||
37 | INITSCRIPT_PARAMS = "start 90 2 3 4 5 . stop 60 0 1 6 ." | ||
38 | |||
39 | USERADD_PACKAGES = "${PN}" | ||
40 | GROUPADD_PARAM_${PN} = "--system crontab" | ||
41 | |||
42 | SYSTEMD_SERVICE_${PN} = "crond.service" | ||
43 | |||
44 | do_install_append () { | ||
45 | install -d ${D}${sysconfdir}/sysconfig/ | ||
46 | install -d ${D}${sysconfdir}/init.d/ | ||
47 | install -m 0644 ${S}/crond.sysconfig ${D}${sysconfdir}/sysconfig/crond | ||
48 | install -m 0755 ${WORKDIR}/crond.init ${D}${sysconfdir}/init.d/crond | ||
49 | |||
50 | # install systemd unit files | ||
51 | install -d ${D}${systemd_unitdir}/system | ||
52 | install -m 0644 ${WORKDIR}/crond.service ${D}${systemd_unitdir}/system | ||
53 | sed -i -e 's,@BASE_BINDIR@,${base_bindir},g' \ | ||
54 | -e 's,@SBINDIR@,${sbindir},g' \ | ||
55 | ${D}${systemd_unitdir}/system/crond.service | ||
56 | |||
57 | # below are necessary for a complete cron environment | ||
58 | install -d ${D}${localstatedir}/spool/cron | ||
59 | install -m 0755 ${WORKDIR}/crontab ${D}${sysconfdir}/ | ||
60 | mkdir -p ${D}${sysconfdir}/cron.d | ||
61 | mkdir -p ${D}${sysconfdir}/cron.hourly | ||
62 | mkdir -p ${D}${sysconfdir}/cron.daily | ||
63 | mkdir -p ${D}${sysconfdir}/cron.weekly | ||
64 | mkdir -p ${D}${sysconfdir}/cron.monthly | ||
65 | touch ${D}${sysconfdir}/cron.deny | ||
66 | |||
67 | # below setting is necessary to allow normal user using crontab | ||
68 | |||
69 | # setgid for crontab binary | ||
70 | chown root:crontab ${D}${bindir}/crontab | ||
71 | chmod 2755 ${D}${bindir}/crontab | ||
72 | |||
73 | # allow 'crontab' group write to /var/spool/cron | ||
74 | chown root:crontab ${D}${localstatedir}/spool/cron | ||
75 | chmod 770 ${D}${localstatedir}/spool/cron | ||
76 | |||
77 | chmod 600 ${D}${sysconfdir}/crontab | ||
78 | } | ||
79 | |||
80 | FILES_${PN} += "${sysconfdir}/cron*" | ||
81 | CONFFILES_${PN} += "${sysconfdir}/crontab" | ||