]> git.ipfire.org Git - people/ms/ipfire-3.x.git/blob - cronie/cronie.nm
Merge branch 'master' of ssh://git.ipfire.org/pub/git/ipfire-3.x
[people/ms/ipfire-3.x.git] / cronie / cronie.nm
1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) - IPFire Development Team <info@ipfire.org> #
4 ###############################################################################
5
6 name = cronie
7 version = 1.4.8
8 release = 1
9
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
14
15 description
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.
20 end
21
22 source_dl = https://fedorahosted.org/releases/c/r/cronie/
23
24 build
25 requires
26 audit-devel
27 bison
28 libcap-devel
29 libedit-devel
30 libselinux-devel
31 pam-devel
32 readline-devel
33 texinfo
34 end
35
36 configure_options += \
37 --with-pam \
38 --with-audit \
39 --with-selinux
40
41 install_cmds
42 mkdir -pv %{BUILDROOT}%{localstatedir}/spool/cron
43 end
44 end
45
46 packages
47 package %{name}
48 # Just search for new unit files that were just installed.
49 script postin
50 systemctl daemon-reload >/dev/null 2>&1 || :
51
52 # Enable cronie on startup.
53 systemctl enable cronie.service >/dev/null 2>&1 || :
54 end
55
56 # Disable the service that is to be removed and stop it if it is still running.
57 script preun
58 systemctl --no-reload disable cronie.service >/dev/null 2>&1 || :
59 systemctl stop cronie.service >/dev/null 2>&1 || :
60 end
61
62 # Just tell systemd that unitfiles have been removed.
63 script postun
64 systemctl daemon-reload >/dev/null 2>&1 || :
65 end
66
67 # Try to restart the service if it is running.
68 script postup
69 systemctl daemon-reload >/dev/null 2>&1 || :
70 systemctl try-restart cronie.service >/dev/null 2>&1 || :
71 end
72 end
73
74 package %{name}-debuginfo
75 template DEBUGINFO
76 end
77 end