D-BUS Core

From CBLFS
Revision as of 09:14, 23 December 2006 by Jciccone (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search
Download Source: http://dbus.freedesktop.org/releases/dbus/dbus-1.8.0.tar.gz

Introduction to D-BUS

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).

Dependencies

Optional

MessageBus User/Group

groupadd -g 27 messagebus &&
useradd -c "D-BUS Message Daemon User" -d /dev/null \
        -u 27 -g messagebus -s /bin/false messagebus

Non-Multilib

Compile the package:

./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var &&
make

Install the package

make install &&
install -v -m755 -d /usr/share/doc/dbus-1.8.0 &&
install -v -m644 doc/{TODO,*.{dtd,xml,xsl,html,txt,c}} \
    /usr/share/doc/dbus-1.8.0

Multilib

32Bit

Compile the package:

CC="gcc ${BUILD32}" ./configure --prefix=/usr \
    --sysconfdir=/etc --localstatedir=/var \
    --x-libraries=${XORG_PREFIX}/lib &&
make

Install the package

make install

N32

Compile the package:

CC="gcc ${BUILDN32}" ./configure --prefix=/usr \
    --libdir=/usr/lib32 --sysconfdir=/etc --localstatedir=/var \
    --x-libraries=${XORG_PREFIX}/lib32 &&
make

Install the package

make install

64Bit

Compile the package:

CC="gcc ${BUILD64}" ./configure --prefix=/usr \
    --libdir=/usr/lib64 --sysconfdir=/etc --localstatedir=/var \
    --x-libraries=${XORG_PREFIX}/lib64 &&
make

Install the package

make install &&
install -v -m755 -d /usr/share/doc/dbus-1.8.0 &&
install -v -m644 doc/{TODO,*.{dtd,xml,xsl,html,txt,c}} \
    /usr/share/doc/dbus-1.8.0

Configuring

Bootscript

Install the init script included in the blfs-bootscripts package.

make install-dbus

Contents

Installed Programs: dbus-daemon, dbus-send, dbus-monitor, dbus-launch, dbus-cleanup-sockets, dbus-uuidgen
Installed Libraries: libdbus-1.{so,la,a}
Installed Directories: /usr/lib/dbus-1.0/include/dbus, /etc/dbus-1, /var/run/dbus, /etc/dbus-1/system.d, /usr/share/dbus-1/services, and /usr/share/doc/dbus-1.8.0

Short Descriptions

dbus-cleanup-sockets is used to clean up leftover sockets in a directory.
dbus-daemon is the D-BUS message bus daemon.
dbus-launch is used to start dbus-daemon from a shell script. It would normally be called from a user's login scripts.
dbus-monitor is used to monitor messages going through a D-BUS message bus.
dbus-send is used to send a message to a D-BUS message bus.
dbus-viewer is a graphical D-BUS frontend utility.
libdbus-1.{so,a} contains the API functions used by the D-BUS message daemon. D-BUS is first a library that provides one-to-one communication between any two applications; dbus-daemon is an application that uses this library to implement a message bus daemon.