Merge pull request #131401 from SuperSandro2000/fail2ban
fail2ban: cleanup
This commit is contained in:
commit
6df6003859
|
@ -1,10 +1,9 @@
|
|||
{ lib, stdenv, fetchFromGitHub, python3 }:
|
||||
|
||||
let version = "0.11.2"; in
|
||||
|
||||
python3.pkgs.buildPythonApplication {
|
||||
python3.pkgs.buildPythonApplication rec {
|
||||
pname = "fail2ban";
|
||||
inherit version;
|
||||
version = "0.11.2";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "fail2ban";
|
||||
|
@ -42,11 +41,13 @@ python3.pkgs.buildPythonApplication {
|
|||
${stdenv.shell} ./fail2ban-2to3
|
||||
'';
|
||||
|
||||
postInstall = let
|
||||
postInstall =
|
||||
let
|
||||
sitePackages = "$out/${python3.sitePackages}";
|
||||
in ''
|
||||
in
|
||||
''
|
||||
# see https://github.com/NixOS/nixpkgs/issues/4968
|
||||
rm -rf ${sitePackages}/etc ${sitePackages}/usr ${sitePackages}/var;
|
||||
rm -r ${sitePackages}/etc ${sitePackages}/usr
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
|
@ -54,6 +55,6 @@ python3.pkgs.buildPythonApplication {
|
|||
description = "A program that scans log files for repeated failing login attempts and bans IP addresses";
|
||||
license = licenses.gpl2Plus;
|
||||
maintainers = with maintainers; [ eelco lovek323 fpletz ];
|
||||
platforms = platforms.linux ++ platforms.darwin;
|
||||
platforms = platforms.unix;
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue