2007-11-23 16:44:43 +00:00
|
|
|
{ stdenv, fetchurl, perl, gdSupport ? false
|
|
|
|
, gd ? null, libpng ? null, zlib ? null
|
|
|
|
}:
|
2006-12-28 00:48:06 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2007-11-08 18:17:56 +00:00
|
|
|
name = "nagios-2.10";
|
2006-12-28 00:48:06 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2007-11-08 18:17:56 +00:00
|
|
|
url = mirror://sourceforge/nagios/nagios-2.10.tar.gz;
|
|
|
|
md5 = "8c3a29e138f2ff8c8abbd3dd8a40c4b6";
|
2006-12-28 00:48:06 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
patches = [./nagios.patch];
|
2007-11-23 16:44:43 +00:00
|
|
|
buildInputs = [perl] ++ (if gdSupport then [gd libpng zlib] else []);
|
2007-01-08 18:55:06 +00:00
|
|
|
buildFlags = "all";
|
|
|
|
installTargets = "install install-config";
|
2007-11-08 18:17:56 +00:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "A host, service and network monitoring program";
|
|
|
|
homepage = http://www.nagios.org/;
|
|
|
|
license = "GPL";
|
|
|
|
};
|
2006-12-28 00:48:06 +00:00
|
|
|
}
|