dbus.xml 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191
  1. <?xml version="1.0" encoding="ISO-8859-1"?>
  2. <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
  3. "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
  4. <!ENTITY % general-entities SYSTEM "../general.ent">
  5. %general-entities;
  6. ]>
  7. <sect1 id="ch-system-dbus" role="wrap">
  8. <?dbhtml filename="dbus.html"?>
  9. <sect1info condition="script">
  10. <productname>dbus</productname>
  11. <productnumber>&dbus-version;</productnumber>
  12. <address>&dbus-url;</address>
  13. </sect1info>
  14. <title>D-Bus-&dbus-version;</title>
  15. <indexterm zone="ch-system-dbus">
  16. <primary sortas="a-dbus">D-Bus</primary>
  17. </indexterm>
  18. <sect2 role="package">
  19. <title/>
  20. <para>D-Bus is a message bus system, a simple way for applications to talk
  21. to one another. D-Bus supplies both a system daemon (for events such as
  22. "new hardware device added" or "printer queue changed") and a
  23. per-user-login-session daemon (for general IPC needs among user
  24. applications). Also, the message bus is built on top of a general one-to-one
  25. message passing framework, which can be used by any two applications to
  26. communicate directly (without going through the message bus daemon).</para>
  27. <segmentedlist>
  28. <segtitle>&buildtime;</segtitle>
  29. <segtitle>&diskspace;</segtitle>
  30. <seglistitem>
  31. <seg>&dbus-ch6-sbu;</seg>
  32. <seg>&dbus-ch6-du;</seg>
  33. </seglistitem>
  34. </segmentedlist>
  35. </sect2>
  36. <sect2 role="installation">
  37. <title>Installation of D-Bus</title>
  38. <para>Prepare D-Bus for compilation:</para>
  39. <screen><userinput remap="configure">./configure --prefix=/usr \
  40. --sysconfdir=/etc \
  41. --localstatedir=/var \
  42. --docdir=/usr/share/doc/dbus-&dbus-version; \
  43. --with-console-auth-dir=/run/console</userinput></screen>
  44. <variablelist>
  45. <title>The meaning of the configure options:</title>
  46. <varlistentry>
  47. <term><parameter>--with-console-auth-dir=/run/console</parameter></term>
  48. <listitem>
  49. <para>This specifies the location of the ConsoleKit auth
  50. directory.</para>
  51. </listitem>
  52. </varlistentry>
  53. </variablelist>
  54. <para>Compile the package:</para>
  55. <screen><userinput remap="make">make</userinput></screen>
  56. <para>This package does come with a testsuite, but it requires several
  57. packages that are not included in LFS. Instructions for running the
  58. testsuite can be found in the BLFS book at
  59. <ulink url="&blfs-root;/view/&short-version;/general/dbus.html"/>.</para>
  60. <para>Install the package:</para>
  61. <screen><userinput remap="install">make install</userinput></screen>
  62. <para>The shared library needs to be moved to
  63. <filename class="directory">/lib</filename>, and as a result the
  64. <filename class="extension">.so</filename> file in
  65. <filename class="directory">/usr/lib</filename> will need to be recreated:</para>
  66. <screen><userinput remap="install">mv -v /usr/lib/libdbus-1.so.* /lib
  67. ln -sfv ../../lib/$(readlink /usr/lib/libdbus-1.so) /usr/lib/libdbus-1.so</userinput></screen>
  68. <para>Create a symlink, so that D-Bus and Systemd can use the same
  69. <filename>machine-id</filename> file:</para>
  70. <screen><userinput remap="install">ln -sv /etc/machine-id /var/lib/dbus</userinput></screen>
  71. <para>Finally, generate a D-Bus UUID to avoid possible warnings
  72. when building some packages in BLFS:</para>
  73. <screen><userinput remap="install">dbus-uuidgen --ensure</userinput></screen>
  74. </sect2>
  75. <sect2 id="contents-dbus" role="content">
  76. <title>Contents of D-Bus</title>
  77. <segmentedlist>
  78. <segtitle>Installed programs</segtitle>
  79. <segtitle>Installed libraries</segtitle>
  80. <segtitle>Installed directories</segtitle>
  81. <seglistitem>
  82. <seg>dbus-cleanup-sockets, dbus-daemon, dbus-launch, dbus-monitor,
  83. dbus-send, and dbus-uuidgen</seg>
  84. <seg>libdbus-1.{a,so}</seg>
  85. <seg>/etc/dbus-1, /usr/include/dbus-1.0, /usr/lib/dbus-1.0,
  86. /usr/share/dbus-1, /usr/share/doc/dbus-&dbus-version;,
  87. /var/lib/dbus</seg>
  88. </seglistitem>
  89. </segmentedlist>
  90. <variablelist>
  91. <bridgehead renderas="sect3">Short Descriptions</bridgehead>
  92. <?dbfo list-presentation="list"?>
  93. <?dbhtml list-presentation="table"?>
  94. <varlistentry id="dbus-cleanup-sockets">
  95. <term><command>dbus-cleanup-sockets</command></term>
  96. <listitem>
  97. <para>Used to clean up leftover sockets in a directory.</para>
  98. <indexterm zone="ch-system-dbus dbus-cleanup-sockets">
  99. <primary sortas="b-dbus-cleanup-sockets">dbus-cleanup-sockets</primary>
  100. </indexterm>
  101. </listitem>
  102. </varlistentry>
  103. <varlistentry id="dbus-daemon">
  104. <term><command>dbus-daemon</command></term>
  105. <listitem>
  106. <para>The D-Bus message bus daemon.</para>
  107. <indexterm zone="ch-system-dbus dbus-daemon">
  108. <primary sortas="b-dbus-daemon">dbus-daemon</primary>
  109. </indexterm>
  110. </listitem>
  111. </varlistentry>
  112. <varlistentry id="dbus-launch">
  113. <term><command>dbus-launch</command></term>
  114. <listitem>
  115. <para>Starts <command>dbus-daemon</command> from a shell
  116. script.</para>
  117. <indexterm zone="ch-system-dbus dbus-launch">
  118. <primary sortas="b-dbus-launch">dbus-launch</primary>
  119. </indexterm>
  120. </listitem>
  121. </varlistentry>
  122. <varlistentry id="dbus-monitor">
  123. <term><command>dbus-monitor</command></term>
  124. <listitem>
  125. <para>Monitors messages passing through a D-Bus message bus.</para>
  126. <indexterm zone="ch-system-dbus dbus-monitor">
  127. <primary sortas="b-dbus-monitor">dbus-monitor</primary>
  128. </indexterm>
  129. </listitem>
  130. </varlistentry>
  131. <varlistentry id="dbus-send">
  132. <term><command>dbus-send</command></term>
  133. <listitem>
  134. <para>Sends a message to a D-Bus message bus.</para>
  135. <indexterm zone="ch-system-dbus dbus-send">
  136. <primary sortas="b-dbus-send">dbus-send</primary>
  137. </indexterm>
  138. </listitem>
  139. </varlistentry>
  140. <varlistentry id="dbus-uuidgen">
  141. <term><command>dbus-uuidgen</command></term>
  142. <listitem>
  143. <para>Generates a universally unique ID.</para>
  144. <indexterm zone="ch-system-dbus dbus-uuidgen">
  145. <primary sortas="b-dbus-uuidgen">dbus-uuidgen</primary>
  146. </indexterm>
  147. </listitem>
  148. </varlistentry>
  149. </variablelist>
  150. </sect2>
  151. </sect1>