distribution/packages/sysutils/dbus/package.mk

49 lines
1.9 KiB
Makefile
Raw Normal View History

2022-02-05 14:23:32 +00:00
# SPDX-License-Identifier: GPL-2.0-or-later
# Copyright (C) 2009-2016 Stephan Raue (stephan@openelec.tv)
# Copyright (C) 2019-present Team LibreELEC (https://libreelec.tv)
2023-05-09 19:21:47 +00:00
# Copyright (C) 2023-present Fewtarius
2022-02-05 14:23:32 +00:00
PKG_NAME="dbus"
2023-05-09 19:21:47 +00:00
PKG_VERSION="1.15.4"
2022-02-05 14:23:32 +00:00
PKG_LICENSE="GPL"
PKG_SITE="https://dbus.freedesktop.org"
2023-02-24 13:53:43 +00:00
PKG_URL="https://dbus.freedesktop.org/releases/${PKG_NAME}/${PKG_NAME}-${PKG_VERSION}.tar.xz"
2022-02-05 14:23:32 +00:00
PKG_DEPENDS_TARGET="toolchain expat systemd"
PKG_LONGDESC="D-Bus is a message bus, used for sending messages between applications."
PKG_TOOLCHAIN="configure"
PKG_CONFIGURE_OPTS_TARGET="export ac_cv_have_abstract_sockets=yes \
2023-02-24 13:53:43 +00:00
--with-sysroot=${SYSROOT_PREFIX} \
2022-02-05 14:23:32 +00:00
--libexecdir=/usr/lib/dbus \
--disable-verbose-mode \
--disable-asserts \
--enable-checks \
--disable-tests \
--disable-ansi \
--disable-xml-docs \
--disable-doxygen-docs \
--disable-x11-autolaunch \
--disable-selinux \
--disable-libaudit \
--enable-systemd \
--enable-inotify \
--without-valgrind \
--without-x \
--with-dbus-user=dbus \
--runstatedir=/run \
--with-system-socket=/run/dbus/system_bus_socket"
post_makeinstall_target() {
2023-02-24 13:53:43 +00:00
rm -rf ${INSTALL}/etc/rc.d
rm -rf ${INSTALL}/usr/lib/dbus-1.0/include
2022-02-05 14:23:32 +00:00
}
post_install() {
add_user dbus x 81 81 "System message bus" "/" "/bin/sh"
add_group dbus 81
add_group netdev 497
2023-02-24 13:53:43 +00:00
echo "chmod 4750 ${INSTALL}/usr/lib/dbus/dbus-daemon-launch-helper" >> $FAKEROOT_SCRIPT
echo "chown 0:81 ${INSTALL}/usr/lib/dbus/dbus-daemon-launch-helper" >> $FAKEROOT_SCRIPT
2022-02-05 14:23:32 +00:00
}