1
0
mirror of https://git.freebsd.org/ports.git synced 2026-06-02 11:08:52 +00:00

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
This commit is contained in:
Cy Schubert
2026-01-13 06:43:43 -08:00
parent 637cb64d76
commit 4fde322e29
+1 -8
View File
@@ -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