diff options
author | Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org> | 2001-05-25 14:58:06 +0000 |
---|---|---|
committer | Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org> | 2001-05-25 14:58:06 +0000 |
commit | 69feeee7037f64de337f5baf95f8a9cd813f0ab9 (patch) | |
tree | 2f56909703ddf6ad4d2b4ddbbe2d574eea0cbafe /sysutils/clockspeed/files | |
parent | 3ea6bb84f225dd2f779ce12d1091d4287fc034ff (diff) |
Notes
Diffstat (limited to 'sysutils/clockspeed/files')
-rw-r--r-- | sysutils/clockspeed/files/clockspeed.sh.sample | 16 | ||||
-rw-r--r-- | sysutils/clockspeed/files/patch-ad | 2 | ||||
-rw-r--r-- | sysutils/clockspeed/files/patch-leapsecs_read.c | 11 |
3 files changed, 28 insertions, 1 deletions
diff --git a/sysutils/clockspeed/files/clockspeed.sh.sample b/sysutils/clockspeed/files/clockspeed.sh.sample new file mode 100644 index 000000000000..c74fd1b8b622 --- /dev/null +++ b/sysutils/clockspeed/files/clockspeed.sh.sample @@ -0,0 +1,16 @@ +#!/bin/sh + +PREFIX=/usr/local/ + +case "$1" in +start) + exec ${PREFIX}/bin/clockspeed & + exit 0 + ;; +stop) + ;; +*) + echo "Usage: `basename $0` {start|stop}" >&2 + exit 64 + ;; +esac diff --git a/sysutils/clockspeed/files/patch-ad b/sysutils/clockspeed/files/patch-ad index 52cd9386d83b..390e0d794dda 100644 --- a/sysutils/clockspeed/files/patch-ad +++ b/sysutils/clockspeed/files/patch-ad @@ -14,7 +14,7 @@ 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: ++ 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. diff --git a/sysutils/clockspeed/files/patch-leapsecs_read.c b/sysutils/clockspeed/files/patch-leapsecs_read.c new file mode 100644 index 000000000000..b05ea4f8375e --- /dev/null +++ b/sysutils/clockspeed/files/patch-leapsecs_read.c @@ -0,0 +1,11 @@ +--- leapsecs_read.c.orig Thu May 24 20:07:04 2001 ++++ leapsecs_read.c Thu May 24 20:12:33 2001 +@@ -18,7 +18,7 @@ + int i; + struct tai u; + +- fd = open("/etc/leapsecs.dat",O_RDONLY | O_NDELAY); ++ fd = open("%%PREFIX%%/etc/clockspeed/leapsecs.dat",O_RDONLY | O_NDELAY); + if (fd == -1) { + if (errno != ENOENT) return -1; + if (leapsecs) free(leapsecs); |