2021-01-15 09:19:50 +00:00
|
|
|
{ lib, stdenv, fetchurl, which }:
|
2012-07-09 16:44:44 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "ossec-client-2.6";
|
|
|
|
|
|
|
|
src = fetchurl {
|
2020-04-01 02:11:51 +01:00
|
|
|
url = "https://www.ossec.net/files/ossec-hids-2.6.tar.gz";
|
2012-07-09 16:44:44 +01:00
|
|
|
|
|
|
|
sha256 = "0k1b59wdv9h50gbyy88qw3cnpdm8hv0nrl0znm92h9a11i5b39ip";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ which ];
|
|
|
|
|
|
|
|
phases = [ "unpackPhase" "patchPhase" "buildPhase" ];
|
|
|
|
|
|
|
|
patches = [ ./no-root.patch ];
|
|
|
|
|
|
|
|
buildPhase = ''
|
|
|
|
echo "en
|
|
|
|
|
|
|
|
agent
|
|
|
|
$out
|
|
|
|
no
|
|
|
|
127.0.0.1
|
|
|
|
yes
|
|
|
|
yes
|
|
|
|
yes
|
|
|
|
|
|
|
|
|
|
|
|
" | ./install.sh
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
2019-11-16 00:41:23 +00:00
|
|
|
description = "Open source host-based instrusion detection system";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://www.ossec.net";
|
2021-01-15 09:19:50 +00:00
|
|
|
license = lib.licenses.gpl2;
|
|
|
|
platforms = lib.platforms.linux;
|
2012-07-09 16:44:44 +01:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|