pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/49591: sysutils/dbus does not install a launchd script (with fix)

>Number:         49591
>Category:       pkg
>Synopsis:       sysutils/dbus does not install a launchd script (with fix)
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Tue Jan 20 18:50:00 +0000 2015
>Originator:     Youri Mouton
>Release:        current
Darwin mac.local 14.0.0 Darwin Kernel Version 14.0.0: Fri Sep 19 00:26:44 PDT 2014; root:xnu-2782.1.97~2/RELEASE_X86_64 x86_64

sysutils/dbus does not install a launchd script.

Add a PLIST.Darwin:

@comment $NetBSD$

and this patch for the Makefile:

diff --git a/sysutils/dbus/Makefile b/sysutils/dbus/Makefile
index f51ded8..7a3ac9e 100644
--- a/sysutils/dbus/Makefile
+++ b/sysutils/dbus/Makefile
@@ -35,7 +35,8 @@ CONFIGURE_ARGS+=	--sysconfdir=${PKG_SYSCONFDIR:Q}
 CONFIGURE_ARGS_GROUPS=	enable disable with without
 .if ${OPSYS} == "Darwin"
-CONFIGURE_ARGS+= --with-session-socket-dir=/tmp
+CONFIGURE_ARGS+=	--with-launchd-agent-dir=${PREFIX}/Library/LaunchAgents
+CONFIGURE_ARGS+=	--with-session-socket-dir=/tmp
 CONFIGURE_ARGS.Linux=	abstract-sockets selinux

With the above, I am able to start dbus like this:

$ launchctl load -w /usr/pkg/Library/LaunchAgents/org.freedesktop.dbus-session.plist
$ launchctl start org.freedesktop.dbus-session

Tested to work with xfce. 

Home | Main Index | Thread Index | Old Index