source: chapter06/dbus.xml@ afe61bc

7.5-systemd 7.6-systemd 7.7-systemd 7.8-systemd 7.9-systemd
Last change on this file since afe61bc was afe61bc, checked in by Matthew Burgess <matthew@…>, 11 years ago

Add D-Bus as a dependency of Systemd.

git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/systemd/BOOK@10143 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

  • Property mode set to 100644
File size: 6.4 KB
Line 
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
28 “new hardware device added” or “printer queue changed”) and a
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>The D-Bus system daemon (the message bus) needs to run as a non-priveleged user, so create a suitable group and user:</para>
50
51<screen><userinput remap="pre">groupadd -g 18 messagebus
52useradd -c "D-Bus Message Daemon User" -d /var/run/dbus \
53 -u 18 -g messagebus -s /bin/false messagebus</userinput></screen>
54
55 <para>Prepare D-Bus for compilation:</para>
56
57<screen><userinput remap="configure">./configure --prefix=/usr \
58 --sysconfdir=/etc \
59 --localstatedir=/var \
60 --docdir=/usr/share/doc/dbus-&dbus-version; \
61 --libexecdir=/usr/lib/dbus-1.0 \
62 --with-console-auth-dir=/run/console/ \
63 --without-systemdsystemunitdir \
64 --disable-systemd</userinput></screen>
65
66 <variablelist>
67 <title>The meaning of the configure options:</title>
68
69 <varlistentry>
70 <term><parameter>--with-console-auth-dir=/run/console</parameter></term>
71 <listitem>
72 <para>This specifies the location of the ConsoleKit auth
73 directory.</para>
74 </listitem>
75 </varlistentry>
76
77 <varlistentry>
78 <term><parameter>--without-systemdsystemunitdir</parameter></term>
79 <listitem>
80 <para>This prevents installation of Systemd unit files as Systemd
81 has not been installed yet (due to a circular dependency; Systemd
82 requires D-Bus, but D-Bus can also use Systemd functionality).</para>
83 </listitem>
84 </varlistentry>
85
86 <varlistentry>
87 <term><parameter>--disable-systemd</parameter></term>
88 <listitem>
89 <para>This disables Systemd support in D-Bus, again due to the
90 circular dependency between D-Bus and Systemd.</para>
91 </listitem>
92 </varlistentry>
93
94 </variablelist>
95
96 <para>Compile the package:</para>
97
98<screen><userinput remap="make">make</userinput></screen>
99
100 <para>This package does come with a testsuite, but it requires several
101 packages that are not included in LFS.</para>
102
103 <para>Install the package:</para>
104
105<screen><userinput remap="install">make install</userinput></screen>
106
107 </sect2>
108
109 <sect2 id="contents-dbus" role="content">
110 <title>Contents of D-Bus</title>
111
112 <segmentedlist>
113 <segtitle>Installed programs</segtitle>
114 <segtitle>Installed libraries</segtitle>
115
116 <seglistitem>
117 <seg>dbus-cleanup-sockets, dbus-daemon, dbus-monitor, dbus-send,
118 dbus-uuidgen</seg>
119 <seg>libdbus-1.{so,a}</seg>
120 </seglistitem>
121 </segmentedlist>
122
123 <variablelist>
124 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
125 <?dbfo list-presentation="list"?>
126 <?dbhtml list-presentation="table"?>
127
128 <varlistentry id="dbus-cleanup-sockets">
129 <term><command>dbus-cleanup-sockets</command></term>
130 <listitem>
131 <para>Used to clean up leftover sockets in a directory.</para>
132 <indexterm zone="ch-system-dbus dbus-cleanup-sockets">
133 <primary sortas="b-dbus-cleanup-sockets">dbus-cleanup-sockets</primary>
134 </indexterm>
135 </listitem>
136 </varlistentry>
137
138 <varlistentry id="dbus-daemon">
139 <term><command>dbus-daemon</command></term>
140 <listitem>
141 <para>The D-Bus message bus daemon.</para>
142 <indexterm zone="ch-system-dbus dbus-daemon">
143 <primary sortas="b-dbus-daemon">dbus-daemon</primary>
144 </indexterm>
145 </listitem>
146 </varlistentry>
147
148 <varlistentry id="dbus-monitor">
149 <term><command>dbus-monitor</command></term>
150 <listitem>
151 <para>Monitors messages passing through a D-Bus message bus.</para>
152 <indexterm zone="ch-system-dbus dbus-monitor">
153 <primary sortas="b-dbus-monitor">dbus-monitor</primary>
154 </indexterm>
155 </listitem>
156 </varlistentry>
157
158 <varlistentry id="dbus-send">
159 <term><command>dbus-send</command></term>
160 <listitem>
161 <para>Sends a message to a D-Bus message bus.</para>
162 <indexterm zone="ch-system-dbus dbus-send">
163 <primary sortas="b-dbus-send">dbus-send</primary>
164 </indexterm>
165 </listitem>
166 </varlistentry>
167
168 <varlistentry id="dbus-uuidgen">
169 <term><command>dbus-uuidgen</command></term>
170 <listitem>
171 <para>Generates a universally unique ID.</para>
172 <indexterm zone="ch-system-dbus dbus-uuidgen">
173 <primary sortas="b-dbus-uuidgen">dbus-uuidgen</primary>
174 </indexterm>
175 </listitem>
176 </varlistentry>
177
178 <varlistentry id="libdbus">
179 <term><filename class="libraryfile">libdbus.{so,a}</filename></term>
180 <listitem>
181 <para>Contains API functions used to communicate with the D-Bus
182 message bus.</para>
183 <indexterm zone="ch-system-dbus libdbus">
184 <primary sortas="c-libdbus">libdbus</primary>
185 </indexterm>
186 </listitem>
187 </varlistentry>
188
189 </variablelist>
190
191 </sect2>
192
193</sect1>
Note: See TracBrowser for help on using the repository browser.