fail2ban: systemd support

- upgrade fail2ban to 0.9
- override systemd to enable python support and include sqlite3 module
- make fail2ban enablable
This commit is contained in:
Joel Taylor
2014-08-08 00:10:19 +02:00
committed by Rok Garbas
parent b18d0eee05
commit d8cca3d624
3 changed files with 20 additions and 11 deletions
+4 -4
View File
@@ -1,6 +1,6 @@
{ stdenv, fetchurl, pythonPackages, unzip, gamin }:
{ stdenv, fetchurl, python, pythonPackages, unzip, systemd, gamin }:
let version = "0.8.13"; in
let version = "0.9"; in
pythonPackages.buildPythonPackage {
name = "fail2ban-${version}";
@@ -9,12 +9,12 @@ pythonPackages.buildPythonPackage {
src = fetchurl {
url = "https://github.com/fail2ban/fail2ban/zipball/${version}";
name = "fail2ban-${version}.zip";
sha256 = "0c63i5jsn2n6hv6fb6q922ksxfpppah9415vpydiv0vpf23pq0cb";
sha256 = "0dawl0vvdvpnkg1hc4l0c8sj8ikcr2l48d6khfx0174nq8yfcg93";
};
buildInputs = [ unzip ];
pythonPath = [ gamin ];
pythonPath = [ systemd python.modules.sqlite3 gamin ];
preConfigure = ''
substituteInPlace setup.cfg \