git: 396bb0439c50 - main - net/miniupnpd: Moved man to share/man

From: Muhammad Moinur Rahman <bofh_at_FreeBSD.org>
Date: Sun, 25 Feb 2024 09:18:28 UTC
The branch main has been updated by bofh:

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

commit 396bb0439c50d9cf1bd3e2d1b0c75db8919b180c
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2024-02-25 08:55:21 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2024-02-25 09:17:55 +0000

    net/miniupnpd: Moved man to share/man
    
    Approved by:    portmgr (blanket)
---
 net/miniupnpd/Makefile | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/net/miniupnpd/Makefile b/net/miniupnpd/Makefile
index 4c9a2ea1e505..5a4fbb0bdcf4 100644
--- a/net/miniupnpd/Makefile
+++ b/net/miniupnpd/Makefile
@@ -1,6 +1,6 @@
 PORTNAME=	miniupnpd
 DISTVERSION=	2.3.3
-PORTREVISION=	2
+PORTREVISION=	3
 PORTEPOCH=	1
 CATEGORIES=	net
 
@@ -31,7 +31,7 @@ LDFLAGS+=	-L${OPENSSLLIB} -lpfctl
 WRKSRC_SUBDIR=	miniupnpd
 
 PLIST_FILES=	etc/miniupnpd.conf.sample \
-		man/man8/miniupnpd.8.gz \
+		share/man/man8/miniupnpd.8.gz \
 		sbin/miniupnpd
 
 # unconditionally use pf, ipfw does not work on FreeBSD
@@ -52,6 +52,7 @@ UPNP_STRICT_CONFIGURE_ON=	--strict
 
 post-patch:
 	@${REINPLACE_CMD} -e 's|\(-lssl -lcrypto\)|$$(LDFLAGS) \1|g' \
-	${WRKSRC}/Makefile.bsd
+		-e 's|^INSTALLMANDIR.*|INSTALLMANDIR = ${PREFIX}/share/man|' \
+		${WRKSRC}/Makefile.bsd
 
 .include <bsd.port.mk>