66ae89bf95
Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/nagios/versions. These checks were done: - built on NixOS - /nix/store/z91fmra6ni1yq0dk5v109m06lw0yxf87-nagios-4.4.0/bin/nagios passed the binary check. - /nix/store/z91fmra6ni1yq0dk5v109m06lw0yxf87-nagios-4.4.0/bin/nagiostats passed the binary check. - Warning: no invocation of /nix/store/z91fmra6ni1yq0dk5v109m06lw0yxf87-nagios-4.4.0/bin/archivejson.cgi had a zero exit code or showed the expected version - Warning: no invocation of /nix/store/z91fmra6ni1yq0dk5v109m06lw0yxf87-nagios-4.4.0/bin/avail.cgi had a zero exit code or showed the expected version - Warning: no invocation of /nix/store/z91fmra6ni1yq0dk5v109m06lw0yxf87-nagios-4.4.0/bin/cmd.cgi had a zero exit code or showed the expected version - Warning: no invocation of /nix/store/z91fmra6ni1yq0dk5v109m06lw0yxf87-nagios-4.4.0/bin/config.cgi had a zero exit code or showed the expected version - Warning: no invocation of /nix/store/z91fmra6ni1yq0dk5v109m06lw0yxf87-nagios-4.4.0/bin/extinfo.cgi had a zero exit code or showed the expected version - Warning: no invocation of /nix/store/z91fmra6ni1yq0dk5v109m06lw0yxf87-nagios-4.4.0/bin/histogram.cgi had a zero exit code or showed the expected version - Warning: no invocation of /nix/store/z91fmra6ni1yq0dk5v109m06lw0yxf87-nagios-4.4.0/bin/history.cgi had a zero exit code or showed the expected version - Warning: no invocation of /nix/store/z91fmra6ni1yq0dk5v109m06lw0yxf87-nagios-4.4.0/bin/notifications.cgi had a zero exit code or showed the expected version - Warning: no invocation of /nix/store/z91fmra6ni1yq0dk5v109m06lw0yxf87-nagios-4.4.0/bin/objectjson.cgi had a zero exit code or showed the expected version - Warning: no invocation of /nix/store/z91fmra6ni1yq0dk5v109m06lw0yxf87-nagios-4.4.0/bin/outages.cgi had a zero exit code or showed the expected version - Warning: no invocation of /nix/store/z91fmra6ni1yq0dk5v109m06lw0yxf87-nagios-4.4.0/bin/showlog.cgi had a zero exit code or showed the expected version - Warning: no invocation of /nix/store/z91fmra6ni1yq0dk5v109m06lw0yxf87-nagios-4.4.0/bin/status.cgi had a zero exit code or showed the expected version - Warning: no invocation of /nix/store/z91fmra6ni1yq0dk5v109m06lw0yxf87-nagios-4.4.0/bin/statusjson.cgi had a zero exit code or showed the expected version - Warning: no invocation of /nix/store/z91fmra6ni1yq0dk5v109m06lw0yxf87-nagios-4.4.0/bin/statusmap.cgi had a zero exit code or showed the expected version - Warning: no invocation of /nix/store/z91fmra6ni1yq0dk5v109m06lw0yxf87-nagios-4.4.0/bin/statuswml.cgi had a zero exit code or showed the expected version - Warning: no invocation of /nix/store/z91fmra6ni1yq0dk5v109m06lw0yxf87-nagios-4.4.0/bin/statuswrl.cgi had a zero exit code or showed the expected version - Warning: no invocation of /nix/store/z91fmra6ni1yq0dk5v109m06lw0yxf87-nagios-4.4.0/bin/summary.cgi had a zero exit code or showed the expected version - Warning: no invocation of /nix/store/z91fmra6ni1yq0dk5v109m06lw0yxf87-nagios-4.4.0/bin/tac.cgi had a zero exit code or showed the expected version - Warning: no invocation of /nix/store/z91fmra6ni1yq0dk5v109m06lw0yxf87-nagios-4.4.0/bin/trends.cgi had a zero exit code or showed the expected version - 2 of 21 passed binary check by having a zero exit code. - 0 of 21 passed binary check by having the new version present in output. - found 4.4.0 with grep in /nix/store/z91fmra6ni1yq0dk5v109m06lw0yxf87-nagios-4.4.0 - directory tree listing: https://gist.github.com/8dd6e454a51a3faf0756a68239207b0c - du listing: https://gist.github.com/3a2aa37f2b390790b9578447b099cc88
32 lines
936 B
Nix
32 lines
936 B
Nix
{ stdenv, fetchurl, perl, php, gd, libpng, zlib, unzip }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "nagios-${version}";
|
|
version = "4.4.0";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://sourceforge/nagios/nagios-4.x/${name}/${name}.tar.gz";
|
|
sha256 = "1ldpyk7jxarp52m5vhmrgrgic251ypfzb91hilc0gbmcq9b0l5k6";
|
|
};
|
|
|
|
patches = [ ./nagios.patch ];
|
|
buildInputs = [ php perl gd libpng zlib unzip ];
|
|
|
|
configureFlags = [ "--localstatedir=/var/lib/nagios" ];
|
|
buildFlags = "all";
|
|
|
|
# Do not create /var directories
|
|
preInstall = ''
|
|
substituteInPlace Makefile --replace '$(MAKE) install-basic' ""
|
|
'';
|
|
installTargets = "install install-config";
|
|
|
|
meta = {
|
|
description = "A host, service and network monitoring program";
|
|
homepage = https://www.nagios.org/;
|
|
license = stdenv.lib.licenses.gpl2;
|
|
platforms = stdenv.lib.platforms.linux;
|
|
maintainers = with stdenv.lib.maintainers; [ thoughtpolice relrod ];
|
|
};
|
|
}
|