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/
37 configure_options += \
47 mkdir -pv %{BUILDROOT}%{localstatedir}/spool/{ana,}cron
49 mkdir -pv %{BUILDROOT}%{sysconfdir}/cron.d
50 touch %{BUILDROOT}%{sysconfdir}/cron.deny
53 install -m 644 contrib/anacrontab %{BUILDROOT}%{sysconfdir}/anacrontab
55 mkdir -pv %{BUILDROOT}%{sysconfdir}/cron.hourly
56 install -c -m 755 contrib/0anacron %{BUILDROOT}%{sysconfdir}/cron.hourly/0anacron
57 for i in daily weekly monthly; do
58 touch %{BUILDROOT}%{localstatedir}/spool/anacron/cron.${i}
61 install -c -m 755 contrib/0hourly %{BUILDROOT}%{sysconfdir}/cron.d/0hourly
71 # Just search for new unit files that were just installed.
73 systemctl daemon-reload >/dev/null 2>&1 || :
75 # Enable cronie on startup.
76 systemctl enable cronie.service >/dev/null 2>&1 || :
79 # Disable the service that is to be removed and stop it if it is still running.
81 systemctl --no-reload disable cronie.service >/dev/null 2>&1 || :
82 systemctl stop cronie.service >/dev/null 2>&1 || :
85 # Just tell systemd that unitfiles have been removed.
87 systemctl daemon-reload >/dev/null 2>&1 || :
90 # Try to restart the service if it is running.
92 systemctl daemon-reload >/dev/null 2>&1 || :
93 systemctl try-restart cronie.service >/dev/null 2>&1 || :
98 summary = Utility for running regular jobs.
100 Anacron is part of cronie that is used for running jobs with regular
101 periodicity which do not have exact time of day of execution.
103 The default settings of anacron execute the daily, weekly, and monthly
104 jobs, but anacron allows setting arbitrary periodicity of jobs.
106 Using anacron allows running the periodic jobs even if the system is often
107 powered off and it also allows randomizing the time of the job execution
108 for better utilization of resources shared among multiple systems.
110 groups = System/Base Base
123 %{sysconfdir}/cron.hourly/0anacron
124 %{sysconfdir}/anacrontab
125 %{localstatedir}/spool/anacron
126 %{mandir}/man*/anacron*
130 %{sysconfdir}/anacrontab
134 %{localstatedir}/spool/anacron/*
138 package %{name}-debuginfo