pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/sysutils/dbus Initial import of dbus, version 0.22:
details: https://anonhg.NetBSD.org/pkgsrc/rev/7dedb9b4ef97
branches: trunk
changeset: 481740:7dedb9b4ef97
user: jmmv <jmmv%pkgsrc.org@localhost>
date: Mon Oct 11 17:45:26 2004 +0000
description:
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.
diffstat:
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(+), 0 deletions(-)
diffs (269 lines):
diff -r 1c9fbb663a31 -r 7dedb9b4ef97 sysutils/dbus/DESCR
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/dbus/DESCR Mon Oct 11 17:45:26 2004 +0000
@@ -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 -r 1c9fbb663a31 -r 7dedb9b4ef97 sysutils/dbus/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/dbus/Makefile Mon Oct 11 17:45:26 2004 +0000
@@ -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 -r 1c9fbb663a31 -r 7dedb9b4ef97 sysutils/dbus/Makefile.common
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/dbus/Makefile.common Mon Oct 11 17:45:26 2004 +0000
@@ -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@localhost
+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 -r 1c9fbb663a31 -r 7dedb9b4ef97 sysutils/dbus/PLIST
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/dbus/PLIST Mon Oct 11 17:45:26 2004 +0000
@@ -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 -r 1c9fbb663a31 -r 7dedb9b4ef97 sysutils/dbus/buildlink3.mk
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/dbus/buildlink3.mk Mon Oct 11 17:45:26 2004 +0000
@@ -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 -r 1c9fbb663a31 -r 7dedb9b4ef97 sysutils/dbus/distinfo
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/dbus/distinfo Mon Oct 11 17:45:26 2004 +0000
@@ -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 -r 1c9fbb663a31 -r 7dedb9b4ef97 sysutils/dbus/files/dbus.sh
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/dbus/files/dbus.sh Mon Oct 11 17:45:26 2004 +0000
@@ -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 -r 1c9fbb663a31 -r 7dedb9b4ef97 sysutils/dbus/patches/patch-aa
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/dbus/patches/patch-aa Mon Oct 11 17:45:26 2004 +0000
@@ -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 -r 1c9fbb663a31 -r 7dedb9b4ef97 sysutils/dbus/patches/patch-ab
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/dbus/patches/patch-ab Mon Oct 11 17:45:26 2004 +0000
@@ -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
Home |
Main Index |
Thread Index |
Old Index