* Enable GD support in Nagios.

svn path=/nixpkgs/branches/stdenv-updates/; revision=9882
This commit is contained in:
Yury G. Kudryashov 2007-12-08 01:07:38 +00:00
parent 0e7e524cf3
commit f1f5b31c0c
2 changed files with 6 additions and 3 deletions

View File

@ -1,4 +1,6 @@
{ stdenv, fetchurl, perl }: { stdenv, fetchurl, perl, gdSupport ? false
, gd ? null, libpng ? null, zlib ? null
}:
stdenv.mkDerivation { stdenv.mkDerivation {
name = "nagios-2.10"; name = "nagios-2.10";
@ -9,7 +11,7 @@ stdenv.mkDerivation {
}; };
patches = [./nagios.patch]; patches = [./nagios.patch];
buildInputs = [perl]; buildInputs = [perl] ++ (if gdSupport then [gd libpng zlib] else []);
buildFlags = "all"; buildFlags = "all";
installTargets = "install install-config"; installTargets = "install install-config";

View File

@ -2746,7 +2746,8 @@ rec {
}; };
nagios = import ../servers/monitoring/nagios { nagios = import ../servers/monitoring/nagios {
inherit fetchurl stdenv perl; inherit fetchurl stdenv perl gd libpng zlib;
gdSupport = true;
}; };
nagiosPluginsOfficial = import ../servers/monitoring/nagios/plugins/official { nagiosPluginsOfficial = import ../servers/monitoring/nagios/plugins/official {