chrony-vl.spec 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183
  1. Name: chrony
  2. Version: 1.31
  3. Release: 1%{?_dist_release}
  4. Summary: An NTP client/server
  5. Group: System Environment/Daemons
  6. License: GPLv2
  7. URL: http://chrony.tuxfamily.org
  8. Source0: http://download.tuxfamily.org/chrony/chrony-%{version}%{?prerelease}.tar.gz
  9. Source1: chrony.conf
  10. Source2: chrony.keys
  11. Source3: chronyd.sysconfig
  12. Source4: chronyd.init
  13. Source5: chrony.logrotate
  14. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
  15. BuildRequires: libcap-devel readline-devel ncurses-devel bison texinfo
  16. Requires(pre): shadow-utils
  17. Requires(post): chkconfig info
  18. Requires(preun): chkconfig initscripts info
  19. Requires(postun): initscripts
  20. Vendor: Project Vine
  21. Distribution: Vine Linux
  22. Packager: tomop
  23. %description
  24. A client/server for the Network Time Protocol, this program keeps your
  25. computer's clock accurate. It was specially designed to support
  26. systems with intermittent internet connections, but it also works well
  27. in permanently connected environments. It can use also hardware reference
  28. clocks, system real-time clock or manual input as time references.
  29. %prep
  30. %setup -q -n %{name}-%{version}%{?prerelease}
  31. %build
  32. CFLAGS="$RPM_OPT_FLAGS"
  33. %ifarch %{sparc}
  34. CFLAGS="$CFLAGS -pie -fPIE"
  35. %else
  36. CFLAGS="$CFLAGS -pie -fpie"
  37. %endif
  38. export CFLAGS
  39. export LDFLAGS="-Wl,-z,relro,-z,now"
  40. %configure --docdir=%{_docdir} --enable-forcednsretry
  41. make %{?_smp_mflags} getdate all docs
  42. %install
  43. rm -rf $RPM_BUILD_ROOT
  44. make install install-docs DESTDIR=$RPM_BUILD_ROOT
  45. rm -rf $RPM_BUILD_ROOT%{_docdir}
  46. mkdir -p $RPM_BUILD_ROOT{%{_sysconfdir}/{sysconfig,logrotate.d},%{_initrddir}}
  47. mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/{lib,log}/chrony
  48. install -m 644 -p %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/chrony.conf
  49. install -m 640 -p %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/chrony.keys
  50. install -m 644 -p %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/chronyd
  51. install -m 755 -p %{SOURCE4} $RPM_BUILD_ROOT%{_initrddir}/chronyd
  52. install -m 644 -p %{SOURCE5} $RPM_BUILD_ROOT%{_sysconfdir}/logrotate.d/chrony
  53. touch $RPM_BUILD_ROOT%{_localstatedir}/lib/chrony/{drift,rtc}
  54. %clean
  55. rm -rf $RPM_BUILD_ROOT
  56. %pre
  57. getent group chrony > /dev/null || /usr/sbin/groupadd -r chrony
  58. getent passwd chrony > /dev/null || /usr/sbin/useradd -r -g chrony \
  59. -d %{_localstatedir}/lib/chrony -s /sbin/nologin chrony
  60. :
  61. %post
  62. /sbin/chkconfig --add chronyd
  63. /sbin/install-info %{_infodir}/chrony.info.gz %{_infodir}/dir &> /dev/null
  64. :
  65. %preun
  66. if [ "$1" -eq 0 ]; then
  67. /sbin/service chronyd stop &> /dev/null
  68. /sbin/chkconfig --del chronyd
  69. /sbin/install-info --delete %{_infodir}/chrony.info.gz \
  70. %{_infodir}/dir &> /dev/null
  71. fi
  72. :
  73. %postun
  74. if [ "$1" -ge 1 ]; then
  75. /sbin/service chronyd condrestart &> /dev/null
  76. fi
  77. :
  78. %files
  79. %defattr(-,root,root,-)
  80. %doc COPYING NEWS README chrony.txt faq.txt examples/*
  81. %config(noreplace) %{_sysconfdir}/chrony.conf
  82. %config(noreplace) %verify(not md5 size mtime) %attr(640,root,chrony) %{_sysconfdir}/chrony.keys
  83. %config(noreplace) %{_sysconfdir}/sysconfig/chronyd
  84. %config(noreplace) %{_sysconfdir}/logrotate.d/chrony
  85. %{_initrddir}/chronyd
  86. %{_bindir}/chronyc
  87. %{_sbindir}/chronyd
  88. %{_infodir}/chrony.info*
  89. %{_mandir}/man[158]/%{name}*.[158]*
  90. %dir %attr(-,chrony,chrony) %{_localstatedir}/lib/chrony
  91. %ghost %attr(-,chrony,chrony) %{_localstatedir}/lib/chrony/drift
  92. %ghost %attr(-,chrony,chrony) %{_localstatedir}/lib/chrony/rtc
  93. %dir %attr(-,chrony,chrony) %{_localstatedir}/log/chrony
  94. %changelog
  95. * Tue Dec 23 2014 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.31-1
  96. - new upstream release.
  97. * Sat Jun 7 2014 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.29.1-1
  98. - new upstream release.
  99. - initial build for Vine Linux.
  100. * Fri Aug 09 2013 Miroslav Lichvar <mlichvar@redhat.com> 1.25-3
  101. - fix buffer overflow when processing crafted command packets (CVE-2012-4502)
  102. - don't send uninitialized data in command replies (CVE-2012-4503)
  103. * Thu May 19 2011 Miroslav Lichvar <mlichvar@redhat.com> 1.25-2
  104. - remove timepps.h, NM and dhclient scripts
  105. - build with readline
  106. * Thu May 05 2011 Miroslav Lichvar <mlichvar@redhat.com> 1.25-1
  107. - update to 1.25
  108. - link with -Wl,-z,relro,-z,now options
  109. - use iburst, four pool servers, rtcsync, stratumweight in default config
  110. - suppress install-info errors
  111. * Thu Apr 29 2010 Miroslav Lichvar <mlichvar@redhat.com> 1.24-4.20100428git73d775
  112. - update to 20100428git73d775
  113. - replace initstepslew directive with makestep in default config
  114. - add NetworkManager dispatcher script
  115. - add dhclient script
  116. - retry server/peer name resolution at least once to workaround
  117. NetworkManager race condition on boot
  118. - don't verify chrony.keys
  119. * Fri Mar 12 2010 Miroslav Lichvar <mlichvar@redhat.com> 1.24-3.20100302git5fb555
  120. - update to snapshot 20100302git5fb555
  121. - compile with PPS API support
  122. * Thu Feb 04 2010 Miroslav Lichvar <mlichvar@redhat.com> 1.24-1
  123. - update to 1.24 (#555367, CVE-2010-0292 CVE-2010-0293 CVE-2010-0294)
  124. - modify default config
  125. - step clock on start if it is off by more than 100 seconds
  126. - disable client log
  127. - build with -fPIE on sparc
  128. * Tue Dec 15 2009 Miroslav Lichvar <mlichvar@redhat.com> 1.24-0.1.pre1
  129. - update to 1.24-pre1
  130. * Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.23-7.20081106gitbe42b4
  131. - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
  132. * Fri Jul 17 2009 Miroslav Lichvar <mlichvar@redhat.com> 1.23-6.20081106gitbe42b4
  133. - switch to editline
  134. - support arbitrary chronyc commands in init script
  135. * Mon Jun 08 2009 Dan Horak <dan[at]danny.cz> 1.23-5.20081106gitbe42b4
  136. - add patch with support for s390/s390x
  137. * Mon Mar 09 2009 Miroslav Lichvar <mlichvar@redhat.com> 1.23-4.20081106gitbe42b4
  138. - fix building with broken libcap header (#483548)
  139. * Mon Feb 23 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.23-3.20081106gitbe42b4
  140. - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
  141. * Wed Nov 19 2008 Miroslav Lichvar <mlichvar@redhat.com> 1.23-2.20081106gitbe42b4
  142. - fix info uninstall
  143. - generate random command key in init script
  144. - support cyclelogs, online, offline commands in init script
  145. - add logrotate script
  146. * Tue Nov 11 2008 Miroslav Lichvar <mlichvar@redhat.com> 1.23-1.20081106gitbe42b4
  147. - initial release