<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
   "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
  <!ENTITY % general-entities SYSTEM "../../general.ent">
  %general-entities;

  <!ENTITY libdaemon-download-http "http://0pointer.de/lennart/projects/libdaemon/libdaemon-&libdaemon-version;.tar.gz">
  <!ENTITY libdaemon-download-ftp  " ">
  <!ENTITY libdaemon-md5sum        "509dc27107c21bcd9fbf2f95f5669563">
  <!ENTITY libdaemon-size          "332 KB">
  <!ENTITY libdaemon-buildsize     "3 MB">
  <!ENTITY libdaemon-time          "0.1 SBU">
]>

<sect1 id="libdaemon" xreflabel="libdaemon-&libdaemon-version;">
  <?dbhtml filename="libdaemon.html"?>

  <sect1info>
    <othername>$LastChangedBy: bdubbs $</othername>
    <date>$Date: 2015-02-20 19:04:13 -0500 (Fri, 20 Feb 2015) $</date>
  </sect1info>

  <title>libdaemon-&libdaemon-version;</title>

  <indexterm zone="libdaemon">
    <primary sortas="a-libdaemon">libdaemon</primary>
  </indexterm>

  <sect2 role="package">
    <title>Introduction to libdaemon</title>

    <para>
      The <application>libdaemon</application> package is a lightweight C
      library that eases the writing of UNIX daemons.
    </para>

    &lfs77_checked;

    <bridgehead renderas="sect3">Package Information</bridgehead>
    <itemizedlist spacing="compact">
      <listitem>
        <para>
          Download (HTTP): <ulink url="&libdaemon-download-http;"/>
        </para>
      </listitem>
      <listitem>
        <para>
          Download (FTP): <ulink url="&libdaemon-download-ftp;"/>
        </para>
      </listitem>
      <listitem>
        <para>
          Download MD5 sum: &libdaemon-md5sum;
        </para>
      </listitem>
      <listitem>
        <para>
          Download size: &libdaemon-size;
        </para>
      </listitem>
      <listitem>
        <para>
          Estimated disk space required: &libdaemon-buildsize;
        </para>
      </listitem>
      <listitem>
        <para>
          Estimated build time: &libdaemon-time;
        </para>
      </listitem>
    </itemizedlist>

    <bridgehead renderas="sect3">libdaemon Dependencies</bridgehead>

    <bridgehead renderas="sect4">Optional</bridgehead>
    <para role="optional">
      <xref linkend="doxygen"/> and
      <xref linkend="lynx"/>
    </para>

    <para condition="html" role="usernotes">User Notes:
    <ulink url="&blfs-wiki;/libdaemon"/></para>

  </sect2>

  <sect2 role="installation">
    <title>Installation of libdaemon</title>

    <para>
      Install <application>libdaemon</application> by running the following
      commands:
    </para>

<screen><userinput>./configure --prefix=/usr --disable-static &amp;&amp;
make</userinput></screen>

    <para>
      If you have <application>Doxygen</application> installed and wish to
      build the API documentation, issue the following command:
    </para>

<screen><userinput>make -C doc doxygen</userinput></screen>

    <para>
      This package does not come with a test suite.
    </para>

    <para>
      Now, as the <systemitem class="username">root</systemitem> user:
    </para>

<screen role="root"><userinput>make docdir=/usr/share/doc/libdaemon-&libdaemon-version; install</userinput></screen>

    <para>
      If you built the API documentation, install it using the following commands
      as the <systemitem class="username">root</systemitem> user:
    </para>

<screen role="root"><userinput>install -v -m755 -d /usr/share/doc/libdaemon-&libdaemon-version;/api &amp;&amp;
install -v -m644 doc/reference/html/* /usr/share/doc/libdaemon-&libdaemon-version;/api &amp;&amp;
install -v -m644 doc/reference/man/man3/* /usr/share/man/man3</userinput></screen>

  </sect2>

  <sect2 role="commands">
    <title>Command Explanations</title>

    <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
      href="../../xincludes/static-libraries.xml"/>

  </sect2>

  <sect2 role="content">
    <title>Contents</title>

    <segmentedlist>
      <segtitle>Installed Programs</segtitle>
      <segtitle>Installed Library</segtitle>
      <segtitle>Installed Directories</segtitle>

      <seglistitem>
        <seg>
          None
        </seg>
        <seg>
          libdaemon.so
        </seg>
        <seg>
          /usr/include/libdaemon and
          /usr/share/doc/libdaemon-&libdaemon-version;
        </seg>
      </seglistitem>
    </segmentedlist>

    <variablelist>
      <bridgehead renderas="sect3">Short Descriptions</bridgehead>
      <?dbfo list-presentation="list"?>
      <?dbhtml list-presentation="table"?>

      <varlistentry id="libdaemon-lib">
        <term><filename class='libraryfile'>libdaemon.so</filename></term>
        <listitem>
          <para>
            contains the <application>libdaemon</application> API functions.
          </para>
          <indexterm zone="libdaemon libdaemon-lib">
            <primary sortas="c-libdaemon">libdaemon.so</primary>
          </indexterm>
        </listitem>
      </varlistentry>

    </variablelist>

  </sect2>

</sect1>
