From 4a125a4a1fb43b07db4de18aff566881567e98d2 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Thu, 6 Oct 2011 09:29:27 +0200 Subject: [PATCH] ntp: update to 4.2.6p4. --- srcpkgs/ntp/files/ntp.conf | 94 ++++++-------------------------------- srcpkgs/ntp/files/ntpd.rc | 10 ---- srcpkgs/ntp/template | 11 +++-- 3 files changed, 21 insertions(+), 94 deletions(-) diff --git a/srcpkgs/ntp/files/ntp.conf b/srcpkgs/ntp/files/ntp.conf index 759ef1bb5cf..d8239c9937f 100644 --- a/srcpkgs/ntp/files/ntp.conf +++ b/srcpkgs/ntp/files/ntp.conf @@ -1,83 +1,19 @@ -# $NetBSD: ntp.conf,v 1.9 2007/02/10 19:36:56 reed Exp $ +# With the default settings below, ntpd will only synchronize your clock. # -# NetBSD default Network Time Protocol (NTP) configuration file for ntpd - -# This file is intended to be both a usable default, and a Quick-Start -# Guide. The directives and options listed here are not at all complete. -# A great deal of additional documentation, including links to FAQS and -# other guides, may be found on the official NTP web site, in particular -# -# http://www.ntp.org/documentation.html +# For details, see: +# - the ntp.conf man page +# - http://support.ntp.org/bin/view/Support/GettingStarted # +# Select three geolocalized NTP public servers; see http://www.pool.ntp.org/ +server 0.pool.ntp.org +server 1.pool.ntp.org +server 2.pool.ntp.org -# Process ID file, so that the daemon can be signalled from scripts +# Only allow read-only access from localhost +restrict default nomodify nopeer +restrict 127.0.0.1 -pidfile /var/run/ntpd.pid - -# The correction calculated by ntpd(8) for the local system clock's -# drift is stored here. - -driftfile /var/db/ntpd.drift - -# Suppress the syslog(3) message for each peer synchronization change. - -logconfig -syncstatus - -# This will help minimize disruptions due to network congestion. Don't -# do this if you configure only one server! - -tos minsane 2 - -# Hereafter should be "server" or "peer" statements to configure other -# hosts to exchange NTP packets with. Peers should be selected in such -# a way that the network path to them is symmetric (that is, the series -# of links and routers used to get to the peer is the same one that the -# peer uses to get back. NTP assumes such symmetry in its network delay -# calculation. NTP will apply an incorrect adjustment to timestamps -# received from the peer if the path is not symmetric. This can result -# in clock skew (your system clock being maintained consistently wrong -# by a certain amount). -# -# The best way to select symmetric peers is to make sure that the -# network path to them is as short as possible (this reduces the chance -# that there is more than one network path between you and your peer). -# You can measure these distances with the traceroute(8) program. The -# best place to start looking for NTP peers for your system is within -# your own network, or at your Internet Service Provider (ISP). -# -# Ideally, you should select at least three other systems to talk NTP -# with, for an "what I tell you three times is true" effect. -# - -#peer an.ntp.peer.goes.here -#server an.ntp.server.goes.here - -# Public servers from the pool.ntp.org project. Volunteer's servers -# are dynamically assigned to the CNAMES below via DNS round-robin. -# The pool.ntp.org project needs more volunteers! The only criteria to -# join are a nailed-up connection and a static IP address. For details, -# see the web page: -# -# http://www.pool.ntp.org/ -# - -# The country codes can help you find servers that are net-wise close. -# As explained above, closer is better... - -# Northern U.S.A -#server ca.pool.ntp.org -#server us.pool.ntp.org -#server us.pool.ntp.org - -# Northern Europe -#server de.pool.ntp.org -#server de.pool.ntp.org -#server dk.pool.ntp.org - -# Depending on the vagaries of DNS can occasionally pull in the same -# server twice. The following CNAMES are guaranteed to be disjoint, at -# least over some short interval. - -server 0.pool.ntp.org -server 1.pool.ntp.org -server 2.pool.ntp.org +# Location of drift and log files +driftfile /var/db/ntpd.drift +logfile /var/log/ntpd.log +pidfile /var/run/ntpd.pid diff --git a/srcpkgs/ntp/files/ntpd.rc b/srcpkgs/ntp/files/ntpd.rc index 136dccb0410..406951c192c 100644 --- a/srcpkgs/ntp/files/ntpd.rc +++ b/srcpkgs/ntp/files/ntpd.rc @@ -20,17 +20,7 @@ depend() start_pre() { if [ -n "$ntpd_chroot" ]; then - case "$RC_UNAME" in - *BSD|DragonFly) - if [ ! -c "$ntpd_chroot/dev/clockctl" ]; then - rm -f "$ntpd_chroot/dev/clockctl" - (cd /dev; /bin/pax -rw -pe clockctl \ - "$ntpd_chroot/dev") - fi - ;; - esac ln -fs "$ntpd_chroot$ntpd_drift" "$ntpd_drift" - command_args="$command_args -u ntpd:ntpd -i $ntpd_chroot" fi } diff --git a/srcpkgs/ntp/template b/srcpkgs/ntp/template index 667c7e7687b..408738b6d0b 100644 --- a/srcpkgs/ntp/template +++ b/srcpkgs/ntp/template @@ -1,13 +1,14 @@ # Template file for 'ntp' pkgname=ntp -version=4.2.6p3 -distfiles="http://archive.ntp.org/ntp4/$pkgname-$version.tar.gz" +version=4.2.6p4 +homepage="http://www.ntp.org/" +distfiles="http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-$version.tar.gz" build_style=gnu_configure -configure_args="--enable-linuxcaps --with-crypto=openssl ---with-lineeditlibs=readline LIBS=-lrt" +configure_args="--enable-linuxcap" short_desc="The Network Time Protocol" +license="BSD" maintainer="Juan RP " -checksum=6e84d4ddfa14b911c3ed88463af10867e1fa9b287e7b34d8a02e78be85a7c40e +checksum=dec30ea700d57b2d306ae61a3bcd8bc843443404a819a2f708b23a0ffc8581f3 long_desc=" The Network Time Protocol (NTP) is used to synchronize a computer's time with another reference time source. This package includes ntpd