From owner-freebsd-ports@FreeBSD.ORG Sat Sep 13 00:27:07 2014 Return-Path: Delivered-To: ports@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 3FDB88D6 for ; Sat, 13 Sep 2014 00:27:07 +0000 (UTC) Received: from sr-gw.esc.net.au (staffmail.esc.net.au [210.8.168.2]) by mx1.freebsd.org (Postfix) with ESMTP id 85254F07 for ; Sat, 13 Sep 2014 00:27:04 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by sr-gw.esc.net.au (Postfix) with ESMTP id B486861C333; Sat, 13 Sep 2014 09:39:16 +0930 (CST) Received: from sr-gw.esc.net.au ([127.0.0.1]) by localhost (sr-gw.esc.net.au [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ASoilpdqbhW3; Sat, 13 Sep 2014 09:39:07 +0930 (CST) Received: from stavrosPC (server159.esc.net.au [10.0.0.159]) by sr-gw.esc.net.au (Postfix) with ESMTP id 6FD7C61C2F4; Sat, 13 Sep 2014 09:39:07 +0930 (CST) From: "Stavros Patiniotis" To: Subject: FreeBSD Port: py27-fail2ban-0.9.0_2 Date: Sat, 13 Sep 2014 09:38:59 +0930 Message-ID: <0c4801cfcee6$eaaa1a10$bffe4e30$@staff.esc.net.au> MIME-Version: 1.0 X-Mailer: Microsoft Outlook 14.0 Thread-Index: Ac/O5gL+RwToU5E6SEyQUaEPrQNvyA== Content-Language: en-au Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.18-1 Cc: ports@FreeBSD.org X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 13 Sep 2014 00:27:07 -0000 Hello, I've been trying to work out why logging via syslog does not function and found that fail2ban has a hard coded socket for the syslog daemon which is not BSD compatible. Here is a patch to resolve, otherwise pass it upstream to have the project make it a configuration directive. stavros@escdev:/home/stavros# diff -a -b /usr/local/lib/python2.7/site-packages/fail2ban/server/server.py /tmp/server.py 371c371 < hdlr = logging.handlers.SysLogHandler("/dev/log", facility=facility) --- > hdlr = logging.handlers.SysLogHandler("/var/run/log", facility=facility) Stavros Patiniotis Managing Director Escapenet national 1300 135 235 phone 8292 5200 fax 1300 136 296 web www.esc.net.au sales sales@staff.esc.net.au support support@staff.esc.net.au accounts accounts@staff.esc.net.au Permitted use & confidentiality terms covering the contents of this email are located at http://www.esc.net.au/terms/Email-v1.0.pdf