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.
78 $(Build
/Prepare
/Default
)
79 $(SED
) 's/-Wl,--gc-sections/--gc-sections/' $(PKG_BUILD_DIR
)/configure
85 --disable-abstract-sockets \
88 --disable-console-owner-file \
89 --disable-doxygen-docs \
93 --disable-verbose-mode \
96 --with-dbus-user
=root \
97 --with-dbus-daemondir
="/usr/sbin" \
98 --with-system-socket
="/var/run/dbus/system_bus_socket" \
99 --with-system-pid-file
="/var/run/dbus.pid" \
101 --libexecdir
=/usr
/lib
/dbus-1
104 ac_cv_have_abstract_sockets
="yes" \
105 ac_cv_lib_expat_XML_ParserCreate_MM
="yes" \
108 define Build
/InstallDev
109 $(INSTALL_DIR
) $(1)/usr
/include
111 $(PKG_INSTALL_DIR
)/usr
/include/dbus-1.0 \
113 $(INSTALL_DIR
) $(1)/usr
/lib
/dbus-1.0
/include/dbus
/
115 $(PKG_INSTALL_DIR
)/usr
/lib
/dbus-1.0
/include/dbus
/*.h \
116 $(1)/usr
/lib
/dbus-1.0
/include/dbus
/
118 $(INSTALL_DIR
) $(1)/usr
/lib
120 $(PKG_INSTALL_DIR
)/usr
/lib
/libdbus-1.
{so
*,la
,a
} \
123 $(PKG_INSTALL_DIR
)/usr
/lib
/dbus-1.0 \
125 $(INSTALL_DIR
) $(1)/usr
/lib
/pkgconfig
127 $(PKG_INSTALL_DIR
)/usr
/lib
/pkgconfig
/dbus-1.
pc \
128 $(1)/usr
/lib
/pkgconfig
/
131 define Package
/dbus
/conffiles
132 /etc
/dbus-1
/session.conf
133 /etc
/dbus-1
/system.conf
136 define Package
/libdbus
/install
137 $(INSTALL_DIR
) $(1)/usr
/lib
139 $(PKG_INSTALL_DIR
)/usr
/lib
/libdbus-1.so.
* \
143 define Package
/dbus
/install
144 $(INSTALL_DIR
) $(1)/etc
146 $(PKG_INSTALL_DIR
)/etc
/dbus-1 \
149 $(INSTALL_DIR
) $(1)/usr
/lib
/dbus-1
151 $(PKG_INSTALL_DIR
)/usr
/lib
/dbus-1
/dbus-daemon-launch-helper \
154 $(INSTALL_DIR
) $(1)/usr
/sbin
156 $(PKG_INSTALL_DIR
)/usr
/sbin
/dbus-daemon \
159 $(INSTALL_DIR
) $(1)/usr
/bin
161 $(PKG_INSTALL_DIR
)/usr
/bin
/dbus-uuidgen \
165 $(PKG_INSTALL_DIR
)/usr
/bin
/dbus-launch \
166 $(1)/usr
/bin
/dbus-launch.real
168 .
/files
/dbus-launch \
171 $(INSTALL_DIR
) $(1)/etc
/init.d
177 define Package
/dbus-utils
/install
178 $(INSTALL_DIR
) $(1)/usr
/bin
180 $(PKG_INSTALL_DIR
)/usr
/bin
/dbus-
{send
,monitor
,cleanup-sockets
} \
184 $(eval
$(call BuildPackage
,libdbus
))
185 $(eval
$(call BuildPackage
,dbus
))
186 $(eval
$(call BuildPackage
,dbus-utils
))