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