Ticket #49026: Portfile-fail2ban.diff
File Portfile-fail2ban.diff, 4.4 KB (added by fclaire@…, 9 years ago) |
---|
-
Portfile
old new 1 1 # -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4 2 # $Id : Portfile 131527 2015-01-13 20:29:09Z cal@macports.org$2 # $Id$ 3 3 4 4 PortSystem 1.0 5 5 PortGroup github 1.0 6 6 PortGroup python 1.0 7 7 8 github.setup fail2ban fail2ban 0.8.10 9 revision 1 8 github.setup fail2ban fail2ban 0.9.3 10 9 categories security python 11 10 license GPL-2+ 12 11 maintainers free.fr:fclaire openmaintainer … … 25 24 26 25 homepage http://www.fail2ban.org/ 27 26 28 checksums rmd160 17f3535a4b92740f5203dfdee874d71d2377e5c9 \ 29 sha256 7bed38372a24e35268d9c9ff5b272f7e88e91074f9bb24d5be5c70196f19e7be 27 distname ${version} 28 29 checksums rmd160 1f1f1b7a504cbade13a3363cc9143d909168f062 \ 30 sha256 146811530b7acf706db6d28068ee60806f6e0c80da14d89b732955a696728c46 30 31 31 32 python.default_version 27 32 33 … … 39 40 python.link_binaries_suffix 40 41 41 42 patchfiles patch-setup.py.diff \ 42 patch-setup.cfg.diff \ 43 patch-fail2ban-client.diff \ 44 patch-fail2ban-regex.diff \ 45 patch-fail2ban-server.diff \ 43 patch-fail2ban-client-configreader.py.diff \ 44 patch-fail2ban-tests-misctestcase.py.diff \ 45 patch-fail2ban-tests-utils.py.diff \ 46 46 patch-config-fail2ban.conf.diff \ 47 47 patch-config-jail.conf.diff \ 48 patch-client-csocket.py.diff \ 49 patch-server-server.py.diff \ 50 patch-server__filterpoll.py-increase-error-threshold.diff 51 # See #46546 for patch-server__filterpoll.py-increase-error-threshold.diff 48 patch-config-paths-common.conf.diff \ 49 patch-config-paths-osx.conf.diff \ 50 patch-config-action.d-osx-afctl.conf.diff \ 51 patch-bin-fail2ban-client.diff \ 52 patch-bin-fail2ban-server.diff \ 53 patch-fail2ban-server-filterpoll.py.diff 52 54 53 55 post-patch { 54 56 reinplace "s|@@PREFIX@@|${prefix}|g" ${worksrcpath}/setup.py \ 55 ${worksrcpath}/setup.cfg \ 56 ${worksrcpath}/fail2ban-client \ 57 ${worksrcpath}/fail2ban-regex \ 58 ${worksrcpath}/fail2ban-server \ 59 ${worksrcpath}/client/csocket.py \ 57 ${worksrcpath}/fail2ban/client/configreader.py \ 58 ${worksrcpath}/fail2ban/tests/misctestcase.py \ 59 ${worksrcpath}/fail2ban/tests/utils.py \ 60 60 ${worksrcpath}/config/fail2ban.conf \ 61 ${worksrcpath}/server/server.py 61 ${worksrcpath}/config/paths-common.conf \ 62 ${worksrcpath}/bin/fail2ban-client \ 63 ${worksrcpath}/bin/fail2ban-server 62 64 } 63 65 64 66 startupitem.create yes 65 startupitem.start " if \[ -r ${f2bsock} &&! -r ${f2bpid} \]; then rm ${f2bsock}; fi; ${f2bbindir}/${name}-client start"67 startupitem.start "export LANG=en_GB.UTF-8; if \[ -r ${f2bsock} -a ! -r ${f2bpid} \]; then rm ${f2bsock}; fi; ${f2bbindir}/${name}-client start" 66 68 startupitem.stop "${f2bbindir}/${name}-client stop" 67 69 68 70 destroot.keepdirs ${destroot}${f2brundir} … … 88 90 } 89 91 } 90 92 93 notes " 94 Next step is to configure fail2ban. 95 Start to read: 96 ${f2bconfdir}/fail2ban.conf 97 ${f2bconfdir}/jail.conf 98 and create your own fail2ban.local and jail.local 99 100 Start/stop fail2ban with: sudo port \[un\]load fail2ban 101 102 More info at ${homepage} 103 " 104 91 105 livecheck.type regexm 92 106 livecheck.url ${homepage}wiki/index.php/Downloads 93 107 livecheck.regex <i>stable</i>.*?>${name}-(\[0-9.\]+)<