depot/third_party/nixpkgs/pkgs/tools/security/ossec/default.nix
Default email a5adf1ddd8 Project import generated by Copybara.
GitOrigin-RevId: b3616bd96400ce0252c241d76fcafb64389defc6
2021-01-15 23:18:51 +01:00

40 lines
661 B
Nix

{ lib, stdenv, fetchurl, which }:
stdenv.mkDerivation {
name = "ossec-client-2.6";
src = fetchurl {
url = "https://www.ossec.net/files/ossec-hids-2.6.tar.gz";
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 = {
description = "Open source host-based instrusion detection system";
homepage = "https://www.ossec.net";
license = lib.licenses.gpl2;
platforms = lib.platforms.linux;
};
}