<?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;
]>

<sect1 id="ch-system-libdbus" role="wrap">
  <?dbhtml filename="libdbus.html"?>

  <title>Libdbus-&dbus-version;</title>

  <indexterm zone="ch-system-libdbus">
    <primary sortas="a-libdbus">Libdbus</primary>
  </indexterm>

  <sect2 role="package">
    <title/>

    <para>Libdbus package provides a library to communicate with
    D-Bus messagebus daemon. It is only installed to satisfy
    circular dependency between Systemd and D-Bus.</para>

  </sect2>

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

    <para os="a">Prepare Libdbus for compilation:</para>

<screen os="b"><userinput>./configure --prefix=/usr --sysconfdir=/etc \
    --libexecdir=/usr/lib/dbus-1.0 --localstatedir=/var \
    --with-systemdsystemunitdir=/lib/systemd/system</userinput></screen>

    <para os="c">Compile the package:</para>

<screen os="d"><userinput>make -C dbus libdbus-1.la</userinput></screen>

    <para os="e">This package does come with a test suite, but will not run as only the libraries were built.</para>

    <para os="f">Install the package:</para>

<screen os="g"><userinput>make -C dbus lib_LTLIBRARIES=libdbus-1.la \
    install-libLTLIBRARIES install-dbusincludeHEADERS \
    install-nodist_dbusarchincludeHEADERS
make install-pkgconfigDATA</userinput></screen>

    <para os="h">Move the shared library to <filename class="directory">/lib</filename> and recreate the symbolic link.</para>

<screen os="i"><userinput>mv -v /usr/lib/libdbus-1.so.* /lib
ln -sfv ../../lib/$(readlink /usr/lib/libdbus-1.so) /usr/lib/libdbus-1.so</userinput></screen>

  </sect2>

  <sect2 id="contents-libdbus" role="content">
    <title>Contents of Libdbus</title>

    <segmentedlist>
      <segtitle>Installed programs</segtitle>
      <segtitle>Installed libraries</segtitle>
      <segtitle>Installed directories</segtitle>

      <seglistitem>
        <seg>none</seg>
        <seg>libdbus-1.[a,so]</seg>
        <seg>/usr/include/dbus-1.0, /usr/lib/dbus-1.0</seg>
      </seglistitem>
    </segmentedlist>

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

      <varlistentry id="libdbus-lib">
        <term><filename class="libraryfile">libdbus-1.[a,so]</filename></term>
        <listitem>
          <para>Library containing the API for using the message bus</para>
          <indexterm zone="ch-system-libdbus libdbus-lib">
            <primary sortas="c-libdbus">libdbus</primary>
          </indexterm>
        </listitem>
      </varlistentry>

    </variablelist>

  </sect2>

</sect1>
