git: 4027ae5056a9 - main - x11/sddm: Install PAM configs using @sample.

From: Gleb Popov <arrowd_at_FreeBSD.org>
Date: Wed, 10 Nov 2021 06:05:20 UTC
The branch main has been updated by arrowd:

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

commit 4027ae5056a912be257bb4129178332031fb48d6
Author:     Dries Michiels <driesm@freebsd.org>
AuthorDate: 2021-11-10 06:04:31 +0000
Commit:     Gleb Popov <arrowd@FreeBSD.org>
CommitDate: 2021-11-10 06:05:07 +0000

    x11/sddm: Install PAM configs using @sample.
    
    PR:             259435
---
 x11/sddm/Makefile  | 5 ++++-
 x11/sddm/pkg-plist | 6 +++---
 2 files changed, 7 insertions(+), 4 deletions(-)

diff --git a/x11/sddm/Makefile b/x11/sddm/Makefile
index f92440ea0d9a..ec409a86e6eb 100644
--- a/x11/sddm/Makefile
+++ b/x11/sddm/Makefile
@@ -1,7 +1,7 @@
 PORTNAME=	sddm
 PORTVERSION=	0.19.0
 DISTVERSIONPREFIX=	v
-PORTREVISION=	6
+PORTREVISION=	7
 CATEGORIES=	x11
 
 MAINTAINER=	kde@FreeBSD.org
@@ -56,5 +56,8 @@ post-install:
 	${INSTALL_DATA} ${WRKDIR}/xinitrc.desktop ${STAGEDIR}${PREFIX}/share/xsessions
 	${INSTALL_SCRIPT} ${FILESDIR}/xinit-session ${STAGEDIR}${PREFIX}/share/sddm/scripts
 	${REINPLACE_CMD} -e 's#@@LOCALBASE@@#${LOCALBASE}#' ${STAGEDIR}${PREFIX}/share/sddm/scripts/xinit-session
+	${MV} ${STAGEDIR}${PREFIX}/etc/pam.d/sddm ${STAGEDIR}${PREFIX}/etc/pam.d/sddm.default
+	${MV} ${STAGEDIR}${PREFIX}/etc/pam.d/sddm-autologin ${STAGEDIR}${PREFIX}/etc/pam.d/sddm-autologin.default
+	${MV} ${STAGEDIR}${PREFIX}/etc/pam.d/sddm-greeter ${STAGEDIR}${PREFIX}/etc/pam.d/sddm-greeter.default
 
 .include <bsd.port.mk>
diff --git a/x11/sddm/pkg-plist b/x11/sddm/pkg-plist
index 5c80fa37622a..af98960daa55 100644
--- a/x11/sddm/pkg-plist
+++ b/x11/sddm/pkg-plist
@@ -1,9 +1,9 @@
 bin/sddm
 bin/sddm-greeter
 etc/dbus-1/system.d/org.freedesktop.DisplayManager.conf
-etc/pam.d/sddm
-etc/pam.d/sddm-autologin
-etc/pam.d/sddm-greeter
+@sample etc/pam.d/sddm.default etc/pam.d/sddm
+@sample etc/pam.d/sddm-autologin.default etc/pam.d/sddm-autologin
+@sample etc/pam.d/sddm-greeter.default etc/pam.d/sddm-greeter
 %%QT_QMLDIR%%/SddmComponents/Background.qml
 %%QT_QMLDIR%%/SddmComponents/Button.qml
 %%QT_QMLDIR%%/SddmComponents/Clock.qml