1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-26 15:41:40 +00:00
nixpkgs/pkgs/tools/security/ossec/default.nix
c0bw3b 9367367dfd Treewide: fix URL permanent redirects
Permanent redirects on homepages and/or source URLs
as reported by Repology
2019-11-16 01:41:23 +01:00

41 lines
666 B
Nix

{ 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 = stdenv.lib.licenses.gpl2;
platforms = stdenv.lib.platforms.linux;
};
}