Ntop

From Genunix

ntop - A network traffic usage monitor

Contents

Rating

3 points (out of 4)

Rating scheme: 4 points means the source builds seamlessly on Solaris Express (OpenSolaris). Points are subtracted as follows:

  • Minus 1 if the source doesn't come with an automated way to localize the build (e.g. configure)
  • Minus 1 if the source won't compile with Sun's cc (this usually means the code is gcc-centric)
  • Minus 1 if a minor patch is required, or
  • Minus 2 if a major patch(es) is required

How to build ntop-3.2.tgz on Solaris Express

Build Environment (platform, compiler, tools, PATH, ld)

Configure and compile steps (on x86 hardware)

/usr/bin/gzip -dc ntop-3.2.tgz | /usr/sfw/bin/gtar xf -

cd ntop-3.2


# This source is gcc-centric, therefore...
export CC=/usr/sfw/bin/gcc
# export CFLAGS="%optflags"
export CFLAGS="-O4 -fPIC -DPIC -Xlinker -i -fno-omit-frame-pointers"

export LDFLAGS="-Wl,-zignore -Wl,-zcombreloc -Wl,-Bdirect -lsocket -lnsl"

./configure --prefix=/usr  \
            --mandir=/usr/share/man \
            --localstatedir=/var \
            --sysconfdir=/etc

make

Other configure options

output of ./configure --help

Directory paths that ntop installs to

etc/ntop
bin
lib
lib/ntop/plugins
share/man/man8
share/ntop/html
share/ntop/html/statsicons/flags
share/ntop/html/statsicons/os

Other 3rd party software ntop requires

BuildRequires: gawk
BuildRequires: gd
BuildRequires: gdbm
BuildRequires: libpcap
Requires: gd
Requires: gdbm
Requires: libpcap