lfs-buildscripts/CH8Build/CH08.75-dbus.sh
2024-10-08 18:50:04 -07:00

51 lines
912 B
Bash

#!/bin/bash
source versions.sh
GLSOURCES="/sources"
pushd ${GLSOURCES} > /dev/null 2>&1 || myfail "Failed to move to ${GLSOURCES}"
[ -d dbus-${dbus_version} ] && rm -rf dbus-${dbus_version}
tar -Jxf ${dbus_tarball}
cd dbus-${dbus_version}
./configure --prefix=/usr \
--sysconfdir=/etc \
--localstatedir=/var \
--runstatedir=/run \
--enable-user-session \
--disable-static \
--disable-doxygen-docs \
--disable-xml-docs \
--docdir=/usr/share/doc/dbus-${dbus_version} \
--with-system-socket=/run/dbus/system_bus_socket
make
if [ $? -ne 0 ]; then
myfail "Failed building dbus"
fi
if [ ! -f ${GLSOURCES}/SKIPTESTS ]; then
echo "running dbus make check"
make check > ${GLSOURCES}/dbus.check.log 2>&1
fi
make install
if [ $? -ne 0 ]; then
myfail "Failed installing dbus"
fi
ls -sf /etc/machine-id /var/lib/dbus
popd
# cleanup
pushd $GLSOURCES
rm -rf dbus-${dbus_version}
popd