ntp: 4.2.4p0 -> 4.2.4p4 + new ntpdate script

This commit is contained in:
Thomas Penteker 2008-03-16 00:09:09 +01:00
parent 081707a5b7
commit 45a4acd215
4 changed files with 26 additions and 2 deletions

View File

@ -3,6 +3,7 @@ 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
-rwxr-xr-x root/root etc/rc.d/ntpdate
drwxr-xr-x root/root usr/
drwxr-xr-x root/root usr/bin/
-rwxr-xr-x root/root usr/bin/ntp-keygen

View File

@ -1,3 +1,4 @@
6f381e3764eac481bed9cf7e4d508952 ntp-4.2.4p0.tar.gz
fcb32a01e1ae3f9ed5bac86b12c7a1cc ntp-4.2.4p4.tar.gz
de14b18b5f2be841a9c3434012c19f6c ntp.conf
2aaeeae50b860296490b03dc5fbe1736 ntpd
512b61440eae365871a86c5415b12e86 ntpdate

View File

@ -5,10 +5,11 @@
# Depends on: openssl
name=ntp
version=4.2.4p0
version=4.2.4p4
release=1
source=(http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/$name-$version.tar.gz
ntpd
ntpdate
ntp.conf)
build () {
@ -41,6 +42,7 @@ build () {
install -m 644 $SRC/ntp.conf $PKG/etc/ntp
install -m 755 $SRC/ntpd $PKG/etc/rc.d
install -m 755 $SRC/ntpdate $PKG/etc/rc.d
# initialize ntp.drift file
echo "0.0" > $PKG/var/lib/ntp/ntp.drift

20
ntp/ntpdate Executable file
View File

@ -0,0 +1,20 @@
#!/bin/sh
#
# /etc/rc.d/ntpdate: sync time via ntp
#
case $1 in
start)
/usr/bin/ntpdate pool.ntp.org 1>/dev/null
;;
stop)
;;
restart)
$0 start
;;
*)
echo "usage: $0 [start|stop|restart]"
;;
esac
# End of file