Created attachment 242751 [details] fail2ban.diff More complex path rewrite and small refactoring
Why would we want to run sed against all the listed files when /etc/fail2ban is not listed in the files? FAIL2BAN_DBDIR is valid. Why put the /var/run files somewhere else?
(In reply to Cy Schubert from comment #1) > Why would we want to run sed against all the listed files when /etc/fail2ban is not listed in the files? Look carefully, rewrite not only /etc/fail2ban, also /var/lib/fail2ban, /var/run/fail2ban, jail.conf(5) > FAIL2BAN_DBDIR is valid. What you mean? > Why put the /var/run files somewhere else? Why not, The ability to configure is good.
The port already uses FAIL2BAN_DBDIR. The reason why is tenuous. Why not is not a reason to document why in a commit log message. The patch is not accepted.
(In reply to Cy Schubert from comment #3) If you don't want to accept a patch, clean up the port yourself. Port is half broken.
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=1036c8dcca6e51b2c3dac6b9ebabd42cfc334a90 commit 1036c8dcca6e51b2c3dac6b9ebabd42cfc334a90 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:06:13 +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 MFH: 2023Q2 security/py-fail2ban/Makefile | 1 + security/py-fail2ban/pkg-plist | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-)
A commit in branch 2023Q2 references this bug: 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(-)