summaryrefslogtreecommitdiff
path: root/sysutils/dbus
diff options
context:
space:
mode:
authorpho <pho@pkgsrc.org>2015-01-21 13:45:18 +0000
committerpho <pho@pkgsrc.org>2015-01-21 13:45:18 +0000
commit48ad1339e1b87d8e97d4dc6249daa1829c766828 (patch)
treed4bf66292ad723c8a402653f732eac130fb31d29 /sysutils/dbus
parentf15c84daf3cd96262a0b069311e42fadda9185b0 (diff)
downloadpkgsrc-48ad1339e1b87d8e97d4dc6249daa1829c766828.tar.gz
PR 49591: Make launchd integration a package option, disabled by default for now.
launchd integration currently requires manual steps as described in MESSAGE.launchd. We may want to make it default once we have a framework for automatic launchd support.
Diffstat (limited to 'sysutils/dbus')
-rw-r--r--sysutils/dbus/Makefile18
-rw-r--r--sysutils/dbus/PLIST3
-rw-r--r--sysutils/dbus/PLIST.Darwin2
-rw-r--r--sysutils/dbus/options.mk17
4 files changed, 27 insertions, 13 deletions
diff --git a/sysutils/dbus/Makefile b/sysutils/dbus/Makefile
index 5bd73353e18..19767554bed 100644
--- a/sysutils/dbus/Makefile
+++ b/sysutils/dbus/Makefile
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.79 2015/01/21 05:38:59 pho Exp $
+# $NetBSD: Makefile,v 1.80 2015/01/21 13:45:18 pho Exp $
DISTNAME= dbus-1.8.14
-PKGREVISION= 2
+PKGREVISION= 3
CATEGORIES= sysutils
MASTER_SITES= http://dbus.freedesktop.org/releases/dbus/
@@ -38,19 +38,19 @@ CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR:Q}
CONFIGURE_ARGS_GROUPS= enable disable with without
.if ${OPSYS} == "Darwin"
-MESSAGE_SRC+= MESSAGE.launchd
-CONFIGURE_ARGS+= --with-launchd-agent-dir=${PREFIX}/Library/LaunchAgents
-CONFIGURE_ARGS+= --with-session-socket-dir=/tmp
+# Prevent the configure script from picking up a per-user tmp
+# directory. See the commit message on revision 1.35
+CONFIGURE_ARGS.with+= session-socket-dir=/tmp
.endif
CONFIGURE_ARGS.Linux= abstract-sockets selinux
CONFIGURE_ARGS.docs= doxygen-docs xml-docs
CONFIGURE_ARGS.without+= init-scripts
-CONFIGURE_ARGS.disable= ansi
+CONFIGURE_ARGS.disable+= ansi
CONFIGURE_ARGS.disable+= console-owner-file
CONFIGURE_ARGS.disable+= ${CONFIGURE_ARGS.docs}
-CONFIGURE_ARGS.enable= checks static
+CONFIGURE_ARGS.enable+= checks static
###
### XXX the spawn test hangs, and some of these tests may be bogus
###
@@ -59,7 +59,7 @@ CONFIGURE_ARGS.enable= checks static
#TEST_TARGET= check
#.endif
-CONFIGURE_ARGS.with= dbus-user=${DBUS_USER}
+CONFIGURE_ARGS.with+= dbus-user=${DBUS_USER}
CONFIGURE_ARGS.with+= test-socket-dir=${WRKDIR:Q}
PTHREAD_AUTO_VARS= yes
@@ -71,7 +71,7 @@ CONFIGURE_ARGS.disable+=\
${CONFIGURE_ARGS.Linux}
.endif
-PLIST_VARS+= linux
+PLIST_VARS+= linux launchd
CONFIGURE_ARGS+=\
${CONFIGURE_ARGS_GROUPS:@.g.@ \
diff --git a/sysutils/dbus/PLIST b/sysutils/dbus/PLIST
index fc6ffeb77f2..726cfa018c4 100644
--- a/sysutils/dbus/PLIST
+++ b/sysutils/dbus/PLIST
@@ -1,4 +1,5 @@
-@comment $NetBSD: PLIST,v 1.17 2014/04/03 09:09:06 wiz Exp $
+@comment $NetBSD: PLIST,v 1.18 2015/01/21 13:45:18 pho Exp $
+${PLIST.launchd}Library/LaunchAgents/org.freedesktop.dbus-session.plist
bin/dbus-cleanup-sockets
bin/dbus-daemon
bin/dbus-launch
diff --git a/sysutils/dbus/PLIST.Darwin b/sysutils/dbus/PLIST.Darwin
deleted file mode 100644
index 102a19992e3..00000000000
--- a/sysutils/dbus/PLIST.Darwin
+++ /dev/null
@@ -1,2 +0,0 @@
-@comment $NetBSD: PLIST.Darwin,v 1.1 2015/01/20 23:45:35 wiz Exp $
-Library/LaunchAgents/org.freedesktop.dbus-session.plist
diff --git a/sysutils/dbus/options.mk b/sysutils/dbus/options.mk
index c020d7ad816..117f99c2e10 100644
--- a/sysutils/dbus/options.mk
+++ b/sysutils/dbus/options.mk
@@ -1,4 +1,4 @@
-# $NetBSD: options.mk,v 1.7 2012/09/02 13:02:13 shattered Exp $
+# $NetBSD: options.mk,v 1.8 2015/01/21 13:45:18 pho Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.dbus
PKG_SUPPORTED_OPTIONS+= debug x11
@@ -13,6 +13,12 @@ PKG_SUPPORTED_OPTIONS+= kqueue
PKG_SUGGESTED_OPTIONS+= kqueue
.endif
+.if ${OPSYS} == "Darwin"
+# We may want to make it SUGGESTED once we have a framework for
+# launchd support. See PR/49591.
+PKG_SUPPORTED_OPTIONS+= launchd
+.endif
+
.include "../../mk/bsd.options.mk"
.if !empty(PKG_OPTIONS:Mdebug)
@@ -35,3 +41,12 @@ BUILDLINK_DEPMETHOD.libXt= build
.else
CONFIGURE_ARGS.without= x
.endif
+
+.if !empty(PKG_OPTIONS:Mlaunchd)
+MESSAGE_SRC+= MESSAGE.launchd
+PLIST.launchd= yes
+CONFIGURE_ARGS.enable+= launchd
+CONFIGURE_ARGS.with+= launchd-agent-dir=${PREFIX}/Library/LaunchAgents
+.else
+CONFIGURE_ARGS.disable+= launchd
+.endif