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