Port details |
- clockspeed Uses a hardware tick counter to compensate for deviant system clock
- 0.62_7 sysutils =7 0.62_6Version of this port present on the latest quarterly branch.
- There is no maintainer for this port.
- Any concerns regarding this port should be directed to the FreeBSD Ports mailing list via ports@FreeBSD.org
- Port Added: 2000-07-07 11:30:02
- Last Update: 2024-09-30 22:13:44
- Commit Hash: b559c28
- People watching this port, also watch:: daemontools, zip, unzip, nmap, gnupg
- License: not specified in port
- WWW:
- https://cr.yp.to/clockspeed.html
- Description:
- 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.
This version of clockspeed can use the Pentium RDTSC tick counter or the
Solaris gethrtime() nanosecond counter.
A port to non-i386 platforms was done using the clock_gettime(2)
function. Since this is somewhat experimental, there might be some
tiny precision differences from the i386 platform versions. You
have been warned!
- ¦ ¦ ¦ ¦
- Manual pages:
- FreshPorts has no man page information for this port.
- pkg-plist: as obtained via:
make generate-plist - Dependency lines:
-
- clockspeed>0:sysutils/clockspeed
- To install the port:
- cd /usr/ports/sysutils/clockspeed/ && make install clean
- To add the package, run one of these commands:
- pkg install sysutils/clockspeed
- pkg install clockspeed
NOTE: If this package has multiple flavors (see below), then use one of them instead of the name specified above.- PKGNAME: clockspeed
- Flavors: there is no flavor information for this port.
- distinfo:
- SHA256 (clockspeed-0.62.tar.gz) = 43539964c4b554794b2da760d138c5975cbc850f1c8ec2ee96f5dba66e0d9eed
SIZE (clockspeed-0.62.tar.gz) = 25797
Packages (timestamps in pop-ups are UTC):
- Dependencies
- NOTE: FreshPorts displays only information on required and default dependencies. Optional dependencies are not covered.
- Build dependencies:
-
- groff : textproc/groff
- Library dependencies:
-
- libtai.so : devel/libtai
- This port is required by:
- for Run
-
Deleted ports which required this port:
- * - deleted ports are only shown under the This port is required by section. It was harder to do for the Required section. Perhaps later...
Configuration Options:
- ===> The following configuration options are available for clockspeed-0.62_7:
DOCS=on: Build and/or install documentation
===> Use 'make config' to modify these settings
- Options name:
- sysutils_clockspeed
- USES:
- groff
- pkg-message:
- For install:
- Please make sure that you read /usr/local/share/doc/clockspeed/INSTALL.
It contains important information about testing and configuring
clockspeed, and finally installing it in your system.
Clockspeed uses the libtai library, check /usr/ports/devel/libtai
for more details. TAI time measure is off 22 seconds from UTC time
measure. Therefore, your system time will show a 22 secs difference
from your time source after you've installed this port.
To fix this, you could follow this simple recipe created with
PR ports/27617.
1) killall clockspeed (you can't have it running)
2) sntpclock IP.OF.NTP.SERVER | clockadd
3) enable/start clockspeed :
% cp /usr/local/etc/rc.d/clockspeed.sh.sample \
/usr/local/etc/rc.d/clockspeed.sh
# enable clockspeed to automagically start next
# time you reboot. do this after testing everything
% /usr/local/etc/rc.d/clockspeed.sh start
# start clockspeed now
4) sntpclock IP.OF.NTP.SERVER > /usr/local/etc/clockspeed/adjust
5) cd /usr/src/share/zoneinfo
6) make -DLEAPSECONDS clean all install ; make clean
Step 5 and 6 build support in your system for leapseconds handling.
Take a note about this since you might forget later to disable it
if you remove this port. To disable it, simply re-do step 6 without
-DLEAPSECONDS.
Step 6 should not break anything but you can disable it anytime
as per last paragraph if you think something unusual has happened
to your system.
7) /stand/sysinstall -> configure -> time zone (choose the correct
time zone for your system)
8) sntpclock IP.OF.NTP.SERVER | clockview
Check how close is your clock before and after now. Should be
within milliseconds.
Do not forget to add a cron(8) job with step 4 to periodically
adjust clockspeed's drift rate. Once a week should be more than
adequate.
A port to non-i386 platforms was done using the clock_gettime(2)
function. Since this is somewhat experimental, there might be some
tiny precision differences from the i386 platform versions. You
have been warned!
- Master Sites:
|
Commit History - (may be incomplete: for full details, see links to repositories near top of page) |
Commit | Credits | Log message |
0.62_7 30 Sep 2024 22:13:44 |
Brooks Davis (brooks) |
sysutils/clockspeed: include errno.h for errno
errno must be accessed by a macro from errno.h. |
0.62_6 26 Feb 2024 21:40:45 |
Muhammad Moinur Rahman (bofh) |
sysutils/clockspeed: Moved man to share/man
Approved by: portmgr (blanket) |
07 Sep 2022 21:58:51 |
Stefan Eßer (se) |
Remove WWW entries moved into port Makefiles
Commit b7f05445c00f has added WWW entries to port Makefiles based on
WWW: lines in pkg-descr files.
This commit removes the WWW: lines of moved-over URLs from these
pkg-descr files.
Approved by: portmgr (tcberner) |
0.62_5 07 Sep 2022 21:10:59 |
Stefan Eßer (se) |
Add WWW entries to port Makefiles
It has been common practice to have one or more URLs at the end of the
ports' pkg-descr files, one per line and prefixed with "WWW:". These
URLs should point at a project website or other relevant resources.
Access to these URLs required processing of the pkg-descr files, and
they have often become stale over time. If more than one such URL was
present in a pkg-descr file, only the first one was tarnsfered into
the port INDEX, but for many ports only the last line did contain the
port specific URL to further information.
There have been several proposals to make a project URL available as
a macro in the ports' Makefiles, over time.
(Only the first 15 lines of the commit message are shown above ) |
0.62_5 20 Jul 2022 14:23:05 |
Tobias C. Berner (tcberner) |
sysutils: remove 'Created by' lines
A big Thank You to the original contributors of these ports:
* <jsmith@resonatingmedia.com>
* Aaron Dalton <aaron@FreeBSD.org>
* Aaron Landwehr <aaron@snaphat.com>
* Adam Weinberger <adamw@FreeBSD.org>
* Adrian Chadd
* Adrian Chadd <adrian@FreeBSD.org>
* Akinori MUSHA aka knu <knu@idaemons.org>
* Alan Eldridge <alane@FreeBSD.org>
* Alan Eldridge <alane@geeksrus.net>
* Aldis Berjoza <aldis@bsdroot.lv>
* Alex Deiter <alex.deiter@gmail.com> (Only the first 15 lines of the commit message are shown above ) |
0.62_5 06 Apr 2021 14:31:07 |
Mathieu Arnold (mat) |
Remove # $FreeBSD$ from Makefiles. |
0.62_5 14 Aug 2019 12:16:13 |
mat |
Convert to UCL & cleanup pkg-message (categories s) |
0.62_5 28 May 2017 21:18:04 |
antoine |
Register dependency on groff
PR: 213725 |
0.62_5 18 Jul 2016 16:41:20 |
mat |
Don't echo in post-install, use pkg-message. Also, don't "fix"
pkg-message in post-install, use SUB_FILES/SUB_LIST.
Sponsored by: Absolight |
0.62_5 19 May 2016 11:09:14 |
amdmi3 |
- Fix trailing whitespace in pkg-messages
Approved by: portmgr blanket |
0.62_5 01 Apr 2016 14:25:18 |
mat |
Remove ${PORTSDIR}/ from dependencies, categories r, s, t, and u.
With hat: portmgr
Sponsored by: Absolight |
0.62_5 03 Sep 2015 13:11:41 |
amdmi3 |
- Add missing OPTIONS_DEFINE=DOCS
- Fix installation commands
- Switch to options helpers |
0.62_5 27 May 2015 23:22:19 |
amdmi3 |
- Drop @dirrm* from plist |
0.62_5 29 Jul 2014 14:12:47 |
feld |
Support STAGE
I don't use this software but I'm sure someone out there does. |
0.62_5 14 Jul 2014 18:42:04 |
bapt |
Modernize LIB_DEPENDS
With hat: portmgr |
0.62_5 06 Jul 2014 15:52:25 |
bapt |
Resetting maintainership on ports that have not been staged and without any
pending PR (related to stage)
With hat: portmgr |
0.62_5 20 Sep 2013 23:06:00 |
bapt |
Add NO_STAGE all over the place in preparation for the staging support (cat:
sysutils) |
0.62_5 01 Feb 2013 15:22:08 |
ak |
- Add mime-type property for binary files in the ports tree
Approved by: portmgr (bapt) |
0.62_5 19 Mar 2011 12:38:54 |
miwi |
- Get Rid MD5 support |
0.62_5 27 Jul 2008 22:14:16 |
lx |
And bump portrevision. |
0.62_4 27 Jul 2008 22:13:47 |
lx |
Update to an even more current leapsecs.dat.
Created as per:
http://article.gmane.org/gmane.comp.lib.libtai/322/match=leapsecs
Submitted by: clemens fischer |
0.62_4 26 Jul 2008 21:11:13 |
lx |
Update leapsecs.dat to be the most current from
http://cr.yp.to/libtai.html. Do not use the one
installed by devel/libtai.
Submitted by: clemens fischer |
0.62_3 16 Jun 2008 02:29:59 |
lx |
Take maintainership. |
0.62_3 16 Jun 2008 01:25:26 |
lioux |
Drop maintainership. |
0.62_3 22 Mar 2007 17:02:35 |
rafan |
- Move stuffs that are after post.mk to appropriate places
- Use DOCSDIR
PR: ports/109335
Submitted by: rafan
Approved by: maintainer timeout (1 month) |
0.62_3 13 May 2006 04:15:53 |
edwin |
Remove USE_REINPLACE from all categories starting with S |
0.62_3 23 Dec 2005 20:23:23 |
lioux |
o Update the leap seconds table according to
http://hpiers.obspm.fr/eoppc/bul/bulc/bulletinc.dat. There is a
leap seconds at the end of 2005.
o Obtain the fresh and updated leap seconds table from devel/libtai
port.
o Bump PORTREVISION
PR: 89948
Submitted by: Frank W. Josellis <frank@dynamical-systems.org>,
markzero <mark@darklogik.org>
Obtained from: http://hpiers.obspm.fr/eoppc/bul/bulc/bulletinc.dat |
0.62_2 11 Nov 2005 06:06:17 |
lioux |
Add SHA256 checksum |
0.62_2 25 Dec 2004 11:43:58 |
lioux |
Remove deprecated USE_SIZE |
0.62_2 08 Feb 2004 01:14:05 |
lioux |
USE_SIZEify |
0.62_2 14 May 2003 01:51:52 |
lioux |
Fix build on alpha: remove extraneous ')' parentheses in patch |
0.62_2 23 Feb 2003 19:58:35 |
lioux |
De-pkg-comment |
0.62_2 07 Feb 2003 15:43:57 |
lioux |
Sanitize MASTER_SITES
Submitted by: fenner's distfiles survey |
0.62_2 02 Jan 2003 05:46:09 |
lioux |
o Remove ONLY_FOR_ARCHS limitation by adding timing support other
than RDTSC registers from Pentium. After a reminder by Garrett
Wollman <wollman@FreeBSD.org> [1] that FreeBSD has a gethrtime()
similar function, added experimental support for FreeBSD
clock_gettime(2) which should work in all FreeBSD supported ARCHes
o Add notes in both DESCR and PKGMESSAGE that there might be precision
differences since this is experimental code
Reviewed by: portmgr (silence/no objections)
Submitted by: wollman [1] |
0.62_2 18 Dec 2002 18:45:26 |
lioux |
Mark as ONLY_FOR_ARCHS i386 since it requires either a pentium
hardware tick counter or an equivalent Solaris gethrtime() syscall.
This should be investigated further. FreeBSD might have an equivalent
syscall.
Submitted by: bento |
0.62_2 04 Nov 2002 22:57:37 |
edwin |
Half of these ones missed yesterday while converting to USE_REINPLACE.
The other half needs perl to build.
Noticed on bento and others (full mailbox :-) |
0.62_2 20 Sep 2002 14:38:47 |
lioux |
Sanitize MASTER_SITES
Submitted by: fenner's distfile survey |
0.62_2 08 Jul 2002 01:34:45 |
lioux |
Sanitize MASTER_SITES |
29 Jan 2002 11:58:52 |
knu |
Use ${ECHO_CMD} instead of ${ECHO} where you mean the echo command; the ECHO
macro is set to "echo" by default, but it is set to "true" if make(1) is
invoked with the -s option while ECHO_CMD is always set to the echo command.
|
25 May 2001 15:58:06 |
lioux |
1) Install leapsecs.dat (leapseconds support) 2) Add PKGMESSAGE with
additional FreeBSD specific installation information 3) Install sample
startup script 4) Bump PORTREVISION due to (1) |
22 Feb 2001 17:22:39 |
lioux |
Add new MASTER_SITES |
20 Jan 2001 00:39:56 |
will |
Hopefully finish syncing with bsd.port.mk rev 1.361 - use bsd.port.mk defined
PORTDOCS PLIST_SUB. |
16 Jan 2001 19:08:46 |
will |
Update to sync with bsd.port.mk rev 1.361 - use PORTDOCS that is now in
bsd.port.mk, for easy removal of documentation. I left alone one port -
japanese/elisa8x8 (or something like that), because it appeared to have some
rather weird way of doing PORTDOCS substitution. |
16 Jan 2001 17:33:20 |
sobomax |
Massive style enforcement - use ^I instead of spaces for variables identation.
|
20 Nov 2000 14:48:56 |
lioux |
Submitted by: sobomax |
20 Nov 2000 11:16:01 |
lioux |
Submitted by: Jos Backus <josb@cncdsl.com> |
08 Oct 2000 07:23:57 |
asami |
Convert category sysutils to new layout. |
03 Oct 2000 06:12:50 |
lioux |
Maintainer is now a committer, update email accordingly |
07 Jul 2000 15:30:02 |
sobomax |
Add clockspeed - a program which uses a hardware tick counter to compensate
for a persistently fast or slow system clock. It also could be used to
synchronize time across LAN or WAN. |