summaryrefslogtreecommitdiff
path: root/sysutils/dbus
diff options
context:
space:
mode:
authordrochner <drochner>2006-11-13 15:16:20 +0000
committerdrochner <drochner>2006-11-13 15:16:20 +0000
commit389f5e7ccbab263286779c7cd8e03063b16e41ee (patch)
tree8964e04d616eb305c677568174759e7d8bd1f0d3 /sysutils/dbus
parent818d894737ecbb6660ef34143c5949c2317b0ce3 (diff)
downloadpkgsrc-389f5e7ccbab263286779c7cd8e03063b16e41ee.tar.gz
update to 1.0.0
This is the first formal stable release; there were some fixes since 0.92, cleanup and documentation update. The protocol is now considered stable.
Diffstat (limited to 'sysutils/dbus')
-rw-r--r--sysutils/dbus/Makefile20
-rw-r--r--sysutils/dbus/PLIST10
-rw-r--r--sysutils/dbus/distinfo15
-rw-r--r--sysutils/dbus/files/dbus.sh3
-rw-r--r--sysutils/dbus/patches/patch-aa12
-rw-r--r--sysutils/dbus/patches/patch-ab123
-rw-r--r--sysutils/dbus/patches/patch-ac14
-rw-r--r--sysutils/dbus/patches/patch-ae14
-rw-r--r--sysutils/dbus/patches/patch-ag15
9 files changed, 44 insertions, 182 deletions
diff --git a/sysutils/dbus/Makefile b/sysutils/dbus/Makefile
index ea8149d9430..775931a4869 100644
--- a/sysutils/dbus/Makefile
+++ b/sysutils/dbus/Makefile
@@ -1,10 +1,9 @@
-# $NetBSD: Makefile,v 1.17 2006/11/07 09:30:16 joerg Exp $
+# $NetBSD: Makefile,v 1.18 2006/11/13 15:16:20 drochner Exp $
#
-DISTNAME= dbus-0.92
-PKGREVISION= 1
+DISTNAME= dbus-1.0.0
CATEGORIES= sysutils
-MASTER_SITES= http://freedesktop.org/software/dbus/releases/
+MASTER_SITES= http://dbus.freedesktop.org/releases/dbus/
MAINTAINER= jmmv@NetBSD.org
HOMEPAGE= http://www.freedesktop.org/Software/dbus
@@ -49,22 +48,14 @@ CONFIGURE_ARGS+= --enable-tests
CONFIGURE_ARGS+= --enable-verbose-mode
.endif
-# Next version will automatically detect this with a sane configure check,
-# so it should go away.
-.include "../../mk/bsd.prefs.mk"
-.if ${OPSYS} == "NetBSD"
-CONFIGURE_ARGS+= --enable-kqueue
-.endif
-
PKG_SYSCONFSUBDIR= dbus-1
MAKE_DIRS= ${PKG_SYSCONFDIR}/event.d
MAKE_DIRS+= ${PKG_SYSCONFDIR}/system.d
-DOCDIR= ${PREFIX}/share/doc/dbus
EGDIR= ${PREFIX}/share/examples/dbus
CONF_FILES= ${EGDIR}/session.conf ${PKG_SYSCONFDIR}/session.conf
CONF_FILES+= ${EGDIR}/system.conf ${PKG_SYSCONFDIR}/system.conf
-INSTALLATION_DIRS= ${DOCDIR} ${EGDIR}
+INSTALLATION_DIRS= ${EGDIR}
RCD_SCRIPTS= dbus
@@ -73,9 +64,6 @@ PKG_USERS= messagebus:messagebus
PKG_GECOS.messagebus= System message bus
PKG_HOME.messagebus= ${VARBASE}/run/dbus
-post-install:
- cd ${WRKSRC}/doc && ${INSTALL_DATA} *.html *.txt ${DESTDIR}${DOCDIR}
-
.include "../../devel/gettext-lib/buildlink3.mk"
.include "../../textproc/expat/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
diff --git a/sysutils/dbus/PLIST b/sysutils/dbus/PLIST
index 83a09e5d2dd..5805536316c 100644
--- a/sysutils/dbus/PLIST
+++ b/sysutils/dbus/PLIST
@@ -1,9 +1,10 @@
-@comment $NetBSD: PLIST,v 1.6 2006/11/04 00:42:30 rillig Exp $
+@comment $NetBSD: PLIST,v 1.7 2006/11/13 15:16:20 drochner Exp $
bin/dbus-cleanup-sockets
bin/dbus-daemon
bin/dbus-launch
bin/dbus-monitor
bin/dbus-send
+bin/dbus-uuidgen
include/dbus-1.0/dbus/dbus-address.h
include/dbus-1.0/dbus/dbus-bus.h
include/dbus-1.0/dbus/dbus-connection.h
@@ -27,17 +28,12 @@ man/man1/dbus-daemon.1
man/man1/dbus-launch.1
man/man1/dbus-monitor.1
man/man1/dbus-send.1
-share/doc/dbus/dbus-faq.html
-share/doc/dbus/dbus-specification.html
-share/doc/dbus/dbus-test-plan.html
-share/doc/dbus/dbus-tutorial.html
-share/doc/dbus/dcop-howto.txt
+man/man1/dbus-uuidgen.1
share/examples/dbus/session.conf
share/examples/dbus/system.conf
share/examples/rc.d/dbus
@dirrm share/examples/dbus
@exec ${MKDIR} %D/share/dbus-1/services
-@dirrm share/doc/dbus
@dirrm share/dbus-1/services
@dirrm share/dbus-1
@dirrm lib/dbus-1.0/include/dbus
diff --git a/sysutils/dbus/distinfo b/sysutils/dbus/distinfo
index c7db80a8d46..5e14ad74ad2 100644
--- a/sysutils/dbus/distinfo
+++ b/sysutils/dbus/distinfo
@@ -1,9 +1,8 @@
-$NetBSD: distinfo,v 1.12 2006/09/17 12:02:00 jmmv Exp $
+$NetBSD: distinfo,v 1.13 2006/11/13 15:16:20 drochner Exp $
-SHA1 (dbus-0.92.tar.gz) = 37edf2fd6c471b086261462b8b8d3dd2656e1bb4
-RMD160 (dbus-0.92.tar.gz) = 23de0396bf5565c02e2e710bebd95ad5de1832a8
-Size (dbus-0.92.tar.gz) = 1388345 bytes
-SHA1 (patch-aa) = fbf728371c76c1daa267591cd76dec3138f30acf
-SHA1 (patch-ab) = ae2d4d3870acbb48088bc6b1eec4cf181f748493
-SHA1 (patch-ac) = 9ce70807b7d61bf653fa9a55097989958aef8d59
-SHA1 (patch-ae) = c73bed4ec4cca5e7bcdec749ac85ba2c56d8469a
+SHA1 (dbus-1.0.0.tar.gz) = dbc3adcb3ae7abbcdf5b0b3e1623a140042e1491
+RMD160 (dbus-1.0.0.tar.gz) = d4cfc0dafc5c0bcc283f55267bb24b351b8bf377
+Size (dbus-1.0.0.tar.gz) = 1405045 bytes
+SHA1 (patch-aa) = 4d66a0083384448dc89fefe00eb82eeb3aaf13b1
+SHA1 (patch-ac) = cc9b05c917f8ddba3dc2eda2c059f84c5f02fc4d
+SHA1 (patch-ag) = 469993db97a74da50c61449454c02c8a7c69e7bd
diff --git a/sysutils/dbus/files/dbus.sh b/sysutils/dbus/files/dbus.sh
index 266bf86c2ec..72d812688e2 100644
--- a/sysutils/dbus/files/dbus.sh
+++ b/sysutils/dbus/files/dbus.sh
@@ -1,6 +1,6 @@
#!@RCD_SCRIPTS_SHELL@
#
-# $NetBSD: dbus.sh,v 1.4 2006/08/28 08:28:57 jmmv Exp $
+# $NetBSD: dbus.sh,v 1.5 2006/11/13 15:16:20 drochner Exp $
#
# PROVIDE: dbus
# REQUIRE: DAEMON
@@ -21,6 +21,7 @@ dbus_prestart() {
@CHMOD@ 0755 "@VARBASE@/run/dbus"
@CHOWN@ messagebus:messagebus "@VARBASE@/run/dbus"
fi
+ @PREFIX@/bin/dbus-uuidgen --ensure
}
load_rc_config $name
diff --git a/sysutils/dbus/patches/patch-aa b/sysutils/dbus/patches/patch-aa
index d46585fb0a1..99847d4feff 100644
--- a/sysutils/dbus/patches/patch-aa
+++ b/sysutils/dbus/patches/patch-aa
@@ -1,8 +1,8 @@
-$NetBSD: patch-aa,v 1.4 2006/08/28 08:28:57 jmmv Exp $
+$NetBSD: patch-aa,v 1.5 2006/11/13 15:16:20 drochner Exp $
---- bus/Makefile.in.orig 2006-08-18 21:42:14.000000000 +0200
+--- bus/Makefile.in.orig 2006-10-14 19:27:58.000000000 +0200
+++ bus/Makefile.in
-@@ -301,11 +301,11 @@ target_alias = @target_alias@
+@@ -303,11 +303,11 @@ target_alias = @target_alias@
target_cpu = @target_cpu@
target_os = @target_os@
target_vendor = @target_vendor@
@@ -17,9 +17,9 @@ $NetBSD: patch-aa,v 1.4 2006/08/28 08:28:57 jmmv Exp $
EFENCE =
CONFIG_IN_FILES = \
-@@ -852,8 +852,6 @@ install-data-hook:
- chmod 755 $(DESTDIR)$(DBUS_DAEMONDIR); \
- fi
+@@ -856,8 +856,6 @@ install-data-hook:
+ chmod 755 $(DESTDIR)$(DBUS_DAEMONDIR); \
+ fi
$(INSTALL_PROGRAM) dbus-daemon $(DESTDIR)$(DBUS_DAEMONDIR)
- $(mkinstalldirs) $(DESTDIR)$(localstatedir)/run/dbus
- $(mkinstalldirs) $(DESTDIR)$(configdir)/system.d
diff --git a/sysutils/dbus/patches/patch-ab b/sysutils/dbus/patches/patch-ab
deleted file mode 100644
index 0b751ad7c07..00000000000
--- a/sysutils/dbus/patches/patch-ab
+++ /dev/null
@@ -1,123 +0,0 @@
-$NetBSD: patch-ab,v 1.5 2006/08/28 08:28:57 jmmv Exp $
-
---- dbus/dbus-sysdeps.c.orig 2006-08-18 17:46:59.000000000 +0200
-+++ dbus/dbus-sysdeps.c
-@@ -488,6 +488,35 @@ _dbus_connect_unix_socket (const char
- }
-
- /**
-+ * Enables or disables the reception of credentials on the given socket during
-+ * the next message transmission. This is only effective if the #LOCAL_CREDS
-+ * system feature exists, in which case the other side of the connection does
-+ * not have to do anything special to send the credentials.
-+ *
-+ * @param fd socket on which to change the #LOCAL_CREDS flag.
-+ * @param on whether to enable or disable the #LOCAL_CREDS flag.
-+ */
-+static dbus_bool_t
-+_dbus_set_local_creds (int fd, dbus_bool_t on)
-+{
-+ dbus_bool_t retval = TRUE;
-+
-+#if defined(LOCAL_CREDS) && !defined(HAVE_CMSGCRED)
-+ int val = on ? 1 : 0;
-+ if (setsockopt (fd, 0, LOCAL_CREDS, &val, sizeof (val)) < 0)
-+ {
-+ _dbus_verbose ("Unable to set LOCAL_CREDS socket option on fd %d\n", fd);
-+ retval = FALSE;
-+ }
-+ else
-+ _dbus_verbose ("LOCAL_CREDS %s for further messages on fd %d\n",
-+ on ? "enabled" : "disabled", fd);
-+#endif
-+
-+ return retval;
-+}
-+
-+/**
- * Creates a socket and binds it to the given path,
- * then listens on the socket. The socket is
- * set to be nonblocking.
-@@ -605,6 +634,15 @@ _dbus_listen_unix_socket (const char
- return -1;
- }
-
-+ if (!_dbus_set_local_creds (listen_fd, TRUE))
-+ {
-+ dbus_set_error (error, _dbus_error_from_errno (errno),
-+ "Failed to enable LOCAL_CREDS on socket \"%s\": %s",
-+ path, _dbus_strerror (errno));
-+ close (listen_fd);
-+ return -1;
-+ }
-+
- if (!_dbus_set_fd_nonblocking (listen_fd, error))
- {
- _DBUS_ASSERT_ERROR_IS_SET (error);
-@@ -875,6 +913,11 @@ _dbus_read_credentials_unix_socket (int
- struct cmsghdr hdr;
- struct cmsgcred cred;
- } cmsg;
-+#elif defined(LOCAL_CREDS)
-+ struct {
-+ struct cmsghdr hdr;
-+ struct sockcred cred;
-+ } cmsg;
- #endif
-
- _DBUS_ASSERT_ERROR_IS_CLEAR (error);
-@@ -889,17 +932,11 @@ _dbus_read_credentials_unix_socket (int
-
- _dbus_credentials_clear (credentials);
-
--#if defined(LOCAL_CREDS) && defined(HAVE_CMSGCRED)
-- /* Set the socket to receive credentials on the next message */
-- {
-- int on = 1;
-- if (setsockopt (client_fd, 0, LOCAL_CREDS, &on, sizeof (on)) < 0)
-- {
-- _dbus_verbose ("Unable to set LOCAL_CREDS socket option\n");
-- return FALSE;
-- }
-- }
--#endif
-+ /* Systems supporting LOCAL_CREDS are configured to have this feature
-+ * enabled (if it does not conflict with HAVE_CMSGCRED) prior accepting
-+ * the connection. Therefore, the received message must carry the
-+ * credentials information without doing anything special.
-+ */
-
- iov.iov_base = &buf;
- iov.iov_len = 1;
-@@ -908,7 +945,7 @@ _dbus_read_credentials_unix_socket (int
- msg.msg_iov = &iov;
- msg.msg_iovlen = 1;
-
--#ifdef HAVE_CMSGCRED
-+#if defined(HAVE_CMSGCRED) || defined(LOCAL_CREDS)
- memset (&cmsg, 0, sizeof (cmsg));
- msg.msg_control = &cmsg;
- msg.msg_controllen = sizeof (cmsg);
-@@ -933,7 +970,7 @@ _dbus_read_credentials_unix_socket (int
- return FALSE;
- }
-
--#ifdef HAVE_CMSGCRED
-+#if defined(HAVE_CMSGCRED) || defined(LOCAL_CREDS)
- if (cmsg.hdr.cmsg_len < sizeof (cmsg) || cmsg.hdr.cmsg_type != SCM_CREDS)
- {
- dbus_set_error (error, DBUS_ERROR_FAILED,
-@@ -965,6 +1002,13 @@ _dbus_read_credentials_unix_socket (int
- credentials->pid = cmsg.cred.cmcred_pid;
- credentials->uid = cmsg.cred.cmcred_euid;
- credentials->gid = cmsg.cred.cmcred_groups[0];
-+#elif defined(LOCAL_CREDS)
-+ credentials->pid = DBUS_PID_UNSET;
-+ credentials->uid = cmsg.cred.sc_uid;
-+ credentials->gid = cmsg.cred.sc_gid;
-+ /* Since we have already got the credentials from this socket, we can
-+ * disable its LOCAL_CREDS flag if it was ever set. */
-+ _dbus_set_local_creds (client_fd, FALSE);
- #elif defined(HAVE_GETPEEREID)
- uid_t euid;
- gid_t egid;
diff --git a/sysutils/dbus/patches/patch-ac b/sysutils/dbus/patches/patch-ac
index 84e2590fcee..519d2cfddca 100644
--- a/sysutils/dbus/patches/patch-ac
+++ b/sysutils/dbus/patches/patch-ac
@@ -1,13 +1,13 @@
-$NetBSD: patch-ac,v 1.5 2006/09/17 12:02:00 jmmv Exp $
+$NetBSD: patch-ac,v 1.6 2006/11/13 15:16:20 drochner Exp $
---- tools/run-with-tmp-session-bus.sh.orig 2006-08-10 23:44:00.000000000 +0200
+--- tools/run-with-tmp-session-bus.sh.orig 2006-10-01 05:18:47.000000000 +0200
+++ tools/run-with-tmp-session-bus.sh
-@@ -34,9 +34,11 @@ cat $DBUS_TOP_BUILDDIR/bus/session.conf
+@@ -38,9 +38,11 @@ if ! test -e "$DBUS_TOP_BUILDDIR"/bus/db
+ die "$DBUS_TOP_BUILDDIR/bus/dbus-daemon does not exist"
+ fi
- echo "Created configuration file $CONFIG_FILE" >&2
-
--export PATH=$DBUS_TOP_BUILDDIR/bus:$PATH
-+PATH=$DBUS_TOP_BUILDDIR/bus:$PATH
+-export PATH="$DBUS_TOP_BUILDDIR"/bus:$PATH
++PATH="$DBUS_TOP_BUILDDIR"/bus:$PATH
+export PATH
## the libtool script found by the path search should already do this, but
-export LD_LIBRARY_PATH=$DBUS_TOP_BUILDDIR/dbus/.libs:$LD_LIBRARY_PATH
diff --git a/sysutils/dbus/patches/patch-ae b/sysutils/dbus/patches/patch-ae
deleted file mode 100644
index a7505b5c941..00000000000
--- a/sysutils/dbus/patches/patch-ae
+++ /dev/null
@@ -1,14 +0,0 @@
-$NetBSD: patch-ae,v 1.2 2006/04/03 15:42:04 jmmv Exp $
-
-https://bugs.freedesktop.org/show_bug.cgi?id=6487
-
---- dbus/Makefile.in.orig 2006-04-02 17:39:35.000000000 +0000
-+++ dbus/Makefile.in
-@@ -529,6 +529,7 @@ CLEANFILES = $(DBUS_GLIB_BUILT_INCLUDES)
- noinst_LTLIBRARIES = libdbus-convenience.la
- libdbus_1_la_LIBADD = $(DBUS_CLIENT_LIBS)
- libdbus_1_la_LDFLAGS = -export-symbols-regex "^[^_].*" -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) -no-undefined
-+libdbus_convenience_la_LDFLAGS= -static
- @DBUS_BUILD_TESTS_TRUE@TESTS_ENVIRONMENT = DBUS_TEST_DATA=$(top_builddir)/test/data DBUS_TEST_HOMEDIR=$(top_builddir)/dbus
- @DBUS_BUILD_TESTS_FALSE@TESTS =
- @DBUS_BUILD_TESTS_TRUE@TESTS = dbus-test
diff --git a/sysutils/dbus/patches/patch-ag b/sysutils/dbus/patches/patch-ag
new file mode 100644
index 00000000000..0ca91e08552
--- /dev/null
+++ b/sysutils/dbus/patches/patch-ag
@@ -0,0 +1,15 @@
+$NetBSD: patch-ag,v 1.1 2006/11/13 15:16:20 drochner Exp $
+
+--- tools/dbus-monitor.c.orig 2006-11-09 00:10:48.000000000 +0100
++++ tools/dbus-monitor.c
+@@ -265,8 +265,10 @@ main (int argc, char *argv[])
+ exit (1);
+ }
+
++#if 0 /* XXX this doesn't work because the loop around poll() is not left */
+ /* we handle SIGINT so exit() is reached and flushes stdout */
+ signal (SIGINT, sigint_handler);
++#endif
+ while (dbus_connection_read_write_dispatch(connection, -1)
+ && !sigint_received)
+ ;