void-packages/srcpkgs/dbus/template

55 lines
1.8 KiB
Text
Raw Normal View History

# Template file for 'dbus'
pkgname=dbus
version=1.2.24
revision=3
distfiles="http://dbus.freedesktop.org/releases/dbus/$pkgname-$version.tar.gz"
build_style=gnu_configure
configure_args="--disable-selinux --enable-userdb-cache --with-xml=expat
--localstatedir=/var --disable-dnotify --enable-inotify
--with-dbus-user=dbus"
short_desc="Message bus system"
maintainer="Juan RP <xtraeme@gmail.com>"
checksum=f12c748f4a703655e3d4c3db94cdf5a752a0cd0b36958c715804373bd3595c48
long_desc="
D-BUS is a message bus, used for sending messages between applications.
Conceptually, it fits somewhere in between raw sockets and CORBA in terms
of complexity.
D-BUS supports broadcast messages, asynchronous messages (thus decreasing
latency), authentication, and more. It is designed to be low-overhead;
messages are sent using a binary protocol, not using XML. D-BUS also
supports a method call mapping for its messages, but it is not required;
this makes using the system quite simple."
keep_empty_dirs=yes
conf_files="/etc/dbus-1/session.conf /etc/dbus-1/system.conf"
subpackages="$pkgname-devel $pkgname-libs"
openrc_services="dbus default true"
system_accounts="dbus"
Add_dependency run glibc
Add_dependency run expat
Add_dependency run dbus-libs
Add_dependency run libSM
Add_dependency run libICE
Add_dependency run libX11
Add_dependency build pkg-config
Add_dependency build expat-devel
Add_dependency build libSM-devel
Add_dependency build libICE-devel
Add_dependency build libX11-devel
Add_dependency build coreutils
pre_configure()
{
# XXX: use coreutils, somethings fails with busybox.
export PATH="/bin:/sbin:/usr/bin:/usr/sbin:$PATH"
}
post_install()
{
rm -rf ${DESTDIR}/var/run
# Install the OpenRC service
install -D -m755 ${FILESDIR}/dbus.rc ${DESTDIR}/etc/init.d/dbus
}