dbus: mv from x11-packages to termux-packages (#6205)

Needed by libbluetooth in termux-root-packages so needs to be in main repository
This commit is contained in:
Henrik Grimler 2021-01-01 12:50:59 +01:00 committed by GitHub
parent 95f60426cb
commit e47244007c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 50 additions and 0 deletions

38
packages/dbus/build.sh Normal file
View File

@ -0,0 +1,38 @@
TERMUX_PKG_HOMEPAGE=https://dbus.freedesktop.org
TERMUX_PKG_DESCRIPTION="Freedesktop.org message bus system"
TERMUX_PKG_LICENSE="GPL-2.0"
TERMUX_PKG_MAINTAINER="Leonid Pliushch <leonid.pliushch@gmail.com>"
TERMUX_PKG_VERSION=1.12.20
TERMUX_PKG_REVISION=2
TERMUX_PKG_SRCURL="https://dbus.freedesktop.org/releases/dbus/dbus-$TERMUX_PKG_VERSION.tar.gz"
TERMUX_PKG_SHA256=f77620140ecb4cdc67f37fb444f8a6bea70b5b6461f12f1cbe2cec60fa7de5fe
TERMUX_PKG_DEPENDS="libexpat, libx11"
TERMUX_PKG_BREAKS="dbus-dev"
TERMUX_PKG_REPLACES="dbus-dev"
TERMUX_PKG_BUILD_IN_SRC=true
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
--disable-libaudit
--disable-systemd
--disable-tests
--enable-x11-autolaunch
--with-test-socket-dir=$TERMUX_PREFIX/tmp
--with-session-socket-dir=$TERMUX_PREFIX/tmp
--with-x
"
termux_step_pre_configure() {
export LIBS="-llog"
autoreconf -fi
}
termux_step_create_debscripts() {
{
echo "#!${TERMUX_PREFIX}/bin/sh"
echo "if [ ! -e ${TERMUX_PREFIX}/var/lib/dbus/machine-id ]; then"
echo "mkdir -p ${TERMUX_PREFIX}/var/lib/dbus"
echo "dbus-uuidgen > ${TERMUX_PREFIX}/var/lib/dbus/machine-id"
echo "fi"
echo "exit 0"
} > postinst
}

View File

@ -0,0 +1,12 @@
diff -uNr dbus-1.12.16/dbus/dbus-sysdeps-unix.c dbus-1.12.16.mod/dbus/dbus-sysdeps-unix.c
--- dbus-1.12.16/dbus/dbus-sysdeps-unix.c 2019-05-13 12:33:56.000000000 +0300
+++ dbus-1.12.16.mod/dbus/dbus-sysdeps-unix.c 2019-08-15 02:15:37.825982953 +0300
@@ -3602,7 +3602,7 @@
/* And this is the sane fallback. */
if (tmpdir == NULL)
- tmpdir = "/tmp";
+ tmpdir = "@TERMUX_PREFIX@/tmp";
}
_DBUS_UNLOCK (sysdeps);