at v206 39 lines 620 B view raw
1{ stdenv, fetchurl, which }: 2 3stdenv.mkDerivation { 4 name = "ossec-client-2.6"; 5 6 src = fetchurl { 7 url = http://www.ossec.net/files/ossec-hids-2.6.tar.gz; 8 9 sha256 = "0k1b59wdv9h50gbyy88qw3cnpdm8hv0nrl0znm92h9a11i5b39ip"; 10 }; 11 12 buildInputs = [ which ]; 13 14 phases = [ "unpackPhase" "patchPhase" "buildPhase" ]; 15 16 patches = [ ./no-root.patch ]; 17 18 buildPhase = '' 19 echo "en 20 21agent 22$out 23no 24127.0.0.1 25yes 26yes 27yes 28 29 30" | ./install.sh 31 ''; 32 33 meta = { 34 description = "Open soruce host-based instrusion detection system"; 35 homepage = http://www.ossec.net; 36 license = stdenv.lib.licenses.gpl2; 37 }; 38} 39