1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-28 21:29:28 +00:00
freebsd-ports/sysutils/clockspeed/files/patch-ad
Mario Sergio Fujikawa Ferreira 69feeee703 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)

PR:		27617
Submitted by:	Vivek Khera <khera@kciLink.com>
2001-05-25 14:58:06 +00:00

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/clockspeed/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.