From owner-freebsd-ports-bugs@FreeBSD.ORG Tue Nov 27 19:10:01 2012 Return-Path: Delivered-To: freebsd-ports-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 07CE1CB4 for ; Tue, 27 Nov 2012 19:10:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id D08CE8FC14 for ; Tue, 27 Nov 2012 19:10:00 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id qARJA0JR079308 for ; Tue, 27 Nov 2012 19:10:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id qARJA0ES079304; Tue, 27 Nov 2012 19:10:00 GMT (envelope-from gnats) Resent-Date: Tue, 27 Nov 2012 19:10:00 GMT Resent-Message-Id: <201211271910.qARJA0ES079304@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Christoph Theis Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 3B0C8971 for ; Tue, 27 Nov 2012 19:05:38 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22]) by mx1.freebsd.org (Postfix) with ESMTP id 225358FC13 for ; Tue, 27 Nov 2012 19:05:38 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.5/8.14.5) with ESMTP id qARJ5bQ6094424 for ; Tue, 27 Nov 2012 19:05:37 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.5/8.14.5/Submit) id qARJ5b5X094418; Tue, 27 Nov 2012 19:05:37 GMT (envelope-from nobody) Message-Id: <201211271905.qARJ5b5X094418@red.freebsd.org> Date: Tue, 27 Nov 2012 19:05:37 GMT From: Christoph Theis To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: ports/173956: [maintainer-update] fail2ban: minor fixes and enhancements X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Nov 2012 19:10:01 -0000 >Number: 173956 >Category: ports >Synopsis: [maintainer-update] fail2ban: minor fixes and enhancements >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: maintainer-update >Submitter-Id: current-users >Arrival-Date: Tue Nov 27 19:10:00 UTC 2012 >Closed-Date: >Last-Modified: >Originator: Christoph Theis >Release: >Organization: >Environment: >Description: Add some minor fixes and enhancements to current fail2ban: 1) Add a fix for https://github.com/fail2ban/fail2ban/issues/91 (Spurious UTF8 in SYSLOG is not fully fixed) 2) Add a filter for sendmail, the default mailer on FreeBSD 3) Make the ipfw table used in the action bsd-ipfw configurable Many thanks to Andrey Chernov for submittin me the patches The diff was created with svn. I hope it is in the right format. >How-To-Repeat: >Fix: Patch attached with submission follows: Index: Makefile =================================================================== --- Makefile (revision 307858) +++ Makefile (working copy) @@ -3,6 +3,7 @@ PORTNAME= fail2ban PORTVERSION= 0.8.7.1 +PORTREVISION= 1 CATEGORIES= security python MASTER_SITES= https://github.com/${PORTNAME}/${PORTNAME}/tarball/${PORTVERSION}/ PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} Index: files/patch-actions.py =================================================================== --- files/patch-actions.py (revision 0) +++ files/patch-actions.py (working copy) @@ -0,0 +1,5 @@ +--- server/actions.py.orig 2012-11-27 18:16:18.000000000 +0100 ++++ server/actions.py 2012-11-27 18:17:04.000000000 +0100 +@@ -206 +206 @@ +- logSys.warn("[%s] Unban %s" % (self.jail.getName(), aInfo["ip"])) ++ logSys.warn("[%s] Unban %s" % (self.jail.getName(), str(aInfo["ip"]))) Index: files/patch-bsd-ipfw.conf =================================================================== --- files/patch-bsd-ipfw.conf (revision 307858) +++ files/patch-bsd-ipfw.conf (working copy) @@ -1,6 +1,6 @@ ---- /dev/null 2010-01-12 16:33:00.000000000 -0500 -+++ ./config/action.d/bsd-ipfw.conf 2010-01-12 16:26:51.000000000 -0500 -@@ -0,0 +1,65 @@ +--- /dev/null 2012-11-27 18:04:17.000000000 +0100 ++++ config/action.d/bsd-ipfw.conf 2012-11-27 18:06:29.000000000 +0100 +@@ -0,0 +1,72 @@ +# Fail2Ban configuration file +# +# Author: Nick Munger @@ -36,10 +36,11 @@ +# Tags: IP address +# number of failures +#