mirror of
https://github.com/YellowJacketLinux/lfs-buildscripts.git
synced 2025-01-23 22:42:28 +08:00
51 lines
912 B
Bash
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
|