View | Details | Raw Unified | Return to bug 227577
Collapse All | Expand All

(-)Makefile (+1 lines)
Lines 2-7 Link Here
2
2
3
PORTNAME=	fail2ban
3
PORTNAME=	fail2ban
4
PORTVERSION=	0.10.3.1
4
PORTVERSION=	0.10.3.1
5
PORTREVISION=   1
5
CATEGORIES=	security python
6
CATEGORIES=	security python
6
PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
7
PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
7
8
(-)files/patch-config_action.d_hostsdeny.conf (+30 lines)
Line 0 Link Here
1
--- config/action.d/hostsdeny.conf.orig	2018-04-18 16:05:22.844045000 +0200
2
+++ config/action.d/hostsdeny.conf	2018-04-18 16:06:30.930069000 +0200
3
@@ -31,7 +31,7 @@
4
 # Tags:    See jail.conf(5) man page
5
 # Values:  CMD
6
 #
7
-actionban = printf %%b "<daemon_list>: <_ip_value>\n" >> <file>
8
+actionban = printf %%b "<daemon_list>: <ip_value>\n" >> <file>
9
 
10
 # Option:  actionunban
11
 # Notes.:  command executed when unbanning an IP. Take care that the
12
@@ -39,7 +39,7 @@
13
 # Tags:    See jail.conf(5) man page
14
 # Values:  CMD
15
 #
16
-actionunban = IP=$(echo "<_ip_value>" | sed 's/[][\.]/\\\0/g') && sed -i "/^<daemon_list>: $IP$/d" <file>
17
+actionunban = IP=$(echo "<ip_value>" | /usr/bin/sed 's/\([][\.]\)/\\\1/g') && /usr/bin/sed -i "" "/^<daemon_list>: $IP$/d" <file>
18
 
19
 [Init]
20
 
21
@@ -56,7 +56,7 @@
22
 daemon_list = ALL
23
 
24
 # internal variable IP (to differentiate the IPv4 and IPv6 syntax, where it is enclosed in brackets):
25
-_ip_value = <ip>
26
+ip_value = <ip>
27
 
28
 [Init?family=inet6]
29
-_ip_value = [<ip>]
30
+ip_value = [<ip>]

Return to bug 227577