source: chapter06/dbus.xml@ 1026c1ee

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

Have DBus use the same machine-id file as Systemd

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

  • Property mode set to 100644
File size: 6.2 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 --docdir=/usr/share/doc/dbus-&dbus-version; \
56 --with-console-auth-dir=/run/console/ \
57 --with-systemdsystemunitdir=/lib/systemd/system</userinput></screen>
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
81<screen><userinput remap="install">make install</userinput></screen>
82
83 <para>Create a symlink, so that DBus and Systemd can use the same
84 <filename>machine-id</filename> file:</para>
85
86<screen><userinput>ln -s /etc/machine-id /var/lib/dbus</userinput></screen>
87
88 </sect2>
89
90 <sect2 id="contents-dbus" role="content">
91 <title>Contents of D-Bus</title>
92
93 <segmentedlist>
94 <segtitle>Installed programs</segtitle>
95 <segtitle>Installed libraries</segtitle>
96 <segtitle>Installed directories</segtitle>
97
98 <seglistitem>
99 <seg>dbus-cleanup-sockets, dbus-daemon, dbus-launch, dbus-monitor,
100 dbus-send and dbus-uuidgen</seg>
101 <seg>libdbus-1.{so,a}</seg>
102 <seg>/etc/dbus-1, /usr/include/dbus-1.0, /usr/lib/dbus-1.0,
103 /usr/share/dbus-1, /usr/share/doc/dbus-&dbus-version; and
104 /var/lib/dbus</seg>
105 </seglistitem>
106 </segmentedlist>
107
108 <variablelist>
109 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
110 <?dbfo list-presentation="list"?>
111 <?dbhtml list-presentation="table"?>
112
113 <varlistentry id="dbus-cleanup-sockets">
114 <term><command>dbus-cleanup-sockets</command></term>
115 <listitem>
116 <para>Used to clean up leftover sockets in a directory.</para>
117 <indexterm zone="ch-system-dbus dbus-cleanup-sockets">
118 <primary sortas="b-dbus-cleanup-sockets">dbus-cleanup-sockets</primary>
119 </indexterm>
120 </listitem>
121 </varlistentry>
122
123 <varlistentry id="dbus-daemon">
124 <term><command>dbus-daemon</command></term>
125 <listitem>
126 <para>The D-Bus message bus daemon.</para>
127 <indexterm zone="ch-system-dbus dbus-daemon">
128 <primary sortas="b-dbus-daemon">dbus-daemon</primary>
129 </indexterm>
130 </listitem>
131 </varlistentry>
132
133 <varlistentry id="dbus-launch">
134 <term><command>dbus-launch</command></term>
135 <listitem>
136 <para>Starts <command>dbus-daemon</command> from a shell
137 script.</para>
138 <indexterm zone="ch-system-dbus dbus-launch">
139 <primary sortas="b-dbus-launch">dbus-launch</primary>
140 </indexterm>
141 </listitem>
142 </varlistentry>
143
144 <varlistentry id="dbus-monitor">
145 <term><command>dbus-monitor</command></term>
146 <listitem>
147 <para>Monitors messages passing through a D-Bus message bus.</para>
148 <indexterm zone="ch-system-dbus dbus-monitor">
149 <primary sortas="b-dbus-monitor">dbus-monitor</primary>
150 </indexterm>
151 </listitem>
152 </varlistentry>
153
154 <varlistentry id="dbus-send">
155 <term><command>dbus-send</command></term>
156 <listitem>
157 <para>Sends a message to a D-Bus message bus.</para>
158 <indexterm zone="ch-system-dbus dbus-send">
159 <primary sortas="b-dbus-send">dbus-send</primary>
160 </indexterm>
161 </listitem>
162 </varlistentry>
163
164 <varlistentry id="dbus-uuidgen">
165 <term><command>dbus-uuidgen</command></term>
166 <listitem>
167 <para>Generates a universally unique ID.</para>
168 <indexterm zone="ch-system-dbus dbus-uuidgen">
169 <primary sortas="b-dbus-uuidgen">dbus-uuidgen</primary>
170 </indexterm>
171 </listitem>
172 </varlistentry>
173
174 <varlistentry id="libdbus">
175 <term><filename class="libraryfile">libdbus.{so,a}</filename></term>
176 <listitem>
177 <para>Contains API functions used to communicate with the D-Bus
178 message bus.</para>
179 <indexterm zone="ch-system-dbus libdbus">
180 <primary sortas="c-libdbus">libdbus</primary>
181 </indexterm>
182 </listitem>
183 </varlistentry>
184
185 </variablelist>
186
187 </sect2>
188
189</sect1>
Note: See TracBrowser for help on using the repository browser.