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

(-)Makefile (+1 lines)
Lines 2-7 Link Here
2
2
3
PORTNAME=	fail2ban
3
PORTNAME=	fail2ban
4
PORTVERSION=	0.11.1
4
PORTVERSION=	0.11.1
5
PORTREVISION=   1
5
CATEGORIES=	security python
6
CATEGORIES=	security python
6
PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
7
PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
7
8
(-)files/fail2ban.in (+9 lines)
Lines 7-18 Link Here
7
# Add the following lines to /etc/rc.conf to enable fail2ban:
7
# Add the following lines to /etc/rc.conf to enable fail2ban:
8
# fail2ban_enable="YES"
8
# fail2ban_enable="YES"
9
# fail2ban_flags="<set as needed>"
9
# fail2ban_flags="<set as needed>"
10
# fail2ban_pidfile="<same as in fail2ban.local>"
10
11
12
# Make sure pidfile and socket point to the same directory
13
11
. /etc/rc.subr
14
. /etc/rc.subr
12
15
13
name="fail2ban"
16
name="fail2ban"
14
rcvar=fail2ban_enable
17
rcvar=fail2ban_enable
15
18
19
start_precmd="fail2ban_prestart"
16
command="%%PREFIX%%/bin/fail2ban-server"
20
command="%%PREFIX%%/bin/fail2ban-server"
17
command_interpreter="%%PYTHON_CMD%%"
21
command_interpreter="%%PYTHON_CMD%%"
18
client="%%PREFIX%%/bin/fail2ban-client"
22
client="%%PREFIX%%/bin/fail2ban-client"
Lines 19-24 Link Here
19
23
20
extra_commands="reload jailstatus"
24
extra_commands="reload jailstatus"
21
25
26
fail2ban_prestart()
27
{
28
   install -d -m 0755 "$(dirname ${pidfile})"
29
}
30
22
load_rc_config ${name}
31
load_rc_config ${name}
23
32
24
#
33
#

Return to bug 244092