diff options
author | Maxim Sobolev <sobomax@FreeBSD.org> | 2000-07-07 14:30:01 +0000 |
---|---|---|
committer | Maxim Sobolev <sobomax@FreeBSD.org> | 2000-07-07 14:30:01 +0000 |
commit | df6c5fd47c2998f6ce167585be019978da841983 (patch) | |
tree | a1175fe8c4da5132d23c9bda9f830631ac96d3d6 /sysutils/clockspeed/files/patch-ad | |
parent | Add libtai - a library for storing and manipulating dates and times in second... (diff) |
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.
PR: 19349
Submitted by: Mario Sergio Fujikawa Ferreira <lioux@uol.com.br>
Notes
Notes:
svn path=/head/; revision=30298
Diffstat (limited to 'sysutils/clockspeed/files/patch-ad')
-rw-r--r-- | sysutils/clockspeed/files/patch-ad | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/sysutils/clockspeed/files/patch-ad b/sysutils/clockspeed/files/patch-ad new file mode 100644 index 000000000000..52cd9386d83b --- /dev/null +++ b/sysutils/clockspeed/files/patch-ad @@ -0,0 +1,58 @@ +--- INSTALL.orig Fri Jun 16 23:36:18 2000 ++++ INSTALL Fri Jun 16 23:46:18 2000 +@@ -5,7 +5,7 @@ + Things you have to decide before starting: + + * Where the clockspeed package will be installed, normally +-/usr/local/clockspeed. To change this directory, edit conf-home now. ++%%PREFIX%%. To change this directory, edit conf-home now. + + + How to install: +@@ -16,9 +16,9 @@ + or with gethrtime(). The compiler must support a 64-bit type, either + long or long long. + +- 2. Install the programs, the man pages, and /etc/leapsecs.dat: ++ 2. Install the programs, the man pages, and %%PREFIX%%/etc/leapsecs.dat: + # make setup check +- Put /usr/local/clockspeed/bin into $PATH. ++ Put %%PREFIX%%/bin into $PATH. + + + How to test: +@@ -39,20 +39,20 @@ + 5. Start clockspeed: + # clockspeed & + Give clockspeed a time measurement: +- # sntpclock 1.2.3.4 > /usr/local/clockspeed/adjust & ++ # sntpclock 1.2.3.4 > %%PREFIX%%/etc/clockspeed/adjust & + + 6. After a few hours, give clockspeed a second time measurement: +- # sntpclock 1.2.3.4 > /usr/local/clockspeed/adjust & ++ # sntpclock 1.2.3.4 > %%PREFIX%%/etc/clockspeed/adjust & + You can run sntpclock as a non-root user, if you change +- /usr/local/clockspeed/adjust to be owned by that user. I recommend ++ %%PREFIX%%/etc/clockspeed/adjust to be owned by that user. I recommend + this for security. + + 7. After a few days, check how well clockspeed has adjusted your clock: + % sntpclock 1.2.3.4 | clockview + Check how many attoseconds clockspeed thinks are in one tick: +- % clockview < /usr/local/clockspeed/etc/atto ++ % clockview < %%PREFIX%%/etc/clockspeed/atto + Give it another time measurement: +- # sntpclock 1.2.3.4 > /usr/local/clockspeed/adjust & ++ # sntpclock 1.2.3.4 > %%PREFIX%%/etc/clockspeed/adjust & + + 8. Repeat step 7 after a few weeks, then after a few months. Your clock + should now be synchronized to the remote clock to within a few +@@ -70,7 +70,7 @@ + Here 5.6.7.8 is the master's IP address. Set the client's clock: + # clockadd < adjustment + Finally, run clockspeed as in step 5, and do +- % taiclock 5.6.7.8 > /usr/local/clockspeed/adjust & ++ % taiclock 5.6.7.8 > %%PREFIX%%/etc/clockspeed/adjust & + after a few days. + + |