summaryrefslogtreecommitdiff
path: root/net/bmon
diff options
context:
space:
mode:
authorminskim <minskim@pkgsrc.org>2004-11-07 18:49:13 +0000
committerminskim <minskim@pkgsrc.org>2004-11-07 18:49:13 +0000
commitfb1195f5322b9633d583c954d3c8fc182569711b (patch)
tree3d3d71cfa6547df3f7871f2ee1ec031c5dcce246 /net/bmon
parent4a9fc07bf1f86d84e3a3a14b551ec48213cda31a (diff)
downloadpkgsrc-fb1195f5322b9633d583c954d3c8fc182569711b.tar.gz
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 (limited to 'net/bmon')
-rw-r--r--net/bmon/DESCR7
-rw-r--r--net/bmon/Makefile40
-rw-r--r--net/bmon/PLIST5
-rw-r--r--net/bmon/distinfo5
-rw-r--r--net/bmon/patches/patch-aa38
5 files changed, 95 insertions, 0 deletions
diff --git a/net/bmon/DESCR b/net/bmon/DESCR
new file mode 100644
index 00000000000..0624976d396
--- /dev/null
+++ b/net/bmon/DESCR
@@ -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 --git a/net/bmon/Makefile b/net/bmon/Makefile
new file mode 100644
index 00000000000..c4aa3f948ca
--- /dev/null
+++ b/net/bmon/Makefile
@@ -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
+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 --git a/net/bmon/PLIST b/net/bmon/PLIST
new file mode 100644
index 00000000000..1c66842547d
--- /dev/null
+++ b/net/bmon/PLIST
@@ -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 --git a/net/bmon/distinfo b/net/bmon/distinfo
new file mode 100644
index 00000000000..129f11d6149
--- /dev/null
+++ b/net/bmon/distinfo
@@ -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 --git a/net/bmon/patches/patch-aa b/net/bmon/patches/patch-aa
new file mode 100644
index 00000000000..3cdf3859a6c
--- /dev/null
+++ b/net/bmon/patches/patch-aa
@@ -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