git: 9ff7b82414fc - main - x11/lightdm: PREFIX the configuration files pathes in lightdm.1

From: Sergey A. Osokin <osa_at_FreeBSD.org>
Date: Sat, 14 Jun 2025 17:47:56 UTC
The branch main has been updated by osa:

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

commit 9ff7b82414fc150e10a6b7d600e2bcde7700f194
Author:     Sergey A. Osokin <osa@FreeBSD.org>
AuthorDate: 2025-06-14 17:47:20 +0000
Commit:     Sergey A. Osokin <osa@FreeBSD.org>
CommitDate: 2025-06-14 17:47:20 +0000

    x11/lightdm: PREFIX the configuration files pathes in lightdm.1
    
    Bump PORTREVISION.
    
    Approved by:    desktop (fluffy)
---
 x11/lightdm/Makefile                   |  3 ++-
 x11/lightdm/files/patch-data_lightdm.1 | 19 +++++++++++++++++++
 2 files changed, 21 insertions(+), 1 deletion(-)

diff --git a/x11/lightdm/Makefile b/x11/lightdm/Makefile
index 737751f9d759..dac21ec5c77b 100644
--- a/x11/lightdm/Makefile
+++ b/x11/lightdm/Makefile
@@ -1,6 +1,6 @@
 PORTNAME=	lightdm
 PORTVERSION=	1.32.0
-PORTREVISION=	6
+PORTREVISION=	7
 CATEGORIES=	x11
 MASTER_SITES=	https://github.com/canonical/${PORTNAME}/releases/download/${DISTVERSIONPREFIX}${DISTVERSION}/
 
@@ -64,6 +64,7 @@ VAPI_CONFIGURE_ENABLE=	vala
 
 post-patch:
 	@${REINPLACE_CMD} -e 's,%%PREFIX%%,${PREFIX},' \
+		${WRKSRC}/data/lightdm.1 \
 		${WRKSRC}/data/lightdm.conf
 
 post-patch-DOCS-off:
diff --git a/x11/lightdm/files/patch-data_lightdm.1 b/x11/lightdm/files/patch-data_lightdm.1
new file mode 100644
index 000000000000..e6e4c97c3005
--- /dev/null
+++ b/x11/lightdm/files/patch-data_lightdm.1
@@ -0,0 +1,19 @@
+--- data/lightdm.1.orig	2025-06-14 17:01:12 UTC
++++ data/lightdm.1
+@@ -45,13 +45,13 @@ Show release version
+ Show release version
+ .SH FILES
+ .TP
+-.B /etc/lightdm/lightdm.conf
++.B %%PREFIX%%/etc/lightdm/lightdm.conf
+ Configuration
+ .TP
+-.B /etc/lightdm/users.conf
++.B %%PREFIX%%/etc/lightdm/users.conf
+ User list configuration (if not using Accounts Service)
+ .TP
+-.B /etc/lightdm/keys.conf
++.B %%PREFIX%%/etc/lightdm/keys.conf
+ XDMCP keys
+ .SH SEE ALSO
+ .BR dm-tool (1)