source: chapter06/dbus.xml@ 720f253

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

Some more fixes.

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

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