CVS: crater/net/ntp BUILD, NONE, 1.1 DETAILS, NONE, 1.1 POST_INSTALL,
NONE, 1.1 services, NONE, 1.1
Moritz Heiber
moe at lunar-linux.org
Sat Nov 1 18:11:06 GMT 2003
Update of /var/cvs/lunar/crater/net/ntp
In directory dbguin.lunar-linux.org:/tmp/cvs-serv6042
Added Files:
BUILD DETAILS POST_INSTALL services
Log Message:
Adding this ntp module for testing. It features a proper default install
with common, free strat2 timeservers and some logfile reorganisation
Note: You may add your favourite ntp server but be sure about their policy.
It should be "Open access" and nothing else like "Send email" or
"Only 2 peers by host".
--- NEW FILE: BUILD ---
(
#if you're gonna change something in here make doggone sure you
#eyeball the init script too!
./configure --build=$BUILD \
--prefix=/usr \
--bindir=/usr/sbin \
--sbindir=/usr/sbin \
--datadir=/usr/share \
--infodir=/usr/share/info \
--mandir=/usr/share/man \
--sysconfdir=/etc \
--localstatedir=/var/cache &&
make &&
prepare_install &&
make install &&
if [ -e "/etc/init.d/ntp.sh" ]; then
rm -f /etc/init.d/ntp.sh
fi &&
if [ -e "/etc/rc?.d/*ntp.sh" ]; then
rm -f /etc/rc?.d/*ntp.sh
fi &&
if [ ! -e /usr/share/doc/$MODULE ]; then
mkdir -p /usr/share/doc/$MODULE
fi &&
cp -rvp html /usr/share/doc/$MODULE &&
if [ -e /etc/ntp.conf ]; then
mv /etc/ntp.conf /etc/config.d/ntp.conf
fi
if [ ! -e /etc/ntp.conf ]
then
cat > /etc/ntp.conf << EOF
# refer to
# file:///usr/share/docs/$MODULE/html/config.html
# and
# file:///usr/share/docs/$MODULE/html/confopt.htm
# or
# http://www.eecis.udel.edu/~ntp/documentation.html
#
# Alternate logfile and driftfile location
logfile /var/log/ntp.log
driftfile /var/state/ntp.drift
# Now some servers
server time.sinectis.com.ar
server ntp.saard.net
server ntp1.belbone.be
server ntp.cais.rnp.br
server ntp.cpsc.ucalgary.ca
server ntp1.cmc.ec.gc.ca
server ntp.globe.cz
server tick.fh-augsburg.de
server tock.fh-augsburg.de
server hora.oxixares.com
server ntp.mikroskosmos.com
server ntp.tuxfamily.net
server ntp.univ-lyon1.fr
server ntp.maths.tcd.ie
server ntps.net4u.it
server ntp2a.audiotel.com.mx
server ntp1.theinternetone.net
server ntp.iprolink.co.nz
server ntp.lth.se
server bear.zoo.bt.co.uk
server ntp.cis.strath.ac.uk
server decimal.lib.ci.phoenix.az.us
server clock.fmt.he.net
server ntp1.tummy.com
server louie.udel.edu
server ntp-1.cso.uiuc.edu
server molecule.ecn.purdue.edu
server clock.nyc.he.net
EOF
fi
) > $C_FIFO 2>&1
--- NEW FILE: DETAILS ---
MODULE=ntp
VERSION=4.2.0
SOURCE=$MODULE-$VERSION.tar.gz
SOURCE_DIRECTORY=$BUILD_DIRECTORY/$MODULE-$VERSION
SOURCE_URL[0]=http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/$SOURCE
SOURCE_URL[1]=ftp://ftp.udel.edu/pub/ntp/ntp4/$SOURCE
SOURCE_URL[2]=http://uiarchive.uiuc.edu/mirrors/ftp/ftp.udel.edu/pub/ntp/ntp4/$SOURCE
SOURCE_VFY=md5:0f8fabe87cf54f409b57c6283f0c0c3d
WEB_SITE=http://www.ntp.org/
ENTERED=20011004
UPDATED=20031018
SHORT="ntp syncs your time with an ntp server "
cat << EOF
NTP (Network Time Protocol) tries to keep servers in sync
Very usefull with GPS timesources, but typically used in a third
level setup to your ISP (Which typicall syncs to a first level timesource)
Several methods, use "ntpd -g -q ntp.server.dom" in a crontab
(or after connecting), or create /etc/ntp.conf and start "ntpd -g"
The -g is needed to enable a big step, otherwise it takes too long to sync.
Note: issue the "ntpd -g" command ASAP after the network is initialized,
and check out ntp-wait to not have it take too long to sync in why other
server's starts (and their logs get bad).
It's fastest slew rate is 0.5ms/sec, ie. 2000 secs to fix a secon
EOF
--- NEW FILE: POST_INSTALL ---
echo " Don't forget to edit /etc/config.d/ntp.conf "
--- NEW FILE: services ---
ntp 123/tcp
ntp 123/udp
More information about the Lunar-commits
mailing list