pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/net/bmon Import bmon from pkgsrc-wip. Packaged by hsa...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/10c0218675cf
branches:  trunk
changeset: 483103:10c0218675cf
user:      minskim <minskim%pkgsrc.org@localhost>
date:      Sun Nov 07 18:49:13 2004 +0000

description:
Import bmon from pkgsrc-wip.  Packaged by hsaliak at gmail dot com, and
slightly modified by me.

Bmon is an interface bandwidth monitor.  It is able to generate and
draw three types of diagrams: The overview diagram which is a list of
all interfaces and their send/receive rates.  A very MRTG like
graphical diagram in ASCII showing the rate over a specific time
period in a bar diagram.  The details diagram which contains all
counters of an interface such as total bytes sent/received, errors,
compressed packets and so on.

diffstat:

 net/bmon/DESCR            |   7 +++++++
 net/bmon/Makefile         |  40 ++++++++++++++++++++++++++++++++++++++++
 net/bmon/PLIST            |   5 +++++
 net/bmon/distinfo         |   5 +++++
 net/bmon/patches/patch-aa |  38 ++++++++++++++++++++++++++++++++++++++
 5 files changed, 95 insertions(+), 0 deletions(-)

diffs (115 lines):

diff -r 632a55c166d0 -r 10c0218675cf net/bmon/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/bmon/DESCR    Sun Nov 07 18:49:13 2004 +0000
@@ -0,0 +1,7 @@
+Bmon is an interface bandwidth monitor.  It is able to generate and
+draw three types of diagrams: The overview diagram which is a list of
+all interfaces and their send/receive rates.  A very MRTG like
+graphical diagram in ASCII showing the rate over a specific time
+period in a bar diagram.  The details diagram which contains all
+counters of an interface such as total bytes sent/received, errors,
+compressed packets and so on.
diff -r 632a55c166d0 -r 10c0218675cf net/bmon/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/bmon/Makefile Sun Nov 07 18:49:13 2004 +0000
@@ -0,0 +1,40 @@
+# $NetBSD: Makefile,v 1.1.1.1 2004/11/07 18:49:13 minskim Exp $
+#
+
+DISTNAME=      bmon-2.0.1
+CATEGORIES=    net
+MASTER_SITES=  http://people.suug.ch/~tgr/bmon/files/
+
+MAINTAINER=    hsaliak%gmail.com@localhost
+HOMEPAGE=      http://people.suug.ch/~tgr/bmon/
+COMMENT=       Bmon is an interface bandwidth monitor
+
+PKG_INSTALLATION_TYPES=        overwrite pkgviews
+
+GNU_CONFIGURE= yes
+MAKEFILE=      GNUmakefile
+USE_BUILDLINK3=        yes
+USE_GNU_TOOLS+=        make
+USE_PKGINSTALL=        YES
+
+# In NetBSD 1.6.x the native curses implementation has problems with bmon.
+# So mark it as incompatible and link bmon against the
+# 3rd party ncurses library in NetBSD 1.6.x.
+INCOMPAT_CURSES= NetBSD-1.6*-*
+
+CONFIGURE_ARGS+=       --sysconfdir=${PKG_SYSCONFDIR}
+
+EGDIR=         ${PREFIX}/share/examples/bmon
+CONF_FILES=    ${EGDIR}/bmon.conf ${PKG_SYSCONFDIR}/bmon.conf
+
+INSTALLATION_DIRS=     bin man/man1
+
+do-install:
+       ${INSTALL_PROGRAM} ${WRKSRC}/src/bmon ${PREFIX}/bin
+       ${INSTALL_MAN} ${WRKSRC}/man/bmon.1 ${PREFIX}/man/man1
+       ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/bmon
+       ${INSTALL_DATA} ${WRKSRC}/etc/bmon.conf \
+               ${PREFIX}/share/examples/bmon/bmon.conf
+
+.include "../../devel/ncurses/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r 632a55c166d0 -r 10c0218675cf net/bmon/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/bmon/PLIST    Sun Nov 07 18:49:13 2004 +0000
@@ -0,0 +1,5 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2004/11/07 18:49:13 minskim Exp $
+bin/bmon
+man/man1/bmon.1
+share/examples/bmon/bmon.conf
+@dirrm share/examples/bmon
diff -r 632a55c166d0 -r 10c0218675cf net/bmon/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/bmon/distinfo Sun Nov 07 18:49:13 2004 +0000
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1.1.1 2004/11/07 18:49:13 minskim Exp $
+
+SHA1 (bmon-2.0.1.tar.gz) = ef6297bbd7a5f9a351e14b2b3e9f45157b136a9c
+Size (bmon-2.0.1.tar.gz) = 110024 bytes
+SHA1 (patch-aa) = 1b737dc493506f374ed8e5732f922225f2c4d8c1
diff -r 632a55c166d0 -r 10c0218675cf net/bmon/patches/patch-aa
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/bmon/patches/patch-aa Sun Nov 07 18:49:13 2004 +0000
@@ -0,0 +1,38 @@
+$NetBSD: patch-aa,v 1.1.1.1 2004/11/07 18:49:13 minskim Exp $
+
+--- configure.orig     2004-11-03 15:45:34.000000000 +0800
++++ configure
+@@ -4359,13 +4359,13 @@ fi
+ fi
+ 
+ 
+-echo "$as_me:$LINENO: checking for redrawwin in -lncurses" >&5
+-echo $ECHO_N "checking for redrawwin in -lncurses... $ECHO_C" >&6
++echo "$as_me:$LINENO: checking for redrawwin in ${LIBCURSES}" >&5
++echo $ECHO_N "checking for redrawwin in ${LIBCURSES}... $ECHO_C" >&6
+ if test "${ac_cv_lib_ncurses_redrawwin+set}" = set; then
+   echo $ECHO_N "(cached) $ECHO_C" >&6
+ else
+   ac_check_lib_save_LIBS=$LIBS
+-LIBS="-lncurses  $LIBS"
++LIBS="$LIBCURSES  $LIBS"
+ cat >conftest.$ac_ext <<_ACEOF
+ /* confdefs.h.  */
+ _ACEOF
+@@ -4432,13 +4432,13 @@ _ACEOF
+ 
+ fi
+ 
+-echo "$as_me:$LINENO: checking for use_default_colors in -lncurses" >&5
+-echo $ECHO_N "checking for use_default_colors in -lncurses... $ECHO_C" >&6
++echo "$as_me:$LINENO: checking for use_default_colors in ${LIBCURSES}" >&5
++echo $ECHO_N "checking for use_default_colors in ${LIBCURSES}... $ECHO_C" >&6
+ if test "${ac_cv_lib_ncurses_use_default_colors+set}" = set; then
+   echo $ECHO_N "(cached) $ECHO_C" >&6
+ else
+   ac_check_lib_save_LIBS=$LIBS
+-LIBS="-lncurses  $LIBS"
++LIBS="$LIBCURSES  $LIBS"
+ cat >conftest.$ac_ext <<_ACEOF
+ /* confdefs.h.  */
+ _ACEOF



Home | Main Index | Thread Index | Old Index