Date: Fri, 15 Jan 2010 06:18:17 +0100 (CET) From: Krzysztof Stryjek <admin@bsdserwis.com> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/142849: Update of fail2ban port. Message-ID: <20100115051817.116732CA26CB@cmd.bsdserwis.com> Resent-Message-ID: <201001150520.o0F5K1Vg053247@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 142849 >Category: ports >Synopsis: Update of fail2ban port. >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Fri Jan 15 05:20:01 UTC 2010 >Closed-Date: >Last-Modified: >Originator: Krzysztof Stryjek >Release: FreeBSD 7.1-RELEASE amd64 >Organization: private >Environment: System: FreeBSD cmd 7.1-RELEASE FreeBSD 7.1-RELEASE #1: Sun Feb 8 16:35:00 CET 2009 root:/usr/obj/usr/src/sys/OVH amd64 >Description: Python fail2ban is vcery sueful tool. But there is bug with python2.6, so there should be limitations to python version at port Makefile. The fail2ban rc script does not honour fail2ban_flags variable, so there is no possibility to change start behaviour of fail2ban daemon. Adding two lines to rcscript solves the problem. >How-To-Repeat: After install and setting fail2ban_enable at rc.conf file try to start daemon using fail2ban rcscript. There will be python coredump while python2.6 is used. >Fix: After adding this patches: one for Makefile and the second for rcscript you will be albel to start fail2ban server: --- Makefile.orig 2009-08-23 05:13:33.000000000 +0200 +++ Makefile 2010-01-15 05:59:44.000000000 +0100 @@ -19,7 +19,7 @@ USE_BZIP2= yes -USE_PYTHON= yes +USE_PYTHON= 2.3-2.5 USE_PYDISTUTILS= yes USE_RC_SUBR= fail2ban ---------------------------------------------------------------------------- --- files/fail2ban.in.orig 2009-07-16 05:13:16.000000000 +0200 +++ files/fail2ban.in 2010-01-15 06:16:31.000000000 +0100 @@ -23,6 +23,9 @@ extra_commands="reload jailstatus" +# read settings, set defaults +load_rc_config ${name} + start_cmd="${client} ${fail2ban_flags} start" stop_cmd="${client} ${fail2ban_flags} stop" reload_cmd="${client} ${fail2ban_flags} reload" ---------------------------------------------------------------------------- Greetings from Poland -- Krzysztof Stryjek >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20100115051817.116732CA26CB>