mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 22:20:51 +00:00
5b6d52b4fb
This update includes many security related fixes. Version 4.2.0 fixes: - CVE-2008-4796 - CVE-2013-4214 Version 4.2.2 fixes: - CVE-2016-9565 Version 4.2.3 fixes: - CVE-2016-8641 See https://www.nagios.org/projects/nagios-core/history/4x/ for full detail changes.
32 lines
935 B
Nix
32 lines
935 B
Nix
{ stdenv, fetchurl, perl, php, gd, libpng, zlib, unzip }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "nagios-${version}";
|
|
version = "4.2.3";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://sourceforge/nagios/nagios-4.x/${name}/${name}.tar.gz";
|
|
sha256 = "0p16sm5pkbzf4py30hwzm38194cl23wfzsvkhk4jkf3p1fq7xvl3";
|
|
};
|
|
|
|
patches = [ ./nagios.patch ];
|
|
buildInputs = [ php perl gd libpng zlib unzip ];
|
|
|
|
configureFlags = [ "--localstatedir=/var/lib/nagios" ];
|
|
buildFlags = "all";
|
|
|
|
# Do not create /var directories
|
|
preInstall = ''
|
|
substituteInPlace Makefile --replace '$(MAKE) install-basic' ""
|
|
'';
|
|
installTargets = "install install-config";
|
|
|
|
meta = {
|
|
description = "A host, service and network monitoring program";
|
|
homepage = http://www.nagios.org/;
|
|
license = stdenv.lib.licenses.gpl2;
|
|
platforms = stdenv.lib.platforms.linux;
|
|
maintainers = with stdenv.lib.maintainers; [ thoughtpolice relrod ];
|
|
};
|
|
}
|