summary refs log tree commit diff
path: root/pkgs/tools/security/ossec/default.nix
blob: df5bffe3dfba29dd1a6369601be450f946d37f89 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
{ stdenv, fetchurl, which }:

stdenv.mkDerivation {
  name = "ossec-client-2.6";

  src = fetchurl {
    url = http://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 soruce host-based instrusion detection system";
    homepage = http://www.ossec.net;
    license = stdenv.lib.licenses.gpl2;
  };
}