1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) - IPFire Development Team <info@ipfire.org> #
4 ###############################################################################
10 groups = System/Environment/Base
11 url = https://fedorahosted.org/cronie/
12 license = MIT and BSD and ISC and GPLv2
13 summary = Cron daemon for executing programs at set times
16 Cronie contains the standard UNIX daemon crond that runs specified programs at
17 scheduled times and related tools. It is a fork of the
18 original vixie-cron and has security and configuration enhancements like
19 the ability to use pam and SELinux.
22 source_dl = https://fedorahosted.org/releases/c/r/cronie/
36 configure_options += \
45 # Cronie does not provide any kind of testsuite.
49 mkdir -pv %{BUILDROOT}%{localstatedir}/spool/{ana,}cron
51 mkdir -pv %{BUILDROOT}%{sysconfdir}/cron.d
52 touch %{BUILDROOT}%{sysconfdir}/cron.deny
55 install -m 644 contrib/anacrontab %{BUILDROOT}%{sysconfdir}/anacrontab
57 mkdir -pv %{BUILDROOT}%{sysconfdir}/cron.hourly
58 install -c -m 755 contrib/0anacron %{BUILDROOT}%{sysconfdir}/cron.hourly/0anacron
59 for i in daily weekly monthly; do
60 touch %{BUILDROOT}%{localstatedir}/spool/anacron/cron.${i}
63 install -c -m 755 contrib/0hourly %{BUILDROOT}%{sysconfdir}/cron.d/0hourly
73 # Just search for new unit files that were just installed.
75 systemctl daemon-reload >/dev/null 2>&1 || :
77 # Enable cronie on startup.
78 systemctl enable cronie.service >/dev/null 2>&1 || :
81 # Disable the service that is to be removed and stop it if it is still running.
83 systemctl --no-reload disable cronie.service >/dev/null 2>&1 || :
84 systemctl stop cronie.service >/dev/null 2>&1 || :
87 # Just tell systemd that unitfiles have been removed.
89 systemctl daemon-reload >/dev/null 2>&1 || :
92 # Try to restart the service if it is running.
94 systemctl daemon-reload >/dev/null 2>&1 || :
95 systemctl try-restart cronie.service >/dev/null 2>&1 || :
100 summary = Utility for running regular jobs.
102 Anacron is part of cronie that is used for running jobs with regular
103 periodicity which do not have exact time of day of execution.
105 The default settings of anacron execute the daily, weekly, and monthly
106 jobs, but anacron allows setting arbitrary periodicity of jobs.
108 Using anacron allows running the periodic jobs even if the system is often
109 powered off and it also allows randomizing the time of the job execution
110 for better utilization of resources shared among multiple systems.
112 groups = System/Base Base
125 %{sysconfdir}/cron.hourly/0anacron
126 %{sysconfdir}/anacrontab
127 %{localstatedir}/spool/anacron
128 %{mandir}/man*/anacron*
132 %{sysconfdir}/anacrontab
136 %{localstatedir}/spool/anacron/*
140 package %{name}-debuginfo