From f878595df3922c00af53b3eb409537e0804cad19 Mon Sep 17 00:00:00 2001 From: pho Date: Wed, 21 Jan 2015 05:38:59 +0000 Subject: PR 49591: Add MESSAGE.launchd to let Darwin users know about the launchd agent configuration file. --- sysutils/dbus/MESSAGE.launchd | 20 ++++++++++++++++++++ sysutils/dbus/Makefile | 7 +++++-- 2 files changed, 25 insertions(+), 2 deletions(-) create mode 100644 sysutils/dbus/MESSAGE.launchd (limited to 'sysutils') diff --git a/sysutils/dbus/MESSAGE.launchd b/sysutils/dbus/MESSAGE.launchd new file mode 100644 index 00000000000..12285e3510f --- /dev/null +++ b/sysutils/dbus/MESSAGE.launchd @@ -0,0 +1,20 @@ +=========================================================================== +$NetBSD: MESSAGE.launchd,v 1.1 2015/01/21 05:38:59 pho Exp $ + +A launchd agent configuration file has been installed at: + ${PREFIX}/Library/LaunchAgents/org.freedesktop.dbus-session.plist + +You need to manually load it to auto-start a session bus. Without +loading it, no applications can start a bus nor find an existing one: + % sudo launchctl load \ + ${PREFIX}/Library/LaunchAgents/org.freedesktop.dbus-session.plist + +Or alternatively, you can copy it under the system default path to +automatically load it on system boot: + % sudo cp \ + ${PREFIX}/Library/LaunchAgents/org.freedesktop.dbus-session.plist \ + /Library/LaunchAgents/ + % sudo launchctl load \ + /Library/LaunchAgents/org.freedesktop.dbus-session.plist + +=========================================================================== diff --git a/sysutils/dbus/Makefile b/sysutils/dbus/Makefile index 3cc810188a5..5bd73353e18 100644 --- a/sysutils/dbus/Makefile +++ b/sysutils/dbus/Makefile @@ -1,7 +1,7 @@ -# $NetBSD: Makefile,v 1.78 2015/01/20 23:45:35 wiz Exp $ +# $NetBSD: Makefile,v 1.79 2015/01/21 05:38:59 pho Exp $ DISTNAME= dbus-1.8.14 -PKGREVISION= 1 +PKGREVISION= 2 CATEGORIES= sysutils MASTER_SITES= http://dbus.freedesktop.org/releases/dbus/ @@ -28,6 +28,8 @@ SPECIAL_PERMS+= libexec/dbus-daemon-launch-helper ${REAL_ROOT_USER} ${DBUS_GROU SMF_METHODS= dbus SMF_NAME= dbus +MESSAGE_SRC+= MESSAGE + .include "../../mk/bsd.prefs.mk" CONFIGURE_ARGS+= --localstatedir=${VARBASE:Q} @@ -36,6 +38,7 @@ 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 .endif -- cgit v1.2.3