2 # Copyright (C) 2007-2008 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR)/rules.mk
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=http://dbus.freedesktop.org/releases/dbus/
17 PKG_MD5SUM:=ce328423db5743fe9006d39113b5324d
19 include $(INCLUDE_DIR)/package.mk
22 define Package/dbus/Default
25 TITLE:=Simple interprocess messaging system
26 URL:=http://dbus.freedesktop.org/
29 define Package/dbus/Default/description
30 D-Bus is a message bus system, a simple way for applications to talk to one
31 another. In addition to interprocess communication, D-Bus helps coordinate
32 process lifecycle; it makes it simple and reliable to code a "single instance"
33 application or daemon, and to launch applications and daemons on demand when
34 their services are needed.
39 $(call Package/dbus/Default)
44 define Package/dbus/Description
45 $(call Package/dbus/Default/description)
46 This package contains the D-Bus daemon.
50 define Package/dbus-utils
51 $(call Package/dbus/Default)
56 define Package/dbus-utils/Description
57 $(call Package/dbus/Default/description)
58 This package contains D-Bus utilities.
65 --disable-abstract-sockets \
68 --disable-console-owner-file \
70 --disable-doxygen-docs \
74 --disable-verbose-mode \
77 --with-dbus-user=root \
78 --with-dbus-daemondir="/usr/sbin" \
79 --with-system-socket="/var/run/dbus/system_bus_socket" \
80 --with-system-pid-file="/var/run/dbus.pid" \
85 ac_cv_have_abstract_sockets="yes" \
89 $(MAKE) -C $(PKG_BUILD_DIR) \
90 DESTDIR="$(PKG_INSTALL_DIR)" \
94 define Build/InstallDev
95 mkdir -p $(1)/usr/include
96 $(CP) $(PKG_INSTALL_DIR)/usr/include/dbus-1.0 \
99 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libdbus-1.{a,so*} \
101 $(CP) $(PKG_INSTALL_DIR)/usr/lib/dbus-1.0 \
103 mkdir -p $(1)/usr/lib/pkgconfig
104 $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/dbus-1.pc \
105 $(1)/usr/lib/pkgconfig/
108 define Package/dbus/conffiles
109 /etc/dbus-1/session.conf
110 /etc/dbus-1/system.conf
113 define Package/dbus/install
114 $(INSTALL_DIR) $(1)/etc
115 $(CP) $(PKG_INSTALL_DIR)/etc/dbus-1 $(1)/etc/
116 $(INSTALL_DIR) $(1)/usr/lib
117 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libdbus-1.so.* $(1)/usr/lib/
118 $(INSTALL_DIR) $(1)/usr/sbin
119 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/dbus-daemon $(1)/usr/sbin/
120 $(INSTALL_DIR) $(1)/etc/init.d
121 $(INSTALL_BIN) ./files/dbus.init $(1)/etc/init.d/dbus
125 define Package/dbus-utils/install
126 $(INSTALL_DIR) $(1)/usr/bin
127 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/dbus-* $(1)/usr/bin/
131 $(eval $(call BuildPackage,dbus))
132 $(eval $(call BuildPackage,dbus-utils))