%define Name ntp %define Version 4.0.99k %define Release 2mdk Summary: Synchronizes system time using the Network Time Protocol (NTP). Name: %{Name} Version: %{Version} Release: %{Release} Copyright: BSD-Style Group: System/Configuration/Other Source0: http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/%{name}-%{version}.tar.bz2 Source1: ntp.conf Source2: ntp.keys Source3: ntpd.rc URL: http://www.cis.udel.edu/~ntp Buildroot: %{_tmppath}/%{name}-root %description The Network Time Protocol (NTP) is used to synchronize a computer's time with another reference time source. The ntp package contains utilities and daemons which will synchronize your computer's time to Coordinated Universal Time (UTC) via the NTP protocol and NTP servers. Ntp includes ntpdate (a program for retrieving the date and time from remote machines via a network) and ntpd (a daemon which continuously adjusts system time). Install the ntp package if you need tools for keeping your system's time synchronized via the NTP protocol. %prep %setup -q -n ntp-%{version} %build CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=/usr \ --sysconfdir=/etc --bindir='${prefix}/sbin' CFLAGS="$RPM_OPT_FLAGS" make make mv html/hints . %install rm -rf $RPM_BUILD_ROOT make install prefix=$RPM_BUILD_ROOT/usr sysconfdir=$RPM_BUILD_ROOT/etc mkdir -p $RPM_BUILD_ROOT/etc/{ntp,rc.d/init.d} install -m644 %{SOURCE1} $RPM_BUILD_ROOT/etc/ntp.conf install -m600 %{SOURCE2} $RPM_BUILD_ROOT/etc/ntp/keys touch $RPM_BUILD_ROOT/etc/ntp/step-tickers install -m755 %{SOURCE3} $RPM_BUILD_ROOT/etc/rc.d/init.d/ntpd %post /sbin/chkconfig --add ntpd %preun if [ $1 = 0 ]; then /sbin/service ntpd stop > /dev/null 2>&1 /sbin/chkconfig --del ntpd fi %postun if [ "$1" -ge "1" ]; then /sbin/service ntpd condrestart > /dev/null 2>&1 fi %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root) %config(noreplace) /etc/ntp.conf %config(noreplace) /etc/ntp/keys %ghost %config(missingok) /etc/ntp/step-tickers %doc html/* NEWS TODO /usr/sbin/* %config(noreplace) /etc/rc.d/init.d/ntpd %changelog * Thu Aug 31 2000 Warly <warly@mandrakesoft.com> 4.0.99k-2mdk - add condrestart * Mon Jul 24 2000 Warly <warly@mandrakesoft.com> 4.0.99k-1mdk - new release - BM * Wed Apr 05 2000 Daouda Lo <daouda@mandrakesoft.com> 4.0.99g-3mdk - fix the conf files permissions - bunzip'ed conf files * Fri Mar 31 2000 Warly <warly@mandrakesoft.com> 4.0.99g-2mdk - New group: System/Configuration/Other * Tue Mar 07 2000 Daouda LO <daouda@mandrakesoft.com> - Mandrakised (relocatable + %define ) * Sun May 23 1999 David E. Myers <dem@skyline.rtp.nc.us> - Changes for submission to Red Hat Contrib|Net. * Wed Apr 14 1999 Cristian Gafton <gafton@redhat.com> - disallow remote updates by default in ntp.conf (#2170) * Fri Mar 26 1999 Cristian Gafton <gafton@redhat.com> - use %configure - fix initscript not to sit out the output of ntpdate (use syslog instead) - eliminate subshell from the install stage * Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com> - auto rebuild in the new build environment (release 9) * Sun Nov 22 1998 Jeff Johnson <jbj@redhat.com> - ntp.conf: default local clock stratum to 10. * Wed Oct 21 1998 Jeff Johnson <jbj@redhat.com> - update to 5.93e. * Mon Oct 12 1998 Cristian Gafton <gafton@redhat.com> - strip binaries * Thu Aug 6 1998 Jeff Johnson <jbj@redhat.com> - update to 5.93c. - implement suggestions from James Youngman <JYoungman@vggas.com>: - correct default /etc/ntp/keys - use /etc/ntp/step-tickers for ntpdate hosts * Sun May 10 1998 Cristian Gafton <gafton@redhat.com> - start it after named * Mon May 04 1998 Jeff Johnson <jbj@redhat.com> - Update to 5.93. * Mon Feb 2 1998 Jeff Johnson <jbj@jbj.org> - Fiddles for RH-5.0. Update to xntp3-5.92. * Mon Feb 2 1998 Jeff Johnson <jbj@jbj.org> - Fiddles for RH-5.0. Update to xntp3-5.92. * Sat Oct 18 1997 Manoj Kasichainula <manojk@io.com> - Initial release for 5.91