Author: viric
Date: Sat Apr 21 15:04:46 2012
New Revision: 33870
URL: https://nixos.org/websvn/nix/?rev=33870&sc=1

Log:
Adding ntop. It runs for me, if using "-P directory".

Added:
   nixpkgs/trunk/pkgs/tools/networking/ntop/
   nixpkgs/trunk/pkgs/tools/networking/ntop/default.nix
Modified:
   nixpkgs/trunk/pkgs/top-level/all-packages.nix

Added: nixpkgs/trunk/pkgs/tools/networking/ntop/default.nix
==============================================================================
--- /dev/null   00:00:00 1970   (empty, because file is newly added)
+++ nixpkgs/trunk/pkgs/tools/networking/ntop/default.nix        Sat Apr 21 
15:04:46 2012        (r33870)
@@ -0,0 +1,29 @@
+{ stdenv, fetchurl, autoconf, automake, libtool, wget, libpcap, gdbm, zlib, 
openssl, rrdtool
+, python, geoip }:
+
+stdenv.mkDerivation rec {
+  name = "ntop-4.1.0";
+
+  src = fetchurl {
+    url = "mirror://sourceforge/ntop/${name}.tar.gz";
+    sha256 = "19440gnswnqwvkbzpay9hzmnfnhbyc2ifpl2jri8dhcyhxima7n7";
+  };
+
+  preConfigure = ''
+    ./autogen.sh
+    cp ${libtool}/share/aclocal/libtool.m4 libtool.m4.in
+  '';
+
+  buildNativeInputs = [ autoconf automake libtool wget libpcap gdbm zlib 
openssl rrdtool
+    python geoip ];
+
+  meta = {
+    description = "Traffic analysis with NetFlow and sFlow support";
+
+    license = "GLPv3+";
+
+    homepage = http://www.ntop.org/products/ntop/;
+
+    platforms = stdenv.lib.platforms.linux;
+  };
+}

Modified: nixpkgs/trunk/pkgs/top-level/all-packages.nix
==============================================================================
--- nixpkgs/trunk/pkgs/top-level/all-packages.nix       Sat Apr 21 04:21:25 
2012        (r33869)
+++ nixpkgs/trunk/pkgs/top-level/all-packages.nix       Sat Apr 21 15:04:46 
2012        (r33870)
@@ -1109,6 +1109,8 @@
   # ntfsprogs are merged into ntfs-3g
   ntfsprogs = pkgs.ntfs3g;
 
+  ntop = callPackage ../tools/networking/ntop { };
+
   ntp = callPackage ../tools/networking/ntp { };
 
   nssmdns = callPackage ../tools/networking/nss-mdns { };
_______________________________________________
nix-commits mailing list
[email protected]
http://lists.science.uu.nl/mailman/listinfo/nix-commits

Reply via email to