Update to 0.60.

This commit is contained in:
Joe Marcus Clarke 2005-12-31 18:43:11 +00:00
parent dff72ba61f
commit a669dc1c3c
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=152497
9 changed files with 53 additions and 52 deletions

View file

@ -6,8 +6,8 @@
#
PORTNAME= dbus
PORTVERSION= 0.50
PORTREVISION?= 1
PORTVERSION= 0.60
PORTREVISION?= 0
CATEGORIES?= devel gnome
MASTER_SITES= http://dbus.freedesktop.org/releases/
@ -26,6 +26,7 @@ USE_REINPLACE= yes
CONFIGURE_ARGS?=--disable-gtk \
--disable-python \
--disable-gcj \
--disable-qt \
--disable-mono \
--disable-mono-docs \
--with-system-pid-file=/var/run/dbus.pid \
@ -50,12 +51,11 @@ MAN1= dbus-cleanup-sockets.1 dbus-daemon.1 dbus-launch.1 \
.if !defined(DBUS_SLAVE)
.if defined(WITH_QT) && !defined(WITHOUT_QT)
CONFIGURE_ARGS+=--enable-qt
CONFIGURE_ARGS+=--enable-qt3
CONFIGURE_ENV+= QTDIR=${X11BASE}
LIB_DEPENDS+= qt-mt:${PORTSDIR}/x11-toolkits/qt33
PLIST_SUB+= QT=""
.else
CONFIGURE_ARGS+=--disable-qt
PLIST_SUB+= QT="@comment "
.endif
@ -76,6 +76,7 @@ post-install:
.else
.if defined(PKGNAMEPREFIX)
.if ${PKGNAMEPREFIX}==${PYTHON_PKGNAMEPREFIX} && ${OSVERSION} < 500000
# Ignore for py-dbus
IGNORE= Does not build on 4.X
.endif
.endif

View file

@ -1,3 +1,3 @@
MD5 (dbus-0.50.tar.gz) = 1addd5b600a8a4550766005d1f59401b
SHA256 (dbus-0.50.tar.gz) = 3a8375c935f0c7b87cdd25f0408da963836fdce23390bb1b81cc6bd6ee7951c5
SIZE (dbus-0.50.tar.gz) = 1610305
MD5 (dbus-0.60.tar.gz) = da9561b5e579cedddc34f53427e99a93
SHA256 (dbus-0.60.tar.gz) = 32ff1b1c7388cd2bfd4a23d4b9f460b2265579f1e097f0d4c0261c7e00adf8a8
SIZE (dbus-0.60.tar.gz) = 1674899

View file

@ -4,7 +4,6 @@
#
# PROVIDE: dbus
# REQUIRE: DAEMON
# KEYWORD: FreeBSD
#
# Add the following lines to /etc/rc.conf to enable the D-BUS messaging system:
#

View file

@ -4,7 +4,6 @@
#
# PROVIDE: dbus
# REQUIRE: DAEMON
# KEYWORD: FreeBSD
#
# Add the following lines to /etc/rc.conf to enable the D-BUS messaging system:
#

View file

@ -1,14 +1,14 @@
--- configure.orig Sun Sep 11 15:30:46 2005
+++ configure Sun Sep 11 15:30:46 2005
@@ -1059,6 +1059,7 @@
optimize for fast installation [default=yes]
--disable-libtool-lock avoid locking (might break parallel builds)
--disable-dnotify Disable using dnotify on Linux
+ --disable-kqueue Disable using kqueue on FreeBSD
Optional Packages:
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
@@ -4485,7 +4486,7 @@
--- configure.orig Sat Dec 31 13:22:23 2005
+++ configure Sat Dec 31 13:30:51 2005
@@ -1053,6 +1053,7 @@
--enable-python build python bindings
--enable-selinux build with SELinux support
--enable-dnotify build with dnotify support (linux only)
+ --enable-kqueue build with kqueue support (FreeBSD only)
--enable-shared[=PKGS]
build shared libraries [default=yes]
--enable-static[=PKGS]
@@ -4500,7 +4501,7 @@
case " $CFLAGS " in
*[\ \ ]-Wfloat-equal[\ \ ]*) ;;
@ -17,7 +17,7 @@
esac
case " $CFLAGS " in
@@ -28088,6 +28089,32 @@
@@ -28240,6 +28241,31 @@
cat >>confdefs.h <<\_ACEOF
#define DBUS_BUS_ENABLE_DNOTIFY_ON_LINUX 1
@ -29,21 +29,20 @@
+case "${target_os}" in
+ freebsd*)
+ # Check whether --enable-kqueue or --disable-kqueue was given.
+if test "${enable_kqueue+set}" = set; then
+ if test "${enable_kqueue+set}" = set; then
+ enableval="$enable_kqueue"
+ case "${enableval}" in
+ yes) kqueue=false ;;
+ no) kqueue=true ;;
+ *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --disable-kqueue" >&5
+echo "$as_me: error: bad value ${enableval} for --disable-kqueue" >&2;}
+ { (exit 1); exit 1; }; } ;;
+ esac
+else
+ kqueue=true
+fi;
+ enable_kqueue=$enableval
+ else
+ enable_kqueue=auto
+ fi;
+ if test x$enable_kqueue = xno ; then
+ have_kqueue=no;
+ else
+ have_kqueue=yes;
+ fi
+;;
+esac
+if test x$kqueue = xtrue; then
+if test x$have_kqueue = xyes; then
+
+cat >>confdefs.h <<\_ACEOF
+#define DBUS_BUS_ENABLE_KQUEUE_ON_FREEBSD 1

View file

@ -1,6 +1,6 @@
--- dbus/dbus-sysdeps.c.orig Wed Aug 3 13:42:56 2005
+++ dbus/dbus-sysdeps.c Wed Aug 24 00:36:20 2005
@@ -742,16 +742,16 @@ write_credentials_byte (int
--- dbus/dbus-sysdeps.c.orig Tue Nov 22 15:37:00 2005
+++ dbus/dbus-sysdeps.c Sat Dec 31 13:08:04 2005
@@ -781,16 +781,16 @@ write_credentials_byte (int
{
int bytes_written;
char buf[1] = { '\0' };
@ -21,7 +21,7 @@
iov.iov_base = buf;
iov.iov_len = 1;
@@ -759,10 +759,10 @@ write_credentials_byte (int
@@ -798,10 +798,10 @@ write_credentials_byte (int
msg.msg_iov = &iov;
msg.msg_iovlen = 1;
@ -35,7 +35,7 @@
cmsg.hdr.cmsg_level = SOL_SOCKET;
cmsg.hdr.cmsg_type = SCM_CREDS;
#endif
@@ -771,7 +771,7 @@ write_credentials_byte (int
@@ -810,7 +810,7 @@ write_credentials_byte (int
again:
@ -44,7 +44,7 @@
bytes_written = sendmsg (server_fd, &msg, 0);
#else
bytes_written = write (server_fd, buf, 1);
@@ -829,9 +829,10 @@ _dbus_read_credentials_unix_socket (int
@@ -868,9 +868,10 @@ _dbus_read_credentials_unix_socket (int
char buf;
#ifdef HAVE_CMSGCRED
@ -57,7 +57,7 @@
} cmsg;
#endif
@@ -847,7 +848,7 @@ _dbus_read_credentials_unix_socket (int
@@ -886,7 +887,7 @@ _dbus_read_credentials_unix_socket (int
_dbus_credentials_clear (credentials);
@ -66,7 +66,7 @@
/* Set the socket to receive credentials on the next message */
{
int on = 1;
@@ -868,8 +869,8 @@ _dbus_read_credentials_unix_socket (int
@@ -907,8 +908,8 @@ _dbus_read_credentials_unix_socket (int
#ifdef HAVE_CMSGCRED
memset (&cmsg, 0, sizeof (cmsg));
@ -77,7 +77,7 @@
#endif
again:
@@ -892,7 +893,8 @@ _dbus_read_credentials_unix_socket (int
@@ -931,7 +932,8 @@ _dbus_read_credentials_unix_socket (int
}
#ifdef HAVE_CMSGCRED
@ -87,7 +87,7 @@
{
dbus_set_error (error, DBUS_ERROR_FAILED,
"Message from recvmsg() was not SCM_CREDS");
@@ -920,9 +922,10 @@ _dbus_read_credentials_unix_socket (int
@@ -959,9 +961,10 @@ _dbus_read_credentials_unix_socket (int
cr_len, (int) sizeof (cr), _dbus_strerror (errno));
}
#elif defined(HAVE_CMSGCRED)
@ -98,6 +98,6 @@
+ credentials->pid = cred->cmcred_pid;
+ credentials->uid = cred->cmcred_euid;
+ credentials->gid = cred->cmcred_groups[0];
#else /* !SO_PEERCRED && !HAVE_CMSGCRED */
_dbus_verbose ("Socket credentials not supported on this OS\n");
#endif
#elif defined(HAVE_GETPEEREID)
uid_t euid;
gid_t egid;

View file

@ -33,13 +33,13 @@ include/dbus-%%VERSION%%/dbus/dbus.h
include/dbus-%%VERSION%%/include/dbus/dbus-arch-deps.h
lib/libdbus-1.a
lib/libdbus-1.so
lib/libdbus-1.so.1
lib/libdbus-1.so.2
lib/libdbus-glib-1.a
lib/libdbus-glib-1.so
lib/libdbus-glib-1.so.1
lib/libdbus-glib-1.so.2
%%QT%%lib/libdbus-qt-1.a
%%QT%%lib/libdbus-qt-1.so
%%QT%%lib/libdbus-qt-1.so.1
%%QT%%lib/libdbus-qt-1.so.2
libdata/pkgconfig/dbus-1.pc
libdata/pkgconfig/dbus-glib-1.pc
@exec mkdir -p %D/etc/dbus-1/system.d

View file

@ -12,7 +12,7 @@ MAINTAINER= gnome@FreeBSD.org
COMMENT= Python interface to the D-BUS messaging system
BUILD_DEPENDS= pyrexc:${PORTSDIR}/devel/pyrex
LIB_DEPENDS= dbus-1.1:${PORTSDIR}/devel/dbus
LIB_DEPENDS= dbus-1.2:${PORTSDIR}/devel/dbus
RUN_DEPENDS= pyrexc:${PORTSDIR}/devel/pyrex
MASTERDIR= ${.CURDIR}/../dbus
@ -32,7 +32,7 @@ CONFIGURE_ARGS= --enable-python \
--disable-mono \
--disable-mono-docs \
--disable-gtk \
--disable-qt \
--disable-qt3 \
--with-system-pid-file=/var/run/dbus.pid \
--with-system-socket=/var/run/dbus \
--with-session-socket-dir=/var/tmp \

View file

@ -19,6 +19,9 @@ lib/%%PYTHON_VERSION%%/site-packages/dbus/exceptions.pyo
lib/%%PYTHON_VERSION%%/site-packages/dbus/glib.py
lib/%%PYTHON_VERSION%%/site-packages/dbus/glib.pyc
lib/%%PYTHON_VERSION%%/site-packages/dbus/glib.pyo
lib/%%PYTHON_VERSION%%/site-packages/dbus/introspect_parser.py
lib/%%PYTHON_VERSION%%/site-packages/dbus/introspect_parser.pyc
lib/%%PYTHON_VERSION%%/site-packages/dbus/introspect_parser.pyo
lib/%%PYTHON_VERSION%%/site-packages/dbus/matchrules.py
lib/%%PYTHON_VERSION%%/site-packages/dbus/matchrules.pyc
lib/%%PYTHON_VERSION%%/site-packages/dbus/matchrules.pyo