### this file is sourced not run
PKGVER=1.14.6
PKGBUILD=1
PKGARCH=x86_64

# source: BLFS 11.3
TARBALL=dbus-$PKGVER.tar.xz
MD5SUM=e809d7aa905ad82adeaf1d59db5445b1
SRC_URL=http://dbus.freedesktop.org/releases/dbus/$TARBALL
BUNDLE=

SLACKREQ='expat'
SLACKDESC="dbus: dbus $PKGVER (Userspace message bus)  
dbus:  
dbus: D-Bus is a message bus system, a simple way for applications to talk to 
dbus: one another. D-Bus supplies both a system daemon (for events such as 
dbus: “new hardware device added” or “printer queue changed”) and a 
dbus: per-user-login-session daemon (for general IPC needs among user 
dbus: applications). Also, the message bus is built on top of a general 
dbus: one-to-one message passing framework, which can be used by any two 
dbus: applications to communicate directly (without going through the message 
dbus: bus daemon).  
dbus:
"
SLACKSUG=libX11

### default pkg_download
### default pkg_prepare
### default pkg_package
### build
pkg_build() {
	CONFFLAGS="$CONFFLAGS \
			--docdir=/usr/share/doc/dbus-$PKGVER  \
            --with-console-auth-dir=/run/console/ \
            --with-systemduserunitdir=no         \
            --with-systemdsystemunitdir=no       \            
            --disable-systemd              \
            --disable-static               \
            --disable-doxygen-docs         \
            --disable-xml-docs"
    pkg_build_autoconf &&
	pkg_build_slackdesc

	# Installing a D-Bus .service file outside of the standard /usr/share/dbus-1/services
	# That directory should be added to the local session configuration.
	# For instance, adding /usr/local/share/dbus-1/services:
<< "EXAMPLE"
cat > /etc/dbus-1/session-local.conf << "EOF"
<!DOCTYPE busconfig PUBLIC
 "-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN"
 "http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">
<busconfig>

  <!-- Search for .service files in /usr/local -->
  <servicedir>/usr/local/share/dbus-1/services</servicedir>

</busconfig>
EOF
EXAMPLE
}



