2008-10-25 01:07:58 +02:00
|
|
|
# Template file for 'dbus'
|
2013-02-12 13:44:37 +01:00
|
|
|
#
|
2014-01-11 15:15:58 +01:00
|
|
|
_systemd_version=208
|
2013-02-12 13:44:37 +01:00
|
|
|
|
2008-10-25 01:07:58 +02:00
|
|
|
pkgname=dbus
|
2014-07-07 18:17:01 +02:00
|
|
|
version=1.8.6
|
2014-05-04 11:25:38 +02:00
|
|
|
revision=1
|
2008-10-25 01:07:58 +02:00
|
|
|
short_desc="Message bus system"
|
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
2011-06-04 22:20:44 +02:00
|
|
|
license="GPL-2"
|
2012-07-09 18:34:25 +02:00
|
|
|
homepage="http://dbus.freedesktop.org/"
|
2013-02-12 13:44:37 +01:00
|
|
|
distfiles="
|
|
|
|
${homepage}/releases/dbus/dbus-${version}.tar.gz
|
|
|
|
http://www.freedesktop.org/software/systemd/systemd-${_systemd_version}.tar.xz"
|
|
|
|
checksum="
|
2014-07-07 18:17:01 +02:00
|
|
|
eded83ca007b719f32761e60fd8b9ffd0f5796a4caf455b01b5a5ef740ebd23f
|
2014-01-11 15:15:58 +01:00
|
|
|
aa64fa864466fd5727005c55d61c092828b94b4f857272c0b503695022146390"
|
2013-02-12 13:44:37 +01:00
|
|
|
|
|
|
|
create_wrksrc=yes
|
2014-01-21 07:58:11 +01:00
|
|
|
hostmakedepends="pkg-config intltool gperf xmlto"
|
2013-03-24 10:21:58 +01:00
|
|
|
makedepends="expat-devel libX11-devel libcap-devel"
|
2014-01-01 16:10:11 +01:00
|
|
|
conf_files="/etc/dbus-1/session.conf /etc/dbus-1/system.conf"
|
2013-02-12 13:44:37 +01:00
|
|
|
|
2014-01-11 15:15:58 +01:00
|
|
|
# Package build options
|
|
|
|
build_options="systemd"
|
|
|
|
|
2014-01-11 15:35:33 +01:00
|
|
|
# Disable systemd option for *-musl.
|
|
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
|
|
*-musl) ;;
|
|
|
|
*) build_options_default="systemd";;
|
|
|
|
esac
|
|
|
|
|
2014-01-11 15:15:58 +01:00
|
|
|
if [ "$build_option_systemd" ]; then
|
|
|
|
if [ "$CROSS_BUILD" ]; then
|
|
|
|
_systemddir="$XBPS_CROSS_BASE"
|
2014-01-21 07:58:11 +01:00
|
|
|
_confargs="--host=$XBPS_CROSS_TRIPLET --with-sysroot=$XBPS_CROSS_BASE"
|
2014-01-11 15:15:58 +01:00
|
|
|
hostmakedepends+=" libtool automake gettext-devel libgcrypt-devel"
|
|
|
|
else
|
|
|
|
_systemddir="/usr"
|
|
|
|
fi
|
2013-02-12 16:41:48 +01:00
|
|
|
fi
|
|
|
|
|
2014-01-11 15:15:58 +01:00
|
|
|
_dbus_bootstrap() {
|
2013-02-12 13:44:37 +01:00
|
|
|
# Build a temporary dbus; we are only interested in libdbus.
|
2014-01-11 15:15:58 +01:00
|
|
|
mkdir ${wrksrc}/dbus-bootstrap
|
|
|
|
cd ${wrksrc}/dbus-bootstrap
|
2013-02-25 20:48:02 +01:00
|
|
|
|
|
|
|
../dbus-${version}/configure ${_confargs} \
|
2013-02-12 16:41:48 +01:00
|
|
|
--prefix=${wrksrc}/tmpbuild/usr \
|
2013-05-14 10:58:47 +02:00
|
|
|
--disable-systemd --without-x \
|
|
|
|
--enable-abstract-sockets ac_cv_have_abstract_sockets=yes
|
2013-02-25 20:48:02 +01:00
|
|
|
make ${makejobs}
|
|
|
|
make install
|
2014-01-11 15:15:58 +01:00
|
|
|
}
|
2013-02-12 13:44:37 +01:00
|
|
|
|
2014-01-11 15:15:58 +01:00
|
|
|
_systemd_bootstrap() {
|
2013-02-12 13:44:37 +01:00
|
|
|
# Build a temporary systemd; we are only interested in libsystemd-login.
|
2014-01-11 15:15:58 +01:00
|
|
|
if [ ! -d ${wrksrc}/systemd-bootstrap ]; then
|
|
|
|
if [ "$CROSS_BUILD" ]; then
|
|
|
|
cd ${wrksrc}/systemd-${_systemd_version}
|
|
|
|
autoreconf -fi
|
|
|
|
fi
|
|
|
|
mkdir ${wrksrc}/systemd-bootstrap
|
2013-02-12 16:41:48 +01:00
|
|
|
fi
|
2014-01-11 15:15:58 +01:00
|
|
|
cd ${wrksrc}/systemd-bootstrap
|
2013-02-12 13:44:37 +01:00
|
|
|
|
2013-05-26 10:41:55 +02:00
|
|
|
unset PKG_CONFIG_SYSROOT_DIR PKG_CONFIG_PATH
|
|
|
|
|
2013-02-12 13:44:37 +01:00
|
|
|
env PKG_CONFIG_LIBDIR=${wrksrc}/tmpbuild/usr/lib/pkgconfig \
|
2013-02-25 20:48:02 +01:00
|
|
|
../systemd-${_systemd_version}/configure ${_confargs} \
|
|
|
|
--prefix=/usr --disable-nls \
|
2014-01-11 15:15:58 +01:00
|
|
|
--disable-introspection --disable-kmod --disable-blkid \
|
2013-02-12 13:44:37 +01:00
|
|
|
--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 20:48:02 +01:00
|
|
|
--with-sysvrcnd-path= --disable-tests
|
2013-02-12 13:44:37 +01:00
|
|
|
|
2013-02-25 20:48:02 +01:00
|
|
|
make ${makejobs}
|
|
|
|
make DESTDIR=${wrksrc}/systemd-install install
|
2013-02-12 16:41:48 +01: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 13:44:37 +01:00
|
|
|
}
|
|
|
|
|
2014-01-11 15:15:58 +01:00
|
|
|
pre_configure() {
|
|
|
|
if [ "$build_option_systemd" ]; then
|
|
|
|
if [ ! -f ${wrksrc}/dbus_bootstrap_done ]; then
|
|
|
|
_dbus_bootstrap
|
|
|
|
touch -f ${wrksrc}/dbus_bootstrap_done
|
|
|
|
fi
|
|
|
|
if [ ! -f ${wrksrc}/systemd_bootstrap_done ]; then
|
|
|
|
_systemd_bootstrap
|
|
|
|
touch -f ${wrksrc}/systemd_bootstrap_done
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
2013-02-12 13:44:37 +01:00
|
|
|
do_configure() {
|
2013-02-12 16:41:48 +01:00
|
|
|
cd ${wrksrc}/dbus-${version}
|
|
|
|
|
2014-01-11 15:15:58 +01:00
|
|
|
if [ "$build_option_systemd" ]; then
|
|
|
|
if [ "$CROSS_BUILD" ]; then
|
|
|
|
autoreconf -fi
|
|
|
|
export PKG_CONFIG_LIBDIR="${_systemddir}/lib/pkgconfig"
|
|
|
|
fi
|
2013-02-12 16:41:48 +01:00
|
|
|
fi
|
2014-01-11 15:15:58 +01:00
|
|
|
|
2013-05-26 10:41:55 +02:00
|
|
|
./configure ${configure_args} \
|
2013-02-12 13:44:37 +01:00
|
|
|
--disable-selinux --enable-userdb-cache --with-xml=expat \
|
|
|
|
--disable-dnotify --enable-inotify --with-dbus-user=dbus \
|
2014-01-21 07:58:11 +01:00
|
|
|
--disable-doxygen-docs --enable-xml-docs --disable-static \
|
2013-02-12 13:44:37 +01:00
|
|
|
--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 \
|
2014-01-11 15:15:58 +01:00
|
|
|
--enable-abstract-sockets \
|
2013-05-14 10:58:47 +02:00
|
|
|
ac_cv_have_abstract_sockets=yes
|
2013-02-12 13:44:37 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
do_build() {
|
2013-02-12 16:41:48 +01:00
|
|
|
cd ${wrksrc}/dbus-${version}
|
2013-02-12 13:44:37 +01:00
|
|
|
make ${makejobs}
|
|
|
|
}
|
|
|
|
|
|
|
|
do_install() {
|
2013-02-12 16:41:48 +01:00
|
|
|
cd ${wrksrc}/dbus-${version}
|
2013-02-12 13:44:37 +01:00
|
|
|
make DESTDIR=${DESTDIR} install
|
2013-02-12 16:41:48 +01:00
|
|
|
|
|
|
|
# Remove systemd temp files from masterdir.
|
2014-01-11 15:15:58 +01:00
|
|
|
if [ "$build_option_systemd" ]; then
|
|
|
|
rm -f ${_systemddir}/lib/pkgconfig/libsystemd-*
|
|
|
|
rm -rf ${_systemddir}/include/systemd
|
|
|
|
rm -f ${_systemddir}/lib/libsystemd-*
|
|
|
|
fi
|
2013-02-12 13:44:37 +01:00
|
|
|
}
|
2013-04-12 09:46:44 +02:00
|
|
|
|
|
|
|
dbus-devel_package() {
|
2014-01-21 07:58:11 +01:00
|
|
|
depends="expat-devel dbus-libs>=${version}_${revision}"
|
2013-06-13 16:27:55 +02:00
|
|
|
short_desc+=" - development files"
|
2013-04-12 09:46:44 +02:00
|
|
|
pkg_install() {
|
|
|
|
vmove usr/include
|
|
|
|
vmove "usr/lib/dbus-*"
|
|
|
|
vmove usr/lib/pkgconfig
|
2013-09-13 12:41:07 +02:00
|
|
|
vmove "usr/lib/*.so"
|
2013-04-12 09:46:44 +02:00
|
|
|
vmove usr/share/doc
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
dbus-libs_package() {
|
2013-06-13 16:27:55 +02:00
|
|
|
short_desc+=" - shared libraries"
|
2013-04-12 09:46:44 +02:00
|
|
|
pkg_install() {
|
2013-09-13 12:41:07 +02:00
|
|
|
vmove "usr/lib/*.so.*"
|
2013-04-12 09:46:44 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
dbus-x11_package() {
|
|
|
|
replaces="dbus<1.4.16_2"
|
2013-06-13 16:27:55 +02:00
|
|
|
short_desc+=" - X11 support"
|
2013-04-12 09:46:44 +02:00
|
|
|
pkg_install() {
|
|
|
|
vmove usr/bin/dbus-launch
|
|
|
|
vmove usr/share/man/man1/dbus-launch.1
|
|
|
|
}
|
|
|
|
}
|