|
@@ -1,6 +1,6 @@
|
|
Name: chrony
|
|
Name: chrony
|
|
-Version: 2.2.1
|
|
|
|
-Release: 2%{?_dist_release}
|
|
|
|
|
|
+Version: 3.0
|
|
|
|
+Release: 1%{?_dist_release}
|
|
Summary: An NTP client/server
|
|
Summary: An NTP client/server
|
|
|
|
|
|
Group: System Environment/Daemons
|
|
Group: System Environment/Daemons
|
|
@@ -12,13 +12,16 @@ Source2: chrony.dhclient
|
|
Source3: chronyd.sysconfig
|
|
Source3: chronyd.sysconfig
|
|
Source4: chronyd.init
|
|
Source4: chronyd.init
|
|
Source5: chrony.logrotate
|
|
Source5: chrony.logrotate
|
|
|
|
+# Debian's patches
|
|
|
|
+Patch101: fix_time_smoothing_in_interleaved_mode.patch
|
|
|
|
+
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
|
|
|
-BuildRequires: libcap-devel readline-devel ncurses-devel bison texinfo
|
|
|
|
|
|
+BuildRequires: libcap-devel readline-devel ncurses-devel bison
|
|
|
|
|
|
Requires(pre): shadow-utils
|
|
Requires(pre): shadow-utils
|
|
-Requires(post): chkconfig info
|
|
|
|
-Requires(preun): chkconfig initscripts info
|
|
|
|
|
|
+Requires(post): chkconfig
|
|
|
|
+Requires(preun): chkconfig initscripts
|
|
Requires(postun): initscripts
|
|
Requires(postun): initscripts
|
|
|
|
|
|
Obsoletes: ntp < 4.2.6p5
|
|
Obsoletes: ntp < 4.2.6p5
|
|
@@ -37,6 +40,7 @@ clocks, system real-time clock or manual input as time references.
|
|
|
|
|
|
%prep
|
|
%prep
|
|
%setup -q -n %{name}-%{version}%{?prerelease}
|
|
%setup -q -n %{name}-%{version}%{?prerelease}
|
|
|
|
+%patch101 -p1
|
|
|
|
|
|
echo '# Keys used by chronyd for command and NTP authentication' > chrony.keys
|
|
echo '# Keys used by chronyd for command and NTP authentication' > chrony.keys
|
|
|
|
|
|
@@ -97,15 +101,12 @@ getent passwd chrony > /dev/null || /usr/sbin/useradd -r -g chrony \
|
|
|
|
|
|
%post
|
|
%post
|
|
/sbin/chkconfig --add chronyd
|
|
/sbin/chkconfig --add chronyd
|
|
-/sbin/install-info %{_infodir}/chrony.info.gz %{_infodir}/dir &> /dev/null
|
|
|
|
:
|
|
:
|
|
|
|
|
|
%preun
|
|
%preun
|
|
if [ "$1" -eq 0 ]; then
|
|
if [ "$1" -eq 0 ]; then
|
|
/sbin/service chronyd stop &> /dev/null
|
|
/sbin/service chronyd stop &> /dev/null
|
|
/sbin/chkconfig --del chronyd
|
|
/sbin/chkconfig --del chronyd
|
|
- /sbin/install-info --delete %{_infodir}/chrony.info.gz \
|
|
|
|
- %{_infodir}/dir &> /dev/null
|
|
|
|
fi
|
|
fi
|
|
:
|
|
:
|
|
|
|
|
|
@@ -117,7 +118,7 @@ fi
|
|
|
|
|
|
%files
|
|
%files
|
|
%defattr(-,root,root,-)
|
|
%defattr(-,root,root,-)
|
|
-%doc COPYING FAQ NEWS README chrony.txt examples/*
|
|
|
|
|
|
+%doc COPYING FAQ NEWS README examples/*
|
|
%config(noreplace) %{_sysconfdir}/chrony.conf
|
|
%config(noreplace) %{_sysconfdir}/chrony.conf
|
|
%config(noreplace) %verify(not md5 size mtime) %attr(640,root,chrony) %{_sysconfdir}/chrony.keys
|
|
%config(noreplace) %verify(not md5 size mtime) %attr(640,root,chrony) %{_sysconfdir}/chrony.keys
|
|
%config(noreplace) %{_sysconfdir}/sysconfig/chronyd
|
|
%config(noreplace) %{_sysconfdir}/sysconfig/chronyd
|
|
@@ -127,7 +128,6 @@ fi
|
|
%{_sysconfdir}/dhcp/dhclient.d/chrony.sh
|
|
%{_sysconfdir}/dhcp/dhclient.d/chrony.sh
|
|
%{_bindir}/chronyc
|
|
%{_bindir}/chronyc
|
|
%{_sbindir}/chronyd
|
|
%{_sbindir}/chronyd
|
|
-%{_infodir}/chrony.info*
|
|
|
|
%{_mandir}/man[158]/%{name}*.[158]*
|
|
%{_mandir}/man[158]/%{name}*.[158]*
|
|
%dir %attr(-,chrony,chrony) %{_localstatedir}/lib/chrony
|
|
%dir %attr(-,chrony,chrony) %{_localstatedir}/lib/chrony
|
|
%ghost %attr(-,chrony,chrony) %{_localstatedir}/lib/chrony/drift
|
|
%ghost %attr(-,chrony,chrony) %{_localstatedir}/lib/chrony/drift
|
|
@@ -135,6 +135,15 @@ fi
|
|
%dir %attr(-,chrony,chrony) %{_localstatedir}/log/chrony
|
|
%dir %attr(-,chrony,chrony) %{_localstatedir}/log/chrony
|
|
|
|
|
|
%changelog
|
|
%changelog
|
|
|
|
+* Thu May 18 2017 IWAI, Masaharu <iwaim.sub@gmail.com> 3.0-1
|
|
|
|
+- update to 3.0
|
|
|
|
+- add patch to fix time smoothing in interleaved mode (Patch101); from Debian 3.0-4
|
|
|
|
+- drop chrony.txt in %%doc; upstream dropped
|
|
|
|
+- drop info file; upstream dropped
|
|
|
|
+ - drop R: info
|
|
|
|
+ - drop BR: texinfo
|
|
|
|
+ - drop scripts for info
|
|
|
|
+
|
|
* Mon Jul 11 2016 IWAI, Masaharu <iwaim.sub@gmail.com> 2.2.1-2
|
|
* Mon Jul 11 2016 IWAI, Masaharu <iwaim.sub@gmail.com> 2.2.1-2
|
|
- Obsoletes: networkmanager-dispatcher-chrony
|
|
- Obsoletes: networkmanager-dispatcher-chrony
|
|
|
|
|