mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-04 22:33:27 +00:00
df6c5fd47c
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>
59 lines
2.3 KiB
Plaintext
59 lines
2.3 KiB
Plaintext
--- 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.
|
|
|
|
|