git: 8dda5d05cfbe - main - security/py-fail2ban: Sanitize MANPREFIX

From: Muhammad Moinur Rahman <bofh_at_FreeBSD.org>
Date: Sun, 21 Jan 2024 22:32:28 UTC
The branch main has been updated by bofh:

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

commit 8dda5d05cfbe8f4863dfb9c820fc0a767e565e72
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2024-01-21 22:12:30 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2024-01-21 22:32:10 +0000

    security/py-fail2ban: Sanitize MANPREFIX
    
    Approved by:    portmgr (blanket)
---
 security/py-fail2ban/Makefile  |  5 +++--
 security/py-fail2ban/pkg-plist | 10 +++++-----
 2 files changed, 8 insertions(+), 7 deletions(-)

diff --git a/security/py-fail2ban/Makefile b/security/py-fail2ban/Makefile
index f34c2d87c63b..b3cfa79f04d6 100644
--- a/security/py-fail2ban/Makefile
+++ b/security/py-fail2ban/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	fail2ban
 DISTVERSION=	1.0.2
+PORTREVISION=	1
 CATEGORIES=	security python
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
 
@@ -70,9 +71,9 @@ post-patch:
 post-install:
 	@${MKDIR} ${STAGEDIR}${FAIL2BAN_DBDIR} ${STAGEDIR}/var/run/fail2ban
 .for file in fail2ban-client fail2ban-regex fail2ban-server fail2ban
-	${INSTALL_MAN} ${WRKSRC}/man/${file}.1 ${STAGEDIR}${MANPREFIX}/man/man1
+	${INSTALL_MAN} ${WRKSRC}/man/${file}.1 ${STAGEDIR}${PREFIX}/share/man/man1
 .endfor
-	${INSTALL_MAN} ${WRKSRC}/man/jail.conf.5 ${STAGEDIR}${MANPREFIX}/man/man5/fail2ban-jail.conf.5
+	${INSTALL_MAN} ${WRKSRC}/man/jail.conf.5 ${STAGEDIR}${PREFIX}/share/man/man5/fail2ban-jail.conf.5
 
 post-install-DOCS-on:
 	@${MKDIR} ${STAGEDIR}${DOCSDIR}
diff --git a/security/py-fail2ban/pkg-plist b/security/py-fail2ban/pkg-plist
index 1709748512dc..8de892691488 100644
--- a/security/py-fail2ban/pkg-plist
+++ b/security/py-fail2ban/pkg-plist
@@ -1,8 +1,8 @@
-man/man1/fail2ban-client.1.gz
-man/man1/fail2ban-regex.1.gz
-man/man1/fail2ban-server.1.gz
-man/man1/fail2ban.1.gz
-man/man5/fail2ban-jail.conf.5.gz
+share/man/man1/fail2ban-client.1.gz
+share/man/man1/fail2ban-regex.1.gz
+share/man/man1/fail2ban-server.1.gz
+share/man/man1/fail2ban.1.gz
+share/man/man5/fail2ban-jail.conf.5.gz
 bin/fail2ban-python
 @dir %%ETCDIR%%/fail2ban.d
 @dir %%ETCDIR%%/jail.d