2 # Copyright (C) 2007-2009 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR)/rules.mk
10 # Make sure to also update the dbus-x package
12 PKG_VERSION:=1.2.4.6permissive
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=http://dbus.freedesktop.org/releases/dbus/
17 PKG_MD5SUM:=1a158fe326b078d1377a977121888496
22 include $(INCLUDE_DIR)/package.mk
25 -Wl,-rpath-link=$(STAGING_DIR)/usr/lib \
28 define Package/dbus/Default
31 TITLE:=Simple interprocess messaging system
32 URL:=http://dbus.freedesktop.org/
35 define Package/dbus/Default/description
36 D-Bus is a message bus system, a simple way for applications to talk to one
37 another. In addition to interprocess communication, D-Bus helps coordinate
38 process lifecycle; it makes it simple and reliable to code a "single instance"
39 application or daemon, and to launch applications and daemons on demand when
40 their services are needed.
43 define Package/libdbus
44 $(call Package/dbus/Default)
49 define Package/libdbus/Description
50 $(call Package/dbus/Default/description)
51 This package contains the D-Bus shared library.
55 $(call Package/dbus/Default)
57 DEPENDS:= +libexpat +libdbus
60 define Package/dbus/Description
61 $(call Package/dbus/Default/description)
62 This package contains the D-Bus daemon.
65 define Package/dbus-utils
66 $(call Package/dbus/Default)
71 define Package/dbus-utils/Description
72 $(call Package/dbus/Default/description)
73 This package contains D-Bus utilities.
80 --disable-abstract-sockets \
83 --disable-console-owner-file \
84 --disable-doxygen-docs \
88 --disable-verbose-mode \
91 --with-dbus-user=root \
92 --with-dbus-daemondir="/usr/sbin" \
93 --with-system-socket="/var/run/dbus/system_bus_socket" \
94 --with-system-pid-file="/var/run/dbus.pid" \
96 --libexecdir=/usr/lib/dbus-1
99 ac_cv_have_abstract_sockets="yes" \
102 define Build/InstallDev
103 $(INSTALL_DIR) $(1)/usr/include
105 $(PKG_INSTALL_DIR)/usr/include/dbus-1.0 \
107 $(INSTALL_DIR) $(1)/usr/lib/dbus-1.0/include/dbus/
109 $(PKG_INSTALL_DIR)/usr/lib/dbus-1.0/include/dbus/*.h \
110 $(1)/usr/lib/dbus-1.0/include/dbus/
112 $(INSTALL_DIR) $(1)/usr/lib
114 $(PKG_INSTALL_DIR)/usr/lib/libdbus-1.{so*,la,a} \
117 $(PKG_INSTALL_DIR)/usr/lib/dbus-1.0 \
119 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
121 $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/dbus-1.pc \
122 $(1)/usr/lib/pkgconfig/
125 define Package/dbus/conffiles
126 /etc/dbus-1/session.conf
127 /etc/dbus-1/system.conf
130 define Package/libdbus/install
131 $(INSTALL_DIR) $(1)/usr/lib
133 $(PKG_INSTALL_DIR)/usr/lib/libdbus-1.so.* \
137 define Package/dbus/install
138 $(INSTALL_DIR) $(1)/etc
140 $(PKG_INSTALL_DIR)/etc/dbus-1 \
143 $(INSTALL_DIR) $(1)/usr/lib/dbus-1
145 $(PKG_INSTALL_DIR)/usr/lib/dbus-1/dbus-daemon-launch-helper \
148 $(INSTALL_DIR) $(1)/usr/sbin
150 $(PKG_INSTALL_DIR)/usr/sbin/dbus-daemon \
153 $(INSTALL_DIR) $(1)/usr/bin
155 $(PKG_INSTALL_DIR)/usr/bin/dbus-uuidgen \
159 $(PKG_INSTALL_DIR)/usr/bin/dbus-launch \
160 $(1)/usr/bin/dbus-launch.real
162 ./files/dbus-launch \
165 $(INSTALL_DIR) $(1)/etc/init.d
171 define Package/dbus-utils/install
172 $(INSTALL_DIR) $(1)/usr/bin
174 $(PKG_INSTALL_DIR)/usr/bin/dbus-{send,monitor,cleanup-sockets} \
178 $(eval $(call BuildPackage,libdbus))
179 $(eval $(call BuildPackage,dbus))
180 $(eval $(call BuildPackage,dbus-utils))