dbus: switch to systemd, drop openrc support.

This commit is contained in:
Juan RP 2011-10-11 04:36:34 +02:00
parent 84e4b7b363
commit 87f58d76e2
2 changed files with 2 additions and 25 deletions

View file

@ -1,22 +0,0 @@
#!/sbin/runscript
command=/usr/bin/dbus-daemon
pidfile=/var/run/dbus/pid
: ${command_args:=--system}
depend()
{
need localmount net
after bootmisc
}
start_pre()
{
dir=$(dirname $pidfile)
if [ ! -d $dir ]; then
mkdir $dir
chmod 0755 $dir
chown dbus:dbus $dir
fi
dbus-uuidgen --ensure
}

View file

@ -1,6 +1,7 @@
# Template file for 'dbus'
pkgname=dbus
version=1.4.16
revision=1
homepage="http://dbus.freedesktop.org/"
distfiles="${homepage}/releases/dbus/$pkgname-$version.tar.gz"
build_style=gnu_configure
@ -25,7 +26,7 @@ long_desc="
conf_files="/etc/dbus-1/session.conf /etc/dbus-1/system.conf"
subpackages="$pkgname-devel $pkgname-libs"
openrc_services="dbus default true"
systemd_services="dbus.service"
system_accounts="dbus"
Add_dependency run glibc
@ -44,6 +45,4 @@ post_install()
vinstall tools/dbus-launch 755 usr/bin
vinstall doc/dbus-launch.1 644 usr/share/man/man1
vinstall ${FILESDIR}/30-dbus-xinit 755 etc/X11/xinit/xinitrc.d 30-dbus
# Install the OpenRC service
vinstall ${FILESDIR}/dbus.rc 755 etc/init.d dbus
}