[131527] trunk/dports/security/fail2ban

cal at macports.org cal at macports.org
Tue Jan 13 12:29:10 PST 2015


Revision: 131527
          https://trac.macports.org/changeset/131527
Author:   cal at macports.org
Date:     2015-01-13 12:29:09 -0800 (Tue, 13 Jan 2015)
Log Message:
-----------
fail2ban: increase error count threshold, #46546, openmaintainer

Modified Paths:
--------------
    trunk/dports/security/fail2ban/Portfile

Added Paths:
-----------
    trunk/dports/security/fail2ban/files/patch-server__filterpoll.py-increase-error-threshold.diff

Modified: trunk/dports/security/fail2ban/Portfile
===================================================================
--- trunk/dports/security/fail2ban/Portfile	2015-01-13 18:42:02 UTC (rev 131526)
+++ trunk/dports/security/fail2ban/Portfile	2015-01-13 20:29:09 UTC (rev 131527)
@@ -6,6 +6,7 @@
 PortGroup               python 1.0
 
 github.setup            fail2ban fail2ban 0.8.10
+revision                1
 categories              security python
 license                 GPL-2+
 maintainers             free.fr:fclaire openmaintainer
@@ -45,7 +46,9 @@
                         patch-config-fail2ban.conf.diff \
                         patch-config-jail.conf.diff \
                         patch-client-csocket.py.diff \
-                        patch-server-server.py.diff
+                        patch-server-server.py.diff \
+                        patch-server__filterpoll.py-increase-error-threshold.diff
+# See #46546 for patch-server__filterpoll.py-increase-error-threshold.diff
 
 post-patch   {
     reinplace "s|@@PREFIX@@|${prefix}|g"    ${worksrcpath}/setup.py \

Added: trunk/dports/security/fail2ban/files/patch-server__filterpoll.py-increase-error-threshold.diff
===================================================================
--- trunk/dports/security/fail2ban/files/patch-server__filterpoll.py-increase-error-threshold.diff	                        (rev 0)
+++ trunk/dports/security/fail2ban/files/patch-server__filterpoll.py-increase-error-threshold.diff	2015-01-13 20:29:09 UTC (rev 131527)
@@ -0,0 +1,11 @@
+--- server/filterpoll.py	2013-06-12 13:21:12.000000000 -0400
++++ server/filterpoll.py	2015-01-07 09:22:13.000000000 -0500
+@@ -129,7 +129,7 @@
+ 			logSys.error("Unable to get stat on %s because of: %s"
+ 						 % (filename, e))
+ 			self.__file404Cnt[filename] += 1
+-			if self.__file404Cnt[filename] > 2:
++			if self.__file404Cnt[filename] > 20:
+ 				logSys.warn("Too many errors. Setting the jail idle")
+ 				if self.jail is not None:
+ 					self.jail.setIdle(True)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20150113/aafa06ab/attachment.html>


More information about the macports-changes mailing list