1 Summary: Network Time Protocol utilities
2 Summary(pl): Narzêdzia do synchronizacji czasu (Network Time Protocol)
6 Copyright: distributable
10 Source0: ftp://ftp.udel.edu/pub/ntp/%{name}-%{version}.tar.gz
14 Source4: %{name}.sysconfig
15 Patch0: %{name}-time.patch
16 Patch1: %{name}-overflow.patch
17 URL: http://www.ntp.org/
19 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21 %define _sysconfdir /etc/ntp
22 %define _bindir %{_sbindir}
25 The Network Time Protocol (NTP) is used to synchronize a computer's
26 time with another reference time source. The ntp package contains
27 utilities and daemons which will synchronize your computer's time to
28 Coordinated Universal Time (UTC) via the NTP protocol and NTP servers.
29 The ntp package includes ntpdate (a program for retrieving the date
30 and time from remote machines via a network) and ntpd (a daemon which
31 continuously adjusts system time).
34 Pakiet zawiera narzêdzia i demony s³u¿±ce do dok³adnego
35 synchronizowania czasu Twojego komputera: ntpdate, program podobny do
36 rdatei xntpd, demon aktualizuj±cy czas w sposób ci±g³y.
39 Summary: HTML documentation for ntp
45 HTML documentation for ntp.
48 Dokumentacja do ntp w HTML.
61 rm -rf $RPM_BUILD_ROOT
62 install -d $RPM_BUILD_ROOT{%{_sysconfdir},/etc/{rc.d/init.d,sysconfig}}
64 %{__make} install DESTDIR=$RPM_BUILD_ROOT
66 install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/ntp.conf
67 install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/keys
68 install %{SOURCE3} $RPM_BUILD_ROOT/etc/rc.d/init.d/ntp
69 install %{SOURCE4} $RPM_BUILD_ROOT/etc/sysconfig/ntp
71 gzip -9nf NEWS TODO conf/*.conf
74 rm -rf $RPM_BUILD_ROOT
77 /sbin/chkconfig --add ntp
79 if [ -f /var/lock/subsys/ntp ]; then
80 /etc/rc.d/init.d/ntp restart >&2
82 echo "Run \"/etc/rc.d/init.d/ntp start\" to start ntp daemon."
86 if [ "$1" = "0" ]; then
87 if [ -f /var/lock/subsys/ntp ]; then
88 /etc/rc.d/init.d/ntp stop >&2
90 /sbin/chkconfig --del ntp
94 %defattr(644,root,root,755)
97 %attr(750,root,root) %dir %{_sysconfdir}
98 %attr(640,root,root) %config(noreplace) %verify(not size md5 mtime) %{_sysconfdir}/*
99 %attr(755,root,root) %{_sbindir}/*
100 %attr(754,root,root) /etc/rc.d/init.d/ntp
101 %attr(640,root,root) %config %verify(not size md5 mtime) /etc/sysconfig/*
104 %defattr(644,root,root,755)