git: 6a2a18f6deee - main - security/fprintd: fix build

From: Dmitry Marakasov <amdmi3_at_FreeBSD.org>
Date: Tue, 26 Jul 2022 15:43:29 UTC
The branch main has been updated by amdmi3:

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

commit 6a2a18f6deee89e0f232ca762b50dc94db438751
Author:     Dmitry Marakasov <amdmi3@FreeBSD.org>
AuthorDate: 2022-07-26 15:40:13 +0000
Commit:     Dmitry Marakasov <amdmi3@FreeBSD.org>
CommitDate: 2022-07-26 15:43:24 +0000

    security/fprintd: fix build
    
    - Don't allow to run configure from autogen.sh, where no necessary
      configure args/env is passed
    - Fix manpage location in plist and treat optional files as such
---
 security/fprintd/Makefile  | 7 +------
 security/fprintd/pkg-plist | 6 +++---
 2 files changed, 4 insertions(+), 9 deletions(-)

diff --git a/security/fprintd/Makefile b/security/fprintd/Makefile
index 2d6591b0ecc1..03812ec61231 100644
--- a/security/fprintd/Makefile
+++ b/security/fprintd/Makefile
@@ -31,17 +31,12 @@ OPTIONS_SUB=	yes
 NLS_CONFIGURE_ENABLE=	nls
 PAM_CONFIGURE_ENABLE=	pam
 
-do-configure:
-	(cd ${WRKSRC} ; ${SH} autogen.sh)
-
 # Remove doc build ;  Doesn't install with/without
 # Also less deps needed
 pre-configure:
 	${REINPLACE_CMD} -e '/pushd/d ; /docize/d ; /popd/d' ${WRKSRC}/autogen.sh
 	${REINPLACE_CMD} -e '73,81d' ${WRKSRC}/doc/Makefile.am
 	${REINPLACE_CMD} -e '/DOC_CHECK/d' ${WRKSRC}/configure.ac
-
-post-install:
-	${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/security/pam_fprintd.so
+	(cd ${WRKSRC} && ${SETENV} NOCONFIGURE=1 ${SH} autogen.sh)
 
 .include <bsd.port.mk>
diff --git a/security/fprintd/pkg-plist b/security/fprintd/pkg-plist
index be2cca9b31f7..4e3a01d8bd40 100644
--- a/security/fprintd/pkg-plist
+++ b/security/fprintd/pkg-plist
@@ -4,8 +4,8 @@ bin/fprintd-list
 bin/fprintd-verify
 %%ETCDIR%%/dbus-1/system.d/net.reactivated.Fprint.conf
 %%ETCDIR%%/fprintd.conf
-lib/security/pam_fprintd.a
-lib/security/pam_fprintd.so
+%%PAM%%lib/security/pam_fprintd.a
+%%PAM%%lib/security/pam_fprintd.so
 libexec/fprintd
 share/dbus-1/interfaces/net.reactivated.Fprint.Device.xml
 share/dbus-1/interfaces/net.reactivated.Fprint.Manager.xml
@@ -81,5 +81,5 @@ share/dbus-1/system-services/net.reactivated.Fprint.service
 %%NLS%%share/locale/zh_CN/LC_MESSAGES/fprintd.mo
 %%NLS%%share/locale/zh_HK/LC_MESSAGES/fprintd.mo
 %%NLS%%share/locale/zh_TW/LC_MESSAGES/fprintd.mo
-share/man/man1/fprintd.1.gz
+man/man1/fprintd.1.gz
 share/polkit-1/actions/net.reactivated.fprint.device.policy