fail2ban: fix post setuptools>=58
https://github.com/fail2ban/fail2ban/issues/3098
This commit is contained in:
committed by
Martin Weinelt
parent
46bf3585b5
commit
5c6ac69554
@@ -1,5 +1,7 @@
|
||||
{ lib, stdenv, fetchFromGitHub, python3 }:
|
||||
|
||||
{ lib, stdenv, fetchFromGitHub
|
||||
, python3
|
||||
, fetchpatch
|
||||
}:
|
||||
|
||||
python3.pkgs.buildPythonApplication rec {
|
||||
pname = "fail2ban";
|
||||
@@ -17,7 +19,20 @@ python3.pkgs.buildPythonApplication rec {
|
||||
systemd
|
||||
];
|
||||
|
||||
patches = [
|
||||
(fetchpatch {
|
||||
url = "https://github.com/fail2ban/fail2ban/commit/5ac303df8a171f748330d4c645ccbf1c2c7f3497.patch";
|
||||
sha256 = "sha256-aozQJHwPcJTe/D/PLQzBk1YH3OAP6Qm7wO7cai5CVYI=
|
||||
";
|
||||
})
|
||||
];
|
||||
|
||||
preConfigure = ''
|
||||
# workaround for setuptools 58+
|
||||
# https://github.com/fail2ban/fail2ban/issues/3098
|
||||
patchShebangs fail2ban-2to3
|
||||
./fail2ban-2to3
|
||||
|
||||
for i in config/action.d/sendmail*.conf; do
|
||||
substituteInPlace $i \
|
||||
--replace /usr/sbin/sendmail sendmail \
|
||||
|
||||
Reference in New Issue
Block a user