ntp: moved to attic
This commit is contained in:
parent
3135ab20c9
commit
95cfe6ab69
@ -1,38 +0,0 @@
|
||||
drwxr-xr-x root/root etc/
|
||||
drwxr-xr-x root/root etc/ntp/
|
||||
-rw-r--r-- root/root etc/ntp/ntp.conf
|
||||
drwxr-xr-x root/root etc/rc.d/
|
||||
-rwxr-xr-x root/root etc/rc.d/ntpd
|
||||
drwxr-xr-x root/root usr/
|
||||
drwxr-xr-x root/root usr/bin/
|
||||
-rwxr-xr-x root/root usr/bin/ntp-keygen
|
||||
-rwxr-xr-x root/root usr/bin/ntp-wait
|
||||
-rwxr-xr-x root/root usr/bin/ntpd
|
||||
-rwxr-xr-x root/root usr/bin/ntpdate
|
||||
-rwxr-xr-x root/root usr/bin/ntpdc
|
||||
-rwxr-xr-x root/root usr/bin/ntpq
|
||||
-rwxr-xr-x root/root usr/bin/ntptime
|
||||
-rwxr-xr-x root/root usr/bin/ntptrace
|
||||
-rwxr-xr-x root/root usr/bin/sntp
|
||||
-rwxr-xr-x root/root usr/bin/tickadj
|
||||
drwxr-xr-x root/root usr/man/
|
||||
drwxr-xr-x root/root usr/man/man5/
|
||||
-rw-r--r-- root/root usr/man/man5/ntp.conf.5.gz
|
||||
-rw-r--r-- root/root usr/man/man5/ntp.keys.5.gz
|
||||
drwxr-xr-x root/root usr/man/man8/
|
||||
-rw-r--r-- root/root usr/man/man8/ntp-genkeys.8.gz
|
||||
-rw-r--r-- root/root usr/man/man8/ntpd.8.gz
|
||||
-rw-r--r-- root/root usr/man/man8/ntpdate.8.gz
|
||||
-rw-r--r-- root/root usr/man/man8/ntpdc.8.gz
|
||||
-rw-r--r-- root/root usr/man/man8/ntpq.8.gz
|
||||
-rw-r--r-- root/root usr/man/man8/ntptime.8.gz
|
||||
-rw-r--r-- root/root usr/man/man8/ntptrace.8.gz
|
||||
drwxr-xr-x root/root var/
|
||||
drwxr-xr-x root/root var/lib/
|
||||
drwxr-xr-x root/root var/lib/ntp/
|
||||
-rw-r--r-- root/root var/lib/ntp/ntp.drift
|
||||
drwxr-xr-x root/root var/lib/ntp/stats/
|
||||
drwxr-xr-x root/root var/log/
|
||||
-rw-r--r-- root/root var/log/ntp.log (EMPTY)
|
||||
drwxr-xr-x root/root var/run/
|
||||
drwxr-xr-x root/root var/run/ntp/
|
@ -1,4 +0,0 @@
|
||||
5ccc9dfbc864411bbe52e7582075e9a7 ntp-doc.tar.gz
|
||||
49d4a704b49dc1ef2a7ec0b7938c3ae1 ntp-stable-4.2.0a-20060224.tar.gz
|
||||
de14b18b5f2be841a9c3434012c19f6c ntp.conf
|
||||
2aaeeae50b860296490b03dc5fbe1736 ntpd
|
57
ntp/Pkgfile
57
ntp/Pkgfile
@ -1,57 +0,0 @@
|
||||
# Description: Network Time Protocol software
|
||||
# URL: http://ntp.isc.org/bin/view/Main/DocumentationIndex
|
||||
# Maintainer:
|
||||
# Packager: Daniel Mueller, daniel at danm dot de
|
||||
# Depends on: openssl
|
||||
|
||||
name=ntp
|
||||
version=4.2.0a
|
||||
release=1
|
||||
source=(http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/snapshots/ntp-stable/2006/02/ntp-stable-4.2.0a-20060224.tar.gz \
|
||||
http://www.danm.de/files/src/ntp/doc/ntp-doc.tar.gz \
|
||||
ntpd \
|
||||
ntp.conf)
|
||||
|
||||
build () {
|
||||
mkdir -p $PKG/etc/{rc.d,ntp} \
|
||||
$PKG/var/log \
|
||||
$PKG/var/run/ntp \
|
||||
$PKG/var/lib/ntp/stats \
|
||||
$PKG/usr/man/{man8,man5}
|
||||
|
||||
cd ntp-stable-4.2.0a-20060224
|
||||
|
||||
AUTOCONF=true \
|
||||
AUTOMAKE=true \
|
||||
ACLOCAL=true \
|
||||
AUTOHEADER=true \
|
||||
LIBS=-lncurses \
|
||||
./configure \
|
||||
--prefix=/usr \
|
||||
--with-sntp \
|
||||
--with-crypto \
|
||||
--enable-debugging=no \
|
||||
--enable-ntpdate-step \
|
||||
--enable-parse-clocks \
|
||||
--enable-all-clocks \
|
||||
CFLAGS="$CFLAGS" \
|
||||
LDFLAGS="$LDFLAGS"
|
||||
|
||||
# substitute the default configuration path
|
||||
sed -i -e 's;\(CONFIG_FILE[^"]*"\)/etc/ntp.conf;\1/etc/ntp/ntp.conf;' \
|
||||
include/ntp_config.h ntpdate/ntptime_config.c
|
||||
|
||||
make
|
||||
make DESTDIR=$PKG install
|
||||
touch $PKG/var/log/ntp.log
|
||||
|
||||
# manpages copied from http://www.openpkg.org
|
||||
sed -i -e 's;/etc/ntp;/etc/ntp/ntp;g' $SRC/ntp-doc/*
|
||||
install -m 644 $SRC/ntp-doc/*.8 $PKG/usr/man/man8
|
||||
install -m 644 $SRC/ntp-doc/*.5 $PKG/usr/man/man5
|
||||
install -m 644 $SRC/ntp.conf $PKG/etc/ntp
|
||||
install -m 755 $SRC/ntpd $PKG/etc/rc.d
|
||||
|
||||
# initialize ntp.drift file
|
||||
echo "0.0" > $PKG/var/lib/ntp/ntp.drift
|
||||
}
|
32
ntp/README
32
ntp/README
@ -1,32 +0,0 @@
|
||||
|
||||
REQUIREMENTS
|
||||
|
||||
PRE-INSTALL
|
||||
|
||||
POST-INSTALL
|
||||
|
||||
To use ntpd to keep your time accurate, the minimum required is to find a
|
||||
public server and add it to /etc/ntp/ntp.conf: "server <ip-address>"
|
||||
|
||||
Public stratum 1 servers: http://www.eecis.udel.edu/~mills/ntp/clock1a.html
|
||||
Public stratum 2 servers: http://www.eecis.udel.edu/~mills/ntp/clock2a.html
|
||||
|
||||
or use the DNS round robin servers 'pool.ntp.org'
|
||||
|
||||
The daemon produces log output into the file /var/log/ntp.log. So you should
|
||||
think about adding the line "/usr/sbin/rotatelog ntp.log" to your weekly
|
||||
system crontab file /etc/cron/weekly/syslog.
|
||||
|
||||
If you want to use ntpd to synchronize your lan or similar, or get
|
||||
synchronization from other devices like radio, I suggest reading the manual.
|
||||
|
||||
PRECAUTION
|
||||
|
||||
To keep your time as accurate as possible, you should run ntpd continously, as
|
||||
it works by adjusting the clock by very small intervals (to not disrupt
|
||||
programs depending on time). If your clock is way off, you might want to adjust
|
||||
it with ntpdate first, as ntpd by default does not update your clock when the
|
||||
difference is more than 3600 seconds.
|
||||
|
||||
Beware of dhcpcd without the -N flag, because it overwrites your ntp.conf
|
||||
file. Of course it makes a backup, but it's annoying...
|
66
ntp/ntp.conf
66
ntp/ntp.conf
@ -1,66 +0,0 @@
|
||||
#
|
||||
# /etc/ntp/ntp.conf: ntp configuration
|
||||
#
|
||||
|
||||
###############################################################################
|
||||
# Default paths
|
||||
|
||||
logfile /var/log/ntp.log
|
||||
pidfile /var/run/ntp/ntpd.pid
|
||||
driftfile /var/lib/ntp/ntp.drift
|
||||
#statsdir /var/lib/ntp/stats/
|
||||
|
||||
###############################################################################
|
||||
# Authentication stuff
|
||||
#
|
||||
# keys /etc/ntp/ntp.keys # path for keys file
|
||||
# trustedkey 1 2 3 4 5 6 14 15 # define trusted keys
|
||||
# requestkey 15 # key (7) for accessing server variables
|
||||
# controlkey 15 # key (6) for accessing server variables
|
||||
|
||||
###############################################################################
|
||||
# Undisciplined Local Clock. This is a fake driver intended for backup
|
||||
# and when no outside source of synchronized time is available.
|
||||
|
||||
server 127.127.1.0 # local clock (LCL)
|
||||
fudge 127.127.1.0 stratum 10 # LCL is unsynchronized
|
||||
|
||||
|
||||
## Generic DCF77 clock on serial port (Conrad DCF77)
|
||||
## Address: 127.127.8.u
|
||||
## Serial Port: /dev/refclock-u
|
||||
## Sample project: http://www.obbl-net.de/dcf77.html by Martin Opel
|
||||
##
|
||||
## u = Number of your serial port
|
||||
##
|
||||
## (create soft link /dev/refclock-0 to the particular ttyS?)
|
||||
##
|
||||
# server 127.127.8.0 mode 5 prefer
|
||||
|
||||
|
||||
###############################################################################
|
||||
# Specify the servers you are interested in
|
||||
|
||||
server ntps1-0.cs.tu-berlin.de prefer
|
||||
server ntps1-1.cs.tu-berlin.de
|
||||
server ntp1.ptb.de
|
||||
server ntp1.fau.de
|
||||
|
||||
###############################################################################
|
||||
# Then we restrict the type of access you allow these servers.
|
||||
# Were not allowing them to modify or query our Linux NTP server
|
||||
|
||||
restrict default ignore notrust nomodify notrap
|
||||
restrict 127.0.0.1
|
||||
#restrict <YOUR_IP_HERE>
|
||||
restrict ntps1-0.cs.tu-berlin.de mask 255.255.255.255 nomodify notrap noquery
|
||||
restrict ntps1-1.cs.tu-berlin.de mask 255.255.255.255 nomodify notrap noquery
|
||||
restrict ntp1.ptb.de mask 255.255.255.255 nomodify notrap noquery
|
||||
restrict ntp1.fau.de mask 255.255.255.255 nomodify notrap noquery
|
||||
|
||||
# Now list the NTP clients on our home network which should be able to query
|
||||
# our server for the time (notice that the noquery has been removed)
|
||||
|
||||
#restrict 192.168.0.0 mask 255.255.255.0
|
||||
|
||||
# End of file
|
23
ntp/ntpd
23
ntp/ntpd
@ -1,23 +0,0 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# /etc/rc.d/ntpd: start/stop ntp daemon
|
||||
#
|
||||
|
||||
case $1 in
|
||||
start)
|
||||
/usr/bin/ntpd -gqx
|
||||
/usr/bin/ntpd
|
||||
;;
|
||||
stop)
|
||||
/sbin/hwclock -w
|
||||
killall -q /usr/bin/ntpd
|
||||
;;
|
||||
restart)
|
||||
$0 stop && sleep 3 && $0 start
|
||||
;;
|
||||
*)
|
||||
echo "usage: $0 [start|stop|restart]"
|
||||
;;
|
||||
esac
|
||||
|
||||
# End of file
|
Loading…
x
Reference in New Issue
Block a user