mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-28 14:22:50 +03:00
fail2ban: fix build on darwin (close #933)
This commit is contained in:
parent
8d001c1a08
commit
5bfb4a4f30
@ -17,4 +17,15 @@ stdenv.mkDerivation rec {
|
|||||||
configureFlags = "--disable-debug --with-python=${python} CPPFLAGS=-D_GNU_SOURCE";
|
configureFlags = "--disable-debug --with-python=${python} CPPFLAGS=-D_GNU_SOURCE";
|
||||||
|
|
||||||
patches = [ ./deadlock.patch ] ++ map fetchurl (import ./debian-patches.nix);
|
patches = [ ./deadlock.patch ] ++ map fetchurl (import ./debian-patches.nix);
|
||||||
|
|
||||||
|
preBuild = stdenv.lib.optionalString stdenv.isDarwin ''
|
||||||
|
sed -i 's/,--version-script=.*$/\\/' libgamin/Makefile
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = with stdenv.lib; {
|
||||||
|
homepage = https://people.gnome.org/~veillard/gamin/;
|
||||||
|
description = "A file and directory monitoring system";
|
||||||
|
maintainers = with maintainers; [ lovek323 ];
|
||||||
|
platforms = platforms.unix;
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
@ -16,8 +16,7 @@ pythonPackages.buildPythonPackage {
|
|||||||
|
|
||||||
pythonPath = [ gamin ];
|
pythonPath = [ gamin ];
|
||||||
|
|
||||||
preConfigure =
|
preConfigure = ''
|
||||||
''
|
|
||||||
substituteInPlace setup.cfg \
|
substituteInPlace setup.cfg \
|
||||||
--replace /usr $out
|
--replace /usr $out
|
||||||
|
|
||||||
@ -39,15 +38,15 @@ pythonPackages.buildPythonPackage {
|
|||||||
|
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
|
|
||||||
installCommand =
|
installCommand = ''
|
||||||
''
|
|
||||||
python setup.py install --prefix=$out
|
python setup.py install --prefix=$out
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = {
|
meta = with stdenv.lib; {
|
||||||
homepage = http://www.fail2ban.org/;
|
homepage = http://www.fail2ban.org/;
|
||||||
description = "A program that scans log files for repeated failing login attempts and bans IP addresses";
|
description = "A program that scans log files for repeated failing login attempts and bans IP addresses";
|
||||||
license = stdenv.lib.licenses.gpl2Plus;
|
license = licenses.gpl2Plus;
|
||||||
maintainers = [ stdenv.lib.maintainers.eelco ];
|
maintainers = with maintainers; [ eelco lovek323 ];
|
||||||
|
platforms = platforms.unix;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user