fail2ban 0.11.2
Closes #65656. Signed-off-by: FX Coudert <fxcoudert@gmail.com> Signed-off-by: BrewTestBot <1589480+BrewTestBot@users.noreply.github.com>master
parent
d0174ecb25
commit
5c4752ca9f
|
@ -1,8 +1,8 @@
|
|||
class Fail2ban < Formula
|
||||
desc "Scan log files and ban IPs showing malicious signs"
|
||||
homepage "https://www.fail2ban.org/"
|
||||
url "https://github.com/fail2ban/fail2ban/archive/0.11.1.tar.gz"
|
||||
sha256 "71d2a52b66bb0f87ac3812246bdd3819ec561913cd44afd39130a342f043aa6d"
|
||||
url "https://github.com/fail2ban/fail2ban/archive/0.11.2.tar.gz"
|
||||
sha256 "383108e5f8644cefb288537950923b7520f642e7e114efb843f6e7ea9268b1e0"
|
||||
license "GPL-2.0"
|
||||
|
||||
livecheck do
|
||||
|
@ -19,11 +19,11 @@ class Fail2ban < Formula
|
|||
|
||||
depends_on "help2man" => :build
|
||||
depends_on "sphinx-doc" => :build
|
||||
depends_on "python@3.8"
|
||||
depends_on "python@3.9"
|
||||
|
||||
def install
|
||||
ENV.prepend_create_path "PYTHONPATH", libexec/"lib/python3.8/site-packages"
|
||||
ENV["PYTHON"] = Formula["python@3.8"].opt_bin/"python3"
|
||||
ENV.prepend_create_path "PYTHONPATH", libexec/"lib/python3.9/site-packages"
|
||||
ENV["PYTHON"] = Formula["python@3.9"].opt_bin/"python3"
|
||||
|
||||
rm "setup.cfg"
|
||||
Dir["config/paths-*.conf"].each do |r|
|
||||
|
@ -74,6 +74,7 @@ class Fail2ban < Formula
|
|||
inreplace "setup.py", "if os.path.exists('#{var}/run')", "if True"
|
||||
inreplace "setup.py", "platform_system in ('linux',", "platform_system in ('linux', 'darwin',"
|
||||
|
||||
system "./fail2ban-2to3"
|
||||
system "python3", "setup.py", "install", "--prefix=#{libexec}"
|
||||
|
||||
cd "doc" do
|
||||
|
|
Loading…
Reference in New Issue