r393 - in trunk/BOOK: . chapter01 servers

manuel at linuxfromscratch.org manuel at linuxfromscratch.org
Wed Mar 16 10:16:40 PST 2005


Author: manuel
Date: 2005-03-16 11:16:38 -0700 (Wed, 16 Mar 2005)
New Revision: 393

Added:
   trunk/BOOK/servers/openntpd.xml
Modified:
   trunk/BOOK/chapter01/changelog.xml
   trunk/BOOK/general.ent
   trunk/BOOK/servers/servers.xml
Log:
Added OpenNTPD.

Modified: trunk/BOOK/chapter01/changelog.xml
===================================================================
--- trunk/BOOK/chapter01/changelog.xml	2005-03-16 17:27:19 UTC (rev 392)
+++ trunk/BOOK/chapter01/changelog.xml	2005-03-16 18:16:38 UTC (rev 393)
@@ -72,6 +72,7 @@
 <listitem><para>mktemp-1.5</para></listitem>
 <listitem><para>module-init-tools-3.1</para></listitem>
 <listitem><para>ncurses-5.4</para></listitem>
+<listitem><para>openntpd-3.6.1p1</para></listitem>
 <listitem><para>openssl-0.9.7e</para></listitem>
 <listitem><para>patch-2.5.9</para></listitem>
 <listitem><para>paxctl-0.2</para></listitem>
@@ -108,6 +109,8 @@
 </listitem>
 -->
 
+<listitem><para>March 16th, 2005 [manuel]: Added OpenNTPD.</para></listitem>
+
 <listitem><para>March 16th, 2005 [Robert]: Added tidbit to grep's
 configure options in chapter 6.</para></listitem>
 

Modified: trunk/BOOK/general.ent
===================================================================
--- trunk/BOOK/general.ent	2005-03-16 17:27:19 UTC (rev 392)
+++ trunk/BOOK/general.ent	2005-03-16 18:16:38 UTC (rev 393)
@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="ISO-8859-1"?>
-<!ENTITY version "SVN-20050314">
-<!ENTITY releasedate "March 14, 2005">
+<!ENTITY version "SVN-20050316">
+<!ENTITY releasedate "March 16, 2005">
 <!ENTITY milestone "0.3">
 
 <!ENTITY lfs-root "http://www.linuxfromscratch.org/">

Added: trunk/BOOK/servers/openntpd.xml
===================================================================
--- trunk/BOOK/servers/openntpd.xml	2005-03-16 17:27:19 UTC (rev 392)
+++ trunk/BOOK/servers/openntpd.xml	2005-03-16 18:16:38 UTC (rev 393)
@@ -0,0 +1,134 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
+  <!ENTITY % general-entities SYSTEM "../general.ent">
+  %general-entities;
+
+<!-- Don't forget to time the build and check build size, etc.-->
+
+<!ENTITY openntpd-download-http "http://ftp.chg.ru/pub/OpenBSD/OpenNTPD/openntpd-3.6.1p1.tar.gz">
+<!ENTITY openntpd-download-ftp "ftp://ftp.openbsd.org/pub/OpenBSD/OpenNTPD/openntpd-3.6.1p1.tar.gz">
+<!ENTITY openntpd-size "?? KB">
+<!ENTITY openntpd-buildsize "?? MB">
+<!ENTITY openntpd-time "?? SBU">
+<!ENTITY openntpd-version "3.6.1p1">
+
+]>
+<sect1 id="OpenNTPD" role="wrap" xreflabel="OpenNTPD-&openntpd-version;">
+<title>OpenNTPD-&openntpd-version;</title>
+<?dbhtml filename="openntpd.html"?>
+
+<indexterm zone="OpenNTPD"><primary sortas="a-OpenNTPD">OpenNTPD</primary></indexterm>
+
+<sect2 role="package"><title/>
+
+<para>OpenNTPD is a server and client daemon conforming to RFC 958, the Network
+Time Protocol (NTP). The RFC reads <quote>It should be recognized that clock
+synchronization requires by its nature long periods and multiple comparisons
+in order to maintain accurate timekeeping.</quote> This version of the NTP daemon
+only steps the clock a few tenths of a second at a time, totalling to about
+two seconds per hour. It is therefore suggested you install and run Rdate
+before running OpenNTPD to initially set your system clock. See the homepage,
+RFC, and Man page for more information.</para>
+
+<segmentedlist>
+<segtitle>Download (HTTP)</segtitle>
+<segtitle>Download (FTP)</segtitle>
+<segtitle>Download size</segtitle>
+<segtitle>&buildtime;</segtitle>
+<segtitle>&diskspace;</segtitle>
+<seglistitem>
+<seg><ulink url="&openntpd-download-http;"/></seg>
+<seg><ulink url="&openntpd-download-ftp;"/></seg>
+<seg>&openntpd-size;</seg>
+<seg>&openntpd-time;</seg>
+<seg>&openntpd-buildsize;</seg>
+</seglistitem>
+</segmentedlist>
+
+</sect2>
+
+<sect2 role="installation">
+<title>Installation of OpenNTPD</title>
+
+<para>This version of the Network Time Protocol Daemon uses privilege separation,
+like OpenSSH's daemon. As the root user, add a dedicated group and user:</para>
+
+<screen><userinput>groupadd ntp
+useradd -g ntp -s /sbin/nologin -d /var/empty -c 'OpenNTP daemon' ntp</userinput></screen>
+
+<para>Return to the builder user and amend <filename>Makefile.in</filename>:</para>
+
+<screen><userinput>sed -e 's/^CFLAGS=.*$/& -pie -fpie/' -i Makefile.in</userinput></screen>
+
+<para>Prepare OpenNTPD for compilation:</para>
+
+<screen><userinput>./configure --prefix=/usr --sysconfdir=/etc \
+    --with-privsep-user=ntp</userinput></screen>
+
+<para>Compile the package:</para>
+
+<screen><userinput>make</userinput></screen>
+
+<para>Now, as the root user, install the package:</para>
+
+<screen><userinput>make install</userinput></screen>
+
+<para>In the HLFS patched BLFS-Bootscripts do:</para>
+
+<screen><userinput>make install-openntpd</userinput></screen>
+
+<para>Make these symbolic links if you would like to save the system time to the
+hardware clock at shutdown:</para>
+
+<screen><userinput>ln -sf ../init.d/setclock /etc/rc.d/rc0.d/K46setclock
+ln -sf ../init.d/setclock /etc/rc.d/rc6.d/K46setclock</userinput></screen>
+
+<para>For a list of NTP servers see: <ulink url="http://ntp.isc.org/bin/view/Servers/WebHome"/>.
+Your <filename>/etc/ntpd.conf</filename> should include several servers. The DNS pool server
+can be used multiple times, such as:</para>
+
+<screen><literal>server pool.ntp.org
+server pool.ntp.org
+server pool.ntp.org</literal></screen>
+
+</sect2>
+
+
+<sect2 role="content"><title>Contents of OpenNTPD</title>
+
+<segmentedlist>
+<segtitle>Installed programs</segtitle>
+<segtitle>Installed libraries</segtitle>
+<seglistitem><seg>Insert installed program names here</seg>
+<seg>Insert installed libraries names here</seg></seglistitem>
+</segmentedlist>
+
+<!-- Leaving this in as an example of how to set up the description of programs
+so that they are properly indexed
+
+<variablelist><bridgehead renderas="sect3">Short Descriptions</bridgehead>
+<?dbfo list-presentation="list"?>
+<?dbhtml list-presentation="table"?>
+
+<varlistentry id="programname">
+<term><command>programname</command></term>
+<listitem>
+<para>Description ... </para>
+<indexterm zone="OpenNTPD programname"><primary sortas="b-programname">programname</primary></indexterm>
+</listitem>
+</varlistentry>
+
+<varlistentry id="libraryname">
+<term><filename class="libraryfile">libraryname</filename></term>
+<listitem>
+<para>Description ... </para>
+<indexterm zone="OpenNTPD libraryname"><primary sortas="c-libraryname">libraryname</primary></indexterm>
+</listitem>
+</varlistentry>
+
+</variablelist>
+-->
+</sect2>
+
+</sect1>
+


Property changes on: trunk/BOOK/servers/openntpd.xml
___________________________________________________________________
Name: svn:keywords
   + "Author Date Revision Id"

Modified: trunk/BOOK/servers/servers.xml
===================================================================
--- trunk/BOOK/servers/servers.xml	2005-03-16 17:27:19 UTC (rev 392)
+++ trunk/BOOK/servers/servers.xml	2005-03-16 18:16:38 UTC (rev 393)
@@ -11,5 +11,6 @@
 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="introduction.xml"/>
 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="time.xml"/>
 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="rdate.xml"/>
+<xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="openntpd.xml"/>
 
 </chapter>




More information about the hlfs-book mailing list