2013-01-11 13:21:34 +01:00
|
|
|
|
#
|
2016-03-28 11:36:00 +02:00
|
|
|
|
# spec file for package chrony
|
|
|
|
|
#
|
2021-02-05 12:06:22 +01:00
|
|
|
|
# Copyright (c) 2021 SUSE LLC
|
2016-03-28 11:36:00 +02:00
|
|
|
|
#
|
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
|
# published by the Open Source Initiative.
|
2016-11-29 18:27:19 +01:00
|
|
|
|
|
2018-09-26 13:51:43 +02:00
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2013-01-11 13:21:34 +01:00
|
|
|
|
#
|
|
|
|
|
|
2016-11-29 18:27:19 +01:00
|
|
|
|
|
2021-10-08 18:29:48 +02:00
|
|
|
|
%if 0%{?suse_version} < 1500
|
|
|
|
|
# As of 2021 we still need to be able to build this on SLE12
|
|
|
|
|
%bcond_with pools
|
|
|
|
|
%bcond_with sysusers
|
|
|
|
|
%bcond_with pps
|
|
|
|
|
%else
|
|
|
|
|
%bcond_without pools
|
|
|
|
|
%bcond_without sysusers
|
|
|
|
|
%bcond_without pps
|
|
|
|
|
%endif
|
|
|
|
|
|
2020-11-02 11:16:11 +01:00
|
|
|
|
%bcond_without testsuite
|
|
|
|
|
|
2020-05-01 10:38:23 +02:00
|
|
|
|
%define _systemdutildir %(pkg-config --variable systemdutildir systemd)
|
2021-06-01 15:31:19 +02:00
|
|
|
|
%global clknetsim_ver f89702d
|
2017-11-23 16:11:48 +01:00
|
|
|
|
#Compat macro for new _fillupdir macro introduced in Nov 2017
|
|
|
|
|
%if ! %{defined _fillupdir}
|
2018-02-09 11:21:23 +01:00
|
|
|
|
%define _fillupdir %{_localstatedir}/adm/fillup-templates
|
2017-11-23 16:11:48 +01:00
|
|
|
|
%endif
|
2021-07-01 15:21:41 +02:00
|
|
|
|
%define chrony_helper %{_libexecdir}/chrony/helper
|
2013-01-11 13:21:34 +01:00
|
|
|
|
Name: chrony
|
2021-06-01 15:31:19 +02:00
|
|
|
|
Version: 4.1
|
2013-01-11 13:21:34 +01:00
|
|
|
|
Release: 0
|
2016-04-06 10:53:39 +02:00
|
|
|
|
Summary: System Clock Synchronization Client and Server
|
2018-03-14 17:40:50 +01:00
|
|
|
|
License: GPL-2.0-only
|
2013-01-11 13:21:34 +01:00
|
|
|
|
Group: Productivity/Networking/Other
|
2018-08-02 09:54:01 +02:00
|
|
|
|
URL: https://chrony.tuxfamily.org/
|
2018-08-02 09:42:46 +02:00
|
|
|
|
Source: https://download.tuxfamily.org/chrony/chrony-%{version}.tar.gz
|
2020-09-14 14:52:37 +02:00
|
|
|
|
Source2: chronyd.sysconfig
|
2015-11-26 09:03:25 +01:00
|
|
|
|
Source3: chrony.dhclient
|
|
|
|
|
Source4: chrony.helper
|
|
|
|
|
Source5: chrony-dnssrv@.service
|
|
|
|
|
Source6: chrony-dnssrv@.timer
|
2019-10-23 09:34:11 +02:00
|
|
|
|
Source7: https://download.tuxfamily.org/chrony/chrony-%{version}-tar-gz-asc.txt#/chrony-%{version}.tar.gz.sig
|
2018-10-18 12:14:29 +02:00
|
|
|
|
Source8: chrony.keyring
|
2016-04-06 10:53:39 +02:00
|
|
|
|
# Simulator for test suite
|
|
|
|
|
Source10: https://github.com/mlichvar/clknetsim/archive/%{clknetsim_ver}/clknetsim-%{clknetsim_ver}.tar.gz
|
2018-09-26 13:51:43 +02:00
|
|
|
|
Source11: chrony-tmpfiles
|
2020-06-04 17:25:07 +02:00
|
|
|
|
Source12: pool.conf.suse
|
|
|
|
|
Source13: pool.conf.opensuse
|
2021-06-07 13:01:00 +02:00
|
|
|
|
Source14: system-user-chrony.conf
|
2020-11-02 11:16:11 +01:00
|
|
|
|
Source99: series
|
2013-01-11 13:21:34 +01:00
|
|
|
|
# PATCH-MISSING-TAG -- See http://wiki.opensuse.org/openSUSE:Packaging_Patches_guidelines
|
2016-03-28 11:36:00 +02:00
|
|
|
|
Patch0: chrony-config.patch
|
2016-04-06 10:53:39 +02:00
|
|
|
|
# Add NTP servers from DHCP when starting service
|
2015-11-26 09:03:25 +01:00
|
|
|
|
Patch1: chrony-service-helper.patch
|
2016-04-06 10:53:39 +02:00
|
|
|
|
Patch2: chrony-logrotate.patch
|
2019-03-19 16:55:11 +01:00
|
|
|
|
Patch3: chrony-service-ordering.patch
|
2021-07-01 16:37:51 +02:00
|
|
|
|
Patch4: chrony-refid-internal-md5.patch
|
2021-09-04 17:06:47 +02:00
|
|
|
|
Patch5: harden_chrony-wait.service.patch
|
|
|
|
|
Patch6: harden_chronyd.service.patch
|
2015-11-26 09:03:25 +01:00
|
|
|
|
BuildRequires: NetworkManager-devel
|
|
|
|
|
BuildRequires: bison
|
2021-10-08 18:29:48 +02:00
|
|
|
|
BuildRequires: findutils
|
2016-11-29 18:27:19 +01:00
|
|
|
|
BuildRequires: gcc-c++
|
2020-11-02 11:16:11 +01:00
|
|
|
|
BuildRequires: gnutls-devel
|
2013-01-11 13:21:34 +01:00
|
|
|
|
BuildRequires: libcap-devel
|
2015-11-26 09:03:25 +01:00
|
|
|
|
BuildRequires: libedit-devel
|
2017-02-01 12:44:40 +01:00
|
|
|
|
BuildRequires: pkgconfig
|
2021-10-08 18:29:48 +02:00
|
|
|
|
%if %{with pps}
|
2018-02-09 11:21:23 +01:00
|
|
|
|
BuildRequires: pps-tools-devel
|
2021-10-08 18:29:48 +02:00
|
|
|
|
%endif
|
2016-04-06 10:53:39 +02:00
|
|
|
|
# The timezone package is needed for the "make check" tests. It can be
|
|
|
|
|
# removed if the call to make check is ever deleted.
|
2021-07-01 15:21:41 +02:00
|
|
|
|
BuildRequires: sysuser-tools
|
2016-04-06 10:53:39 +02:00
|
|
|
|
BuildRequires: timezone
|
2017-10-26 13:15:56 +02:00
|
|
|
|
BuildRequires: pkgconfig(systemd)
|
2020-10-29 17:39:05 +01:00
|
|
|
|
Recommends: logrotate
|
2018-03-14 17:40:50 +01:00
|
|
|
|
Requires(post): %fillup_prereq
|
2021-10-08 18:29:48 +02:00
|
|
|
|
%if %{with sysusers}
|
2021-06-07 13:01:00 +02:00
|
|
|
|
%sysusers_requires
|
2021-10-08 18:29:48 +02:00
|
|
|
|
%else
|
|
|
|
|
Requires(pre): %{_sbindir}/useradd
|
|
|
|
|
%endif
|
|
|
|
|
%if %{with pools}
|
2020-06-04 17:25:07 +02:00
|
|
|
|
Requires: %name-pool
|
|
|
|
|
Recommends: %name-pool-nonempty
|
2021-10-08 18:29:48 +02:00
|
|
|
|
%endif
|
2017-02-01 12:44:40 +01:00
|
|
|
|
Provides: ntp-daemon
|
2016-04-06 10:58:31 +02:00
|
|
|
|
%ifarch s390 s390x ppc64le
|
2016-04-06 10:53:39 +02:00
|
|
|
|
BuildRequires: libseccomp-devel >= 2.2.0
|
2016-04-06 10:58:31 +02:00
|
|
|
|
%else
|
|
|
|
|
BuildRequires: libseccomp-devel
|
2015-11-26 09:03:25 +01:00
|
|
|
|
%endif
|
2013-01-11 13:21:34 +01:00
|
|
|
|
|
2010-05-11 23:52:37 +02:00
|
|
|
|
%description
|
2016-04-06 10:53:39 +02:00
|
|
|
|
Chrony is an implementation of the Network Time Protocol (NTP). It can
|
|
|
|
|
synchronize the system clock with NTP servers, reference clocks (e.g. a
|
|
|
|
|
GPS receiver), and manual input using wristwatch and keyboard. It can
|
|
|
|
|
also operate as an NTPv4 (RFC 5905) server and peer to provide a time
|
|
|
|
|
service to other computers in the network.
|
|
|
|
|
|
|
|
|
|
Chrony consists of two programs: chronyd and chronyc.
|
|
|
|
|
|
|
|
|
|
Chronyd is a daemon which runs in the background on the system. It
|
|
|
|
|
obtains measurements of the system clock’s offset relative to time
|
|
|
|
|
servers on other systems via the network and adjusts the system time
|
|
|
|
|
accordingly. For isolated systems, the user can periodically enter the
|
|
|
|
|
correct time by hand (using chronyc). In either case, chronyd
|
|
|
|
|
determines the rate at which the computer gains or loses time, and
|
|
|
|
|
compensates for this. Chronyd can act as either a client or a server.
|
|
|
|
|
|
|
|
|
|
Chronyc provides a user interface to chronyd for monitoring its
|
|
|
|
|
performance and configuring various settings. It can do so while
|
|
|
|
|
running on the same computer as the chronyd instance it is controlling
|
|
|
|
|
or a different computer.
|
2010-05-11 23:52:37 +02:00
|
|
|
|
|
2021-10-08 18:29:48 +02:00
|
|
|
|
%if %{with pools}
|
2020-06-04 17:25:07 +02:00
|
|
|
|
%package pool-suse
|
|
|
|
|
Summary: Chrony preconfiguration for SUSE
|
|
|
|
|
Group: Productivity/Networking/Other
|
|
|
|
|
Provides: %name-pool = %version
|
|
|
|
|
Provides: %name-pool-nonempty
|
2021-06-07 13:01:00 +02:00
|
|
|
|
Conflicts: %name-pool
|
2020-06-04 17:25:07 +02:00
|
|
|
|
Requires: %name = %version
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
RemovePathPostfixes: .suse
|
|
|
|
|
|
|
|
|
|
%description pool-suse
|
|
|
|
|
This package configures chrony to use the SUSE NTP server pool by
|
|
|
|
|
default.
|
|
|
|
|
|
|
|
|
|
%package pool-openSUSE
|
|
|
|
|
Summary: Chrony preconfiguration for openSUSE
|
|
|
|
|
Group: Productivity/Networking/Other
|
|
|
|
|
Provides: %name-pool = %version
|
|
|
|
|
Provides: %name-pool-nonempty
|
2021-06-07 13:01:00 +02:00
|
|
|
|
Conflicts: %name-pool
|
2020-06-04 17:25:07 +02:00
|
|
|
|
Requires: %name = %version
|
|
|
|
|
BuildArch: noarch
|
2021-06-01 15:31:19 +02:00
|
|
|
|
Supplements: (chrony and branding-openSUSE)
|
2020-06-04 17:25:07 +02:00
|
|
|
|
RemovePathPostfixes: .opensuse
|
|
|
|
|
|
|
|
|
|
%description pool-openSUSE
|
|
|
|
|
This package configures chrony to use the openSUSE NTP server pool by
|
|
|
|
|
default.
|
|
|
|
|
|
|
|
|
|
%package pool-empty
|
|
|
|
|
Summary: Empty pool preconfiguration for chrony
|
|
|
|
|
Group: Productivity/Networking/Other
|
|
|
|
|
Provides: %name-pool = %version
|
2021-06-07 13:01:00 +02:00
|
|
|
|
Conflicts: %name-pool
|
2020-06-04 17:25:07 +02:00
|
|
|
|
Requires: %name = %version
|
|
|
|
|
BuildArch: noarch
|
2021-06-01 15:31:19 +02:00
|
|
|
|
Supplements: (chrony and branding-SLE)
|
2020-06-04 17:25:07 +02:00
|
|
|
|
RemovePathPostfixes: .empty
|
|
|
|
|
|
|
|
|
|
%description pool-empty
|
|
|
|
|
This package provides an empty /etc/chrony.d/pool.conf file for
|
|
|
|
|
situations when having servers preconfigured in chrony is undesirable,
|
|
|
|
|
e.g. because the servers will be set via DHCP.
|
|
|
|
|
|
2021-10-08 18:29:48 +02:00
|
|
|
|
%endif
|
|
|
|
|
|
2010-05-11 23:52:37 +02:00
|
|
|
|
%prep
|
2016-04-06 10:53:39 +02:00
|
|
|
|
%setup -q -a 10
|
2016-03-28 11:36:00 +02:00
|
|
|
|
%patch0 -p1
|
2015-11-26 09:03:25 +01:00
|
|
|
|
%patch1 -p1
|
|
|
|
|
%patch2 -p1
|
2019-03-19 16:55:11 +01:00
|
|
|
|
%patch3
|
2021-07-01 16:37:51 +02:00
|
|
|
|
%patch4
|
2021-09-04 17:06:47 +02:00
|
|
|
|
%patch5 -p1
|
2021-10-08 18:29:48 +02:00
|
|
|
|
%patch6
|
2016-04-06 10:53:39 +02:00
|
|
|
|
|
2020-06-04 17:25:07 +02:00
|
|
|
|
# Remove pool statements from the default /etc/chrony.conf. They will
|
|
|
|
|
# be provided by branding packages in /etc/chrony.d/pool.conf .
|
|
|
|
|
|
2017-10-26 10:03:18 +02:00
|
|
|
|
sed -e 's|^\pool|! pool|' \
|
|
|
|
|
< examples/chrony.conf.example2 > chrony.conf
|
2015-11-26 09:03:25 +01:00
|
|
|
|
|
2018-04-18 09:10:17 +02:00
|
|
|
|
cat << EOF >> chrony.conf
|
|
|
|
|
|
|
|
|
|
# Also include any directives found in configuration files in /etc/chrony.d
|
2018-08-02 09:54:01 +02:00
|
|
|
|
include %{_sysconfdir}/chrony.d/*.conf
|
2018-04-18 09:10:17 +02:00
|
|
|
|
EOF
|
|
|
|
|
|
2015-11-26 09:03:25 +01:00
|
|
|
|
touch -r examples/chrony.conf.example2 chrony.conf
|
|
|
|
|
|
|
|
|
|
# regenerate the file from getdate.y
|
|
|
|
|
rm -f getdate.c
|
2010-05-11 23:52:37 +02:00
|
|
|
|
|
2016-04-06 10:53:39 +02:00
|
|
|
|
mv clknetsim-%{clknetsim_ver}* test/simulation/clknetsim
|
|
|
|
|
|
2010-05-11 23:52:37 +02:00
|
|
|
|
%build
|
|
|
|
|
# not autoconf:
|
2015-11-26 09:03:25 +01:00
|
|
|
|
export CFLAGS="%{optflags} -Wall -fpic -DPIC $(pkg-config --cflags libseccomp)"
|
2014-02-25 16:55:43 +01:00
|
|
|
|
export LDFLAGS="-pie -Wl,-z,relro,-z,now"
|
2015-11-26 09:03:25 +01:00
|
|
|
|
%configure \
|
|
|
|
|
--docdir="%{_docdir}/%{name}" \
|
|
|
|
|
--enable-scfilter \
|
|
|
|
|
--with-user=chrony \
|
|
|
|
|
--with-hwclockfile=%{_sysconfdir}/adjtime \
|
2018-08-03 11:17:49 +02:00
|
|
|
|
--with-sendmail=%{_sbindir}/sendmail \
|
|
|
|
|
--enable-ntp-signd
|
2021-10-08 18:29:48 +02:00
|
|
|
|
make %{?_smp_mflags} all
|
|
|
|
|
%if %{with sysusers}
|
2021-06-14 09:05:09 +02:00
|
|
|
|
%sysusers_generate_pre %{SOURCE14} chrony system-user-chrony.conf
|
2021-10-08 18:29:48 +02:00
|
|
|
|
%else
|
|
|
|
|
cat > chrony.pre <<EOF
|
|
|
|
|
%{_sbindir}/groupadd -r chrony >/dev/null 2>&1 || :
|
|
|
|
|
%{_sbindir}/useradd -g chrony -s /bin/false -r -c "Chrony Daemon" \
|
|
|
|
|
-d "%{_localstatedir}/lib/chrony" chrony >/dev/null 2>&1 || :
|
|
|
|
|
EOF
|
|
|
|
|
%endif
|
2010-05-11 23:52:37 +02:00
|
|
|
|
|
|
|
|
|
%install
|
2017-10-26 13:15:56 +02:00
|
|
|
|
%make_install
|
|
|
|
|
install -Dpm 0644 chrony.conf \
|
|
|
|
|
%{buildroot}%{_sysconfdir}/chrony.conf
|
2018-04-18 09:10:17 +02:00
|
|
|
|
mkdir %{buildroot}%{_sysconfdir}/chrony.d
|
2017-10-26 13:15:56 +02:00
|
|
|
|
install -Dpm 0640 examples/chrony.keys.example \
|
|
|
|
|
%{buildroot}%{_sysconfdir}/chrony.keys
|
2020-11-02 11:16:11 +01:00
|
|
|
|
install -Dpm 0755 examples/chrony.nm-dispatcher.onoffline \
|
2017-10-26 13:15:56 +02:00
|
|
|
|
%{buildroot}%{_sysconfdir}/NetworkManager/dispatcher.d/20-chrony
|
|
|
|
|
install -Dpm 0755 %{SOURCE3} \
|
|
|
|
|
%{buildroot}%{_sysconfdir}/dhcp/dhclient.d/chrony.sh
|
|
|
|
|
install -Dpm 0644 examples/chrony.logrotate \
|
|
|
|
|
%{buildroot}%{_sysconfdir}/logrotate.d/chrony
|
|
|
|
|
install -Dpm 0644 examples/chronyd.service \
|
|
|
|
|
%{buildroot}%{_unitdir}/chronyd.service
|
|
|
|
|
install -Dpm 0644 examples/chrony-wait.service \
|
|
|
|
|
%{buildroot}%{_unitdir}/chrony-wait.service
|
|
|
|
|
install -Dpm 0644 %{SOURCE5} \
|
|
|
|
|
%{buildroot}%{_unitdir}/chrony-dnssrv@.service
|
|
|
|
|
install -Dpm 0644 %{SOURCE6} \
|
|
|
|
|
%{buildroot}%{_unitdir}/chrony-dnssrv@.timer
|
2018-09-26 13:51:43 +02:00
|
|
|
|
install -Dpm 0644 %{SOURCE11} \
|
|
|
|
|
%{buildroot}%{_tmpfilesdir}/%{name}.conf
|
2017-10-26 13:15:56 +02:00
|
|
|
|
|
2019-11-04 13:38:19 +01:00
|
|
|
|
install -d %{buildroot}%{_sbindir}
|
2017-10-26 13:15:56 +02:00
|
|
|
|
ln -s %{_sbindir}/service %{buildroot}%{_sbindir}/rcchronyd
|
|
|
|
|
ln -s %{_sbindir}/service %{buildroot}%{_sbindir}/rcchrony-wait
|
|
|
|
|
|
2020-05-01 10:38:23 +02:00
|
|
|
|
install -d %{buildroot}%{_systemdutildir}/ntp-units.d
|
2015-11-26 09:03:25 +01:00
|
|
|
|
echo 'chronyd.service' > \
|
2020-05-01 10:38:23 +02:00
|
|
|
|
%{buildroot}%{_systemdutildir}/ntp-units.d/50-chronyd.list
|
2010-05-11 23:52:37 +02:00
|
|
|
|
|
2017-10-26 13:15:56 +02:00
|
|
|
|
install -Dpm 0644 %{SOURCE2} \
|
2020-09-14 14:52:37 +02:00
|
|
|
|
%{buildroot}%{_fillupdir}/sysconfig.chronyd
|
2021-07-01 15:21:41 +02:00
|
|
|
|
install -Dpm 755 %{SOURCE4} %{buildroot}%{chrony_helper}
|
2010-05-11 23:52:37 +02:00
|
|
|
|
|
2017-10-26 13:15:56 +02:00
|
|
|
|
install -d %{buildroot}%{_localstatedir}/log/chrony
|
2015-11-26 09:03:25 +01:00
|
|
|
|
touch %{buildroot}%{_localstatedir}/lib/chrony/{drift,rtc}
|
2012-01-18 10:23:10 +01:00
|
|
|
|
|
2021-10-08 18:29:48 +02:00
|
|
|
|
%if %{with pools}
|
2020-06-04 17:25:07 +02:00
|
|
|
|
# Install the NTP pool files
|
|
|
|
|
install -Dpm 644 %{SOURCE12} %{SOURCE13} %{buildroot}/etc/chrony.d
|
2021-10-08 18:29:48 +02:00
|
|
|
|
echo '# Add ntp pools here' > %{buildroot}/etc/chrony.d/pool.conf.empty
|
|
|
|
|
%endif
|
2020-06-04 17:25:07 +02:00
|
|
|
|
|
2021-06-07 13:01:00 +02:00
|
|
|
|
mkdir -p %{buildroot}%{_sysusersdir}
|
|
|
|
|
install -m 0644 %{SOURCE14} %{buildroot}%{_sysusersdir}/
|
|
|
|
|
|
2021-10-08 18:29:48 +02:00
|
|
|
|
find %{buildroot} -type f | xargs sed -i 's-@CHRONY_HELPER@-%{chrony_helper}-g'
|
|
|
|
|
|
2020-11-02 11:16:11 +01:00
|
|
|
|
%if %{with testsuite}
|
2018-08-03 11:17:49 +02:00
|
|
|
|
%ifnarch %ix86
|
2016-04-06 10:53:39 +02:00
|
|
|
|
%check
|
|
|
|
|
# Set random seed to get deterministic results
|
|
|
|
|
export CLKNETSIM_RANDOM_SEED=24501
|
2018-08-03 11:17:49 +02:00
|
|
|
|
export CFLAGS="%{optflags}"
|
2016-04-06 10:53:39 +02:00
|
|
|
|
make %{?_smp_mflags} -C test/simulation/clknetsim
|
2017-10-26 13:15:56 +02:00
|
|
|
|
make %{?_smp_mflags} check
|
2018-08-03 11:17:49 +02:00
|
|
|
|
%endif
|
2020-11-02 11:16:11 +01:00
|
|
|
|
%endif
|
2016-04-06 10:53:39 +02:00
|
|
|
|
|
2021-06-07 13:01:00 +02:00
|
|
|
|
%pre -f chrony.pre
|
2016-04-08 10:42:30 +02:00
|
|
|
|
%service_add_pre chronyd.service chrony-wait.service
|
2010-05-11 23:52:37 +02:00
|
|
|
|
|
|
|
|
|
%preun
|
2016-04-08 10:42:30 +02:00
|
|
|
|
%service_del_preun chronyd.service chrony-wait.service
|
2015-11-26 09:03:25 +01:00
|
|
|
|
|
|
|
|
|
%post
|
2018-12-14 11:02:44 +01:00
|
|
|
|
%fillup_only -n chronyd
|
2018-09-26 13:51:43 +02:00
|
|
|
|
%tmpfiles_create %{name}.conf
|
2016-04-08 10:42:30 +02:00
|
|
|
|
%service_add_post chronyd.service chrony-wait.service
|
2010-05-11 23:52:37 +02:00
|
|
|
|
|
|
|
|
|
%postun
|
2016-04-08 10:42:30 +02:00
|
|
|
|
%service_del_postun chronyd.service chrony-wait.service
|
2010-05-11 23:52:37 +02:00
|
|
|
|
|
|
|
|
|
%files
|
2021-10-08 18:29:48 +02:00
|
|
|
|
%defattr(-,root,root)
|
|
|
|
|
%if 0%{?suse_version} >= 1500
|
2018-03-30 11:49:35 +02:00
|
|
|
|
%license COPYING
|
2021-10-08 18:29:48 +02:00
|
|
|
|
%else
|
|
|
|
|
%doc COPYING
|
|
|
|
|
%endif
|
2018-03-30 11:49:35 +02:00
|
|
|
|
%doc FAQ NEWS README
|
2010-05-11 23:52:37 +02:00
|
|
|
|
%doc examples
|
2016-03-28 11:36:00 +02:00
|
|
|
|
%config(noreplace) %attr(0640,root,%{name}) %{_sysconfdir}/chrony.conf
|
2015-11-26 09:03:25 +01:00
|
|
|
|
%config(noreplace) %attr(0640,root,%{name}) %verify(not md5 size mtime) %{_sysconfdir}/chrony.keys
|
2016-03-28 11:36:00 +02:00
|
|
|
|
%config(noreplace) %{_sysconfdir}/logrotate.d/chrony
|
2015-11-26 09:03:25 +01:00
|
|
|
|
%{_sysconfdir}/NetworkManager/dispatcher.d/20-chrony
|
2018-04-18 09:10:17 +02:00
|
|
|
|
%dir %{_sysconfdir}/chrony.d/
|
2015-11-26 09:03:25 +01:00
|
|
|
|
%dir %{_sysconfdir}/dhcp/
|
|
|
|
|
%dir %{_sysconfdir}/dhcp/dhclient.d/
|
|
|
|
|
%{_sysconfdir}/dhcp/dhclient.d/chrony.sh
|
2021-06-07 13:01:00 +02:00
|
|
|
|
%{_sysusersdir}/system-user-chrony.conf
|
2010-05-11 23:52:37 +02:00
|
|
|
|
%{_bindir}/chronyc
|
|
|
|
|
%{_sbindir}/chronyd
|
2018-12-20 18:43:50 +01:00
|
|
|
|
%{_libexecdir}/%name
|
2018-08-02 09:54:01 +02:00
|
|
|
|
%{_mandir}/man1/chronyc.1%{?ext_man}
|
|
|
|
|
%{_mandir}/man5/chrony.conf.5%{?ext_man}
|
|
|
|
|
%{_mandir}/man8/chronyd.8%{?ext_man}
|
2020-05-01 10:38:23 +02:00
|
|
|
|
%{_systemdutildir}/ntp-units.d/*.list
|
2015-11-26 09:03:25 +01:00
|
|
|
|
%{_unitdir}/chrony*.service
|
|
|
|
|
%{_unitdir}/chrony*.timer
|
|
|
|
|
%{_sbindir}/rcchrony*
|
2018-09-26 13:51:43 +02:00
|
|
|
|
%{_tmpfilesdir}/%{name}.conf
|
2020-09-14 14:52:37 +02:00
|
|
|
|
%{_fillupdir}/sysconfig.chronyd
|
2016-03-28 11:36:00 +02:00
|
|
|
|
%dir %attr(750,chrony,chrony) %{_localstatedir}/lib/chrony
|
2015-11-26 09:03:25 +01:00
|
|
|
|
%ghost %attr(640,chrony,chrony) %{_localstatedir}/lib/chrony/drift
|
|
|
|
|
%ghost %attr(640,chrony,chrony) %{_localstatedir}/lib/chrony/rtc
|
2016-03-28 11:36:00 +02:00
|
|
|
|
%dir %attr(750,chrony,chrony) %{_localstatedir}/log/chrony
|
2018-12-06 08:43:49 +01:00
|
|
|
|
%ghost %attr(0750, %{name}, %{name}) %{_rundir}/%{name}
|
2010-05-11 23:52:37 +02:00
|
|
|
|
|
2021-10-08 18:29:48 +02:00
|
|
|
|
%if %{with pools}
|
2020-06-04 17:25:07 +02:00
|
|
|
|
%files pool-empty
|
2021-10-08 18:29:48 +02:00
|
|
|
|
%attr(-,root,root)%config (noreplace) /etc/chrony.d/pool.conf.empty
|
2020-06-04 17:25:07 +02:00
|
|
|
|
|
|
|
|
|
%files pool-suse
|
2021-10-08 18:29:48 +02:00
|
|
|
|
%attr(-,root,root)%config (noreplace) /etc/chrony.d/pool.conf.suse
|
2020-06-04 17:25:07 +02:00
|
|
|
|
|
|
|
|
|
%files pool-openSUSE
|
2021-10-08 18:29:48 +02:00
|
|
|
|
%attr(-,root,root)%config (noreplace) /etc/chrony.d/pool.conf.opensuse
|
|
|
|
|
%endif
|
2020-06-04 17:25:07 +02:00
|
|
|
|
|
2010-05-11 23:52:37 +02:00
|
|
|
|
%changelog
|