From cf4318ad4e7f9cdd2289e2cd17a42f6fe3003778 Mon Sep 17 00:00:00 2001 From: Longrin Wischnewski Date: Sat, 6 Dec 2014 09:05:29 +0100 Subject: [PATCH] mrtg: add 2.17.4 - The Multi Router Traffic Grapher - You have a router, you want to know what it does all day long? - Then MRTG is for you. It will monitor SNMP network devices and draw - pretty pictures showing how much traffic has passed through each interface. --- pkgs/tools/misc/mrtg/default.nix | 23 +++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 25 insertions(+) create mode 100644 pkgs/tools/misc/mrtg/default.nix diff --git a/pkgs/tools/misc/mrtg/default.nix b/pkgs/tools/misc/mrtg/default.nix new file mode 100644 index 000000000000..043cbf1edf18 --- /dev/null +++ b/pkgs/tools/misc/mrtg/default.nix @@ -0,0 +1,23 @@ +{ stdenv, fetchurl, perl, gd, rrdtool }: + +stdenv.mkDerivation rec { + + version = "2.17.4"; + name = "mrtg-${version}"; + + src = fetchurl { + url = "http://oss.oetiker.ch/mrtg/pub/${name}.tar.gz"; + sha256 = "0r93ipscfp7py0b1dcx65s58q7dlwndqhprf8w4945a0h2p7zyjy"; + }; + + buildInputs = [ + perl gd rrdtool + ]; + + meta = { + description = "The Multi Router Traffic Grapher"; + homepage = http://oss.oetiker.ch/mrtg/; + license = stdenv.lib.licenses.gpl2; + maintainers = [ stdenv.lib.maintainers.robberer ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 128badfa52b2..65c99ff4c2f0 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -1761,6 +1761,8 @@ let mr = callPackage ../applications/version-management/mr { }; + mrtg = callPackage ../tools/misc/mrtg { }; + mscgen = callPackage ../tools/graphics/mscgen { }; msf = builderDefsPackage (import ../tools/security/metasploit/3.1.nix) {