git: 4fde322e29b7 - main - security/py-fail2ban: Remove redundant 2to3 invocation
Date: Tue, 13 Jan 2026 14:45:41 UTC
The branch main has been updated by cy:
URL: https://cgit.FreeBSD.org/ports/commit/?id=4fde322e29b7c70526c4a720939bee7ffb245c8b
commit 4fde322e29b7c70526c4a720939bee7ffb245c8b
Author: Cy Schubert <cy@FreeBSD.org>
AuthorDate: 2026-01-13 14:43:43 +0000
Commit: Cy Schubert <cy@FreeBSD.org>
CommitDate: 2026-01-13 14:45:23 +0000
security/py-fail2ban: Remove redundant 2to3 invocation
As of upstream 9c5f6eea fail2ban is Python 3.x based. We no longer need
2to3 anymore.
PR: 9c5f6eea
MFH: 2026Q1
---
security/py-fail2ban/Makefile | 9 +--------
1 file changed, 1 insertion(+), 8 deletions(-)
diff --git a/security/py-fail2ban/Makefile b/security/py-fail2ban/Makefile
index 2d4f78da12c4..53d3749f7f53 100644
--- a/security/py-fail2ban/Makefile
+++ b/security/py-fail2ban/Makefile
@@ -1,6 +1,6 @@
PORTNAME= fail2ban
DISTVERSION= 1.1.0
-PORTREVISION= 7
+PORTREVISION= 8
CATEGORIES= security python
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
@@ -50,9 +50,6 @@ MAN_FILES= ${WRKSRC}/man/fail2ban-client.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
-
post-patch:
@${REINPLACE_CMD} -e 's,/etc/fail2ban,${ETCDIR},g' ${FILES}
@${REINPLACE_CMD} -e 's,paths-debian.conf,paths-freebsd.conf,g' \
@@ -64,10 +61,6 @@ post-patch:
@${REINPLACE_CMD} -e 's, sed , ${SED} ,g' \
${WRKSRC}/config/action.d/hostsdeny.conf
- # XXX Ideally this should be in do-build but it only works in
- # XXX post-patch
- (cd ${WRKSRC}/ && ${PY2TO3_CMD} ${PY2TO3_ARG} bin/* fail2ban)
-
post-install:
@${MKDIR} ${STAGEDIR}${FAIL2BAN_DBDIR} ${STAGEDIR}/var/run/fail2ban
.for file in fail2ban-client fail2ban-regex fail2ban-server fail2ban