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