Index: basicnet/djb/daemontools/daemontools-desc.xml
===================================================================
--- basicnet/djb/daemontools/daemontools-desc.xml	(revision f45b195302d36939467202524156f38e0369b4f2)
+++ basicnet/djb/daemontools/daemontools-desc.xml	(revision f45b195302d36939467202524156f38e0369b4f2)
@@ -0,0 +1,83 @@
+<sect2>
+<title>Contents</title>
+
+<para>The daemontools package contains <userinput>svscanboot svscan 
+supervise svc svok svstat fghack pgrphack readproctitle multilog tai64n 
+tai64nlocal setuidgid envuidgid envdir softlimit</userinput> and 
+<userinput>setlock</userinput>. More detailed descriptions of these 
+commands may be found at http://cr.yp.to/daemontools.html.</para>
+
+</sect2>
+
+<sect2><title>Description</title>
+
+<sect3><title>svscanboot</title>
+<para>svscanboot is simply a script that calls svscan and pipes its output 
+to readproctitle.</para></sect3>
+
+<sect3><title>svscan</title>
+<para>svscan checks the service directory for daemons to run and starts 
+a supervise process for each run script that it finds.</para></sect3>
+
+<sect3><title>supervise</title>
+<para>supervise runs the run script passed to it by svscan and monitors 
+the process the script starts so that if it dies, supervise restarts it.
+</para></sect3>
+
+<sect3><title>svc</title>
+<para>svc sends signals to processes being run under supervise.
+</para></sect3>
+
+<sect3><title>svok</title>
+<para>svok checks to see that supervise is running in the directory 
+passed to it.</para></sect3>
+
+<sect3><title>svstat</title>
+<para>svstat prints the status of processes monitored by supervise.
+</para></sect3>
+
+<sect3><title>fghack</title>
+<para>fghack prevents processes from putting themselves into the 
+background.</para></sect3>
+
+<sect3><title>pgrphack</title>
+<para>pgrphack runs a process in a separate process group.</para>
+</sect3>
+
+<sect3><title>readproctitle</title>
+<para>readproctitle displays log entries in the output of ps.</para>
+</sect3>
+
+<sect3><title>multilog</title>
+<para>multilog is a logging program. It takes output from a daemon and 
+appends it to any number of logs.</para></sect3>
+
+<sect3><title>tai64n</title>
+<para>tai64n is a timestamp generating program.</para></sect3>
+
+<sect3><title>tai64nlocal</title>
+<para>tai64nlocal converts output of tai64n into a human readable 
+format.</para></sect3>
+
+<sect3><title>setuidgid</title>
+<para>setuidgid runs a specified program under a given account's uid 
+and gid.</para></sect3>
+
+<sect3><title>envuidgid</title>
+<para>envuidgid performs the same function as setuidgid, but sets 
+environment variables $UID and $GID equal to the uid and gid of the 
+account specified.</para></sect3>
+
+<sect3><title>envdir</title>
+<para>envdir runs a given program with environment variables specified 
+by files in a directory.</para></sect3>
+
+<sect3><title>softlimit</title>
+<para>softlimit allows resource limits to be set for a given program.
+</para></sect3>
+
+<sect3><title>setlock</title>
+<para>setlock locks a file and runs a program.</para></sect3>
+
+</sect2>
+
Index: basicnet/djb/daemontools/daemontools-exp.xml
===================================================================
--- basicnet/djb/daemontools/daemontools-exp.xml	(revision f45b195302d36939467202524156f38e0369b4f2)
+++ basicnet/djb/daemontools/daemontools-exp.xml	(revision f45b195302d36939467202524156f38e0369b4f2)
@@ -0,0 +1,56 @@
+<sect2>
+<title>Command explanations</title>
+
+<para>The first thing to understand in installing any package written 
+by Daniel J. Bernstein, and 
+this includes Qmail, djbdns and ucspi-tcp in addition to daemontools, is 
+that he is willing to completely disregard standards if his idea of the 
+correct thing to do differs from an particular standard. Professor 
+Bernstein is a standards body unto himself when it comes to his own 
+software. </para>
+
+<para>It is therefore necessary to make quite a few changes to the 
+installation commands for his packages to get them to install in a manner 
+that is compliant with the Filesystem Hierarchy Standard (FHS). Most of 
+the following commands are due to this difficulty.</para>
+
+<para><userinput>cd admin/daemontools-0.76: </userinput>First off, the 
+package is unpacked in an "admin" directory. You will find the actual 
+packages two directory levels below this.</para>
+
+<para><userinput>package/compile: </userinput>This command actually 
+compiles the source and puts the binaries in a command directory.</para>
+
+<para><screen><userinput>sed 's|command|usr/sbin|' boot.inittab &gt; boot.inittab~</userinput>
+<userinput>mv boot.inittab~ boot.inittab</userinput></screen></para>
+<para>These two commands are necessary to get the 
+binaries installed in /usr/sbin rather than 
+creating a non-standard /command directory and installing them there.
+</para>
+
+<para><screen><userinput>sed 's|/command:/usr/local/bin:/usr/local/sbin:||' svscanboot &gt; svscanboot~</userinput>
+<userinput>sed 's|/service|/etc/service|g' svscanboot~ &gt; svscanboot</userinput>
+<userinput>rm svscanboot~</userinput></screen></para>
+<para>This changes the svscanboot script so that it checks the 
+/etc/service directory for daemons to run instead of the default 
+/service directory.</para>
+
+<para><userinput>cp * /usr/sbin: </userinput>We must manually copy the 
+binaries to the /usr/sbin directory.</para>
+
+<para><screen><userinput>cat /etc/inittab boot.inittab &gt; /etc/inittab~</userinput>
+<userinput>mv -f /etc/inittab~ /etc/inittab</userinput></screen></para>
+
+<para>These commands append a line to /etc/inittab so that init will launch
+the svscan program.</para>
+
+<para><userinput>telinit Q: </userinput>This command tells the init 
+process to re-read its configuration file (inittab) and act upon any 
+changes that have been made.</para>
+
+<para><userinput>mkdir /etc/service: </userinput>This command creates
+the daemontools control directory, which needs to exist, even if empty
+for daemontools to run properly.</para>
+
+</sect2>
+
Index: basicnet/djb/daemontools/daemontools-inst.xml
===================================================================
--- basicnet/djb/daemontools/daemontools-inst.xml	(revision f45b195302d36939467202524156f38e0369b4f2)
+++ basicnet/djb/daemontools/daemontools-inst.xml	(revision f45b195302d36939467202524156f38e0369b4f2)
@@ -0,0 +1,22 @@
+<sect2>
+<title>Installation of daemontools</title>
+
+<para>Install daemontools by running the following commands:</para>
+
+<para><screen><userinput>cd admin/daemontools-0.76 &amp;&amp; 
+package/compile &amp;&amp;
+cd package &amp;&amp; 
+sed 's|command|usr/sbin|' boot.inittab &gt; boot.inittab~ &amp;&amp; 
+mv boot.inittab~ boot.inittab &amp;&amp;
+cd ../command &amp;&amp;
+sed 's|/command:/usr/local/bin:/usr/local/sbin:||' svscanboot &gt; svscanboot~ &amp;&amp;
+sed 's|/service|/etc/service|g' svscanboot~ &gt; svscanboot &amp;&amp; 
+rm svscanboot~ &amp;&amp; 
+cp * /usr/sbin &amp;&amp;
+cd ../package &amp;&amp; 
+cat /etc/inittab boot.inittab &gt; /etc/inittab~ &amp;&amp; 
+mv -f /etc/inittab~ /etc/inittab &amp;&amp; 
+telinit Q &amp;&amp;
+mkdir /etc/service</userinput></screen></para>
+</sect2>
+
Index: basicnet/djb/daemontools/daemontools-intro.xml
===================================================================
--- basicnet/djb/daemontools/daemontools-intro.xml	(revision f45b195302d36939467202524156f38e0369b4f2)
+++ basicnet/djb/daemontools/daemontools-intro.xml	(revision f45b195302d36939467202524156f38e0369b4f2)
@@ -0,0 +1,13 @@
+<sect2>
+<title>Introduction to Daemontools</title>
+
+<screen>Download location:              &daemontools-download;
+Version used:                   &daemontools-version;
+Package size:                   &daemontools-size;
+Estimated Disk space required:  &daemontools-buildsize;</screen>
+
+<para>The daemontools package is a replacement for inetd or xinetd. The main 
+reason for using it here is because it's recommended for use with Qmail 
+and djbdns.</para>
+
+</sect2>
Index: basicnet/djb/daemontools/daemontools-man-desc.xml
===================================================================
--- basicnet/djb/daemontools/daemontools-man-desc.xml	(revision f45b195302d36939467202524156f38e0369b4f2)
+++ basicnet/djb/daemontools/daemontools-man-desc.xml	(revision f45b195302d36939467202524156f38e0369b4f2)
@@ -0,0 +1,10 @@
+<sect2>
+<title>Contents</title>
+
+<para>The daemontools-man package contains manpages for the daemontools
+commands <userinput>envdir envuidgid fghack multilog pgrphack
+readproctitle setlock setuidgid softlimit supervise svc svok svscan
+svscanboot svstat tai64n</userinput> and
+<userinput>tai64nlocal</userinput>.</para>
+
+</sect2>
Index: basicnet/djb/daemontools/daemontools-man-exp.xml
===================================================================
--- basicnet/djb/daemontools/daemontools-man-exp.xml	(revision f45b195302d36939467202524156f38e0369b4f2)
+++ basicnet/djb/daemontools/daemontools-man-exp.xml	(revision f45b195302d36939467202524156f38e0369b4f2)
@@ -0,0 +1,11 @@
+<sect2>
+<title>Command explanations</title>
+
+<para><userinput>gzip -9 *.8: </userinput>You can compress the manpages
+to save space, but it isn't needed for the manpages to work.</para>
+
+<para><userinput>package/compile: </userinput>This command actually 
+compiles the source and puts the binaries in a command directory.</para>
+
+</sect2>
+
Index: basicnet/djb/daemontools/daemontools-man-inst.xml
===================================================================
--- basicnet/djb/daemontools/daemontools-man-inst.xml	(revision f45b195302d36939467202524156f38e0369b4f2)
+++ basicnet/djb/daemontools/daemontools-man-inst.xml	(revision f45b195302d36939467202524156f38e0369b4f2)
@@ -0,0 +1,10 @@
+<sect2>
+<title>Installation of daemontools</title>
+
+<para>Install daemontools by running the following commands:</para>
+
+<para><screen><userinput>cd daemontools-man &amp;&amp; 
+gzip -9 *.8 &amp;&amp;
+cp *.8.gz /usr/share/man/man8/</userinput></screen></para>
+</sect2>
+
Index: basicnet/djb/daemontools/daemontools-man-intro.xml
===================================================================
--- basicnet/djb/daemontools/daemontools-man-intro.xml	(revision f45b195302d36939467202524156f38e0369b4f2)
+++ basicnet/djb/daemontools/daemontools-man-intro.xml	(revision f45b195302d36939467202524156f38e0369b4f2)
@@ -0,0 +1,12 @@
+<sect2>
+<title>Introduction to Daemontools-man</title>
+
+<screen>Download location:              &daemontools-man-download;
+Version used:                   &daemontools-man-version;
+Package size:                   &daemontools-man-size;
+Estimated Disk space required:  &daemontools-man-buildsize;</screen>
+
+<para>The Daemontools package does not come with manpages, so install
+this package if you want online help with the daemontools programs.</para>
+
+</sect2>
Index: basicnet/djb/daemontools/daemontools.ent
===================================================================
--- basicnet/djb/daemontools/daemontools.ent	(revision f45b195302d36939467202524156f38e0369b4f2)
+++ basicnet/djb/daemontools/daemontools.ent	(revision f45b195302d36939467202524156f38e0369b4f2)
@@ -0,0 +1,19 @@
+<!ENTITY daemontools SYSTEM "../daemontools.xml">
+<!ENTITY daemontools-intro SYSTEM "daemontools-intro.xml">
+<!ENTITY daemontools-inst SYSTEM "daemontools-inst.xml">
+<!ENTITY daemontools-exp SYSTEM "daemontools-exp.xml">
+<!ENTITY daemontools-desc SYSTEM "daemontools-desc.xml">
+<!ENTITY daemontools-buildsize "approximately 1 MB">
+<!ENTITY daemontools-version "0.76">
+<!ENTITY daemontools-download "http://cr.yp.to/daemontools/daemontools-0.76.tar.gz" >
+<!ENTITY daemontools-size "162 KB">
+
+<!ENTITY daemontools-man SYSTEM "../daemontools-man.xml">
+<!ENTITY daemontools-man-intro SYSTEM "daemontools-man-intro.xml">
+<!ENTITY daemontools-man-inst SYSTEM "daemontools-man-inst.xml">
+<!ENTITY daemontools-man-exp SYSTEM "daemontools-man-exp.xml">
+<!ENTITY daemontools-man-desc SYSTEM "daemontools-man-desc.xml">
+<!ENTITY daemontools-man-buildsize "approximately 1 MB">
+<!ENTITY daemontools-man-version "0.76">
+<!ENTITY daemontools-man-download "http://smarden.org/pape/djb/manpages/daemontools-0.76-man.tar.gz" >
+<!ENTITY daemontools-man-size "8 KB">
