summaryrefslogtreecommitdiff
path: root/package/bwm
diff options
context:
space:
mode:
authorwbx <wbx@hydrogenium.(none)>2009-05-17 14:41:34 +0200
committerwbx <wbx@hydrogenium.(none)>2009-05-17 14:41:34 +0200
commit219a6dab8995aad9ac4860cc1a84d6f3509a03a4 (patch)
treeb9c0f3c43aebba2fcfef777592d0add39f2072f4 /package/bwm
Initial import
Diffstat (limited to 'package/bwm')
-rw-r--r--package/bwm/Config.in8
-rw-r--r--package/bwm/Makefile27
-rw-r--r--package/bwm/ipkg/bwm.control4
3 files changed, 39 insertions, 0 deletions
diff --git a/package/bwm/Config.in b/package/bwm/Config.in
new file mode 100644
index 000000000..be25ed48a
--- /dev/null
+++ b/package/bwm/Config.in
@@ -0,0 +1,8 @@
+config ADK_PACKAGE_BWM
+ prompt "bwm............................... A very tiny BandWidth Monitor"
+ tristate
+ default n
+ help
+ Continually displays data transfer rates (received, transmitted, and
+ total) for each interface, measured in KiB/sec. Works by sampling
+ values from /proc/net/dev and calculating deltas.
diff --git a/package/bwm/Makefile b/package/bwm/Makefile
new file mode 100644
index 000000000..9d5fa7df0
--- /dev/null
+++ b/package/bwm/Makefile
@@ -0,0 +1,27 @@
+# $Id$
+#-
+# This file is part of the OpenADK project. OpenADK is copyrighted
+# material, please see the LICENCE file in the top-level directory.
+
+include ${TOPDIR}/rules.mk
+
+PKG_NAME:= bwm
+PKG_VERSION:= 1.1.0
+PKG_RELEASE:= 1
+PKG_MD5SUM:= 51021a036acb92d2bda0c0c0483f9552
+DISTFILES:= ${PKG_NAME}_${PKG_VERSION}.orig.tar.gz
+MASTER_SITES:= http://ftp.debian.org/debian/pool/main/b/bwm/
+WRKDIST= ${WRKDIR}/${PKG_NAME}-${PKG_VERSION}.orig
+
+include ${TOPDIR}/mk/package.mk
+
+$(eval $(call PKG_template,BWM,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${ARCH}))
+
+do-build:
+ ${TARGET_CC} ${TARGET_CFLAGS} ${WRKBUILD}/bwm.c -o ${WRKBUILD}/bwm
+
+do-install:
+ ${INSTALL_DIR} ${IDIR_BWM}/usr/bin
+ ${INSTALL_BIN} ${WRKBUILD}/bwm ${IDIR_BWM}/usr/bin/
+
+include ${TOPDIR}/mk/pkg-bottom.mk
diff --git a/package/bwm/ipkg/bwm.control b/package/bwm/ipkg/bwm.control
new file mode 100644
index 000000000..4851a2deb
--- /dev/null
+++ b/package/bwm/ipkg/bwm.control
@@ -0,0 +1,4 @@
+Package: bwm
+Priority: optional
+Section: net
+Description: A very tiny bandwidth monitor