FreeBSD Bugzilla – Attachment 147301 Details for
Bug 193621
fail2ban doesn't use syslog correctly-patch attached
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
patch for syslog socket and missing /var/run/fail2ban
py-fail2ban.diff.txt (text/plain), 1.81 KB, created by
theis
on 2014-09-14 09:24:01 UTC
(
hide
)
Description:
patch for syslog socket and missing /var/run/fail2ban
Filename:
MIME Type:
Creator:
theis
Created:
2014-09-14 09:24:01 UTC
Size:
1.81 KB
patch
obsolete
>Index: Makefile >=================================================================== >--- Makefile (revision 368119) >+++ Makefile (working copy) >@@ -2,7 +2,7 @@ > > PORTNAME= fail2ban > PORTVERSION= 0.9.0 >-PORTREVISION= 2 >+PORTREVISION= 3 > CATEGORIES= security python > PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} > >@@ -45,6 +45,7 @@ > ${WRKSRC}/config/jail.conf > @${REINPLACE_CMD} -e 's,/var/lib/fail2ban/fail2ban.sqlite3,${FAIL2BAN_DBDIR}/fail2ban.sqlite3,g' \ > ${WRKSRC}/config/fail2ban.conf >+ @${REINPLACE_CMD} -e 's,"/dev/log","/var/run/log",g' ${WRKSRC}/fail2ban/server/server.py > > post-install: > @${MKDIR} ${STAGEDIR}${FAIL2BAN_DBDIR} ${STAGEDIR}/var/run/fail2ban >Index: files/fail2ban.in >=================================================================== >--- files/fail2ban.in (revision 368119) >+++ files/fail2ban.in (working copy) >@@ -25,9 +25,19 @@ > > load_rc_config ${name} > >+start_precmd="start_precmd" >+ > start_cmd="${client} ${fail2ban_flags} start" > stop_cmd="${client} ${fail2ban_flags} stop" > reload_cmd="${client} ${fail2ban_flags} reload" > jailstatus_cmd="${client} ${fail2ban_flags} status" > >+start_precmd() >+{ >+ # Create /var/run/fail2ban here because >+ # /var/run may be destroyed at any time >+ mkdir -p /var/run/fail2ban >+ >+} >+ > run_rc_command "$1" >Index: pkg-plist >=================================================================== >--- pkg-plist (revision 368119) >+++ pkg-plist (working copy) >@@ -205,7 +205,6 @@ > man/man1/fail2ban.1.gz > man/man5/fail2ban-jail.conf.5.gz > /var/db/fail2ban/.keep_me >-/var/run/fail2ban/.keep_me > @dirrm %%PYTHON_SITELIBDIR%%/fail2ban/tests > @dirrm %%PYTHON_SITELIBDIR%%/fail2ban/server > @dirrm %%PYTHON_SITELIBDIR%%/fail2ban/client >@@ -215,5 +214,4 @@ > @dirrmtry %%ETCDIR%%/fail2ban.d > @dirrmtry %%ETCDIR%%/action.d > @dirrmtry %%ETCDIR%% >-@dirrmtry /var/run/fail2ban > @dirrmtry /var/db/fail2ban
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 193621
:
147288
| 147301 |
147320
Working