source: chapter06/dbus.xml@ f38341f

7.5-systemd 7.6-systemd 7.7-systemd 7.8-systemd 7.9-systemd
Last change on this file since f38341f was f38341f, checked in by Krejzi <krejzi@…>, 11 years ago

Move shared dbus library to /lib, since systemd binary links to it.

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

  • Property mode set to 100644
File size: 6.9 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>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 \
55 --disable-static \
56 --enable-systemd \
57 --docdir=/usr/share/doc/dbus-&dbus-version; \
58 --with-console-auth-dir=/run/console/ \
59 --with-systemdsystemunitdir=/lib/systemd/system</userinput></screen>
60
61 <variablelist>
62 <title>The meaning of the configure options:</title>
63
64 <varlistentry>
65 <term><parameter>--enable-systemd</parameter></term>
66 <listitem>
67 <para>This enables support for authentication check using
68 Systemd Logind.</para>
69 </listitem>
70 </varlistentry>
71
72 <varlistentry>
73 <term><parameter>--with-console-auth-dir=/run/console</parameter></term>
74 <listitem>
75 <para>This specifies the location of the ConsoleKit auth
76 directory.</para>
77 </listitem>
78 </varlistentry>
79
80 </variablelist>
81
82 <para>Compile the package:</para>
83
84<screen><userinput remap="make">make</userinput></screen>
85
86 <para>This package does come with a testsuite, but it requires several
87 packages that are not included in LFS.</para>
88
89 <para>Install the package:</para>
90
91<screen><userinput remap="install">make install</userinput></screen>
92
93 <para>The shared library needs to be moved to
94 <filename class="directory">/lib</filename>, and as a result the
95 <filename class="extension">.so</filename> file in
96 <filename class="directory">/usr/lib</filename> will need to be recreated:</para>
97
98<screen><userinput remap="install">mv -v /usr/lib/libdbus-1.so.* /lib
99ln -sfv ../../lib/$(readlink /usr/lib/libdbus-1.so) /usr/lib/libdbus-1.so</userinput></screen>
100
101 <para>Create a symlink, so that D-Bus and Systemd can use the same
102 <filename>machine-id</filename> file:</para>
103
104<screen><userinput remap="install">ln -sv /etc/machine-id /var/lib/dbus</userinput></screen>
105
106 </sect2>
107
108 <sect2 id="contents-dbus" role="content">
109 <title>Contents of D-Bus</title>
110
111 <segmentedlist>
112 <segtitle>Installed programs</segtitle>
113 <segtitle>Installed libraries</segtitle>
114 <segtitle>Installed directories</segtitle>
115
116 <seglistitem>
117 <seg>dbus-cleanup-sockets, dbus-daemon, dbus-launch, dbus-monitor,
118 dbus-send, and dbus-uuidgen</seg>
119 <seg>libdbus-1.so</seg>
120 <seg>/etc/dbus-1, /usr/include/dbus-1.0, /usr/lib/dbus-1.0,
121 /usr/share/dbus-1, /usr/share/doc/dbus-&dbus-version;,
122 /var/lib/dbus</seg>
123 </seglistitem>
124 </segmentedlist>
125
126 <variablelist>
127 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
128 <?dbfo list-presentation="list"?>
129 <?dbhtml list-presentation="table"?>
130
131 <varlistentry id="dbus-cleanup-sockets">
132 <term><command>dbus-cleanup-sockets</command></term>
133 <listitem>
134 <para>Used to clean up leftover sockets in a directory.</para>
135 <indexterm zone="ch-system-dbus dbus-cleanup-sockets">
136 <primary sortas="b-dbus-cleanup-sockets">dbus-cleanup-sockets</primary>
137 </indexterm>
138 </listitem>
139 </varlistentry>
140
141 <varlistentry id="dbus-daemon">
142 <term><command>dbus-daemon</command></term>
143 <listitem>
144 <para>The D-Bus message bus daemon.</para>
145 <indexterm zone="ch-system-dbus dbus-daemon">
146 <primary sortas="b-dbus-daemon">dbus-daemon</primary>
147 </indexterm>
148 </listitem>
149 </varlistentry>
150
151 <varlistentry id="dbus-launch">
152 <term><command>dbus-launch</command></term>
153 <listitem>
154 <para>Starts <command>dbus-daemon</command> from a shell
155 script.</para>
156 <indexterm zone="ch-system-dbus dbus-launch">
157 <primary sortas="b-dbus-launch">dbus-launch</primary>
158 </indexterm>
159 </listitem>
160 </varlistentry>
161
162 <varlistentry id="dbus-monitor">
163 <term><command>dbus-monitor</command></term>
164 <listitem>
165 <para>Monitors messages passing through a D-Bus message bus.</para>
166 <indexterm zone="ch-system-dbus dbus-monitor">
167 <primary sortas="b-dbus-monitor">dbus-monitor</primary>
168 </indexterm>
169 </listitem>
170 </varlistentry>
171
172 <varlistentry id="dbus-send">
173 <term><command>dbus-send</command></term>
174 <listitem>
175 <para>Sends a message to a D-Bus message bus.</para>
176 <indexterm zone="ch-system-dbus dbus-send">
177 <primary sortas="b-dbus-send">dbus-send</primary>
178 </indexterm>
179 </listitem>
180 </varlistentry>
181
182 <varlistentry id="dbus-uuidgen">
183 <term><command>dbus-uuidgen</command></term>
184 <listitem>
185 <para>Generates a universally unique ID.</para>
186 <indexterm zone="ch-system-dbus dbus-uuidgen">
187 <primary sortas="b-dbus-uuidgen">dbus-uuidgen</primary>
188 </indexterm>
189 </listitem>
190 </varlistentry>
191
192 <varlistentry id="libdbus">
193 <term><filename class="libraryfile">libdbus-1.so</filename></term>
194 <listitem>
195 <para>Contains API functions used to communicate with the D-Bus
196 message bus.</para>
197 <indexterm zone="ch-system-dbus libdbus">
198 <primary sortas="c-libdbus">libdbus</primary>
199 </indexterm>
200 </listitem>
201 </varlistentry>
202
203 </variablelist>
204
205 </sect2>
206
207</sect1>
Note: See TracBrowser for help on using the repository browser.