[Git][NTPsec/ntpsec][master] Breaking ground on the NTS service daemon.

Eric S. Raymond gitlab at mg.gitlab.com
Wed Jan 30 16:57:35 UTC 2019


Eric S. Raymond pushed to branch master at NTPsec / ntpsec


Commits:
a5e52bbc by Eric S. Raymond at 2019-01-30T16:54:17Z
Breaking ground on the NTS service daemon.

- - - - -


6 changed files:

- docs/includes/manual.adoc
- + docs/includes/ntsd-body.adoc
- + docs/ntsd.adoc
- + ntpd/ntsd-man.adoc
- + ntpd/ntsd.c
- ntpd/wscript


Changes:

=====================================
docs/includes/manual.adoc
=====================================
@@ -3,6 +3,7 @@
 * link:ntp_conf.html[+ntp.conf(5)+ - ntpd Configuration File]
 * link:ntp_keys.html[+ntp.keys(5)+ - NTP symmetric key file format]
 * link:ntpd.html[+ntpd(8)+ - Network Time Protocol (NTP) daemon]
+* link:ntps.html[+ntps(8)+ - Network Time Security (NTS) daemon]
 * link:ntpdig.html[+ntpdig(1)+ - Simple Network Time Protocol (SNTP) client]
 * link:ntpfrob.html[+ntpfrob(8)+ - frob the local clock hardware]
 * link:ntpkeygen.html[+ntpkeygen(8)+ - generate public and private keys]


=====================================
docs/includes/ntsd-body.adoc
=====================================
@@ -0,0 +1,14 @@
+// This is the body of the manual page for ntsd.
+// It's included in two places: once for the docs/ HTML
+// tree, and once to make an individual man page.
+
+== SYNOPSIS ==
+[verse]
+ntsd
+
+== DESCRIPTION ==
+
+This is a placeholder for a manual pafe fully describing the
+Network Time Security daemon, which is a work in progress.
+
+//end


=====================================
docs/ntsd.adoc
=====================================
@@ -0,0 +1,29 @@
+= ntsd - Network Time Protocol (NTP) Daemon =
+include::html.include[]
+
+//FIXME: Needs its own cartoon
+[cols="10%,90%",frame="none",grid="none",style="verse"]
+|===============================
+|image:pic/wingdorothy.gif[]|
+{millshome}pictures.html[from 'The Wizard of Oz', L. Frank Baum]
+
+You need help from the monkeys.
+
+|===============================
+
+== Manual Pages ==
+
+include::includes/manual.adoc[]
+
+== Table of Contents ==
+
+* link:#_synopsis[SYNOPSIS]
+* link:#_description[DESCRIPTION]
+
+'''''
+
+include::includes/ntsd-body.adoc[]
+
+'''''
+
+include::includes/footer.adoc[]


=====================================
ntpd/ntsd-man.adoc
=====================================
@@ -0,0 +1,23 @@
+= ntsd(8) =
+:man version: @NTPSEC_VERSION@
+include::../docs/manual.include[]
+
+ntsd - Network Time Security service daemon
+
+include::../docs/includes/ntps-body.adoc[]
+
+== EXIT STATUS ==
+
+One of the following exit values will be returned:
+
+0 (EXIT_SUCCESS)::
+  Successful program execution.
+
+1 (EXIT_FAILURE)::
+  Execution failed - examine system logfiles.
+
+== SEE ALSO ==
+
+{ntpdman}.
+
+// end


=====================================
ntpd/ntsd.c
=====================================
@@ -0,0 +1,6 @@
+#include <stdlib.h>
+
+int main(int argc, char *argv[])
+{
+    exit(0);
+}


=====================================
ntpd/wscript
=====================================
@@ -126,6 +126,23 @@ def build(ctx):
             "CRYPTO DNS_SD %s SOCKET NSL SCF" % use_refclock,
     )
 
+    ntsd_source = [
+	"nts.c",
+        "ntsd.c",
+    ]
+
+    ctx(
+        features="c rtems_trace cprogram bld_include src_include",
+        includes=["%s/host/ntpd/" % ctx.bldnode.parent.abspath(),
+                  "%s/ntpd/" % srcnode,
+                  ] + ctx.env.PLATFORM_INCLUDES,
+        install_path='${SBINDIR}',
+        source=ntsd_source,
+        target="ntsd",
+        use="ntp M parse RT CAP SECCOMP PTHREAD CRYPTO DNS_SD SOCKET NSL SCF",
+    )
+
+    ctx.manpage(8, "ntsd-man.adoc")
     ctx.manpage(8, "ntpd-man.adoc")
     ctx.manpage(5, "ntp.conf-man.adoc")
     ctx.manpage(5, "ntp.keys-man.adoc")



View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/a5e52bbcee597baab6e7b9418d418b8f86767a22

-- 
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/a5e52bbcee597baab6e7b9418d418b8f86767a22
You're receiving this email because of your account on gitlab.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ntpsec.org/pipermail/vc/attachments/20190130/7a0f17fe/attachment-0001.html>


More information about the vc mailing list