mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-29 10:23:29 +00:00
Merge pull request #325602 from pan93412/fail2ban-update
This commit is contained in:
commit
6ffe5e4c1d
@ -5,13 +5,13 @@
|
||||
|
||||
python3.pkgs.buildPythonApplication rec {
|
||||
pname = "fail2ban";
|
||||
version = "1.0.2";
|
||||
version = "1.1.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "fail2ban";
|
||||
repo = "fail2ban";
|
||||
rev = version;
|
||||
hash = "sha256-Zd8zLkFlvXTbeInEkNFyHgcAiOsX4WwF6hf5juSQvbY=";
|
||||
hash = "sha256-0xPNhbu6/p/cbHOr5Y+PXbMbt5q/S13S5100ZZSdylE=";
|
||||
};
|
||||
|
||||
outputs = [ "out" "man" ];
|
||||
@ -22,12 +22,12 @@ python3.pkgs.buildPythonApplication rec {
|
||||
lib.optionals stdenv.isLinux [
|
||||
systemd
|
||||
pyinotify
|
||||
|
||||
# https://github.com/fail2ban/fail2ban/issues/3787, remove it in the next release
|
||||
setuptools
|
||||
];
|
||||
|
||||
preConfigure = ''
|
||||
patchShebangs fail2ban-2to3
|
||||
./fail2ban-2to3
|
||||
|
||||
for i in config/action.d/sendmail*.conf; do
|
||||
substituteInPlace $i \
|
||||
--replace /usr/sbin/sendmail sendmail
|
||||
|
Loading…
Reference in New Issue
Block a user