Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 9 Apr 2018 18:17:32 +0000 (UTC)
From:      Jochen Neumeister <joneum@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r466874 - in head/security/py-fail2ban: . files
Message-ID:  <201804091817.w39IHW0V076725@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: joneum
Date: Mon Apr  9 18:17:32 2018
New Revision: 466874
URL: https://svnweb.freebsd.org/changeset/ports/466874

Log:
  security/py-fail2ban: Update to 0.10.3
  
  Changelog: https://github.com/fail2ban/fail2ban/blob/0.10.3.1/ChangeLog
  
  PR:		227389
  Submitted by:	theis@gmx.at (maintainer)

Added:
  head/security/py-fail2ban/files/patch-fail2ban_client_csocket.py   (contents, props changed)
Modified:
  head/security/py-fail2ban/Makefile
  head/security/py-fail2ban/distinfo

Modified: head/security/py-fail2ban/Makefile
==============================================================================
--- head/security/py-fail2ban/Makefile	Mon Apr  9 18:13:24 2018	(r466873)
+++ head/security/py-fail2ban/Makefile	Mon Apr  9 18:17:32 2018	(r466874)
@@ -1,7 +1,7 @@
 # $FreeBSD$
 
 PORTNAME=	fail2ban
-PORTVERSION=	0.10.2
+PORTVERSION=	0.10.3
 CATEGORIES=	security python
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
 

Modified: head/security/py-fail2ban/distinfo
==============================================================================
--- head/security/py-fail2ban/distinfo	Mon Apr  9 18:13:24 2018	(r466873)
+++ head/security/py-fail2ban/distinfo	Mon Apr  9 18:17:32 2018	(r466874)
@@ -1,3 +1,3 @@
-TIMESTAMP = 1516358804
-SHA256 (fail2ban-fail2ban-0.10.2_GH0.tar.gz) = 1c1a969137c56f7e8b90e5f14d78b80214d34d67209787bfddc8d5804ceb29cc
-SIZE (fail2ban-fail2ban-0.10.2_GH0.tar.gz) = 474624
+TIMESTAMP = 1523170020
+SHA256 (fail2ban-fail2ban-0.10.3_GH0.tar.gz) = 92ee35ec131f0005964f6794f69a9207827b428dd05877a6eacee584c5c11642
+SIZE (fail2ban-fail2ban-0.10.3_GH0.tar.gz) = 485453

Added: head/security/py-fail2ban/files/patch-fail2ban_client_csocket.py
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/security/py-fail2ban/files/patch-fail2ban_client_csocket.py	Mon Apr  9 18:17:32 2018	(r466874)
@@ -0,0 +1,34 @@
+--- fail2ban/client/csocket.py.orig	2018-04-08 10:28:39.135695000 +0200
++++ fail2ban/client/csocket.py	2018-04-08 10:35:39.403548000 +0200
+@@ -43,7 +43,7 @@
+ 		self.__csock.connect(sock)
+ 
+ 	def __del__(self):
+-		self.close(False)
++		self.close()
+ 	
+ 	def send(self, msg, nonblocking=False, timeout=None):
+ 		# Convert every list member to string
+@@ -56,13 +56,18 @@
+ 	def settimeout(self, timeout):
+ 		self.__csock.settimeout(timeout if timeout != -1 else self.__deftout)
+ 
+-	def close(self, sendEnd=True):
++	def close(self):
+ 		if not self.__csock:
+ 			return
+-		if sendEnd:
++		try:
+ 			self.__csock.sendall(CSPROTO.CLOSE + CSPROTO.END)
+-		self.__csock.shutdown(socket.SHUT_RDWR)
+-		self.__csock.close()
++			self.__csock.shutdown(socket.SHUT_RDWR)
++		except socket.error: # pragma: no cover - normally unreachable
++			pass
++		try:
++			self.__csock.close()
++		except socket.error: # pragma: no cover - normally unreachable
++			pass
+ 		self.__csock = None
+ 	
+ 	@staticmethod



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