summaryrefslogtreecommitdiff
path: root/ntp
diff options
context:
space:
mode:
authorThomas Penteker <tek@serverop.de>2008-03-16 00:09:09 +0100
committerThomas Penteker <tek@serverop.de>2008-03-16 00:11:22 +0100
commit45a4acd2153f2b1a20eda062b0f486a6c24efcb5 (patch)
treebf8fb3f78deb6b2e203c449ad45de0b66e6cba20 /ntp
parent081707a5b7659cd815ba1a224325070187c50f88 (diff)
downloadcontrib-45a4acd2153f2b1a20eda062b0f486a6c24efcb5.tar.gz
contrib-45a4acd2153f2b1a20eda062b0f486a6c24efcb5.tar.xz
ntp: 4.2.4p0 -> 4.2.4p4 + new ntpdate script
Diffstat (limited to 'ntp')
-rw-r--r--ntp/.footprint1
-rw-r--r--ntp/.md5sum3
-rw-r--r--ntp/Pkgfile4
-rwxr-xr-xntp/ntpdate20
4 files changed, 26 insertions, 2 deletions
diff --git a/ntp/.footprint b/ntp/.footprint
index 8b37542ee..53a3d75f1 100644
--- a/ntp/.footprint
+++ b/ntp/.footprint
@@ -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
diff --git a/ntp/.md5sum b/ntp/.md5sum
index f2c884dc6..70242c5f4 100644
--- a/ntp/.md5sum
+++ b/ntp/.md5sum
@@ -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
diff --git a/ntp/Pkgfile b/ntp/Pkgfile
index 99e1ba307..29c8c26b4 100644
--- a/ntp/Pkgfile
+++ b/ntp/Pkgfile
@@ -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
diff --git a/ntp/ntpdate b/ntp/ntpdate
new file mode 100755
index 000000000..72904c5c4
--- /dev/null
+++ b/ntp/ntpdate
@@ -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

Generated by cgit