git: cf220c2a8a70 - main - security/libressl: Sanitize MANPREFIX

From: Muhammad Moinur Rahman <bofh_at_FreeBSD.org>
Date: Mon, 22 Jan 2024 15:50:59 UTC
The branch main has been updated by bofh:

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

commit cf220c2a8a70620b4d4aa1b000318501819deabb
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2024-01-22 14:00:47 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2024-01-22 15:50:42 +0000

    security/libressl: Sanitize MANPREFIX
    
    Approved by:    portmgr (blanket)
---
 security/libressl/Makefile         |  4 +++-
 security/libressl/pkg-plist        | 10 +++++-----
 security/libressl/pkg-plist-libtls |  2 +-
 3 files changed, 9 insertions(+), 7 deletions(-)

diff --git a/security/libressl/Makefile b/security/libressl/Makefile
index 2acabfe49670..5ac7050edc19 100644
--- a/security/libressl/Makefile
+++ b/security/libressl/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	libressl
 PORTVERSION=	3.8.2
+PORTREVISION=	1
 CATEGORIES=	security devel
 MASTER_SITES=	OPENBSD/LibreSSL
 
@@ -39,6 +40,7 @@ LIBTLS_CONFIGURE_ENABLE=	libtls-only
 NC_CONFIGURE_ENABLE=		nc
 
 GNU_CONFIGURE=	yes
+GNU_CONFIGURE_MANPREFIX=	${PREFIX}/share
 USES=		cpe libtool pathfix pkgconfig
 USE_LDCONFIG=	yes
 OPTIONS_SUB=	yes
@@ -66,7 +68,7 @@ post-install:
 	${LN} -s /etc/ssl/certs ${STAGEDIR}${PREFIX}/etc/ssl/certs
 
 post-stage-MAN3-on:
-	(cd ${STAGEDIR}${MANPREFIX}; ${FIND} man/man3 -not -type d | \
+	(cd ${STAGEDIR}${PREFIX}; ${FIND} share/man/man3 -not -type d | \
 		${SED} 's/$$/.gz/' >> ${TMPPLIST})
 
 .include <bsd.port.mk>
diff --git a/security/libressl/pkg-plist b/security/libressl/pkg-plist
index 2488b44377ce..498acaedaced 100644
--- a/security/libressl/pkg-plist
+++ b/security/libressl/pkg-plist
@@ -94,9 +94,9 @@ libdata/pkgconfig/libcrypto.pc
 libdata/pkgconfig/libssl.pc
 libdata/pkgconfig/libtls.pc
 libdata/pkgconfig/openssl.pc
-%%NC%%man/man1/nc.1.gz
-man/man1/openssl.1.gz
-man/man5/openssl.cnf.5.gz
-man/man5/x509v3.cnf.5.gz
-man/man8/ocspcheck.8.gz
+%%NC%%share/man/man1/nc.1.gz
+share/man/man1/openssl.1.gz
+share/man/man5/openssl.cnf.5.gz
+share/man/man5/x509v3.cnf.5.gz
+share/man/man8/ocspcheck.8.gz
 @dir include/openssl
diff --git a/security/libressl/pkg-plist-libtls b/security/libressl/pkg-plist-libtls
index d74aa579bb00..066dcdac6ac0 100644
--- a/security/libressl/pkg-plist-libtls
+++ b/security/libressl/pkg-plist-libtls
@@ -7,5 +7,5 @@ lib/libtls.so
 lib/libtls.so.%%LIBTLS_SHLIBMAJ%%
 lib/libtls.so.%%LIBTLS_SHLIBFULL%%
 libdata/pkgconfig/libtls.pc
-%%NC%%man/man1/nc.1.gz
+%%NC%%share/man/man1/nc.1.gz
 @dir etc/ssl/certs