Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 23 Jan 2018 20:13:52 +0000 (UTC)
From:      Kurt Jaeger <pi@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r459794 - in head/security/py-fail2ban: . files
Message-ID:  <201801232013.w0NKDqvL039180@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: pi
Date: Tue Jan 23 20:13:52 2018
New Revision: 459794
URL: https://svnweb.freebsd.org/changeset/ports/459794

Log:
  security/py-fail2ban: update 0.10.1 -> 0.10.2
  
  - many fixes from upstream for bugs in the 0.10.x version
  - automatic upgrade of python code to python3, if that is used
  
  PR:		225317
  Submitted by:	theis@gmx.at (maintainer)
  Changes:	https://github.com/fail2ban/fail2ban/blob/0.10.2/ChangeLog

Deleted:
  head/security/py-fail2ban/files/patch-config_action.d_pf.conf
Modified:
  head/security/py-fail2ban/Makefile
  head/security/py-fail2ban/distinfo

Modified: head/security/py-fail2ban/Makefile
==============================================================================
--- head/security/py-fail2ban/Makefile	Tue Jan 23 19:50:57 2018	(r459793)
+++ head/security/py-fail2ban/Makefile	Tue Jan 23 20:13:52 2018	(r459794)
@@ -1,8 +1,7 @@
 # $FreeBSD$
 
 PORTNAME=	fail2ban
-PORTVERSION=	0.10.1
-PORTREVISION=	1
+PORTVERSION=	0.10.2
 CATEGORIES=	security python
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
 
@@ -48,6 +47,11 @@ MAN_FILES=	${WRKSRC}/man/fail2ban-client.1 \
 
 FAIL2BAN_DBDIR=	/var/db/${PORTNAME}
 
+PY2TO3_CMD=	${LOCALBASE}/bin/2to3-${PYTHON_VER}
+PY2TO3_ARG=	--no-diffs --write --nobackups --fix=all
+
+.include <bsd.port.pre.mk>
+
 post-patch:
 	@${REINPLACE_CMD} -e 's,/etc/fail2ban,${ETCDIR},g' ${FILES}
 	@${REINPLACE_CMD} -e 's,paths-debian.conf,paths-freebsd.conf,g' \
@@ -57,6 +61,10 @@ post-patch:
 	@${REINPLACE_CMD} -e 's,jail.conf(5),fail2ban-jail.conf(5),g' \
 		${MAN_FILES}
 
+.	if ${PYTHON_MAJOR_VER} >= 3
+		(cd ${WRKSRC}/ && ${PY2TO3_CMD} ${PY2TO3_ARG} bin/* fail2ban)
+.	endif
+
 post-install:
 	@${MKDIR} ${STAGEDIR}${FAIL2BAN_DBDIR} ${STAGEDIR}/var/run/fail2ban
 .for file in fail2ban-client fail2ban-regex fail2ban-server fail2ban
@@ -71,4 +79,4 @@ post-install-DOCS-on:
 do-test:
 	@cd ${WRKSRC} && ${PYTHON_CMD} ${PYDISTUTILS_SETUP} test
 
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>

Modified: head/security/py-fail2ban/distinfo
==============================================================================
--- head/security/py-fail2ban/distinfo	Tue Jan 23 19:50:57 2018	(r459793)
+++ head/security/py-fail2ban/distinfo	Tue Jan 23 20:13:52 2018	(r459794)
@@ -1,3 +1,3 @@
-TIMESTAMP = 1508093600
-SHA256 (fail2ban-fail2ban-0.10.1_GH0.tar.gz) = 19bac652e50f35b3b58ea010c2b89b91b945365d37dbf17467e0dc345c058465
-SIZE (fail2ban-fail2ban-0.10.1_GH0.tar.gz) = 465156
+TIMESTAMP = 1516358804
+SHA256 (fail2ban-fail2ban-0.10.2_GH0.tar.gz) = 1c1a969137c56f7e8b90e5f14d78b80214d34d67209787bfddc8d5804ceb29cc
+SIZE (fail2ban-fail2ban-0.10.2_GH0.tar.gz) = 474624



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