]> git.ipfire.org Git - thirdparty/ntp.git/commitdiff
Many files:
authorHarlan Stenn <stenn@ntp.org>
Thu, 10 Feb 2000 08:19:50 +0000 (08:19 -0000)
committerHarlan Stenn <stenn@ntp.org>
Thu, 10 Feb 2000 08:19:50 +0000 (08:19 -0000)
  Remove files with hardcoded path to perl...
  ...Put them back in using PATH_PERL
  * scripts/ntp-restart: It's ntpd now.  Also, call ntp-wait.
  * configure.in (AC_CONFIG_*): New scripts that use PATH_PERL
  * scripts/Makefile.am (noinst_SCRIPTS): Added all of the scripts that
  now use PATH_PERL

bk: 38a274a6If8ysXeLjUbvzi2o0vA_aw

13 files changed:
ChangeLog
configure
configure.in
scripts/Makefile.am
scripts/Makefile.in
scripts/README
scripts/calc_tickadj.in [moved from scripts/calc_tickadj with 96% similarity]
scripts/checktime.in [moved from scripts/checktime with 97% similarity, mode: 0644]
scripts/freq_adj.in [moved from scripts/freq_adj with 99% similarity, mode: 0644]
scripts/ntp-restart
scripts/ntpsweep.in [moved from scripts/ntpsweep with 99% similarity, mode: 0644]
scripts/plot_summary.in [moved from scripts/plot_summary.pl with 99% similarity, mode: 0644]
scripts/summary.in [moved from scripts/summary.pl with 99% similarity]

index 116a4a39dd41c4331c8137b693cb303d6e2b9e11..332aea3adf520b1282fe499c4f5fd96e461f50f9 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,11 @@
 2000-02-10  Harlan Stenn  <stenn@whimsy.udel.edu>
 
-       * scripts/Makefile.am (noinst_SCRIPTS): Addede ntp-wait
+       * scripts/ntp-restart: It's ntpd now.  Also, call ntp-wait.
+
+       * configure.in (AC_CONFIG_*): New scripts that use PATH_PERL
+
+       * scripts/Makefile.am (noinst_SCRIPTS): Added ntp-wait
+       (noinst_SCRIPTS): Added all of the scripts that now use PATH_PERL
 
        * configure.in: Get the path to perl
        (AC_CONFIG_*): Added scripts/ntp-wait
index 293439595c2e84b989bae2f4f9574b64725e2751..b87e8d964ea1206bac19c7ea30a0b78062e54245 100755 (executable)
--- a/configure
+++ b/configure
@@ -10879,7 +10879,9 @@ config_files="\\
   kernel/Makefile kernel/sys/Makefile libntp/Makefile libparse/Makefile
   librsaref/Makefile ntpd/Makefile ntpdc/Makefile ntpdate/Makefile
   ntpq/Makefile ntptrace/Makefile parseutil/Makefile scripts/Makefile
-  scripts/mkver scripts/ntp-wait scripts/ntpver util/Makefile"
+  scripts/calc_tickadj scripts/checktime scripts/freq_adj scripts/mkver
+  scripts/ntp-wait scripts/ntpsweep scripts/ntpver scripts/plot_summary
+  scripts/summary util/Makefile"
 config_headers="\\
   config.h"
 config_commands="\\
   'ntptrace/Makefile' ) CONFIG_FILES="\$CONFIG_FILES ntptrace/Makefile" ;;
   'parseutil/Makefile' ) CONFIG_FILES="\$CONFIG_FILES parseutil/Makefile" ;;
   'scripts/Makefile' ) CONFIG_FILES="\$CONFIG_FILES scripts/Makefile" ;;
+  'scripts/calc_tickadj' ) CONFIG_FILES="\$CONFIG_FILES scripts/calc_tickadj" ;;
+  'scripts/checktime' ) CONFIG_FILES="\$CONFIG_FILES scripts/checktime" ;;
+  'scripts/freq_adj' ) CONFIG_FILES="\$CONFIG_FILES scripts/freq_adj" ;;
   'scripts/mkver' ) CONFIG_FILES="\$CONFIG_FILES scripts/mkver" ;;
   'scripts/ntp-wait' ) CONFIG_FILES="\$CONFIG_FILES scripts/ntp-wait" ;;
+  'scripts/ntpsweep' ) CONFIG_FILES="\$CONFIG_FILES scripts/ntpsweep" ;;
   'scripts/ntpver' ) CONFIG_FILES="\$CONFIG_FILES scripts/ntpver" ;;
+  'scripts/plot_summary' ) CONFIG_FILES="\$CONFIG_FILES scripts/plot_summary" ;;
+  'scripts/summary' ) CONFIG_FILES="\$CONFIG_FILES scripts/summary" ;;
   'util/Makefile' ) CONFIG_FILES="\$CONFIG_FILES util/Makefile" ;;
   'default-1' ) CONFIG_COMMANDS="\$CONFIG_COMMANDS default-1" ;;
   'default-2' ) CONFIG_COMMANDS="\$CONFIG_COMMANDS default-2" ;;
@@ -11429,7 +11437,7 @@ for mf in $CONFIG_FILES; do
   done
 done
  ;;
-    default ) chmod +x scripts/ntp-wait scripts/ntpver scripts/mkver ;;
+    default ) chmod +x scripts/calc_tickadj scripts/checktime scripts/freq_adj scripts/mkver scripts/ntp-wait scripts/ntpsweep scripts/ntpver scripts/plot_summary scripts/summary ;;
   esac
 fi;done
 EOF
index cf6c762d638d5af497c062b1bccc9895a071e090..a012b8a086f858abf524e31ef9ca4869bb963c48 100644 (file)
@@ -2993,7 +2993,9 @@ AC_CONFIG_FILES(Makefile adjtimed/Makefile clockstuff/Makefile \
 include/Makefile kernel/Makefile kernel/sys/Makefile libntp/Makefile \
 libparse/Makefile librsaref/Makefile ntpd/Makefile ntpdc/Makefile \
 ntpdate/Makefile ntpq/Makefile ntptrace/Makefile parseutil/Makefile \
-scripts/Makefile scripts/mkver scripts/ntp-wait scripts/ntpver util/Makefile)
-AC_CONFIG_COMMANDS(default, [[chmod +x scripts/ntp-wait scripts/ntpver scripts/mkver]], [])
+scripts/Makefile scripts/calc_tickadj scripts/checktime scripts/freq_adj \
+scripts/mkver scripts/ntp-wait scripts/ntpsweep scripts/ntpver \
+scripts/plot_summary scripts/summary util/Makefile)
+AC_CONFIG_COMMANDS(default, [[chmod +x scripts/calc_tickadj scripts/checktime scripts/freq_adj scripts/mkver scripts/ntp-wait scripts/ntpsweep scripts/ntpver scripts/plot_summary scripts/summary]], [])
 AC_OUTPUT
 #test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h])
index 4705dd9ed3fa777aff4dac52dbdfd0b454892f91..173e604221c2af252d17db5d03e6d20b06ade6cc 100644 (file)
@@ -1 +1 @@
-noinst_SCRIPTS = mkver ntp-wait ntpver
+noinst_SCRIPTS = calc_tickadj checktime freq_adj mkver ntp-wait ntpsweep ntpver plot_summary summary
index 4233c10b8d0594a95364695195361ec35274c3eb..2143524471e0adf5c70c2dee28283795b6db9f43 100644 (file)
@@ -100,16 +100,18 @@ VERSION = @VERSION@
 install_sh = @install_sh@
 
 
-noinst_SCRIPTS = mkver ntp-wait ntpver
+noinst_SCRIPTS = calc_tickadj checktime freq_adj mkver ntp-wait ntpsweep ntpver plot_summary summary
 subdir = scripts
 mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
 CONFIG_HEADER = ../config.h
-CONFIG_CLEAN_FILES =  mkver ntp-wait ntpver
+CONFIG_CLEAN_FILES =  calc_tickadj checktime freq_adj mkver ntp-wait \
+ntpsweep ntpver plot_summary summary
 SCRIPTS =  $(noinst_SCRIPTS)
 
 DIST_SOURCES = 
-DIST_COMMON =  README Makefile.am Makefile.in mkver.in ntp-wait.in \
-ntpver.in
+DIST_COMMON =  README Makefile.am Makefile.in calc_tickadj.in \
+checktime.in freq_adj.in mkver.in ntp-wait.in ntpsweep.in ntpver.in \
+plot_summary.in summary.in
 
 
 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
@@ -124,12 +126,24 @@ Makefile: $(srcdir)/Makefile.in  $(top_builddir)/config.status $(BUILT_SOURCES)
        cd $(top_builddir) \
          && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
 
+calc_tickadj: $(top_builddir)/config.status calc_tickadj.in
+       cd $(top_builddir) && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
+checktime: $(top_builddir)/config.status checktime.in
+       cd $(top_builddir) && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
+freq_adj: $(top_builddir)/config.status freq_adj.in
+       cd $(top_builddir) && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
 mkver: $(top_builddir)/config.status mkver.in
        cd $(top_builddir) && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
 ntp-wait: $(top_builddir)/config.status ntp-wait.in
        cd $(top_builddir) && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
+ntpsweep: $(top_builddir)/config.status ntpsweep.in
+       cd $(top_builddir) && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
 ntpver: $(top_builddir)/config.status ntpver.in
        cd $(top_builddir) && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
+plot_summary: $(top_builddir)/config.status plot_summary.in
+       cd $(top_builddir) && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
+summary: $(top_builddir)/config.status summary.in
+       cd $(top_builddir) && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
 tags: TAGS
 TAGS:
 
index 9e2946748b4593fd9eb0bcdec24818ee60b3d984..02eff5356617f3df2ec49d5d9338082384f40373 100644 (file)
@@ -23,6 +23,10 @@ ntp-groper   script useful for reaching out and rattling the cages of
 
 ntp-restart    script useful for killing and restarting the NTP daemon
 
+ntp-wait       Blocks until ntpd is in state 4 (synchronized).
+               Hopefully useful at boot time, to delay the boot sequence
+               until after "ntpd -g" has set the time.
+
 ntpsweep       prints per host given in <file> the NTP stratum level, the
                clock offset in seconds, the daemon version, the operating
                system and the processor.
similarity index 96%
rename from scripts/calc_tickadj
rename to scripts/calc_tickadj.in
index f7a9f9f1d799a7606a24143b32b3c5b1c520c89a..32eae12964a2b1282f37e27ad88a31d92c2e71fd 100644 (file)
@@ -1,4 +1,4 @@
-#! /usr/local/bin/perl
+#! @PATH_PERL@
 #
 # drift of 104.8576 -> +1 tick.  Base  of 10000 ticks.
 #
old mode 100755 (executable)
new mode 100644 (file)
similarity index 97%
rename from scripts/checktime
rename to scripts/checktime.in
index 850e2ec..2fe8f71
@@ -1,5 +1,5 @@
-#!/usr/local/bin/perl 
-#!/usr/local/bin/perl -d
+#! @PATH_PERL@
+#! @PATH_PERL@ -d
 # 
 # This script compares the time of several machines with the
 # time on the local host.
old mode 100755 (executable)
new mode 100644 (file)
similarity index 99%
rename from scripts/freq_adj
rename to scripts/freq_adj.in
index 4af4316..88eb390
@@ -1,4 +1,4 @@
-#! /usr/bin/perl -w
+#! @PATH_PERL@ -w
 
 die "perl5 needed\n" unless ($] > 5);
 
index d2023f0b67b292ee4b342895fe97829d39550e83..0a1d58a5c56c88da76f3d5bbe090729fbc56b3cc 100755 (executable)
@@ -1,9 +1,10 @@
 #!/bin/sh
 #
 # This script can be used to kill and restart the NTP daemon. Edit the
-# /usr/local/bin/xntpd line to fit.
+# /usr/local/bin/ntpd line to fit.
 #
-kill -INT `ps -ax | egrep "xntpd" | egrep -v "egrep" | sed 's/^\([ 0-9]*\) .*/\1'/`
+kill -INT `ps -ax | egrep "ntpd" | egrep -v "egrep" | sed 's/^\([ 0-9]*\) .*/\1'/`
 sleep 10
-/usr/local/bin/xntpd
+/usr/local/bin/ntpd -g
+/usr/local/bin/ntp-wait
 exit 0
old mode 100755 (executable)
new mode 100644 (file)
similarity index 99%
rename from scripts/ntpsweep
rename to scripts/ntpsweep.in
index 7aca7ee..156fb45
@@ -1,4 +1,4 @@
-#!/usr/local/bin/perl -w
+#! @PATH_PERL@ -w
 #
 # $Id$
 #
old mode 100755 (executable)
new mode 100644 (file)
similarity index 99%
rename from scripts/plot_summary.pl
rename to scripts/plot_summary.in
index 7f892bc..3b46a04
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#! @PATH_PERL@ -w
 # $Id$
 #
 # Use Gnuplot to display data in summary files produced by summary.pl.
similarity index 99%
rename from scripts/summary.pl
rename to scripts/summary.in
index 4fc58cb05921d711fbb4ed8b19e1c00e6ee04d59..515dfc6b56f7c4e75307869b0d59c547e4b9e13b 100644 (file)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#! @PATH_PERL@ -w
 # $Id$
 # Perl version of (summary.sh, loop.awk, peer.awk):
 # Create summaries from xntpd's loop and peer statistics.