2014-06-22 06:35:09 +02:00
|
|
|
{ stdenv, fetchurl, perl, php, gd, libpng, zlib }:
|
2006-12-28 01:48:06 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2014-06-22 06:35:09 +02:00
|
|
|
name = "nagios-4.0.7";
|
2006-12-28 01:48:06 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2014-06-22 06:35:09 +02:00
|
|
|
url = mirror://sourceforge/nagios/nagios-4.x/nagios-4.0.7/nagios-4.0.7.tar.gz;
|
|
|
|
sha256 = "1687qnbsag84r57y9745g2klypacfixd6gkzaj42lmzn0v8y27gg";
|
2006-12-28 01:48:06 +01:00
|
|
|
};
|
|
|
|
|
2014-06-22 06:35:09 +02:00
|
|
|
patches = [ ./nagios.patch ];
|
|
|
|
buildInputs = [ php perl gd libpng zlib ];
|
|
|
|
|
|
|
|
configureFlags = [ "--localstatedir=/var/lib/nagios" ];
|
2007-01-08 19:55:06 +01:00
|
|
|
buildFlags = "all";
|
2014-06-22 06:35:09 +02:00
|
|
|
|
|
|
|
# Do not create /var directories
|
|
|
|
preInstall = ''
|
|
|
|
substituteInPlace Makefile --replace '$(MAKE) install-basic' ""
|
|
|
|
'';
|
2007-01-08 19:55:06 +01:00
|
|
|
installTargets = "install install-config";
|
2007-11-08 19:17:56 +01:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "A host, service and network monitoring program";
|
2014-06-22 06:35:09 +02: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 19:17:56 +01:00
|
|
|
};
|
2006-12-28 01:48:06 +01:00
|
|
|
}
|