git: 281830982455 - main - security/rosenpass: install manual pages

From: Ashish SHUKLA <ashish_at_FreeBSD.org>
Date: Mon, 11 Sep 2023 14:34:09 UTC
The branch main has been updated by ashish:

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

commit 2818309824556ff615c79a003c9e2ea8b52c4ead
Author:     Ashish SHUKLA <ashish@FreeBSD.org>
AuthorDate: 2023-09-11 14:26:27 +0000
Commit:     Ashish SHUKLA <ashish@FreeBSD.org>
CommitDate: 2023-09-11 14:32:46 +0000

    security/rosenpass: install manual pages
---
 security/rosenpass/Makefile | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/security/rosenpass/Makefile b/security/rosenpass/Makefile
index 71173a311e74..1a1bdb1d0c51 100644
--- a/security/rosenpass/Makefile
+++ b/security/rosenpass/Makefile
@@ -1,6 +1,7 @@
 PORTNAME=	rosenpass
 DISTVERSIONPREFIX=	v
 DISTVERSION=	0.2.0
+PORTREVISION=	1
 CATEGORIES=	security
 
 MAINTAINER=	ashish@FreeBSD.org
@@ -20,12 +21,18 @@ RUN_DEPENDS=	${LOCALBASE}/bin/bash:shells/bash
 USES=		cargo
 USE_GITHUB=	yes
 PLIST_FILES=	bin/rosenpass \
-		bin/rp
+		bin/rp \
+		share/man/man1/rp.1.gz \
+		share/man/man1/rosenpass.1.gz
 
 post-patch:
 	${REINPLACE_CMD} -e 's,%%PREFIX%%,${PREFIX},g' ${WRKSRC}/rp
 
 post-install:
+.for MANPAGE in ${PLIST_FILES:Mshare/man/*:T}
+	${INSTALL_MAN} ${WRKSRC}/doc/${MANPAGE:S/.gz//} \
+		${STAGEDIR}${MANPREFIX}/share/man/man${MANPAGE:C/^[^.]*[.]//:S/.gz//}/${MANPAGE:S/.gz//}
+.endfor
 	${INSTALL_SCRIPT} ${WRKSRC}/rp ${STAGEDIR}${PREFIX}/bin/rp
 
 .include <bsd.port.mk>