summaryrefslogtreecommitdiff
path: root/package/dbus
diff options
context:
space:
mode:
authorwbx <wbx@hydrogenium.(none)>2009-05-17 14:41:34 +0200
committerwbx <wbx@hydrogenium.(none)>2009-05-17 14:41:34 +0200
commit219a6dab8995aad9ac4860cc1a84d6f3509a03a4 (patch)
treeb9c0f3c43aebba2fcfef777592d0add39f2072f4 /package/dbus
Initial import
Diffstat (limited to 'package/dbus')
-rw-r--r--package/dbus/Config.in10
-rw-r--r--package/dbus/Makefile47
-rw-r--r--package/dbus/files/dbus.init27
-rw-r--r--package/dbus/ipkg/dbus.control5
-rw-r--r--package/dbus/ipkg/dbus.postinst6
5 files changed, 95 insertions, 0 deletions
diff --git a/package/dbus/Config.in b/package/dbus/Config.in
new file mode 100644
index 000000000..8e8ca33fc
--- /dev/null
+++ b/package/dbus/Config.in
@@ -0,0 +1,10 @@
+config ADK_PACKAGE_DBUS
+ prompt "dbus.............................. DBUS library"
+ tristate
+ default n
+ select ADK_PACKAGE_LIBEXPAT
+ help
+ DBUS library.
+
+ http://www.freedesktop.org/wiki/Software/dbus
+
diff --git a/package/dbus/Makefile b/package/dbus/Makefile
new file mode 100644
index 000000000..09219b38a
--- /dev/null
+++ b/package/dbus/Makefile
@@ -0,0 +1,47 @@
+# $Id$
+#-
+# This file is part of the OpenADK project. OpenADK is copyrighted
+# material, please see the LICENCE file in the top-level directory.
+
+include ${TOPDIR}/rules.mk
+
+PKG_NAME:= dbus
+PKG_VERSION:= 1.0.2
+PKG_RELEASE:= 7
+PKG_MD5SUM:= 0552a9b54beb4a044951b7cdbc8fc855
+MASTER_SITES:= http://dbus.freedesktop.org/releases/dbus/
+
+include ${TOPDIR}/mk/package.mk
+
+$(eval $(call PKG_template,DBUS,dbus,${PKG_VERSION}-${PKG_RELEASE},${ARCH}))
+
+CONFIGURE_STYLE:= gnu
+CONFIGURE_ARGS+= --disable-tests \
+ --disable-abstract-sockets \
+ --without-x \
+ --enable-checks \
+ --with-xml=expat \
+ --disable-dnotify \
+ --disable-kqueue \
+ --disable-xml-docs \
+ --disable-doxygen-docs
+CONFIGURE_ENV+= ac_cv_have_abstract_sockets=no
+BUILD_STYLE:= auto
+INSTALL_STYLE:= confprog auto
+
+post-install:
+ ${INSTALL_DIR} ${IDIR_DBUS}/etc
+ ${INSTALL_DIR} ${IDIR_DBUS}/usr/lib
+ ${INSTALL_DIR} ${IDIR_DBUS}/usr/bin
+ ${INSTALL_DIR} $(STAGING_DIR)/usr/include/dbus-1.0/dbus
+ ${CP} ${WRKINST}/etc/dbus-1 ${IDIR_DBUS}/etc/
+ ${CP} ${WRKINST}/usr/lib/libdbus-1.so.* ${IDIR_DBUS}/usr/lib/
+ $(CP) $(WRKINST)/usr/lib/dbus-1.0/include/dbus/dbus-arch-deps.h \
+ $(STAGING_DIR)/usr/include/dbus-1.0/dbus/
+ ${INSTALL_BIN} ${WRKINST}/usr/bin/dbus-daemon ${IDIR_DBUS}/usr/bin/
+ ${INSTALL_BIN} ${WRKINST}/usr/bin/dbus-launch ${IDIR_DBUS}/usr/bin/
+ ${INSTALL_DIR} ${IDIR_DBUS}/etc/init.d
+ ${INSTALL_BIN} ./files/dbus.init \
+ ${IDIR_DBUS}/etc/init.d/dbus
+
+include ${TOPDIR}/mk/pkg-bottom.mk
diff --git a/package/dbus/files/dbus.init b/package/dbus/files/dbus.init
new file mode 100644
index 000000000..dd1761271
--- /dev/null
+++ b/package/dbus/files/dbus.init
@@ -0,0 +1,27 @@
+#!/bin/sh
+#FWINIT 60
+. /etc/rc.conf
+
+case $1 in
+autostop) ;;
+autostart)
+ test x"${dbus:-NO}" = x"NO" && exit 0
+ exec sh $0 start
+ ;;
+start)
+ mkdir -p /var/run/dbus
+ dbus-daemon --config-file=/etc/dbus-1/system.conf
+ ;;
+stop)
+ killall dbus-daemon
+ ;;
+restart)
+ sh $0 stop
+ sh $0 start
+ ;;
+*)
+ echo "Usage: $0 {start | stop | restart}"
+ exit 1
+ ;;
+esac
+exit $?
diff --git a/package/dbus/ipkg/dbus.control b/package/dbus/ipkg/dbus.control
new file mode 100644
index 000000000..d1cecbd8a
--- /dev/null
+++ b/package/dbus/ipkg/dbus.control
@@ -0,0 +1,5 @@
+Package: dbus
+Priority: optional
+Section: net
+Description: DBUS library
+Depends: libexpat
diff --git a/package/dbus/ipkg/dbus.postinst b/package/dbus/ipkg/dbus.postinst
new file mode 100644
index 000000000..8dd0a50c8
--- /dev/null
+++ b/package/dbus/ipkg/dbus.postinst
@@ -0,0 +1,6 @@
+#!/bin/sh
+. $IPKG_INSTROOT/etc/functions.sh
+gid=$(get_next_gid)
+add_group messagebus $gid
+add_user messagebus $(get_next_uid) $gid /var/run/dbus
+add_rcconf dbus dbus NO