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
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
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" ;;
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
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])
-noinst_SCRIPTS = mkver ntp-wait ntpver
+noinst_SCRIPTS = calc_tickadj checktime freq_adj mkver ntp-wait ntpsweep ntpver plot_summary summary
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)
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:
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.
-#! /usr/local/bin/perl
+#! @PATH_PERL@
#
# drift of 104.8576 -> +1 tick. Base of 10000 ticks.
#
-#!/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.
-#! /usr/bin/perl -w
+#! @PATH_PERL@ -w
die "perl5 needed\n" unless ($] > 5);
#!/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
-#!/usr/local/bin/perl -w
+#! @PATH_PERL@ -w
#
# $Id$
#
-#!/usr/bin/perl -w
+#! @PATH_PERL@ -w
# $Id$
#
# Use Gnuplot to display data in summary files produced by summary.pl.
-#!/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.