mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 14:54:29 +01:00
915a8aac33
ossec: convert to pname + version; cleanup
39 lines
673 B
Nix
39 lines
673 B
Nix
{ lib, stdenv, fetchurl, which }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "ossec-client";
|
|
version = "2.6";
|
|
|
|
src = fetchurl {
|
|
url = "https://www.ossec.net/files/ossec-hids-${version}.tar.gz";
|
|
sha256 = "0k1b59wdv9h50gbyy88qw3cnpdm8hv0nrl0znm92h9a11i5b39ip";
|
|
};
|
|
|
|
buildInputs = [ which ];
|
|
|
|
patches = [ ./no-root.patch ];
|
|
|
|
buildPhase = ''
|
|
echo "en
|
|
|
|
agent
|
|
$out
|
|
no
|
|
127.0.0.1
|
|
yes
|
|
yes
|
|
yes
|
|
|
|
|
|
" | ./install.sh
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Open source host-based instrusion detection system";
|
|
homepage = "https://www.ossec.net";
|
|
license = licenses.gpl2;
|
|
maintainers = with maintainers; [ ];
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|
|
|