mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 23:13:19 +00:00
Add Jnettop, a network traffic visualizer.
svn path=/nixpkgs/trunk/; revision=13564
This commit is contained in:
parent
cf6908d2f9
commit
e442925ccd
28
pkgs/tools/networking/jnettop/default.nix
Normal file
28
pkgs/tools/networking/jnettop/default.nix
Normal file
@ -0,0 +1,28 @@
|
||||
{ fetchurl, stdenv, autoconf, libpcap, ncurses, pkgconfig, glib }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "jnettop-0.13.0";
|
||||
|
||||
src = fetchurl {
|
||||
url = "http://jnettop.kubs.info/dist/jnettop-0.13.0.tar.gz";
|
||||
sha256 = "1855np7c4b0bqzhf1l1dyzxb90fpnvrirdisajhci5am6als31z9";
|
||||
};
|
||||
|
||||
buildInputs = [ autoconf libpcap ncurses pkgconfig glib ];
|
||||
|
||||
patches = [ ./no-dns-resolution.patch ];
|
||||
preConfigure = '' autoconf '';
|
||||
|
||||
meta = {
|
||||
description = "Jnettop, a network traffic visualizer";
|
||||
|
||||
longDescription = ''
|
||||
Jnettop is a traffic visualiser, which captures traffic going
|
||||
through the host it is running from and displays streams sorted
|
||||
by bandwidth they use.
|
||||
'';
|
||||
|
||||
homepage = http://jnettop.kubs.info/;
|
||||
license = "GPLv2+";
|
||||
};
|
||||
}
|
13
pkgs/tools/networking/jnettop/no-dns-resolution.patch
Normal file
13
pkgs/tools/networking/jnettop/no-dns-resolution.patch
Normal file
@ -0,0 +1,13 @@
|
||||
When built in a chroot, `configure' fails to resolve `localhost'.
|
||||
Furthermore that test appears to be useless.
|
||||
|
||||
--- jnettop-0.13.0/configure.ac 2006-04-29 15:34:09.000000000 +0200
|
||||
+++ jnettop-0.13.0/configure.ac 2008-12-03 15:11:28.000000000 +0100
|
||||
@@ -63,7 +63,6 @@ AC_NETTOP_CHECK_IN6_ADDR
|
||||
|
||||
LDFLAGS="$LDFLAGS $NSL_LIBS $SOCKET_LIBS"
|
||||
|
||||
-AC_NETTOP_CHECK_WORKING_RESOLVER
|
||||
AC_NETTOP_CHECK_GETHOSTBYADDR_R
|
||||
|
||||
AM_PATH_GLIB_2_0(2.0.1,, AC_MSG_ERROR("glib >= 2.0.1 library required"), gthread)
|
@ -918,6 +918,11 @@ let
|
||||
inherit fetchurl stdenv unzip jre;
|
||||
};
|
||||
|
||||
jnettop = import ../tools/networking/jnettop {
|
||||
inherit fetchurl stdenv autoconf libpcap ncurses pkgconfig;
|
||||
inherit (gnome) glib;
|
||||
};
|
||||
|
||||
jwhois = import ../tools/networking/jwhois {
|
||||
inherit fetchurl stdenv;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user