1 Summary: Network Time Protocol utilities
2 Summary(pl): Narzêdzia do synchronizacji czasu (Network Time Protocol)
10 Source0: ftp://ftp.udel.edu/pub/ntp/%{name}-%{version}.tar.gz
14 Source4: %{name}.sysconfig
17 Patch0: %{name}-time.patch
18 Patch1: %{name}-vsnprintf.patch
19 URL: http://www.ntp.org/
20 BuildConflicts: libelf
21 BuildRequires: readline-devel >= 4.2
23 Prereq: /sbin/chkconfig
24 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26 %define _sysconfdir /etc/ntp
27 %define _bindir %{_sbindir}
30 The Network Time Protocol (NTP) is used to synchronize a computer's
31 time with another reference time source. The ntp package contains
32 utilities and daemons which will synchronize your computer's time to
33 Coordinated Universal Time (UTC) via the NTP protocol and NTP servers.
34 The ntp package includes ntpdate (a program for retrieving the date
35 and time from remote machines via a network) and ntpd (a daemon which
36 continuously adjusts system time).
39 Pakiet zawiera narzêdzia i demony s³u¿±ce do dok³adnego
40 synchronizowania czasu Twojego komputera: ntpdate, program podobny do
41 rdate oraz ntpd, demon aktualizuj±cy czas w sposób ci±g³y.
44 Summary: HTML documentation for ntp
45 Summary(pl): Dokumentacja HTML dla ntp
51 HTML documentation for ntp.
54 Dokumentacja do ntp w HTML.
67 rm -rf $RPM_BUILD_ROOT
68 install -d $RPM_BUILD_ROOT{%{_sysconfdir},/etc/{rc.d/init.d,sysconfig},%{_mandir}/man8}
70 %{__make} install DESTDIR=$RPM_BUILD_ROOT
72 install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/ntp.conf
73 install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/keys
74 install %{SOURCE3} $RPM_BUILD_ROOT/etc/rc.d/init.d/ntp
75 install %{SOURCE4} $RPM_BUILD_ROOT/etc/sysconfig/ntp
76 install %{SOURCE5} $RPM_BUILD_ROOT%{_mandir}/man8
77 install %{SOURCE6} $RPM_BUILD_ROOT%{_mandir}/man8
79 gzip -9nf NEWS TODO conf/*.conf
82 rm -rf $RPM_BUILD_ROOT
85 /sbin/chkconfig --add ntp
86 if [ -f /var/lock/subsys/ntp ]; then
87 /etc/rc.d/init.d/ntp restart >&2
89 echo "Run \"/etc/rc.d/init.d/ntp start\" to start ntp daemon."
93 if [ "$1" = "0" ]; then
94 if [ -f /var/lock/subsys/ntp ]; then
95 /etc/rc.d/init.d/ntp stop >&2
97 /sbin/chkconfig --del ntp
101 %defattr(644,root,root,755)
103 %attr(750,root,root) %dir %{_sysconfdir}
104 %attr(640,root,root) %config(noreplace) %verify(not size md5 mtime) %{_sysconfdir}/*
105 %attr(755,root,root) %{_sbindir}/*
106 %attr(754,root,root) /etc/rc.d/init.d/ntp
107 %attr(640,root,root) %config %verify(not size md5 mtime) /etc/sysconfig/*
111 %defattr(644,root,root,755)