clock synchronization tools
(DJB version of NTP) Submitted by Brian Kifiak <bk@rt.fm>
This commit is contained in:
parent
d939e929aa
commit
0e6a55fa10
30
sysutils/clockspeed/Makefile
Normal file
30
sysutils/clockspeed/Makefile
Normal file
@ -0,0 +1,30 @@
|
||||
# $OpenBSD: Makefile,v 1.1.1.1 2001/02/22 10:49:25 camield Exp $
|
||||
|
||||
DISTNAME= clockspeed-0.62
|
||||
HOMEPAGE= http://cr.yp.to/clockspeed.html
|
||||
|
||||
CATEGORIES= sysutils
|
||||
NEED_VERSION= 1.340
|
||||
MAINTAINER= Brian Kifiak <bk@rt.fm>
|
||||
|
||||
MASTER_SITES= http://cr.yp.to/clockspeed/
|
||||
|
||||
PERMIT_PACKAGE_CDROM= Yes
|
||||
PERMIT_PACKAGE_FTP= Yes
|
||||
PERMIT_DISTFILES_CDROM= Yes
|
||||
PERMIT_DISTFILES_FTP= Yes
|
||||
|
||||
ALL_TARGET= default
|
||||
INSTALL_TARGET= setup check
|
||||
|
||||
pre-build:
|
||||
@echo ${CC} ${CFLAGS} > ${WRKSRC}/conf-cc
|
||||
@echo ${PREFIX}/clockspeed > ${WRKSRC}/conf-home
|
||||
|
||||
pre-install:
|
||||
@echo ${PREFIX}/clockspeed > ${WRKSRC}/conf-home
|
||||
|
||||
post-install:
|
||||
${INSTALL_DATA} ${WRKSRC}/INSTALL ${PREFIX}/clockspeed/README
|
||||
|
||||
.include <bsd.port.mk>
|
3
sysutils/clockspeed/files/md5
Normal file
3
sysutils/clockspeed/files/md5
Normal file
@ -0,0 +1,3 @@
|
||||
MD5 (clockspeed-0.62.tar.gz) = 425614174fcfe2ad42d22d3d02e2d567
|
||||
RMD160 (clockspeed-0.62.tar.gz) = c1c863ddd91b77554f6924438979cff58b351377
|
||||
SHA1 (clockspeed-0.62.tar.gz) = 333ede8961622ed3504e3df3deb64297aa52b0cf
|
25
sysutils/clockspeed/patches/patch-Makefile
Normal file
25
sysutils/clockspeed/patches/patch-Makefile
Normal file
@ -0,0 +1,25 @@
|
||||
$OpenBSD: patch-Makefile,v 1.1.1.1 2001/02/22 10:49:26 camield Exp $
|
||||
|
||||
Needed for fake installation. This way the installer can easily be
|
||||
rebuilt with the fake prefix, without rebuilding _everything_.
|
||||
|
||||
--- Makefile.orig Sat Jan 13 01:27:17 2001
|
||||
+++ Makefile Sat Jan 13 01:28:03 2001
|
||||
@@ -48,7 +48,7 @@ compile byte_zero.c byte.h
|
||||
./compile byte_zero.c
|
||||
|
||||
check: \
|
||||
-it man instcheck
|
||||
+man instcheck
|
||||
./instcheck
|
||||
|
||||
clockadd: \
|
||||
@@ -267,7 +267,7 @@ compile trysysel.c select.h1 select.h2
|
||||
rm -f trysysel.o trysysel
|
||||
|
||||
setup: \
|
||||
-it man install leapsecs.dat
|
||||
+man install leapsecs.dat
|
||||
./install
|
||||
|
||||
shar: \
|
23
sysutils/clockspeed/patches/patch-hier
Normal file
23
sysutils/clockspeed/patches/patch-hier
Normal file
@ -0,0 +1,23 @@
|
||||
$OpenBSD: patch-hier,v 1.1.1.1 2001/02/22 10:49:26 camield Exp $
|
||||
|
||||
Do not clobber /etc directly.
|
||||
|
||||
--- hier.c.orig Tue Feb 13 13:29:13 2001
|
||||
+++ hier.c Tue Feb 13 13:30:17 2001
|
||||
@@ -2,7 +2,6 @@
|
||||
|
||||
void hier()
|
||||
{
|
||||
- c("/","etc","leapsecs.dat",-1,-1,0644);
|
||||
|
||||
h(auto_home,-1,-1,0755);
|
||||
|
||||
@@ -11,6 +10,8 @@
|
||||
d(auto_home,"man",-1,-1,0755);
|
||||
d(auto_home,"man/man1",-1,-1,0755);
|
||||
d(auto_home,"man/cat1",-1,-1,0755);
|
||||
+
|
||||
+ c(auto_home,"etc","leapsecs.dat",-1,-1,0644);
|
||||
|
||||
c(auto_home,"bin","clockspeed",-1,-1,0755);
|
||||
c(auto_home,"bin","clockadd",-1,-1,0755);
|
1
sysutils/clockspeed/pkg/COMMENT
Normal file
1
sysutils/clockspeed/pkg/COMMENT
Normal file
@ -0,0 +1 @@
|
||||
clock synchronization tools
|
15
sysutils/clockspeed/pkg/DESCR
Normal file
15
sysutils/clockspeed/pkg/DESCR
Normal file
@ -0,0 +1,15 @@
|
||||
clockspeed uses a hardware tick counter to compensate for a
|
||||
persistently fast or slow system clock. Given a few time measurements
|
||||
from a reliable source, it computes and then eliminates the clock
|
||||
skew.
|
||||
|
||||
sntpclock checks another system's NTP clock, and prints the results
|
||||
in a format suitable for input to clockspeed. sntpclock is the
|
||||
simplest available NTP/SNTP client.
|
||||
|
||||
taiclock and taiclockd form an even simpler alternative to SNTP.
|
||||
They are suitable for precise time synchronization over a local
|
||||
area network, without the hassles and potential security problems
|
||||
of an NTP server.
|
||||
|
||||
WWW: ${HOMEPAGE}
|
29
sysutils/clockspeed/pkg/PLIST
Normal file
29
sysutils/clockspeed/pkg/PLIST
Normal file
@ -0,0 +1,29 @@
|
||||
@comment $OpenBSD: PLIST,v 1.1.1.1 2001/02/22 10:49:26 camield Exp $
|
||||
clockspeed/README
|
||||
clockspeed/bin/clockadd
|
||||
clockspeed/bin/clockspeed
|
||||
clockspeed/bin/clockview
|
||||
clockspeed/bin/sntpclock
|
||||
clockspeed/bin/taiclock
|
||||
clockspeed/bin/taiclockd
|
||||
clockspeed/etc/leapsecs.dat
|
||||
@exec if [ -f /etc/%f ]; then echo "\n!! WARNING !!\t/etc/%f exists\n\t\tPlease verify with %D/%F" ; else /bin/cp %D/%F /etc; fi
|
||||
@unexec echo "Please remove /etc/leapsecs.dat manually"
|
||||
clockspeed/man/cat1/clockadd.0
|
||||
clockspeed/man/cat1/clockspeed.0
|
||||
clockspeed/man/cat1/clockview.0
|
||||
clockspeed/man/cat1/sntpclock.0
|
||||
clockspeed/man/cat1/taiclock.0
|
||||
clockspeed/man/cat1/taiclockd.0
|
||||
clockspeed/man/man1/clockadd.1
|
||||
clockspeed/man/man1/clockspeed.1
|
||||
clockspeed/man/man1/clockview.1
|
||||
clockspeed/man/man1/sntpclock.1
|
||||
clockspeed/man/man1/taiclock.1
|
||||
clockspeed/man/man1/taiclockd.1
|
||||
@dirrm clockspeed/man/man1
|
||||
@dirrm clockspeed/man/cat1
|
||||
@dirrm clockspeed/man
|
||||
@dirrm clockspeed/etc
|
||||
@dirrm clockspeed/bin
|
||||
@dirrm clockspeed
|
Loading…
Reference in New Issue
Block a user