From 735ee0fb50005b75cacdbb77bc8dfcb8e8a6c7f5 Mon Sep 17 00:00:00 2001 From: jmmv Date: Mon, 11 Oct 2004 17:45:26 +0000 Subject: Initial import of dbus, version 0.22: D-BUS is a message bus, used for sending messages between applications. Conceptually, it fits somewhere in between raw sockets and CORBA in terms of complexity. D-BUS supports broadcast messages, asynchronous messages (thus decreasing latency), authentication, and more. It is designed to be low-overhead; messages are sent using a binary protocol, not using XML. D-BUS also supports a method call mapping for its messages, but it is not required; this makes using the system quite simple. This package provides the D-BUS core library and daemon, as well as some utilities that complement it. --- sysutils/dbus/DESCR | 12 +++++++ sysutils/dbus/Makefile | 19 +++++++++++ sysutils/dbus/Makefile.common | 77 ++++++++++++++++++++++++++++++++++++++++++ sysutils/dbus/PLIST | 36 ++++++++++++++++++++ sysutils/dbus/buildlink3.mk | 20 +++++++++++ sysutils/dbus/distinfo | 6 ++++ sysutils/dbus/files/dbus.sh | 21 ++++++++++++ sysutils/dbus/patches/patch-aa | 29 ++++++++++++++++ sysutils/dbus/patches/patch-ab | 13 +++++++ 9 files changed, 233 insertions(+) create mode 100644 sysutils/dbus/DESCR create mode 100644 sysutils/dbus/Makefile create mode 100644 sysutils/dbus/Makefile.common create mode 100644 sysutils/dbus/PLIST create mode 100644 sysutils/dbus/buildlink3.mk create mode 100644 sysutils/dbus/distinfo create mode 100644 sysutils/dbus/files/dbus.sh create mode 100644 sysutils/dbus/patches/patch-aa create mode 100644 sysutils/dbus/patches/patch-ab diff --git a/sysutils/dbus/DESCR b/sysutils/dbus/DESCR new file mode 100644 index 00000000000..2a2988e2e02 --- /dev/null +++ b/sysutils/dbus/DESCR @@ -0,0 +1,12 @@ +D-BUS is a message bus, used for sending messages between applications. +Conceptually, it fits somewhere in between raw sockets and CORBA in terms +of complexity. + +D-BUS supports broadcast messages, asynchronous messages (thus decreasing +latency), authentication, and more. It is designed to be low-overhead; +messages are sent using a binary protocol, not using XML. D-BUS also +supports a method call mapping for its messages, but it is not required; +this makes using the system quite simple. + +This package provides the D-BUS core library and daemon, as well as +some utilities that complement it. diff --git a/sysutils/dbus/Makefile b/sysutils/dbus/Makefile new file mode 100644 index 00000000000..5f78c07ff45 --- /dev/null +++ b/sysutils/dbus/Makefile @@ -0,0 +1,19 @@ +# $NetBSD: Makefile,v 1.1.1.1 2004/10/11 17:45:26 jmmv Exp $ +# + +.include "Makefile.common" + +PKG_USERS= messagebus:messagebus::System\\ message\\ bus:${VARBASE}/run/dbus:/sbin/nologin +PKG_GROUPS= messagebus + +MAKE_DIRS= ${PKG_SYSCONFDIR}/event.d +MAKE_DIRS+= ${PKG_SYSCONFDIR}/system.d +OWN_DIRS_PERMS= ${VARBASE}/run/dbus messagebus messagebus 0755 + +RCD_SCRIPTS= dbus + +EGDIR= ${PREFIX}/share/examples/dbus +CONF_FILES= ${EGDIR}/session.conf ${PKG_SYSCONFDIR}/session.conf +CONF_FILES+= ${EGDIR}/system.conf ${PKG_SYSCONFDIR}/system.conf + +.include "../../mk/bsd.pkg.mk" diff --git a/sysutils/dbus/Makefile.common b/sysutils/dbus/Makefile.common new file mode 100644 index 00000000000..752593bd512 --- /dev/null +++ b/sysutils/dbus/Makefile.common @@ -0,0 +1,77 @@ +# $NetBSD: Makefile.common,v 1.1.1.1 2004/10/11 17:45:26 jmmv Exp $ +# + +DBUS_VERSION= 0.22 + +DISTNAME= dbus-${DBUS_VERSION} +CATEGORIES= sysutils +MASTER_SITES= http://freedesktop.org/Software/dbus/releases/ + +MAINTAINER= jmmv@NetBSD.org +HOMEPAGE= http://www.freedesktop.org/Software/dbus +COMMENT= Message bus system + +DISTINFO_FILE= ${.CURDIR}/../../sysutils/dbus/distinfo +PATCHDIR= ${.CURDIR}/../../sysutils/dbus/patches + +GNU_CONFIGURE= YES +USE_BUILDLINK3= YES +USE_GNU_TOOLS+= make +USE_LIBTOOL= YES +USE_PKGINSTALL= YES + +PKGCONFIG_OVERRIDE= dbus-1.pc +PKGCONFIG_OVERRIDE+= dbus-glib-1.pc +PKGCONFIG_OVERRIDE+= dbus-sharp.pc + +CONFIGURE_ARGS+= --disable-qt +CONFIGURE_ARGS+= --disable-glib +CONFIGURE_ARGS+= --disable-gtk +CONFIGURE_ARGS+= --disable-xml-docs +CONFIGURE_ARGS+= --disable-doxygen-docs +CONFIGURE_ARGS+= --disable-gcj +CONFIGURE_ARGS+= --disable-mono +CONFIGURE_ARGS+= --disable-mono-docs +CONFIGURE_ARGS+= --disable-python +CONFIGURE_ARGS+= --disable-selinux +CONFIGURE_ARGS+= --enable-checks +CONFIGURE_ARGS+= --localstatedir=${VARBASE} +CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR} +CONFIGURE_ARGS+= --with-xml=expat +CONFIGURE_ARGS+= --without-x + +PKG_SYSCONFSUBDIR= dbus-1 + +.if defined(DBUS_INTERFACE) +DBUS_ARGS?= ${DBUS_INTERFACE} +DBUS_DIRS?= ${DBUS_INTERFACE} + +PKGNAME= ${DISTNAME:S/dbus/dbus-${DBUS_INTERFACE}/} +COMMENT+= (${DBUS_INTERFACE} interface) + +SUBST_CLASSES+= paths +SUBST_STAGE.paths= pre-configure +SUBST_MESSAGE.paths= "Fixing paths to installed dbus\' libraries." +SUBST_SED.paths= -e 's|$$(top_builddir)/dbus/libdbus-1.la|${BUILDLINK_PREFIX.dbus}/lib/libdbus-1.la|g' +SUBST_FILES.paths= + +BUILD_DIRS= +INSTALL_DIRS= + +. for f in ${DBUS_ARGS} +CONFIGURE_ARGS:= ${CONFIGURE_ARGS:S/--disable-${f}/--enable-${f}/} +. endfor + +. for f in ${DBUS_DIRS} +BUILD_DIRS+= ${WRKSRC}/${f} +INSTALL_DIRS+= ${WRKSRC}/${f} +SUBST_FILES.paths+= ${f}/Makefile.in +. endfor +. undef f + +BUILDLINK_DEPENDS.dbus+= dbus>=${DBUS_VERSION} +. include "../../sysutils/dbus/buildlink3.mk" +.endif + +.include "../../devel/pkgconfig/buildlink3.mk" +.include "../../textproc/expat/buildlink3.mk" diff --git a/sysutils/dbus/PLIST b/sysutils/dbus/PLIST new file mode 100644 index 00000000000..9dbf5b60639 --- /dev/null +++ b/sysutils/dbus/PLIST @@ -0,0 +1,36 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2004/10/11 17:45:26 jmmv Exp $ +bin/dbus-cleanup-sockets +bin/dbus-daemon-1 +bin/dbus-launch +bin/dbus-send +include/dbus-1.0/dbus/dbus-address.h +include/dbus-1.0/dbus/dbus-bus.h +include/dbus-1.0/dbus/dbus-connection.h +include/dbus-1.0/dbus/dbus-errors.h +include/dbus-1.0/dbus/dbus-macros.h +include/dbus-1.0/dbus/dbus-memory.h +include/dbus-1.0/dbus/dbus-message.h +include/dbus-1.0/dbus/dbus-pending-call.h +include/dbus-1.0/dbus/dbus-protocol.h +include/dbus-1.0/dbus/dbus-server.h +include/dbus-1.0/dbus/dbus-shared.h +include/dbus-1.0/dbus/dbus-threads.h +include/dbus-1.0/dbus/dbus-types.h +include/dbus-1.0/dbus/dbus.h +lib/dbus-1.0/include/dbus/dbus-arch-deps.h +lib/libdbus-1.la +lib/pkgconfig/dbus-1.pc +man/man1/dbus-cleanup-sockets.1 +man/man1/dbus-daemon-1.1 +man/man1/dbus-launch.1 +man/man1/dbus-send.1 +share/examples/dbus/session.conf +share/examples/dbus/system.conf +@dirrm share/examples/dbus +@exec ${MKDIR} %D/lib/dbus-1.0/services +@dirrm lib/dbus-1.0/services +@dirrm lib/dbus-1.0/include/dbus +@dirrm lib/dbus-1.0/include +@dirrm lib/dbus-1.0 +@dirrm include/dbus-1.0/dbus +@dirrm include/dbus-1.0 diff --git a/sysutils/dbus/buildlink3.mk b/sysutils/dbus/buildlink3.mk new file mode 100644 index 00000000000..fb495c941a6 --- /dev/null +++ b/sysutils/dbus/buildlink3.mk @@ -0,0 +1,20 @@ +# $NetBSD: buildlink3.mk,v 1.1.1.1 2004/10/11 17:45:27 jmmv Exp $ + +BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+ +DBUS_BUILDLINK3_MK:= ${DBUS_BUILDLINK3_MK}+ + +.if !empty(BUILDLINK_DEPTH:M+) +BUILDLINK_DEPENDS+= dbus +.endif + +BUILDLINK_PACKAGES:= ${BUILDLINK_PACKAGES:Ndbus} +BUILDLINK_PACKAGES+= dbus + +.if !empty(DBUS_BUILDLINK3_MK:M+) +BUILDLINK_DEPENDS.dbus+= dbus>=0.22 +BUILDLINK_PKGSRCDIR.dbus?= ../../sysutils/dbus +.endif # DBUS_BUILDLINK3_MK + +.include "../../textproc/expat/buildlink3.mk" + +BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH:S/+$//} diff --git a/sysutils/dbus/distinfo b/sysutils/dbus/distinfo new file mode 100644 index 00000000000..d848772bf6f --- /dev/null +++ b/sysutils/dbus/distinfo @@ -0,0 +1,6 @@ +$NetBSD: distinfo,v 1.1.1.1 2004/10/11 17:45:26 jmmv Exp $ + +SHA1 (dbus-0.22.tar.gz) = 9a32a9c9e92a43461235f5016c8d350da20cd588 +Size (dbus-0.22.tar.gz) = 1248780 bytes +SHA1 (patch-aa) = e33a2f700f085d38de24b54c14029238e9c3d5fe +SHA1 (patch-ab) = 19ec14e421d0dc0ffa9f057634f7ec458941f088 diff --git a/sysutils/dbus/files/dbus.sh b/sysutils/dbus/files/dbus.sh new file mode 100644 index 00000000000..d40d8ea9d5a --- /dev/null +++ b/sysutils/dbus/files/dbus.sh @@ -0,0 +1,21 @@ +#!@RCD_SCRIPTS_SHELL@ +# +# $NetBSD: dbus.sh,v 1.1.1.1 2004/10/11 17:45:27 jmmv Exp $ +# +# PROVIDE: dbus +# REQUIRE: DAEMON +# KEYWORD: shutdown + +. /etc/rc.subr + +name="dbus" +rcvar=$name +command="@PREFIX@/bin/dbus-daemon-1" +command_args="--system" +required_dirs="@VARBASE@/run/dbus" +pidfile="@VARBASE@/run/dbus/pid" +dbus_user=messagebus +dbus_group=messagebus + +load_rc_config $name +run_rc_command "$1" diff --git a/sysutils/dbus/patches/patch-aa b/sysutils/dbus/patches/patch-aa new file mode 100644 index 00000000000..cd2038fde7c --- /dev/null +++ b/sysutils/dbus/patches/patch-aa @@ -0,0 +1,29 @@ +$NetBSD: patch-aa,v 1.1.1.1 2004/10/11 17:45:27 jmmv Exp $ + +--- bus/Makefile.in.orig 2004-08-13 00:58:01.000000000 +0200 ++++ bus/Makefile.in +@@ -243,12 +243,12 @@ sharedstatedir = @sharedstatedir@ + sysconfdir = @sysconfdir@ + target_alias = @target_alias@ + +-configdir = $(sysconfdir)/dbus-1 ++configdir = $(datadir)/examples/@PACKAGE@ + + INCLUDES = -I$(top_srcdir) $(DBUS_BUS_CFLAGS) \ + -DDAEMON_NAME=\"dbus-daemon-1\" -DDBUS_COMPILATION \ +- -DDBUS_SYSTEM_CONFIG_FILE=\""$(configdir)/system.conf"\" \ +- -DDBUS_SESSION_CONFIG_FILE=\""$(configdir)/session.conf"\" ++ -DDBUS_SYSTEM_CONFIG_FILE=\""$(sysconfdir)/system.conf"\" \ ++ -DDBUS_SESSION_CONFIG_FILE=\""$(sysconfdir)/session.conf"\" + + + EFENCE = +@@ -890,8 +890,6 @@ clean-local: + /bin/rm *.bb *.bbg *.da *.gcov || true + + install-data-hook: +- $(mkinstalldirs) $(DESTDIR)/$(localstatedir)/run/dbus +- $(mkinstalldirs) $(DESTDIR)/$(configdir)/system.d + $(mkinstalldirs) $(DESTDIR)/$(libdir)/dbus-1.0/services + # Tell versions [3.59,3.63) of GNU make to not export all variables. + # Otherwise a system limit (for SysV at least) may be exceeded. diff --git a/sysutils/dbus/patches/patch-ab b/sysutils/dbus/patches/patch-ab new file mode 100644 index 00000000000..159929a084e --- /dev/null +++ b/sysutils/dbus/patches/patch-ab @@ -0,0 +1,13 @@ +$NetBSD: patch-ab,v 1.1.1.1 2004/10/11 17:45:27 jmmv Exp $ + +--- tools/Makefile.in.orig 2004-08-13 00:58:07.000000000 +0200 ++++ tools/Makefile.in +@@ -283,7 +283,7 @@ dbus_monitor_LDADD = $(top_builddir)/gli + dbus_launch_LDADD = $(DBUS_X_LIBS) + dbus_viewer_LDADD = $(DBUS_GLIB_TOOL_LIBS) $(top_builddir)/glib/libdbus-gtool.la $(DBUS_GTK_LIBS) + +-man_MANS = dbus-send.1 dbus-monitor.1 dbus-launch.1 dbus-cleanup-sockets.1 ++man_MANS = dbus-send.1 dbus-launch.1 dbus-cleanup-sockets.1 + EXTRA_DIST = $(man_MANS) + subdir = tools + ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 -- cgit v1.2.3