git: 1f3b6912441d - main - multimedia/lms: Install the PAM file

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Thu, 10 Mar 2022 21:34:38 UTC
The branch main has been updated by yuri:

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

commit 1f3b6912441d970feb2f60a3931da5ecec3171c0
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2022-03-10 21:33:59 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2022-03-10 21:34:35 +0000

    multimedia/lms: Install the PAM file
---
 multimedia/lms/Makefile  | 4 ++++
 multimedia/lms/pkg-plist | 1 +
 2 files changed, 5 insertions(+)

diff --git a/multimedia/lms/Makefile b/multimedia/lms/Makefile
index c096bc691661..18fae6129c5b 100644
--- a/multimedia/lms/Makefile
+++ b/multimedia/lms/Makefile
@@ -37,7 +37,11 @@ post-patch:
 		${WRKSRC}/conf/lms.conf
 
 post-install:
+	# link sample
 	${RLN} ${STAGEDIR}${DATADIR}/lms.conf ${STAGEDIR}${PREFIX}/etc/lms.conf.sample
+	# create the DB directory
 	${MKDIR} ${STAGEDIR}/var/db/lms
+	# install the PAM config file # PAM breaks, see https://github.com/epoupon/lms/issues/210
+	${RLN} ${STAGEDIR}${DATADIR}/${PORTNAME} ${STAGEDIR}${PREFIX}/etc/pam.d/${PORTNAME}
 
 .include <bsd.port.mk>
diff --git a/multimedia/lms/pkg-plist b/multimedia/lms/pkg-plist
index ecb4706c23f5..b8cc024e0669 100644
--- a/multimedia/lms/pkg-plist
+++ b/multimedia/lms/pkg-plist
@@ -14,6 +14,7 @@ lib/liblmssom.so
 lib/liblmssubsonic.so
 lib/liblmsutils.so
 @sample etc/lms.conf.sample
+etc/pam.d/lms
 %%DATADIR%%/approot/admin-database.xml
 %%DATADIR%%/approot/admin-initwizard.xml
 %%DATADIR%%/approot/admin-scannercontroller.xml