dbus: added runit service.
This commit is contained in:
parent
ba75b74a5b
commit
fc44d1f8f1
2 changed files with 7 additions and 7 deletions
4
srcpkgs/dbus/files/dbus/run
Executable file
4
srcpkgs/dbus/files/dbus/run
Executable file
|
@ -0,0 +1,4 @@
|
|||
#!/bin/sh
|
||||
[ ! -d /run/dbus ] && install -m755 -g 22 -o 22 -d /run/dbus
|
||||
dbus-uuidgen --ensure
|
||||
exec dbus-daemon --system --nofork --nopidfile
|
|
@ -2,7 +2,7 @@
|
|||
#
|
||||
pkgname=dbus
|
||||
version=1.8.8
|
||||
revision=1
|
||||
revision=2
|
||||
short_desc="Message bus system"
|
||||
maintainer="Juan RP <xtraeme@gmail.com>"
|
||||
license="GPL-2"
|
||||
|
@ -14,6 +14,7 @@ create_wrksrc=yes
|
|||
hostmakedepends="pkg-config intltool gperf xmlto"
|
||||
makedepends="expat-devel libX11-devel libcap-devel"
|
||||
conf_files="/etc/dbus-1/session.conf /etc/dbus-1/system.conf"
|
||||
replaces="runit-void<20141013_2"
|
||||
|
||||
# Create dbus:22 system account.
|
||||
system_accounts="dbus:22"
|
||||
|
@ -46,7 +47,6 @@ _dbus_bootstrap() {
|
|||
make ${makejobs}
|
||||
make install
|
||||
}
|
||||
|
||||
_systemd_bootstrap() {
|
||||
# Build a temporary systemd; we are only interested in libsystemd-login.
|
||||
if [ ! -d ${wrksrc}/systemd-bootstrap ]; then
|
||||
|
@ -88,7 +88,6 @@ _systemd_bootstrap() {
|
|||
cp -a ${wrksrc}/systemd-install/usr/lib/pkgconfig/libsystemd* \
|
||||
${_systemddir}/lib/pkgconfig/
|
||||
}
|
||||
|
||||
pre_configure() {
|
||||
if [ "$build_option_systemd" ]; then
|
||||
if [ ! -f ${wrksrc}/dbus_bootstrap_done ]; then
|
||||
|
@ -101,7 +100,6 @@ pre_configure() {
|
|||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
do_configure() {
|
||||
cd ${wrksrc}/dbus-${version}
|
||||
|
||||
|
@ -129,7 +127,6 @@ do_build() {
|
|||
cd ${wrksrc}/dbus-${version}
|
||||
make ${makejobs}
|
||||
}
|
||||
|
||||
do_install() {
|
||||
cd ${wrksrc}/dbus-${version}
|
||||
make DESTDIR=${DESTDIR} install
|
||||
|
@ -140,6 +137,7 @@ do_install() {
|
|||
rm -rf ${_systemddir}/include/systemd
|
||||
rm -f ${_systemddir}/lib/libsystemd-*
|
||||
fi
|
||||
vsv dbus
|
||||
}
|
||||
|
||||
dbus-devel_package() {
|
||||
|
@ -153,14 +151,12 @@ dbus-devel_package() {
|
|||
vmove usr/share/doc
|
||||
}
|
||||
}
|
||||
|
||||
dbus-libs_package() {
|
||||
short_desc+=" - shared libraries"
|
||||
pkg_install() {
|
||||
vmove "usr/lib/*.so.*"
|
||||
}
|
||||
}
|
||||
|
||||
dbus-x11_package() {
|
||||
replaces="dbus<1.4.16_2"
|
||||
short_desc+=" - X11 support"
|
||||
|
|
Loading…
Reference in a new issue