6.64. D-Bus-1.6.10

D-Bus is a message bus system, a simple way for applications to talk to one another. D-Bus supplies both a system daemon (for events such as "new hardware device added" or "printer queue changed") and a per-user-login-session daemon (for general IPC needs among user applications). Also, the message bus is built on top of a general one-to-one message passing framework, which can be used by any two applications to communicate directly (without going through the message bus daemon).

Approximate build time: less than 0.4 SBU
Required disk space: 35 MB

6.64.1. Installation of D-Bus

Prepare D-Bus for compilation:

./configure --prefix=/usr \
            --sysconfdir=/etc \
            --localstatedir=/var \
            --libexecdir=/usr/lib/dbus-1.0 \
            --docdir=/usr/share/doc/dbus-1.6.10 \
            --with-console-auth-dir=/run/console/ \
            --with-systemdsystemunitdir=/lib/systemd/system

The meaning of the configure options:

--with-console-auth-dir=/run/console

This specifies the location of the ConsoleKit auth directory.

Compile the package:

make

This package does come with a testsuite, but it requires several packages that are not included in LFS.

Install the package:

make install

Create a symlink, so that DBus and Systemd can use the same machine-id file:

ln -s /etc/machine-id /var/lib/dbus

6.64.2. Contents of D-Bus

Installed programs: dbus-cleanup-sockets, dbus-daemon, dbus-launch, dbus-monitor, dbus-send and dbus-uuidgen
Installed libraries: libdbus-1.{so,a}
Installed directories: /etc/dbus-1, /usr/include/dbus-1.0, /usr/lib/dbus-1.0, /usr/share/dbus-1, /usr/share/doc/dbus-1.6.10 and /var/lib/dbus

Short Descriptions

dbus-cleanup-sockets

Used to clean up leftover sockets in a directory.

dbus-daemon

The D-Bus message bus daemon.

dbus-launch

Starts dbus-daemon from a shell script.

dbus-monitor

Monitors messages passing through a D-Bus message bus.

dbus-send

Sends a message to a D-Bus message bus.

dbus-uuidgen

Generates a universally unique ID.

libdbus.{so,a}

Contains API functions used to communicate with the D-Bus message bus.