|
|
@ -1,5 +1,5 @@
|
|
|
|
%global _hardened_build 1
|
|
|
|
%global _hardened_build 1
|
|
|
|
%global clknetsim_ver 824c48
|
|
|
|
%global clknetsim_ver f00531
|
|
|
|
%bcond_without debug
|
|
|
|
%bcond_without debug
|
|
|
|
%bcond_without nts
|
|
|
|
%bcond_without nts
|
|
|
|
|
|
|
|
|
|
|
@ -8,7 +8,7 @@
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
Name: chrony
|
|
|
|
Name: chrony
|
|
|
|
Version: 4.2
|
|
|
|
Version: 4.3
|
|
|
|
Release: 1%{?dist}
|
|
|
|
Release: 1%{?dist}
|
|
|
|
Summary: An NTP client/server
|
|
|
|
Summary: An NTP client/server
|
|
|
|
|
|
|
|
|
|
|
@ -18,14 +18,13 @@ Source0: https://download.tuxfamily.org/chrony/chrony-%{version}%{?prerel
|
|
|
|
Source1: https://download.tuxfamily.org/chrony/chrony-%{version}%{?prerelease}-tar-gz-asc.txt
|
|
|
|
Source1: https://download.tuxfamily.org/chrony/chrony-%{version}%{?prerelease}-tar-gz-asc.txt
|
|
|
|
Source2: https://chrony.tuxfamily.org/gpgkey-8F375C7E8D0EE125A3D3BD51537E2B76F7680DAC.asc
|
|
|
|
Source2: https://chrony.tuxfamily.org/gpgkey-8F375C7E8D0EE125A3D3BD51537E2B76F7680DAC.asc
|
|
|
|
Source3: chrony.dhclient
|
|
|
|
Source3: chrony.dhclient
|
|
|
|
|
|
|
|
Source4: chrony.sysusers
|
|
|
|
# simulator for test suite
|
|
|
|
# simulator for test suite
|
|
|
|
Source10: https://github.com/mlichvar/clknetsim/archive/%{clknetsim_ver}/clknetsim-%{clknetsim_ver}.tar.gz
|
|
|
|
Source10: https://github.com/mlichvar/clknetsim/archive/%{clknetsim_ver}/clknetsim-%{clknetsim_ver}.tar.gz
|
|
|
|
%{?gitpatch:Patch0: chrony-%{version}%{?prerelease}-%{gitpatch}.patch.gz}
|
|
|
|
%{?gitpatch:Patch0: chrony-%{version}%{?prerelease}-%{gitpatch}.patch.gz}
|
|
|
|
|
|
|
|
|
|
|
|
# add IPv6 support and distribution-specific bits to DHCP dispatcher
|
|
|
|
# add distribution-specific bits to DHCP dispatcher
|
|
|
|
Patch1: chrony-nm-dispatcher-dhcp.patch
|
|
|
|
Patch1: chrony-nm-dispatcher-dhcp.patch
|
|
|
|
# update seccomp filter for new glibc
|
|
|
|
|
|
|
|
Patch2: chrony-seccomp.patch
|
|
|
|
|
|
|
|
# revert some hardening options in service files
|
|
|
|
# revert some hardening options in service files
|
|
|
|
Patch3: chrony-services.patch
|
|
|
|
Patch3: chrony-services.patch
|
|
|
|
|
|
|
|
|
|
|
@ -34,8 +33,8 @@ BuildRequires: gcc gcc-c++ make bison systemd gnupg2
|
|
|
|
%{?with_nts:BuildRequires: gnutls-utils}
|
|
|
|
%{?with_nts:BuildRequires: gnutls-utils}
|
|
|
|
%{?with_seccomp:BuildRequires: libseccomp-devel}
|
|
|
|
%{?with_seccomp:BuildRequires: libseccomp-devel}
|
|
|
|
|
|
|
|
|
|
|
|
Requires(pre): shadow-utils
|
|
|
|
|
|
|
|
%{?systemd_requires}
|
|
|
|
%{?systemd_requires}
|
|
|
|
|
|
|
|
%{?sysusers_requires_compat}
|
|
|
|
|
|
|
|
|
|
|
|
# Old NetworkManager expects the dispatcher scripts in a different place
|
|
|
|
# Old NetworkManager expects the dispatcher scripts in a different place
|
|
|
|
Conflicts: NetworkManager < 1.20
|
|
|
|
Conflicts: NetworkManager < 1.20
|
|
|
@ -59,7 +58,6 @@ service to other computers in the network.
|
|
|
|
%setup -q -n %{name}-%{version}%{?prerelease} -a 10
|
|
|
|
%setup -q -n %{name}-%{version}%{?prerelease} -a 10
|
|
|
|
%{?gitpatch:%patch0 -p1}
|
|
|
|
%{?gitpatch:%patch0 -p1}
|
|
|
|
%patch1 -p1 -b .nm-dispatcher-dhcp
|
|
|
|
%patch1 -p1 -b .nm-dispatcher-dhcp
|
|
|
|
%patch2 -p1 -b .seccomp
|
|
|
|
|
|
|
|
%patch3 -p1 -b .services
|
|
|
|
%patch3 -p1 -b .services
|
|
|
|
|
|
|
|
|
|
|
|
%{?gitpatch: echo %{version}-%{gitpatch} > version.txt}
|
|
|
|
%{?gitpatch: echo %{version}-%{gitpatch} > version.txt}
|
|
|
@ -123,6 +121,7 @@ mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/{sysconfig,logrotate.d}
|
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/{lib,log}/chrony
|
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/{lib,log}/chrony
|
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/dhcp/dhclient.d
|
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/dhcp/dhclient.d
|
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_libexecdir}
|
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_libexecdir}
|
|
|
|
|
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_sysusersdir}
|
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_prefix}/lib/NetworkManager/dispatcher.d
|
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_prefix}/lib/NetworkManager/dispatcher.d
|
|
|
|
mkdir -p $RPM_BUILD_ROOT{%{_unitdir},%{_prefix}/lib/systemd/ntp-units.d}
|
|
|
|
mkdir -p $RPM_BUILD_ROOT{%{_unitdir},%{_prefix}/lib/systemd/ntp-units.d}
|
|
|
|
|
|
|
|
|
|
|
@ -143,6 +142,8 @@ install -m 755 -p examples/chrony.nm-dispatcher.dhcp \
|
|
|
|
$RPM_BUILD_ROOT%{_prefix}/lib/NetworkManager/dispatcher.d/20-chrony-dhcp
|
|
|
|
$RPM_BUILD_ROOT%{_prefix}/lib/NetworkManager/dispatcher.d/20-chrony-dhcp
|
|
|
|
install -m 644 -p examples/chrony-wait.service \
|
|
|
|
install -m 644 -p examples/chrony-wait.service \
|
|
|
|
$RPM_BUILD_ROOT%{_unitdir}/chrony-wait.service
|
|
|
|
$RPM_BUILD_ROOT%{_unitdir}/chrony-wait.service
|
|
|
|
|
|
|
|
install -m 644 -p %{SOURCE4} \
|
|
|
|
|
|
|
|
$RPM_BUILD_ROOT%{_sysusersdir}/chrony.conf
|
|
|
|
|
|
|
|
|
|
|
|
cat > $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/chronyd <<EOF
|
|
|
|
cat > $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/chronyd <<EOF
|
|
|
|
# Command-line options for chronyd
|
|
|
|
# Command-line options for chronyd
|
|
|
@ -161,9 +162,7 @@ export CLKNETSIM_RANDOM_SEED=24505
|
|
|
|
make quickcheck
|
|
|
|
make quickcheck
|
|
|
|
|
|
|
|
|
|
|
|
%pre
|
|
|
|
%pre
|
|
|
|
getent group chrony > /dev/null || /usr/sbin/groupadd -r chrony
|
|
|
|
%sysusers_create_compat %{SOURCE4}
|
|
|
|
getent passwd chrony > /dev/null || /usr/sbin/useradd -r -g chrony \
|
|
|
|
|
|
|
|
-d %{_localstatedir}/lib/chrony -s /sbin/nologin chrony
|
|
|
|
|
|
|
|
:
|
|
|
|
:
|
|
|
|
|
|
|
|
|
|
|
|
%post
|
|
|
|
%post
|
|
|
@ -199,6 +198,7 @@ fi
|
|
|
|
%{_prefix}/lib/NetworkManager
|
|
|
|
%{_prefix}/lib/NetworkManager
|
|
|
|
%{_prefix}/lib/systemd/ntp-units.d/*.list
|
|
|
|
%{_prefix}/lib/systemd/ntp-units.d/*.list
|
|
|
|
%{_unitdir}/chrony*.service
|
|
|
|
%{_unitdir}/chrony*.service
|
|
|
|
|
|
|
|
%{_sysusersdir}/chrony.conf
|
|
|
|
%{_mandir}/man[158]/%{name}*.[158]*
|
|
|
|
%{_mandir}/man[158]/%{name}*.[158]*
|
|
|
|
%dir %attr(750,chrony,chrony) %{_localstatedir}/lib/chrony
|
|
|
|
%dir %attr(750,chrony,chrony) %{_localstatedir}/lib/chrony
|
|
|
|
%ghost %attr(-,chrony,chrony) %{_localstatedir}/lib/chrony/drift
|
|
|
|
%ghost %attr(-,chrony,chrony) %{_localstatedir}/lib/chrony/drift
|
|
|
@ -206,6 +206,10 @@ fi
|
|
|
|
%dir %attr(750,chrony,chrony) %{_localstatedir}/log/chrony
|
|
|
|
%dir %attr(750,chrony,chrony) %{_localstatedir}/log/chrony
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
%changelog
|
|
|
|
|
|
|
|
* Wed Oct 12 2022 Miroslav Lichvar <mlichvar@redhat.com> 4.3-1
|
|
|
|
|
|
|
|
- update to 4.3 (#2133754)
|
|
|
|
|
|
|
|
- add sysusers.d fragment for chrony user/group (#2095374)
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Mar 23 2022 Miroslav Lichvar <mlichvar@redhat.com> 4.2-1
|
|
|
|
* Wed Mar 23 2022 Miroslav Lichvar <mlichvar@redhat.com> 4.2-1
|
|
|
|
- update to 4.2 (#2051441)
|
|
|
|
- update to 4.2 (#2051441)
|
|
|
|
- fully switch from nettle to gnutls (#1953463 #1954483)
|
|
|
|
- fully switch from nettle to gnutls (#1953463 #1954483)
|
|
|
|