Add clockspeed
This commit is contained in:
parent
4cc71d9813
commit
b2d79638d2
|
@ -0,0 +1,11 @@
|
|||
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.
|
|
@ -0,0 +1,47 @@
|
|||
# $NetBSD: Makefile,v 1.1 2006/05/04 13:55:38 akihabara Exp $
|
||||
|
||||
DISTNAME= clockspeed-0.62
|
||||
CATEGORIES= time
|
||||
MASTER_SITES= http://cr.yp.to/clockspeed/
|
||||
|
||||
MAINTAINER= neil@daikokuya.co.uk
|
||||
HOMEPAGE= http://cr.yp.to/clockspeed.html
|
||||
COMMENT= Suite of time utilities
|
||||
|
||||
WRKSRC= ${WRKDIR}/${DISTNAME}
|
||||
CMDDIR= ${WRKSRC}
|
||||
DOCDIR= ${WRKSRC}
|
||||
PKGDOCDIR= ${PREFIX}/share/doc/${PKGBASE}
|
||||
EGDIR= ${PREFIX}/share/examples/${PKGBASE}
|
||||
|
||||
NO_CONFIGURE= YES
|
||||
DJB_RESTRICTED= YES
|
||||
|
||||
DOCS= ${WRKSRC}/BLURB ${WRKSRC}/CHANGES ${WRKSRC}/README \
|
||||
${WRKSRC}/INSTALL ${WRKSRC}/TODO ${WRKSRC}/THANKS
|
||||
USER_CMDS= ${CMDDIR}/clockspeed ${CMDDIR}/clockadd ${CMDDIR}/clockview \
|
||||
${CMDDIR}/sntpclock ${CMDDIR}/taiclock ${CMDDIR}/taiclockd
|
||||
CONF_FILES= ${EGDIR}/leapsecs.dat ${PKG_SYSCONFDIR}/leapsecs.dat
|
||||
|
||||
INSTALLATION_DIRS= ${PKGMANDIR} ${PKGMANDIR}/man1 ${PKGMANDIR}/man3 \
|
||||
${EGDIR} bin
|
||||
|
||||
post-extract:
|
||||
${CP} ${WRKSRC}/leapsecs.3 ${WRKSRC}/leapsecs.3.orig
|
||||
${SED} -e 's:/etc/:${PKG_SYSCONFDIR}/:' ${WRKSRC}/leapsecs.3.orig \
|
||||
> ${WRKSRC}/leapsecs.3
|
||||
${CP} ${WRKSRC}/leapsecs_read.c ${WRKSRC}/leapsecs_read.c.orig
|
||||
${SED} -e 's:/etc/:${PKG_SYSCONFDIR}/:' ${WRKSRC}/leapsecs_read.c.orig \
|
||||
> ${WRKSRC}/leapsecs_read.c
|
||||
|
||||
do-install:
|
||||
${INSTALL_PROGRAM} ${USER_CMDS} ${PREFIX}/bin
|
||||
${INSTALL_MAN} ${DOCDIR}/*.1 ${PREFIX}/${PKGMANDIR}/man1
|
||||
${INSTALL_MAN} ${DOCDIR}/*.3 ${PREFIX}/${PKGMANDIR}/man3
|
||||
${INSTALL_DATA_DIR} ${PKGDOCDIR}
|
||||
cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${PKGDOCDIR}
|
||||
${INSTALL_DATA_DIR} ${EGDIR}
|
||||
cd ${WRKSRC} && ${INSTALL_DATA} leapsecs.dat ${EGDIR}
|
||||
|
||||
.include "../../mk/djbware.mk"
|
||||
.include "../../mk/bsd.pkg.mk"
|
|
@ -0,0 +1,28 @@
|
|||
@comment $NetBSD: PLIST,v 1.1 2006/05/04 13:55:38 akihabara Exp $
|
||||
bin/clockadd
|
||||
bin/clockspeed
|
||||
bin/clockview
|
||||
bin/sntpclock
|
||||
bin/taiclock
|
||||
bin/taiclockd
|
||||
man/man1/clockadd.1
|
||||
man/man1/clockspeed.1
|
||||
man/man1/clockview.1
|
||||
man/man1/sntpclock.1
|
||||
man/man1/taiclock.1
|
||||
man/man1/taiclockd.1
|
||||
man/man3/leapsecs.3
|
||||
man/man3/tai.3
|
||||
man/man3/tai_pack.3
|
||||
man/man3/taia.3
|
||||
man/man3/taia_now.3
|
||||
man/man3/taia_pack.3
|
||||
share/doc/clockspeed/BLURB
|
||||
share/doc/clockspeed/CHANGES
|
||||
share/doc/clockspeed/INSTALL
|
||||
share/doc/clockspeed/README
|
||||
share/doc/clockspeed/THANKS
|
||||
share/doc/clockspeed/TODO
|
||||
share/examples/clockspeed/leapsecs.dat
|
||||
@dirrm share/examples/clockspeed
|
||||
@dirrm share/doc/clockspeed
|
|
@ -0,0 +1,5 @@
|
|||
$NetBSD: distinfo,v 1.1 2006/05/04 13:55:38 akihabara Exp $
|
||||
|
||||
SHA1 (clockspeed-0.62.tar.gz) = 333ede8961622ed3504e3df3deb64297aa52b0cf
|
||||
RMD160 (clockspeed-0.62.tar.gz) = c1c863ddd91b77554f6924438979cff58b351377
|
||||
Size (clockspeed-0.62.tar.gz) = 25797 bytes
|
Loading…
Reference in New Issue