2014-06-22 05:35:09 +01:00
|
|
|
{ stdenv, fetchurl, perl, php, gd, libpng, zlib }:
|
2006-12-28 00:48:06 +00:00
|
|
|
|
2014-08-20 07:58:50 +01:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "nagios-${version}";
|
|
|
|
version = "4.0.8";
|
2006-12-28 00:48:06 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2014-08-20 07:58:50 +01:00
|
|
|
url = "mirror://sourceforge/nagios/nagios-4.x/${name}/${name}.tar.gz";
|
|
|
|
sha256 = "0jyad39wa318613awlnpczrrakvjcipz8qp1mdsig1cp1hjqs9lb";
|
2006-12-28 00:48:06 +00:00
|
|
|
};
|
|
|
|
|
2014-06-22 05:35:09 +01:00
|
|
|
patches = [ ./nagios.patch ];
|
|
|
|
buildInputs = [ php perl gd libpng zlib ];
|
|
|
|
|
|
|
|
configureFlags = [ "--localstatedir=/var/lib/nagios" ];
|
2007-01-08 18:55:06 +00:00
|
|
|
buildFlags = "all";
|
2014-06-22 05:35:09 +01: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";
|
2014-06-22 05:35:09 +01:00
|
|
|
homepage = http://www.nagios.org/;
|
|
|
|
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
|
|
|
}
|