[afe61bc] | 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 |
|
---|
| 8 | <sect1 id="ch-system-dbus" role="wrap">
|
---|
| 9 | <?dbhtml filename="dbus.html"?>
|
---|
| 10 |
|
---|
| 11 | <sect1info condition="script">
|
---|
| 12 | <productname>dbus</productname>
|
---|
| 13 | <productnumber>&dbus-version;</productnumber>
|
---|
| 14 | <address>&dbus-url;</address>
|
---|
| 15 | </sect1info>
|
---|
| 16 |
|
---|
| 17 | <title>D-Bus-&dbus-version;</title>
|
---|
| 18 |
|
---|
| 19 | <indexterm zone="ch-system-dbus">
|
---|
| 20 | <primary sortas="a-dbus">D-Bus</primary>
|
---|
| 21 | </indexterm>
|
---|
| 22 |
|
---|
| 23 | <sect2 role="package">
|
---|
| 24 | <title/>
|
---|
| 25 |
|
---|
| 26 | <para>D-Bus is a message bus system, a simple way for applications to talk
|
---|
| 27 | to one another. D-Bus supplies both a system daemon (for events such as
|
---|
[8edca0a] | 28 | "new hardware device added" or "printer queue changed") and a
|
---|
[afe61bc] | 29 | per-user-login-session daemon (for general IPC needs among user
|
---|
| 30 | applications). Also, the message bus is built on top of a general one-to-one
|
---|
| 31 | message passing framework, which can be used by any two applications to
|
---|
| 32 | communicate directly (without going through the message bus daemon).</para>
|
---|
| 33 |
|
---|
| 34 | <segmentedlist>
|
---|
| 35 | <segtitle>&buildtime;</segtitle>
|
---|
| 36 | <segtitle>&diskspace;</segtitle>
|
---|
| 37 |
|
---|
| 38 | <seglistitem>
|
---|
| 39 | <seg>&dbus-ch6-sbu;</seg>
|
---|
| 40 | <seg>&dbus-ch6-du;</seg>
|
---|
| 41 | </seglistitem>
|
---|
| 42 | </segmentedlist>
|
---|
| 43 |
|
---|
| 44 | </sect2>
|
---|
| 45 |
|
---|
| 46 | <sect2 role="installation">
|
---|
| 47 | <title>Installation of D-Bus</title>
|
---|
| 48 |
|
---|
| 49 | <para>Prepare D-Bus for compilation:</para>
|
---|
| 50 |
|
---|
| 51 | <screen><userinput remap="configure">./configure --prefix=/usr \
|
---|
| 52 | --sysconfdir=/etc \
|
---|
| 53 | --localstatedir=/var \
|
---|
| 54 | --libexecdir=/usr/lib/dbus-1.0 \
|
---|
[8edca0a] | 55 | --docdir=/usr/share/doc/dbus-&dbus-version; \
|
---|
[afe61bc] | 56 | --with-console-auth-dir=/run/console/ \
|
---|
[8edca0a] | 57 | --with-systemdsystemunitdir=/lib/systemd/system</userinput></screen>
|
---|
[afe61bc] | 58 |
|
---|
| 59 | <variablelist>
|
---|
| 60 | <title>The meaning of the configure options:</title>
|
---|
| 61 |
|
---|
| 62 | <varlistentry>
|
---|
| 63 | <term><parameter>--with-console-auth-dir=/run/console</parameter></term>
|
---|
| 64 | <listitem>
|
---|
| 65 | <para>This specifies the location of the ConsoleKit auth
|
---|
| 66 | directory.</para>
|
---|
| 67 | </listitem>
|
---|
| 68 | </varlistentry>
|
---|
| 69 |
|
---|
| 70 | </variablelist>
|
---|
| 71 |
|
---|
| 72 | <para>Compile the package:</para>
|
---|
| 73 |
|
---|
| 74 | <screen><userinput remap="make">make</userinput></screen>
|
---|
| 75 |
|
---|
| 76 | <para>This package does come with a testsuite, but it requires several
|
---|
| 77 | packages that are not included in LFS.</para>
|
---|
| 78 |
|
---|
| 79 | <para>Install the package:</para>
|
---|
| 80 |
|
---|
[8edca0a] | 81 | <screen><userinput remap="install">make install
|
---|
| 82 | dbus-uuidgen --ensure</userinput></screen>
|
---|
[afe61bc] | 83 |
|
---|
| 84 | </sect2>
|
---|
| 85 |
|
---|
| 86 | <sect2 id="contents-dbus" role="content">
|
---|
| 87 | <title>Contents of D-Bus</title>
|
---|
| 88 |
|
---|
| 89 | <segmentedlist>
|
---|
| 90 | <segtitle>Installed programs</segtitle>
|
---|
| 91 | <segtitle>Installed libraries</segtitle>
|
---|
[8edca0a] | 92 | <segtitle>Installed directories</segtitle>
|
---|
[afe61bc] | 93 |
|
---|
| 94 | <seglistitem>
|
---|
[8edca0a] | 95 | <seg>dbus-cleanup-sockets, dbus-daemon, dbus-launch, dbus-monitor,
|
---|
| 96 | dbus-send and dbus-uuidgen</seg>
|
---|
[afe61bc] | 97 | <seg>libdbus-1.{so,a}</seg>
|
---|
[8edca0a] | 98 | <seg>/etc/dbus-1, /usr/include/dbus-1.0, /usr/lib/dbus-1.0,
|
---|
| 99 | /usr/share/dbus-1, /usr/share/doc/dbus-&dbus-version; and
|
---|
| 100 | /var/lib/dbus</seg>
|
---|
[afe61bc] | 101 | </seglistitem>
|
---|
| 102 | </segmentedlist>
|
---|
| 103 |
|
---|
| 104 | <variablelist>
|
---|
| 105 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 106 | <?dbfo list-presentation="list"?>
|
---|
| 107 | <?dbhtml list-presentation="table"?>
|
---|
| 108 |
|
---|
| 109 | <varlistentry id="dbus-cleanup-sockets">
|
---|
| 110 | <term><command>dbus-cleanup-sockets</command></term>
|
---|
| 111 | <listitem>
|
---|
| 112 | <para>Used to clean up leftover sockets in a directory.</para>
|
---|
| 113 | <indexterm zone="ch-system-dbus dbus-cleanup-sockets">
|
---|
| 114 | <primary sortas="b-dbus-cleanup-sockets">dbus-cleanup-sockets</primary>
|
---|
| 115 | </indexterm>
|
---|
| 116 | </listitem>
|
---|
| 117 | </varlistentry>
|
---|
| 118 |
|
---|
| 119 | <varlistentry id="dbus-daemon">
|
---|
| 120 | <term><command>dbus-daemon</command></term>
|
---|
| 121 | <listitem>
|
---|
| 122 | <para>The D-Bus message bus daemon.</para>
|
---|
| 123 | <indexterm zone="ch-system-dbus dbus-daemon">
|
---|
| 124 | <primary sortas="b-dbus-daemon">dbus-daemon</primary>
|
---|
| 125 | </indexterm>
|
---|
| 126 | </listitem>
|
---|
| 127 | </varlistentry>
|
---|
| 128 |
|
---|
[8edca0a] | 129 | <varlistentry id="dbus-launch">
|
---|
| 130 | <term><command>dbus-launch</command></term>
|
---|
| 131 | <listitem>
|
---|
| 132 | <para>Starts <command>dbus-daemon</command> from a shell
|
---|
| 133 | script.</para>
|
---|
| 134 | <indexterm zone="ch-system-dbus dbus-launch">
|
---|
| 135 | <primary sortas="b-dbus-launch">dbus-launch</primary>
|
---|
| 136 | </indexterm>
|
---|
| 137 | </listitem>
|
---|
| 138 | </varlistentry>
|
---|
| 139 |
|
---|
[afe61bc] | 140 | <varlistentry id="dbus-monitor">
|
---|
| 141 | <term><command>dbus-monitor</command></term>
|
---|
| 142 | <listitem>
|
---|
| 143 | <para>Monitors messages passing through a D-Bus message bus.</para>
|
---|
| 144 | <indexterm zone="ch-system-dbus dbus-monitor">
|
---|
| 145 | <primary sortas="b-dbus-monitor">dbus-monitor</primary>
|
---|
| 146 | </indexterm>
|
---|
| 147 | </listitem>
|
---|
| 148 | </varlistentry>
|
---|
| 149 |
|
---|
| 150 | <varlistentry id="dbus-send">
|
---|
| 151 | <term><command>dbus-send</command></term>
|
---|
| 152 | <listitem>
|
---|
| 153 | <para>Sends a message to a D-Bus message bus.</para>
|
---|
| 154 | <indexterm zone="ch-system-dbus dbus-send">
|
---|
| 155 | <primary sortas="b-dbus-send">dbus-send</primary>
|
---|
| 156 | </indexterm>
|
---|
| 157 | </listitem>
|
---|
| 158 | </varlistentry>
|
---|
| 159 |
|
---|
| 160 | <varlistentry id="dbus-uuidgen">
|
---|
| 161 | <term><command>dbus-uuidgen</command></term>
|
---|
| 162 | <listitem>
|
---|
| 163 | <para>Generates a universally unique ID.</para>
|
---|
| 164 | <indexterm zone="ch-system-dbus dbus-uuidgen">
|
---|
| 165 | <primary sortas="b-dbus-uuidgen">dbus-uuidgen</primary>
|
---|
| 166 | </indexterm>
|
---|
| 167 | </listitem>
|
---|
| 168 | </varlistentry>
|
---|
| 169 |
|
---|
| 170 | <varlistentry id="libdbus">
|
---|
| 171 | <term><filename class="libraryfile">libdbus.{so,a}</filename></term>
|
---|
| 172 | <listitem>
|
---|
| 173 | <para>Contains API functions used to communicate with the D-Bus
|
---|
| 174 | message bus.</para>
|
---|
| 175 | <indexterm zone="ch-system-dbus libdbus">
|
---|
| 176 | <primary sortas="c-libdbus">libdbus</primary>
|
---|
| 177 | </indexterm>
|
---|
| 178 | </listitem>
|
---|
| 179 | </varlistentry>
|
---|
| 180 |
|
---|
| 181 | </variablelist>
|
---|
| 182 |
|
---|
| 183 | </sect2>
|
---|
| 184 |
|
---|
| 185 | </sect1>
|
---|