git: d2a3b0e70b9b - main - x11/darkman: unbreak autostart via DBus activation

From: Jan Beich <jbeich_at_FreeBSD.org>
Date: Tue, 13 Dec 2022 17:28:58 UTC
The branch main has been updated by jbeich:

URL: https://cgit.FreeBSD.org/ports/commit/?id=d2a3b0e70b9b48e880845ec3d0356bb2d6269606

commit d2a3b0e70b9b48e880845ec3d0356bb2d6269606
Author:     Jan Beich <jbeich@FreeBSD.org>
AuthorDate: 2022-12-13 17:28:08 +0000
Commit:     Jan Beich <jbeich@FreeBSD.org>
CommitDate: 2022-12-13 17:28:52 +0000

    x11/darkman: unbreak autostart via DBus activation
---
 x11/darkman/Makefile | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/x11/darkman/Makefile b/x11/darkman/Makefile
index 8479cc217791..7df4165782db 100644
--- a/x11/darkman/Makefile
+++ b/x11/darkman/Makefile
@@ -41,6 +41,9 @@ post-patch:
 # Respect LOCALBASE for {dark,light}-mode.d scripts
 	@${REINPLACE_CMD} 's,/usr/share,${LOCALBASE}/share,' \
 		${WRKSRC}/vendor/github.com/adrg/xdg/paths_unix.go
+# Respect PREFIX for DBus activation
+	@${REINPLACE_CMD} 's,/usr/bin,${PREFIX}/bin,' \
+		${WRKSRC}/contrib/dbus/*.service
 
 post-install:
 	${MKDIR} ${STAGEDIR}${PREFIX}/share/dbus-1/services