X-Git-Url: http://gitweb.hugovil.com/?a=blobdiff_plain;f=stage4%2Fpkg%2Fdbus;fp=stage4%2Fpkg%2Fdbus;h=f576ac76ca9df017d0a3cd5a8a2b25591c3da7f8;hb=0315072ae3bd307eee71718e1a59f923edcbdaca;hp=0000000000000000000000000000000000000000;hpb=7a56acaf393f8598e6bd8e23ba539d716177afbe;p=hvlinux.git diff --git a/stage4/pkg/dbus b/stage4/pkg/dbus new file mode 100644 index 0000000..f576ac7 --- /dev/null +++ b/stage4/pkg/dbus @@ -0,0 +1,27 @@ +#!/bin/bash + +hvconfig_pre() +{ + hv_groupadd -g 18 messagebus + hv_useradd -c D-BUS-Message-Daemon-User -d /dev/null \ + -u 18 -g messagebus -s /bin/false messagebus + + CONFIGURE_OPTS="\ + ${CONFIGURE_OPTS} \ + --libexecdir=/usr/lib/dbus-1.0 \ + --localstatedir=/var" +} + +hvbuild_post() +{ + # Bootscript + install -v -m740 ${SCRDIR}/bootscripts/dbus /etc/rc.d/init.d + + # script-name start stop + bootscript_add_rc3 dbus 92 20 + + # Starting the session daemon here has the added bonus that it will exit + # when you log out of your GNOME session. If you wish to start the daemon + #here, use the following command instead of the one shown above: + ##echo "exec dbus-launch --exit-with-session gnome-session" >> ~/.xinitrc +}