[Git][NTPsec/ntpsec][master] Directory reorganization. Clients and standalone tools move to ntpclients.
Eric S. Raymond
gitlab at mg.gitlab.com
Thu Dec 8 00:21:41 UTC 2016
Eric S. Raymond pushed to branch master at NTPsec / ntpsec
Commits:
f475053d by Eric S. Raymond at 2016-12-07T19:17:17-05:00
Directory reorganization. Clients and standalone tools move to ntpclients.
Yes, 'clients' is bit meretricious here because things like ntpviz
and ntpleapfetch that aren't strictly are included. Forget theory,
this is a clutter-reduction move.
- - - - -
20 changed files:
- INSTALL
- README
- ntpdig/ntpdig → ntpclients/ntpdig
- ntpdig/ntpdig-man.txt → ntpclients/ntpdig-man.txt
- ntpkeygen/ntpkeygen → ntpclients/ntpkeygen
- ntpkeygen/ntpkeygen-man.txt → ntpclients/ntpkeygen-man.txt
- ntpleapfetch/ntpleapfetch → ntpclients/ntpleapfetch
- ntpleapfetch/ntpleapfetch-man.txt → ntpclients/ntpleapfetch-man.txt
- ntpq/ntpq → ntpclients/ntpq
- ntpq/ntpq-man.txt → ntpclients/ntpq-man.txt
- ntpsweep/ntpsweep → ntpclients/ntpsweep
- ntpsweep/ntpsweep-man.txt → ntpclients/ntpsweep-man.txt
- ntptrace/ntptrace → ntpclients/ntptrace
- ntptrace/ntptrace-man.txt → ntpclients/ntptrace-man.txt
- ntpstats/ntpviz → ntpclients/ntpviz
- ntpstats/ntpviz-man.txt → ntpclients/ntpviz-man.txt
- ntpwait/ntpwait → ntpclients/ntpwait
- ntpwait/ntpwait-man.txt → ntpclients/ntpwait-man.txt
- − ntpstats/README
- wscript
Changes:
=====================================
INSTALL
=====================================
--- a/INSTALL
+++ b/INSTALL
@@ -237,6 +237,14 @@ Configure NTPSec with:
There are also --cross-cflags and --cross-ldflags to supply the cross compiler
with appropriate values.
-
+
+== Statistics ==
+
+If you want to generate the ntpviz graphs regularly, add these lines to
+your root crontab:
+
+53 * * * * cd /usr/local/src/NTP/ntpsec/ntpstats; ./ntpviz -p 1 -o day
+45 11,23 * * * cd /usr/local/src/NTP/ntpsec/ntpstats; ./ntpviz -p 7 -o week
+
// end
=====================================
README
=====================================
--- a/README
+++ b/README
@@ -57,45 +57,22 @@ libparse/:: This directory contains the files making up the parser for
by just providing a conversion routine and the
appropriate NTP parameters
-ntpd/:: Sources for the main time-synchronization daemon.
+ntpclients/:: Directory containing sources for clients - utility programs
+ to query local and remote NTP installations for log status,
+ state variables, and other timekeeping information. The term
+ "clients" is used quite loosely here; any tool that is not a
+ not a multi-file C program probably lives in this directory.
-ntpdig/:: Query an NTP or SNTP server to report or set the time.
- (This tool was formerly sntp).
+ntpd/:: Sources for the main time-synchronization daemon.
ntpfrob/:: The ntpfrob utility collects several small diagnostic
functions for reading and tweaking the local clock
hardware, including reading the clock tick rate,
precision, and jitter.
-ntpkeygen/:: Directory containing the utility program used to generate
- NTP authentication keys.
-
-ntpleapfetch/:: Directory containing a script to be run from a cron job
- to keep your local leap-second file properly updated.
-
-ntpq/:: Directory containing sources for a utility program to
- query local and remote NTP peers for state variables and
- related timekeeping information.
-
-ntpstats/:: Statistics visualization and analysis tools built around
- the Python ntpstats.py module. Includes ntpviz.
-
-ntpsweep/:: Directory containing source for a utility program that can
- fetch basic information about timservers, recursing through
- peers to map the nearby topology of the time-service network.
-
ntptime/:: Directory containing a utility for reading and modifying
kernel parameters related to the local clock.
-ntptrace/:: Directory containing source for a utility program that
- can be used to reveal the chain of NTP peers from a
- designated peer to the primary server at the root of the
- timekeeping subnet.
-
-ntpwait/:: Directory containing a script that blocks until ntpd is
- in state 4 (synchronized). Useful at boot time, to delay
- the boot sequence until after "ntpd -g" has set the time.
-
pylib/:: Installable Python helper classes for scripts.
tests/:: Self-test code.
=====================================
ntpdig/ntpdig → ntpclients/ntpdig
=====================================
--- a/ntpdig/ntpdig
+++ b/ntpclients/ntpdig
=====================================
ntpdig/ntpdig-man.txt → ntpclients/ntpdig-man.txt
=====================================
--- a/ntpdig/ntpdig-man.txt
+++ b/ntpclients/ntpdig-man.txt
=====================================
ntpkeygen/ntpkeygen → ntpclients/ntpkeygen
=====================================
--- a/ntpkeygen/ntpkeygen
+++ b/ntpclients/ntpkeygen
=====================================
ntpkeygen/ntpkeygen-man.txt → ntpclients/ntpkeygen-man.txt
=====================================
--- a/ntpkeygen/ntpkeygen-man.txt
+++ b/ntpclients/ntpkeygen-man.txt
=====================================
ntpleapfetch/ntpleapfetch → ntpclients/ntpleapfetch
=====================================
--- a/ntpleapfetch/ntpleapfetch
+++ b/ntpclients/ntpleapfetch
=====================================
ntpleapfetch/ntpleapfetch-man.txt → ntpclients/ntpleapfetch-man.txt
=====================================
--- a/ntpleapfetch/ntpleapfetch-man.txt
+++ b/ntpclients/ntpleapfetch-man.txt
=====================================
ntpq/ntpq → ntpclients/ntpq
=====================================
--- a/ntpq/ntpq
+++ b/ntpclients/ntpq
=====================================
ntpq/ntpq-man.txt → ntpclients/ntpq-man.txt
=====================================
--- a/ntpq/ntpq-man.txt
+++ b/ntpclients/ntpq-man.txt
=====================================
ntpsweep/ntpsweep → ntpclients/ntpsweep
=====================================
--- a/ntpsweep/ntpsweep
+++ b/ntpclients/ntpsweep
=====================================
ntpsweep/ntpsweep-man.txt → ntpclients/ntpsweep-man.txt
=====================================
--- a/ntpsweep/ntpsweep-man.txt
+++ b/ntpclients/ntpsweep-man.txt
=====================================
ntptrace/ntptrace → ntpclients/ntptrace
=====================================
--- a/ntptrace/ntptrace
+++ b/ntpclients/ntptrace
=====================================
ntptrace/ntptrace-man.txt → ntpclients/ntptrace-man.txt
=====================================
--- a/ntptrace/ntptrace-man.txt
+++ b/ntpclients/ntptrace-man.txt
=====================================
ntpstats/ntpviz → ntpclients/ntpviz
=====================================
--- a/ntpstats/ntpviz
+++ b/ntpclients/ntpviz
=====================================
ntpstats/ntpviz-man.txt → ntpclients/ntpviz-man.txt
=====================================
--- a/ntpstats/ntpviz-man.txt
+++ b/ntpclients/ntpviz-man.txt
=====================================
ntpwait/ntpwait → ntpclients/ntpwait
=====================================
--- a/ntpwait/ntpwait
+++ b/ntpclients/ntpwait
=====================================
ntpwait/ntpwait-man.txt → ntpclients/ntpwait-man.txt
=====================================
--- a/ntpwait/ntpwait-man.txt
+++ b/ntpclients/ntpwait-man.txt
=====================================
ntpstats/README deleted
=====================================
--- a/ntpstats/README
+++ /dev/null
@@ -1,15 +0,0 @@
-This directory contains code for data reduction and visualization of NTP
-logfiles. It's written around a class named NTPstats, which can be found
-in ntpstats.py.
-
-While all comers are invited to experiment with ntpstats.py, its interface
-and capabilities are at present private to the NTPsec suite, subject to
-change without notice, and should not be considered a public interface.
-This status may (and probably will) change in a future release.
-
-If you want to generate the ntpviz graphs regularly, add these lines to
-your root crontab:
-
-53 * * * * cd /usr/local/src/NTP/ntpsec/ntpstats; ./ntpviz -p 1 -o day
-45 11,23 * * * cd /usr/local/src/NTP/ntpsec/ntpstats; ./ntpviz -p 7 -o week
-
=====================================
wscript
=====================================
--- a/wscript
+++ b/wscript
@@ -116,7 +116,7 @@ def afterparty(ctx):
# module built in libntp.
if ctx.cmd == 'clean':
ctx.exec_command("rm -f wafhelpers/*.pyc pylib/__pycache__/*.pyc wafhelpers/__pycache__/*.pyc")
- for x in ("ntpq", "ntpdig", "ntpstats", "ntpsweep", "ntptrace", "ntpwait"):
+ for x in ("ntpclients",): # List used to be longer...
path_build = ctx.bldnode.make_node("pylib")
path_source = ctx.srcnode.make_node(x + "/ntp")
relpath = "../" + path_build.path_from(ctx.srcnode)
@@ -136,13 +136,13 @@ def afterparty(ctx):
os.system("ln -sf %s/libntp/ntpc.so %s/pylib/ntpc.so " % (bldnode, bldnode))
python_scripts = [
- "ntpq/ntpq",
- "ntpstats/ntpviz",
- "ntptrace/ntptrace",
- "ntpwait/ntpwait",
- "ntpsweep/ntpsweep",
- "ntpkeygen/ntpkeygen",
- "ntpdig/ntpdig",
+ "ntpclients/ntpdig",
+ "ntpclients/ntpkeygen",
+ "ntpclients/ntpq",
+ "ntpclients/ntpsweep",
+ "ntpclients/ntptrace",
+ "ntpclients/ntpviz",
+ "ntpclients/ntpwait",
]
def build(ctx):
@@ -182,7 +182,7 @@ def build(ctx):
ctx.recurse("attic")
ctx.recurse("tests")
- scripts = ["ntpleapfetch/ntpleapfetch"] + python_scripts
+ scripts = ["ntpclients/ntpleapfetch"] + python_scripts
ctx(
features = "subst",
@@ -196,13 +196,14 @@ def build(ctx):
if ctx.cmd == 'clean':
afterparty(ctx)
- ctx.manpage(8, "ntpleapfetch/ntpleapfetch-man.txt")
- ctx.manpage(1, "ntpq/ntpq-man.txt")
- ctx.manpage(1, "ntptrace/ntptrace-man.txt")
- ctx.manpage(1, "ntpstats/ntpviz-man.txt")
- ctx.manpage(8, "ntpwait/ntpwait-man.txt")
- ctx.manpage(1, "ntpsweep/ntpsweep-man.txt")
- ctx.manpage(8, "ntpkeygen/ntpkeygen-man.txt")
+ ctx.manpage(8, "ntpclients/ntpleapfetch-man.txt")
+ ctx.manpage(1, "ntpclients/ntpdig-man.txt")
+ ctx.manpage(8, "ntpclients/ntpkeygen-man.txt")
+ ctx.manpage(1, "ntpclients/ntpq-man.txt")
+ ctx.manpage(1, "ntpclients/ntpsweep-man.txt")
+ ctx.manpage(1, "ntpclients/ntptrace-man.txt")
+ ctx.manpage(1, "ntpclients/ntpviz-man.txt")
+ ctx.manpage(8, "ntpclients/ntpwait-man.txt")
# Skip running unit tests on a cross compile build
if not ctx.env.ENABLE_CROSS:
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/f475053dfdd7e8f0f0b0d038fadd8d6732584744
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ntpsec.org/pipermail/vc/attachments/20161208/b4e0332d/attachment.html>
More information about the vc
mailing list