1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) - IPFire Development Team <info@ipfire.org> #
4 ###############################################################################
10 groups = System/Daemons
11 url = https://chrony.tuxfamily.org
13 summary = An NTP client/server.
16 A client/server for the Network Time Protocol, this program keeps your
17 computer's clock accurate. It was specially designed to support
18 systems with intermittent internet connections, but it also works well
19 in permanently connected environments. It can use also hardware reference
20 clocks, system real-time clock or manual input as time references.
23 source_dl = https://download.tuxfamily.org/chrony/
38 --with-sendmail=/usr/sbin/sendmail
44 build_targets += getdate all docs
45 install_targets += install-docs
48 mkdir -pv %{BUILDROOT}/var/{lib,log}/chrony
49 touch %{BUILDROOT}/var/lib/chrony/{drift,rtc}
51 mkdir -pv %{BUILDROOT}/etc
52 install -m 644 -p %{DIR_SOURCE}/chrony.conf %{BUILDROOT}/etc/chrony.conf
53 install -m 640 -p %{DIR_SOURCE}/chrony.keys %{BUILDROOT}/etc/chrony.keys
54 chown -v root.chrony %{BUILDROOT}/etc/chrony.keys
56 chown -Rv chrony.chrony %{BUILDROOT}/var/{lib,log}/chrony
61 getent group chrony >/dev/null || /usr/sbin/groupadd -r chrony
62 getent passwd chrony >/dev/null || /usr/sbin/useradd -r -g chrony \
63 -d /var/lib/chrony -s /sbin/nologin chrony
85 /bin/systemctl daemon-reload >/dev/null 2>&1 || :
86 /bin/systemctl --no-reload enable \
87 chrony-wait.service chronyd.service >/dev/null 2>&1 || :
91 /bin/systemctl --no-reload disable \
92 chrony-wait.service chronyd.service >/dev/null 2>&1 || :
93 /bin/systemctl stop chrony-wait.service chronyd.service >/dev/null 2>&1 || :
97 /bin/systemctl daemon-reload >/dev/null 2>&1 || :
98 /bin/systemctl try-restart chronyd.service >/dev/null 2>&1 || :
102 package %{name}-debuginfo