2008-01-21 23:24:38 +00:00
|
|
|
#
|
2008-05-09 06:54:54 +00:00
|
|
|
# Copyright (C) 2007-2008 OpenWrt.org
|
2007-10-03 07:46:16 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
# $Id$
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=dbus
|
2008-09-25 13:27:14 +00:00
|
|
|
PKG_VERSION:=1.2.3
|
|
|
|
PKG_RELEASE:=2
|
2007-10-03 07:46:16 +00:00
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
|
|
|
PKG_SOURCE_URL:=http://dbus.freedesktop.org/releases/dbus/
|
2008-09-25 13:27:14 +00:00
|
|
|
PKG_MD5SUM:=f71641385768e99361bd298568207cee
|
2007-10-03 07:46:16 +00:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
2008-09-25 13:27:14 +00:00
|
|
|
PKG_INSTALL=1
|
|
|
|
|
|
|
|
TARGET_LDFLAGS+=-Wl,-rpath-link=$(STAGING_DIR)/usr/lib
|
2007-10-03 07:46:16 +00:00
|
|
|
|
|
|
|
define Package/dbus/Default
|
2008-09-25 13:27:14 +00:00
|
|
|
SECTION:=utils
|
|
|
|
CATEGORY:=Utilities
|
|
|
|
TITLE:=Simple interprocess messaging system
|
|
|
|
URL:=http://dbus.freedesktop.org/
|
2007-10-03 07:46:16 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/dbus/Default/description
|
2008-01-21 23:24:38 +00:00
|
|
|
D-Bus is a message bus system, a simple way for applications to talk to one
|
|
|
|
another. In addition to interprocess communication, D-Bus helps coordinate
|
|
|
|
process lifecycle; it makes it simple and reliable to code a "single instance"
|
|
|
|
application or daemon, and to launch applications and daemons on demand when
|
2007-10-03 07:46:16 +00:00
|
|
|
their services are needed.
|
|
|
|
endef
|
|
|
|
|
|
|
|
|
|
|
|
define Package/dbus
|
|
|
|
$(call Package/dbus/Default)
|
|
|
|
TITLE+= (daemon)
|
|
|
|
DEPENDS:= +libexpat
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/dbus/Description
|
|
|
|
$(call Package/dbus/Default/description)
|
|
|
|
This package contains the D-Bus daemon.
|
|
|
|
endef
|
|
|
|
|
|
|
|
|
|
|
|
define Package/dbus-utils
|
|
|
|
$(call Package/dbus/Default)
|
|
|
|
TITLE+= (utilities)
|
|
|
|
DEPENDS:= dbus
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/dbus-utils/Description
|
|
|
|
$(call Package/dbus/Default/description)
|
|
|
|
This package contains D-Bus utilities.
|
|
|
|
endef
|
|
|
|
|
|
|
|
|
|
|
|
CONFIGURE_ARGS += \
|
|
|
|
--enable-shared \
|
|
|
|
--enable-static \
|
|
|
|
--disable-abstract-sockets \
|
|
|
|
--disable-ansi \
|
|
|
|
--disable-asserts \
|
|
|
|
--disable-console-owner-file \
|
|
|
|
--disable-doxygen-docs \
|
|
|
|
--disable-gcov \
|
|
|
|
--disable-selinux \
|
|
|
|
--disable-tests \
|
|
|
|
--disable-verbose-mode \
|
|
|
|
--disable-xml-docs \
|
|
|
|
--with-xml="expat" \
|
2008-01-21 23:24:38 +00:00
|
|
|
--with-dbus-user=root \
|
2007-10-03 07:46:16 +00:00
|
|
|
--with-dbus-daemondir="/usr/sbin" \
|
|
|
|
--with-system-socket="/var/run/dbus/system_bus_socket" \
|
|
|
|
--with-system-pid-file="/var/run/dbus.pid" \
|
2008-06-11 19:23:44 +00:00
|
|
|
--without-x
|
2008-05-09 06:54:54 +00:00
|
|
|
|
2007-10-03 07:46:16 +00:00
|
|
|
CONFIGURE_VARS+= \
|
|
|
|
ac_cv_have_abstract_sockets="yes" \
|
2008-09-27 14:39:08 +00:00
|
|
|
$(if $(CONFIG_LINUX_2_4),ac_cv_header_sys_inotify_h=no) \
|
2007-10-03 07:46:16 +00:00
|
|
|
|
|
|
|
|
|
|
|
define Build/InstallDev
|
2008-09-25 13:27:14 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/include
|
|
|
|
$(CP) \
|
|
|
|
$(PKG_INSTALL_DIR)/usr/include/dbus-1.0 \
|
2007-10-07 03:20:26 +00:00
|
|
|
$(1)/usr/include/
|
2008-09-25 13:27:14 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
|
|
|
$(INSTALL_DATA) \
|
|
|
|
$(PKG_INSTALL_DIR)/usr/lib/libdbus-1.{a,so*} \
|
2007-10-07 03:20:26 +00:00
|
|
|
$(1)/usr/lib/
|
2008-09-25 13:27:14 +00:00
|
|
|
$(CP) \
|
|
|
|
$(PKG_INSTALL_DIR)/usr/lib/dbus-1.0 \
|
2007-10-07 03:20:26 +00:00
|
|
|
$(1)/usr/lib/
|
2008-09-25 13:27:14 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/lib/pkgconfig
|
|
|
|
$(INSTALL_DATA) \
|
|
|
|
$(PKG_INSTALL_DIR)/usr/lib/pkgconfig/dbus-1.pc \
|
2007-10-07 03:20:26 +00:00
|
|
|
$(1)/usr/lib/pkgconfig/
|
2007-10-03 07:46:16 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/dbus/conffiles
|
|
|
|
/etc/dbus-1/session.conf
|
|
|
|
/etc/dbus-1/system.conf
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/dbus/install
|
|
|
|
$(INSTALL_DIR) $(1)/etc
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/etc/dbus-1 $(1)/etc/
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libdbus-1.so.* $(1)/usr/lib/
|
|
|
|
$(INSTALL_DIR) $(1)/usr/sbin
|
2007-12-09 18:59:01 +00:00
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/dbus-daemon $(1)/usr/sbin/
|
2007-10-03 07:46:16 +00:00
|
|
|
$(INSTALL_DIR) $(1)/etc/init.d
|
2008-01-21 23:24:38 +00:00
|
|
|
$(INSTALL_BIN) ./files/dbus.init $(1)/etc/init.d/dbus
|
2007-10-03 07:46:16 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
|
|
|
|
define Package/dbus-utils/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
2007-12-09 18:59:01 +00:00
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/dbus-* $(1)/usr/bin/
|
2007-10-03 07:46:16 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,dbus))
|
|
|
|
$(eval $(call BuildPackage,dbus-utils))
|
|
|
|
|