Ticket #36201: Portfile-fail2ban.diff
File Portfile-fail2ban.diff, 1.2 KB (added by fclaire@…, 12 years ago) |
---|
-
Portfile
old new 6 6 PortGroup python27 1.0 7 7 8 8 github.setup fail2ban fail2ban 0.8.7.1 9 revision 1 9 10 categories security python 10 11 license GPL-2+ 11 12 maintainers free.fr:fclaire openmaintainer … … 28 29 29 30 set f2bconfdir ${prefix}/etc/${name} 30 31 set f2bbindir ${prefix}/bin 32 set f2brundir ${prefix}/var/run/fail2ban 33 set f2bsock ${f2brundir}/fail2ban.sock 34 set f2bpid ${f2brundir}/fail2ban.pid 31 35 32 36 python.link_binaries_suffix 33 37 … … 52 56 } 53 57 54 58 startupitem.create yes 55 startupitem.start " ${f2bbindir}/${name}-client start"59 startupitem.start "if \[ -r ${f2bsock} && ! -r ${f2bpid} \]; then rm ${f2bsock}; fi; ${f2bbindir}/${name}-client start" 56 60 startupitem.stop "${f2bbindir}/${name}-client stop" 57 61 58 destroot.keepdirs ${destroot}${ prefix}/var/run/fail2ban62 destroot.keepdirs ${destroot}${f2brundir} 59 63 60 64 post-destroot { 61 65 # Adding a suffix to config files