# Exit on error:
set -e

wget http://dbus.freedesktop.org/releases/dbus/dbus-1.7.6.tar.gz
tar xf dbus-1.7.6.tar.gz
cd dbus-1.7.6

./configure \
    --prefix=/usr \
    --localstatedir=/var \
    --libexecdir=/usr/lib/dbus \
    --sysconfdir=/etc

make
make install

cd ..

dbus-uuidgen --ensure

echo Remember to run the following commands as root:
echo chown root:messagebus /usr/lib/dbus/dbus-daemon-launch-helper
echo chmod 4750 /usr/lib/dbus/dbus-daemon-launch-helper

exit 0
