2008-10-24 23:07:58 +00:00
|
|
|
# Template file for 'dbus'
|
2013-02-12 12:44:37 +00:00
|
|
|
#
|
|
|
|
_systemd_version=197
|
|
|
|
|
2008-10-24 23:07:58 +00:00
|
|
|
pkgname=dbus
|
2012-09-28 22:23:24 +00:00
|
|
|
version=1.6.8
|
2013-02-25 21:58:50 +00:00
|
|
|
revision=9
|
2008-10-24 23:07:58 +00:00
|
|
|
short_desc="Message bus system"
|
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
2011-06-04 20:20:44 +00:00
|
|
|
license="GPL-2"
|
2012-07-09 16:34:25 +00:00
|
|
|
homepage="http://dbus.freedesktop.org/"
|
2013-02-12 12:44:37 +00:00
|
|
|
distfiles="
|
|
|
|
${homepage}/releases/dbus/dbus-${version}.tar.gz
|
|
|
|
http://www.freedesktop.org/software/systemd/systemd-${_systemd_version}.tar.xz"
|
|
|
|
checksum="
|
|
|
|
fc1370ef38abeeb13f55c905ec002e60705fb0bfde3b8d21c8d6eb8056c11bac
|
|
|
|
e6857ea21ae24d7056e7b0f4c2aaaba73b8bf57025b8949c0a8af0c1bc9774b5"
|
|
|
|
|
|
|
|
create_wrksrc=yes
|
|
|
|
subpackages="dbus-devel dbus-libs dbus-x11"
|
2013-03-24 09:21:58 +00:00
|
|
|
hostmakedepends="pkg-config intltool gperf"
|
|
|
|
makedepends="expat-devel libX11-devel libcap-devel"
|
2013-02-12 12:44:37 +00:00
|
|
|
conf_files="/etc/dbus-1/session.conf /etc/dbus-1/system.conf"
|
|
|
|
|
2013-03-24 09:21:58 +00:00
|
|
|
if [ "$XBPS_CROSS_BUILD" ]; then
|
|
|
|
_systemddir="$XBPS_CROSS_BASE"
|
|
|
|
hostmakedepends="automake gettext-devel ${hostmakedepends} libgcrypt-devel"
|
2013-02-12 15:41:48 +00:00
|
|
|
else
|
|
|
|
_systemddir="/usr"
|
|
|
|
fi
|
|
|
|
|
2013-02-12 12:44:37 +00:00
|
|
|
pre_configure() {
|
|
|
|
# Build a temporary dbus; we are only interested in libdbus.
|
|
|
|
[ ! -d dbus-bootstrap ] && mkdir dbus-bootstrap
|
|
|
|
cd dbus-bootstrap
|
|
|
|
|
2013-03-24 09:21:58 +00:00
|
|
|
if [ "$XBPS_CROSS_BUILD" ]; then
|
2013-02-25 19:48:02 +00:00
|
|
|
_confargs="--host=$XBPS_CROSS_TRIPLET
|
2013-03-24 09:21:58 +00:00
|
|
|
--with-libtool-sysroot=$XBPS_CROSS_BASE"
|
2013-02-25 19:48:02 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
../dbus-${version}/configure ${_confargs} \
|
2013-02-12 15:41:48 +00:00
|
|
|
--prefix=${wrksrc}/tmpbuild/usr \
|
2013-02-25 19:48:02 +00:00
|
|
|
--disable-systemd --without-x
|
|
|
|
make ${makejobs}
|
|
|
|
make install
|
2013-02-12 12:44:37 +00:00
|
|
|
|
|
|
|
# Build a temporary systemd; we are only interested in libsystemd-login.
|
2013-03-24 09:21:58 +00:00
|
|
|
if [ "$XBPS_CROSS_BUILD" ]; then
|
2013-02-12 15:41:48 +00:00
|
|
|
cd ${wrksrc}/systemd-${_systemd_version} && autoreconf -fi
|
|
|
|
fi
|
|
|
|
|
2013-02-12 12:44:37 +00:00
|
|
|
cd ${wrksrc}
|
|
|
|
[ ! -d systemd-bootstrap ] && mkdir systemd-bootstrap
|
|
|
|
cd systemd-bootstrap
|
|
|
|
|
|
|
|
env PKG_CONFIG_LIBDIR=${wrksrc}/tmpbuild/usr/lib/pkgconfig \
|
2013-02-25 19:48:02 +00:00
|
|
|
../systemd-${_systemd_version}/configure ${_confargs} \
|
|
|
|
--prefix=/usr --disable-nls \
|
2013-02-12 12:44:37 +00:00
|
|
|
--enable-introspection=no --disable-kmod --disable-blkid \
|
|
|
|
--disable-ima --disable-chkconfig --disable-selinux \
|
|
|
|
--disable-xz --disable-tcpwrap --disable-pam \
|
|
|
|
--disable-acl --disable-xattr --disable-gcrypt \
|
|
|
|
--disable-audit --disable-libcryptsetup --disable-qrencode \
|
|
|
|
--disable-microhttpd --disable-binfmt --disable-vconsole \
|
|
|
|
--disable-readahead --disable-bootchart --disable-quotacheck \
|
|
|
|
--disable-randomseed --disable-hostnamed \
|
|
|
|
--disable-timedated --disable-localed --disable-coredump \
|
|
|
|
--disable-myhostname --disable-gudev --disable-keymap \
|
|
|
|
--disable-manpages --without-python --with-sysvinit-path= \
|
2013-02-25 19:48:02 +00:00
|
|
|
--with-sysvrcnd-path= --disable-tests
|
2013-02-12 12:44:37 +00:00
|
|
|
|
2013-02-25 19:48:02 +00:00
|
|
|
make ${makejobs}
|
|
|
|
make DESTDIR=${wrksrc}/systemd-install install
|
2013-02-12 15:41:48 +00:00
|
|
|
|
|
|
|
# Copy libsystemd-*, headers and pkg-config files.
|
|
|
|
cp -a ${wrksrc}/systemd-install/usr/lib/libsystemd* \
|
|
|
|
${_systemddir}/lib/
|
|
|
|
rm -f ${_systemddir}/lib/*.la
|
|
|
|
cp -a ${wrksrc}/systemd-install/usr/include/* \
|
|
|
|
${_systemddir}/include/
|
|
|
|
cp -a ${wrksrc}/systemd-install/usr/lib/pkgconfig/libsystemd* \
|
|
|
|
${_systemddir}/lib/pkgconfig/
|
2013-02-12 12:44:37 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
do_configure() {
|
2013-02-12 15:41:48 +00:00
|
|
|
cd ${wrksrc}/dbus-${version}
|
|
|
|
|
2013-03-24 09:21:58 +00:00
|
|
|
if [ "$XBPS_CROSS_BUILD" ]; then
|
2013-02-12 15:41:48 +00:00
|
|
|
autoreconf -fi
|
2013-02-25 19:48:02 +00:00
|
|
|
_confargs="--host=$XBPS_CROSS_TRIPLET
|
2013-03-24 09:21:58 +00:00
|
|
|
--with-libtool-sysroot=$XBPS_CROSS_BASE
|
2013-02-25 19:48:02 +00:00
|
|
|
PKG_CONFIG_LIBDIR=${_systemddir}/lib/pkgconfig"
|
2013-02-12 15:41:48 +00:00
|
|
|
fi
|
2013-02-25 20:48:52 +00:00
|
|
|
./configure ${CONFIGURE_SHARED_ARGS} \
|
2013-02-12 12:44:37 +00:00
|
|
|
--disable-selinux --enable-userdb-cache --with-xml=expat \
|
|
|
|
--disable-dnotify --enable-inotify --with-dbus-user=dbus \
|
|
|
|
--disable-doxygen-docs --disable-xml-docs --disable-static \
|
|
|
|
--disable-tests --enable-epoll --disable-asserts \
|
|
|
|
--with-system-socket=/run/dbus/system_bus_socket \
|
|
|
|
--with-system-pid-file=/run/dbus/pid \
|
|
|
|
--with-console-auth-dir=/run/console/ \
|
|
|
|
--with-systemdsystemunitdir=/usr/lib/systemd/system \
|
2013-02-12 15:41:48 +00:00
|
|
|
--enable-abstract-sockets --enable-systemd ${_confargs}
|
2013-02-12 12:44:37 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
do_build() {
|
2013-02-12 15:41:48 +00:00
|
|
|
cd ${wrksrc}/dbus-${version}
|
2013-02-12 12:44:37 +00:00
|
|
|
make ${makejobs}
|
|
|
|
}
|
|
|
|
|
|
|
|
do_install() {
|
2013-02-12 15:41:48 +00:00
|
|
|
cd ${wrksrc}/dbus-${version}
|
2013-02-12 12:44:37 +00:00
|
|
|
make DESTDIR=${DESTDIR} install
|
2013-02-12 15:41:48 +00:00
|
|
|
|
|
|
|
# Remove systemd temp files from masterdir.
|
|
|
|
rm -f ${_systemddir}/lib/pkgconfig/libsystemd-*
|
|
|
|
rm -rf ${_systemddir}/include/systemd
|
|
|
|
rm -f ${_systemddir}/lib/libsystemd-*
|
2013-02-12 12:44:37 +00:00
|
|
|
}
|