Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 12 Jun 2023 22:11:18 GMT
From:      Cy Schubert <cy@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-branches@FreeBSD.org
Subject:   git: 0289bca575e8 - 2023Q2 - security/py-fail2ban: Fix FAIL2BAN_DBDIR
Message-ID:  <202306122211.35CMBIqq018424@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch 2023Q2 has been updated by cy:

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

commit 0289bca575e831795c0e4c994d154775765b231d
Author:     Cy Schubert <cy@FreeBSD.org>
AuthorDate: 2023-06-12 22:04:16 +0000
Commit:     Cy Schubert <cy@FreeBSD.org>
CommitDate: 2023-06-12 22:11:09 +0000

    security/py-fail2ban: Fix FAIL2BAN_DBDIR
    
    FAIL2BAN_DBDIR is a user set option. Unfortunately plist is not updated
    resulting in plist errors.
    
    PR:     271972
    
    (cherry picked from commit 1036c8dcca6e51b2c3dac6b9ebabd42cfc334a90)
---
 security/py-fail2ban/Makefile  | 1 +
 security/py-fail2ban/pkg-plist | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/security/py-fail2ban/Makefile b/security/py-fail2ban/Makefile
index dcc22566019f..1dacfecf45ed 100644
--- a/security/py-fail2ban/Makefile
+++ b/security/py-fail2ban/Makefile
@@ -47,6 +47,7 @@ MAN_FILES=	${WRKSRC}/man/fail2ban-client.1 \
 		${WRKSRC}/man/fail2ban.1
 
 FAIL2BAN_DBDIR=	/var/db/${PORTNAME}
+PLIST_SUB=	FAIL2BAN_DBDIR=${FAIL2BAN_DBDIR}
 
 PY2TO3_CMD=	${LOCALBASE}/bin/2to3-${PYTHON_VER}
 PY2TO3_ARG=	--no-diffs --write --nobackups --fix=all
diff --git a/security/py-fail2ban/pkg-plist b/security/py-fail2ban/pkg-plist
index 9836b30ee195..1709748512dc 100644
--- a/security/py-fail2ban/pkg-plist
+++ b/security/py-fail2ban/pkg-plist
@@ -6,7 +6,7 @@ man/man5/fail2ban-jail.conf.5.gz
 bin/fail2ban-python
 @dir %%ETCDIR%%/fail2ban.d
 @dir %%ETCDIR%%/jail.d
-@dir /var/db/fail2ban
+@dir %%FAIL2BAN_DBDIR%%
 @dir /var/lib/fail2ban
 @dir /var/lib
 @dir /var/run/fail2ban



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202306122211.35CMBIqq018424>