2016-11-28 08:55:17 +00:00
|
|
|
{ stdenv, fetchurl, perl, php, gd, libpng, zlib, unzip }:
|
2006-12-28 00:48:06 +00:00
|
|
|
|
2014-08-20 06:58:50 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "nagios-${version}";
|
2018-02-27 15:55:58 +00:00
|
|
|
version = "4.3.4";
|
2006-12-28 00:48:06 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2014-08-20 06:58:50 +00:00
|
|
|
url = "mirror://sourceforge/nagios/nagios-4.x/${name}/${name}.tar.gz";
|
2018-02-27 15:55:58 +00:00
|
|
|
sha256 = "1wa4m952sb23dqi5w759adimsp21bkhp598rpq9dnhz3v497h2y9";
|
2006-12-28 00:48:06 +00:00
|
|
|
};
|
|
|
|
|
2014-06-22 04:35:09 +00:00
|
|
|
patches = [ ./nagios.patch ];
|
2016-11-28 08:55:17 +00:00
|
|
|
buildInputs = [ php perl gd libpng zlib unzip ];
|
2014-06-22 04:35:09 +00:00
|
|
|
|
|
|
|
configureFlags = [ "--localstatedir=/var/lib/nagios" ];
|
2007-01-08 18:55:06 +00:00
|
|
|
buildFlags = "all";
|
2014-06-22 04:35:09 +00:00
|
|
|
|
|
|
|
# Do not create /var directories
|
|
|
|
preInstall = ''
|
|
|
|
substituteInPlace Makefile --replace '$(MAKE) install-basic' ""
|
|
|
|
'';
|
2007-01-08 18:55:06 +00:00
|
|
|
installTargets = "install install-config";
|
2007-11-08 18:17:56 +00:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "A host, service and network monitoring program";
|
2018-01-05 19:42:46 +00:00
|
|
|
homepage = https://www.nagios.org/;
|
2014-06-22 04:35:09 +00:00
|
|
|
license = stdenv.lib.licenses.gpl2;
|
|
|
|
platforms = stdenv.lib.platforms.linux;
|
|
|
|
maintainers = with stdenv.lib.maintainers; [ thoughtpolice relrod ];
|
2007-11-08 18:17:56 +00:00
|
|
|
};
|
2006-12-28 00:48:06 +00:00
|
|
|
}
|