diff options
author | Wen Heping <wen@FreeBSD.org> | 2017-10-12 10:58:43 +0000 |
---|---|---|
committer | Wen Heping <wen@FreeBSD.org> | 2017-10-12 10:58:43 +0000 |
commit | a0e2d9766140959701f297f0029aea7020af01f4 (patch) | |
tree | 04ff9eb0507e7977bbe5d8779d5156335d590129 /security/py-fail2ban | |
parent | 3bd9ad953216e6069ccdd80edf19996c7daf1c6d (diff) |
Notes
Diffstat (limited to 'security/py-fail2ban')
-rw-r--r-- | security/py-fail2ban/Makefile | 4 | ||||
-rw-r--r-- | security/py-fail2ban/distinfo | 6 | ||||
-rw-r--r-- | security/py-fail2ban/files/patch-fail2ban_server_ipdns.py | 19 | ||||
-rw-r--r-- | security/py-fail2ban/pkg-message | 18 |
4 files changed, 36 insertions, 11 deletions
diff --git a/security/py-fail2ban/Makefile b/security/py-fail2ban/Makefile index 2519ba04f45b..bcccfb174a6f 100644 --- a/security/py-fail2ban/Makefile +++ b/security/py-fail2ban/Makefile @@ -1,7 +1,7 @@ # $FreeBSD$ PORTNAME= fail2ban -PORTVERSION= 0.9.7 +PORTVERSION= 0.10.0 CATEGORIES= security python PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} @@ -33,6 +33,8 @@ PORTDOCS= README.md DEVELOP FILES= ${WRKSRC}/bin/fail2ban-client \ ${WRKSRC}/fail2ban/client/configreader.py \ + ${WRKSRC}/fail2ban/client/fail2bancmdline.py \ + ${WRKSRC}/fail2ban/client/fail2banregex.py \ ${WRKSRC}/man/fail2ban-client.1 \ ${WRKSRC}/man/fail2ban-client.h2m \ ${WRKSRC}/setup.py diff --git a/security/py-fail2ban/distinfo b/security/py-fail2ban/distinfo index 67ff8253b434..88c6445ac759 100644 --- a/security/py-fail2ban/distinfo +++ b/security/py-fail2ban/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1496237420 -SHA256 (fail2ban-fail2ban-0.9.7_GH0.tar.gz) = 2817eb0d4f670bef2a79a5a9cfb824b41a4445f5a92a307a453ac95f497c7440 -SIZE (fail2ban-fail2ban-0.9.7_GH0.tar.gz) = 356374 +TIMESTAMP = 1502542383 +SHA256 (fail2ban-fail2ban-0.10.0_GH0.tar.gz) = 3517b68bff71924f179609eb51dd2fe66d78653646528cdf8edf2370ff047c80 +SIZE (fail2ban-fail2ban-0.10.0_GH0.tar.gz) = 459813 diff --git a/security/py-fail2ban/files/patch-fail2ban_server_ipdns.py b/security/py-fail2ban/files/patch-fail2ban_server_ipdns.py new file mode 100644 index 000000000000..25386c2142b5 --- /dev/null +++ b/security/py-fail2ban/files/patch-fail2ban_server_ipdns.py @@ -0,0 +1,19 @@ +--- fail2ban/server/ipdns.py.orig 2017-08-09 14:53:05 UTC ++++ fail2ban/server/ipdns.py +@@ -69,10 +69,14 @@ class DNSUtils: + for fam, ipfam in ((socket.AF_INET, IPAddr.FAM_IPv4), (socket.AF_INET6, IPAddr.FAM_IPv6)): + try: + for result in socket.getaddrinfo(dns, None, fam, 0, socket.IPPROTO_TCP): +- ip = IPAddr(result[4][0], ipfam) ++ # if getaddrinfo returns something unexpected: ++ if len(result) < 4 or not len(result[4]): continue ++ # be sure we have an ip-string ++ # some return an integer there ++ ip = IPAddr(str(result[4][0]), ipfam) + if ip.isValid: + ips.append(ip) +- except socket.error as e: ++ except Exception as e: + saveerr = e + if not ips and saveerr: + logSys.warning("Unable to find a corresponding IP address for %s: %s", dns, saveerr) diff --git a/security/py-fail2ban/pkg-message b/security/py-fail2ban/pkg-message index eecbccaa5adc..ab76e01a530d 100644 --- a/security/py-fail2ban/pkg-message +++ b/security/py-fail2ban/pkg-message @@ -1,16 +1,20 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Please do not edit the fail2ban.conf and jail.conf files as they -will be overwritten upon each upgrade of the port. - -Instead, create new files named fail2ban.local and jail.local +Please do not edit the fail2ban.conf, jail.conf, or any other +files in the distributen as they will be overwritten upon each +upgrade of the port. Instead, create new files named *.local e.g. +fail2ban.local or jail.local. For more information, see the official manual: - http://www.fail2ban.org/wiki/index.php/MANUAL_0_8#Configuration -If you are upgrading from 0.8.x consider adopting the new -configuration style. +If you have custom filters or actions and you are upgrading from +0.9.x please check them. + +Users of pf: please note that instead of +action = pf +you hae to write someting like +action = pf[port={80 443}, name=http] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |