git: c1c14aa6a4ef - main - x11/swayidle: document ConsoleKit2 as systemd-logind provider

From: Jan Beich <jbeich_at_FreeBSD.org>
Date: Fri, 21 Mar 2025 22:04:41 UTC
The branch main has been updated by jbeich:

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

commit c1c14aa6a4efd1baa30ee9a97083fe7728aabc4c
Author:     Jan Beich <jbeich@FreeBSD.org>
AuthorDate: 2025-03-21 21:50:45 +0000
Commit:     Jan Beich <jbeich@FreeBSD.org>
CommitDate: 2025-03-21 22:03:32 +0000

    x11/swayidle: document ConsoleKit2 as systemd-logind provider
    
    InhibitDelayMaxSec via logind.conf won't work but the rest applies.
---
 x11/swayidle/Makefile | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/x11/swayidle/Makefile b/x11/swayidle/Makefile
index 736b578ddd77..801247abc273 100644
--- a/x11/swayidle/Makefile
+++ b/x11/swayidle/Makefile
@@ -1,6 +1,6 @@
 PORTNAME=	swayidle
 DISTVERSION=	1.8.0
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	x11 wayland
 
 PATCH_SITES=	https://github.com/${GH_ACCOUNT}/${GH_PROJECT}/commit/
@@ -43,5 +43,8 @@ post-patch:
 	@${REINPLACE_CMD} -e 's,/login1,/ConsoleKit/Manager,' \
 		-e 's,login1,ConsoleKit,' \
 		${WRKSRC}/main.c
+	@${REINPLACE_CMD} -e 's,systemd,ConsoleKit2,g' \
+		-Ee '/conf/!s,logind(/elogind)?,ConsoleKit2,g' \
+		${WRKSRC}/${PORTNAME}.1.scd
 
 .include <bsd.port.mk>