|
|
9709697 |
Name: chrony
|
|
|
4bf7c39 |
Version: 1.25
|
|
|
4bf7c39 |
Release: 1%{?gitpatch}%{?dist}
|
|
|
9709697 |
Summary: An NTP client/server
|
|
|
9709697 |
|
|
|
9709697 |
Group: System Environment/Daemons
|
|
|
9709697 |
License: GPLv2
|
|
|
da5bf79 |
URL: http://chrony.tuxfamily.org
|
|
|
da5bf79 |
Source0: http://download.tuxfamily.org/chrony/chrony-%{version}%{?prerelease}.tar.gz
|
|
|
9709697 |
Source1: chrony.conf
|
|
|
9709697 |
Source2: chrony.keys
|
|
|
9709697 |
Source3: chronyd.sysconfig
|
|
|
9709697 |
Source4: chronyd.init
|
|
|
9709697 |
Source5: chrony.logrotate
|
|
|
3189232 |
# wget -O timepps.h 'http://gitweb.enneenne.com/?p=linuxpps;a=blob_plain;f=Documentation/pps/timepps.h;hb=b895b1a28558b83907c691aad231c41a0d14df88'
|
|
|
3189232 |
Source6: timepps.h
|
|
|
09dcbba |
Source7: chrony.nm-dispatcher
|
|
|
09dcbba |
Source8: chrony.dhclient
|
|
|
4bf7c39 |
%{?gitpatch:Patch0: chrony-%{version}-%{gitpatch}.patch.gz}
|
|
|
9709697 |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
9709697 |
|
|
|
5e51703 |
BuildRequires: libcap-devel libedit-devel bison texinfo
|
|
|
9709697 |
|
|
|
9709697 |
Requires(pre): shadow-utils
|
|
|
6b816e5 |
Requires(post): chkconfig info
|
|
|
6b816e5 |
Requires(preun): chkconfig initscripts info
|
|
|
6b816e5 |
Requires(postun): initscripts
|
|
|
9709697 |
|
|
|
9709697 |
%description
|
|
|
9709697 |
A client/server for the Network Time Protocol, this program keeps your
|
|
|
9709697 |
computer's clock accurate. It was specially designed to support
|
|
|
c0a25cf |
systems with intermittent internet connections, but it also works well
|
|
|
11992d0 |
in permanently connected environments. It can use also hardware reference
|
|
|
11992d0 |
clocks, system real-time clock or manual input as time references.
|
|
|
9709697 |
|
|
|
9709697 |
%prep
|
|
|
da5bf79 |
%setup -q -n %{name}-%{version}%{?prerelease}
|
|
|
3189232 |
mkdir pps; cp -p %{SOURCE6} pps
|
|
|
4bf7c39 |
%{?gitpatch:%patch0 -p1}
|
|
|
09dcbba |
|
|
|
09dcbba |
%{?gitpatch: echo %{version}-%{gitpatch} > version.txt}
|
|
|
9709697 |
|
|
|
9709697 |
%build
|
|
|
b190c45 |
CFLAGS="$RPM_OPT_FLAGS"
|
|
|
b190c45 |
%ifarch %{sparc}
|
|
|
b190c45 |
CFLAGS="$CFLAGS -pie -fPIE"
|
|
|
b190c45 |
%else
|
|
|
b190c45 |
CFLAGS="$CFLAGS -pie -fpie"
|
|
|
b190c45 |
%endif
|
|
|
b190c45 |
export CFLAGS
|
|
|
3189232 |
export CPPFLAGS="-Ipps"
|
|
|
50c9373 |
export LDFLAGS="-Wl,-z,relro,-z,now"
|
|
|
b190c45 |
|
|
|
4bf7c39 |
%configure --docdir=%{_docdir} --enable-forcednsretry
|
|
|
da5bf79 |
make %{?_smp_mflags} getdate all docs
|
|
|
9709697 |
|
|
|
9709697 |
%install
|
|
|
9709697 |
rm -rf $RPM_BUILD_ROOT
|
|
|
9709697 |
|
|
|
da5bf79 |
make install install-docs DESTDIR=$RPM_BUILD_ROOT
|
|
|
da5bf79 |
|
|
|
da5bf79 |
rm -rf $RPM_BUILD_ROOT%{_docdir}
|
|
|
da5bf79 |
|
|
|
9709697 |
mkdir -p $RPM_BUILD_ROOT{%{_sysconfdir}/{sysconfig,logrotate.d},%{_initrddir}}
|
|
|
9709697 |
mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/{lib,log}/chrony
|
|
|
09dcbba |
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/NetworkManager/dispatcher.d
|
|
|
09dcbba |
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/dhcp/dhclient.d
|
|
|
9709697 |
|
|
|
9709697 |
install -m 644 -p %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/chrony.conf
|
|
|
9709697 |
install -m 640 -p %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/chrony.keys
|
|
|
9709697 |
install -m 644 -p %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/chronyd
|
|
|
9709697 |
install -m 755 -p %{SOURCE4} $RPM_BUILD_ROOT%{_initrddir}/chronyd
|
|
|
9709697 |
install -m 644 -p %{SOURCE5} $RPM_BUILD_ROOT%{_sysconfdir}/logrotate.d/chrony
|
|
|
09dcbba |
install -m 755 -p %{SOURCE7} \
|
|
|
09dcbba |
$RPM_BUILD_ROOT%{_sysconfdir}/NetworkManager/dispatcher.d/20-chrony
|
|
|
09dcbba |
install -m 755 -p %{SOURCE8} \
|
|
|
09dcbba |
$RPM_BUILD_ROOT%{_sysconfdir}/dhcp/dhclient.d/chrony.sh
|
|
|
9709697 |
|
|
|
9709697 |
touch $RPM_BUILD_ROOT%{_localstatedir}/lib/chrony/{drift,rtc}
|
|
|
9709697 |
|
|
|
9709697 |
%clean
|
|
|
9709697 |
rm -rf $RPM_BUILD_ROOT
|
|
|
9709697 |
|
|
|
9709697 |
%pre
|
|
|
9709697 |
getent group chrony > /dev/null || /usr/sbin/groupadd -r chrony
|
|
|
9709697 |
getent passwd chrony > /dev/null || /usr/sbin/useradd -r -g chrony \
|
|
|
9709697 |
-d %{_localstatedir}/lib/chrony -s /sbin/nologin chrony
|
|
|
9709697 |
:
|
|
|
9709697 |
|
|
|
9709697 |
%post
|
|
|
9709697 |
/sbin/chkconfig --add chronyd
|
|
|
f1cf055 |
/sbin/install-info %{_infodir}/chrony.info.gz %{_infodir}/dir &> /dev/null
|
|
|
9709697 |
:
|
|
|
9709697 |
|
|
|
9709697 |
%preun
|
|
|
9709697 |
if [ "$1" -eq 0 ]; then
|
|
|
9709697 |
/sbin/service chronyd stop &> /dev/null
|
|
|
9709697 |
/sbin/chkconfig --del chronyd
|
|
|
f1cf055 |
/sbin/install-info --delete %{_infodir}/chrony.info.gz \
|
|
|
f1cf055 |
%{_infodir}/dir &> /dev/null
|
|
|
9709697 |
fi
|
|
|
9709697 |
:
|
|
|
9709697 |
|
|
|
9709697 |
%postun
|
|
|
9709697 |
if [ "$1" -ge 1 ]; then
|
|
|
9709697 |
/sbin/service chronyd condrestart &> /dev/null
|
|
|
9709697 |
fi
|
|
|
9709697 |
:
|
|
|
9709697 |
|
|
|
9709697 |
%files
|
|
|
9709697 |
%defattr(-,root,root,-)
|
|
|
9709697 |
%doc COPYING NEWS README chrony.txt faq.txt examples/*
|
|
|
9709697 |
%config(noreplace) %{_sysconfdir}/chrony.conf
|
|
|
09dcbba |
%config(noreplace) %verify(not md5 size mtime) %attr(640,root,chrony) %{_sysconfdir}/chrony.keys
|
|
|
9709697 |
%config(noreplace) %{_sysconfdir}/sysconfig/chronyd
|
|
|
9709697 |
%config(noreplace) %{_sysconfdir}/logrotate.d/chrony
|
|
|
09dcbba |
%{_sysconfdir}/NetworkManager/dispatcher.d/20-chrony
|
|
|
09dcbba |
%{_sysconfdir}/dhcp/dhclient.d/chrony.sh
|
|
|
9709697 |
%{_initrddir}/chronyd
|
|
|
9709697 |
%{_bindir}/chronyc
|
|
|
9709697 |
%{_sbindir}/chronyd
|
|
|
9709697 |
%{_infodir}/chrony.info*
|
|
|
9709697 |
%{_mandir}/man[158]/%{name}*.[158]*
|
|
|
9709697 |
%dir %attr(-,chrony,chrony) %{_localstatedir}/lib/chrony
|
|
|
9709697 |
%ghost %attr(-,chrony,chrony) %{_localstatedir}/lib/chrony/drift
|
|
|
9709697 |
%ghost %attr(-,chrony,chrony) %{_localstatedir}/lib/chrony/rtc
|
|
|
9709697 |
%dir %attr(-,chrony,chrony) %{_localstatedir}/log/chrony
|
|
|
9709697 |
|
|
|
9709697 |
%changelog
|
|
|
aaacdf4 |
* Thu May 05 2011 Miroslav Lichvar <mlichvar@redhat.com> 1.25-1
|
|
|
aaacdf4 |
- update to 1.25
|
|
|
aaacdf4 |
- link with -Wl,-z,relro,-z,now options
|
|
|
aaacdf4 |
- use iburst, four pool servers, rtcsync, stratumweight in default config
|
|
|
aaacdf4 |
- suppress install-info errors
|
|
|
aaacdf4 |
|
|
|
09dcbba |
* Thu Apr 29 2010 Miroslav Lichvar <mlichvar@redhat.com> 1.24-4.20100428git73d775
|
|
|
09dcbba |
- update to 20100428git73d775
|
|
|
09dcbba |
- replace initstepslew directive with makestep in default config
|
|
|
09dcbba |
- add NetworkManager dispatcher script
|
|
|
09dcbba |
- add dhclient script
|
|
|
09dcbba |
- retry server/peer name resolution at least once to workaround
|
|
|
09dcbba |
NetworkManager race condition on boot
|
|
|
09dcbba |
- don't verify chrony.keys
|
|
|
09dcbba |
|
|
|
c6b186a |
* Fri Mar 12 2010 Miroslav Lichvar <mlichvar@redhat.com> 1.24-3.20100302git5fb555
|
|
|
3189232 |
- update to snapshot 20100302git5fb555
|
|
|
3189232 |
- compile with PPS API support
|
|
|
3189232 |
|
|
|
b190c45 |
* Thu Feb 04 2010 Miroslav Lichvar <mlichvar@redhat.com> 1.24-1
|
|
|
b190c45 |
- update to 1.24 (#555367, CVE-2010-0292 CVE-2010-0293 CVE-2010-0294)
|
|
|
b190c45 |
- modify default config
|
|
|
b190c45 |
- step clock on start if it is off by more than 100 seconds
|
|
|
b190c45 |
- disable client log
|
|
|
b190c45 |
- build with -fPIE on sparc
|
|
|
b190c45 |
|
|
|
da5bf79 |
* Tue Dec 15 2009 Miroslav Lichvar <mlichvar@redhat.com> 1.24-0.1.pre1
|
|
|
da5bf79 |
- update to 1.24-pre1
|
|
|
da5bf79 |
|
|
|
599355b |
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.23-7.20081106gitbe42b4
|
|
|
599355b |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
599355b |
|
|
|
5e51703 |
* Fri Jul 17 2009 Miroslav Lichvar <mlichvar@redhat.com> 1.23-6.20081106gitbe42b4
|
|
|
5e51703 |
- switch to editline
|
|
|
5e51703 |
- support arbitrary chronyc commands in init script
|
|
|
5e51703 |
|
|
|
90258c8 |
* Mon Jun 08 2009 Dan Horak <dan[at]danny.cz> 1.23-5.20081106gitbe42b4
|
|
|
90258c8 |
- add patch with support for s390/s390x
|
|
|
90258c8 |
|
|
|
f2a824a |
* Mon Mar 09 2009 Miroslav Lichvar <mlichvar@redhat.com> 1.23-4.20081106gitbe42b4
|
|
|
f2a824a |
- fix building with broken libcap header (#483548)
|
|
|
f2a824a |
|
|
|
6d80626 |
* Mon Feb 23 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.23-3.20081106gitbe42b4
|
|
|
6d80626 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
6d80626 |
|
|
|
9709697 |
* Wed Nov 19 2008 Miroslav Lichvar <mlichvar@redhat.com> 1.23-2.20081106gitbe42b4
|
|
|
9709697 |
- fix info uninstall
|
|
|
9709697 |
- generate random command key in init script
|
|
|
9709697 |
- support cyclelogs, online, offline commands in init script
|
|
|
9709697 |
- add logrotate script
|
|
|
9709697 |
|
|
|
9709697 |
* Tue Nov 11 2008 Miroslav Lichvar <mlichvar@redhat.com> 1.23-1.20081106gitbe42b4
|
|
|
9709697 |
- initial release
|