1 ################################################################################
5 ################################################################################
8 DBUS_SITE = https://dbus.freedesktop.org/releases/dbus
9 DBUS_LICENSE = AFL-2.1 or GPL-2.0+ (library, tools), GPL-2.0+ (tools)
10 DBUS_LICENSE_FILES = COPYING
11 DBUS_INSTALL_STAGING = YES
13 define DBUS_PERMISSIONS
14 /usr/libexec/dbus-daemon-launch-helper f 4755 0 0 - - - - -
18 dbus -1 dbus -1 * /var/run/dbus - dbus DBus messagebus user
21 DBUS_DEPENDENCIES = host-pkgconf expat
24 --with-dbus-user=dbus \
28 --disable-doxygen-docs \
30 --with-system-socket=/var/run/dbus/system_bus_socket \
31 --with-system-pid-file=/var/run/messagebus.pid
33 ifeq ($(BR2_STATIC_LIBS),y)
34 DBUS_CONF_OPTS += LIBS='-pthread'
37 ifeq ($(BR2_microblaze),y)
38 # microblaze toolchain doesn't provide inotify_rm_* but does have sys/inotify.h
39 DBUS_CONF_OPTS += --disable-inotify
42 ifeq ($(BR2_PACKAGE_LIBSELINUX),y)
43 DBUS_CONF_OPTS += --enable-selinux
44 DBUS_DEPENDENCIES += libselinux
46 DBUS_CONF_OPTS += --disable-selinux
49 ifeq ($(BR2_PACKAGE_AUDIT)$(BR2_PACKAGE_LIBCAP_NG),yy)
50 DBUS_CONF_OPTS += --enable-libaudit
51 DBUS_DEPENDENCIES += audit libcap-ng
53 DBUS_CONF_OPTS += --disable-libaudit
56 ifeq ($(BR2_PACKAGE_XLIB_LIBX11),y)
57 DBUS_CONF_OPTS += --with-x
58 DBUS_DEPENDENCIES += xlib_libX11
59 ifeq ($(BR2_PACKAGE_XLIB_LIBSM),y)
60 DBUS_DEPENDENCIES += xlib_libSM
63 DBUS_CONF_OPTS += --without-x
66 ifeq ($(BR2_INIT_SYSTEMD),y)
69 --with-systemdsystemunitdir=/usr/lib/systemd/system
70 DBUS_DEPENDENCIES += systemd
72 DBUS_CONF_OPTS += --disable-systemd
75 # fix rebuild (dbus makefile errors out if /var/lib/dbus is a symlink)
76 define DBUS_REMOVE_VAR_LIB_DBUS
77 rm -rf $(TARGET_DIR)/var/lib/dbus
80 DBUS_PRE_INSTALL_TARGET_HOOKS += DBUS_REMOVE_VAR_LIB_DBUS
82 define DBUS_REMOVE_DEVFILES
83 rm -rf $(TARGET_DIR)/usr/lib/dbus-1.0
86 DBUS_POST_INSTALL_TARGET_HOOKS += DBUS_REMOVE_DEVFILES
88 define DBUS_INSTALL_INIT_SYSV
89 $(INSTALL) -m 0755 -D package/dbus/S30dbus \
90 $(TARGET_DIR)/etc/init.d/S30dbus
92 mkdir -p $(TARGET_DIR)/var/lib
93 rm -rf $(TARGET_DIR)/var/lib/dbus
94 ln -sf /tmp/dbus $(TARGET_DIR)/var/lib/dbus
97 define DBUS_INSTALL_INIT_SYSTEMD
98 mkdir -p $(TARGET_DIR)/var/lib/dbus
99 ln -sf /etc/machine-id $(TARGET_DIR)/var/lib/dbus/machine-id
102 HOST_DBUS_DEPENDENCIES = host-pkgconf host-expat
103 HOST_DBUS_CONF_OPTS = \
104 --with-dbus-user=dbus \
109 --disable-doxygen-docs \
114 DBUS_HOST_INTROSPECT = $(HOST_DBUS_DIR)/introspect.xml
116 HOST_DBUS_GEN_INTROSPECT = \
117 $(HOST_DIR)/bin/dbus-daemon --introspect > $(DBUS_HOST_INTROSPECT)
119 HOST_DBUS_POST_INSTALL_HOOKS += HOST_DBUS_GEN_INTROSPECT
121 $(eval $(autotools-package))
122 $(eval $(host-autotools-package))