aboutsummaryrefslogtreecommitdiffstats
path: root/net-mgmt/yabm/Makefile
diff options
context:
space:
mode:
authorpav <pav@FreeBSD.org>2005-02-26 05:01:57 +0800
committerpav <pav@FreeBSD.org>2005-02-26 05:01:57 +0800
commit2fe2ac8b0cda3e06f19af1cde7327bacd43d1f39 (patch)
treea1729ac583d6475605934c86489cefa2749ac19a /net-mgmt/yabm/Makefile
parentf1f8857568da61cb0be0d2d2cbc51a7f0f7712f0 (diff)
downloadfreebsd-ports-gnome-2fe2ac8b0cda3e06f19af1cde7327bacd43d1f39.tar.gz
freebsd-ports-gnome-2fe2ac8b0cda3e06f19af1cde7327bacd43d1f39.tar.zst
freebsd-ports-gnome-2fe2ac8b0cda3e06f19af1cde7327bacd43d1f39.zip
Yet Another Bandwidth Meter displays current bandwidth utilization using the
PNG image format. It somewhat resembles the Linux bwbar (although there is no connection to it). Features include measurement both on interface and assigned IP-address basis, possible to run non-root and non-setuid, quite customizable (colours, geometry, device max speed, etc). It also includes text output to the image. PR: ports/76275 Submitted by: Fredrik Lindberg <fli@shapeshifter.se>
Diffstat (limited to 'net-mgmt/yabm/Makefile')
-rw-r--r--net-mgmt/yabm/Makefile33
1 files changed, 33 insertions, 0 deletions
diff --git a/net-mgmt/yabm/Makefile b/net-mgmt/yabm/Makefile
new file mode 100644
index 000000000000..808af7f7309a
--- /dev/null
+++ b/net-mgmt/yabm/Makefile
@@ -0,0 +1,33 @@
+# New ports collection makefile for: yabm
+# Date created: 15 January 2005
+# Whom: Fredrik Lindberg <fli@shapeshifter.se>
+#
+# $FreeBSD$
+#
+
+PORTNAME= yabm
+PORTVERSION= 0.2
+CATEGORIES= net-mgmt
+MASTER_SITES= http://shapeshifter.se/code/yabm/release/ \
+ http://www2.shapeshifter.se/yabm/release/
+
+MAINTAINER= fli@shapeshifter.se
+COMMENT= Yet Another Bandwidth Meter, somewhat resembles the Linux bwbar
+
+LIB_DEPENDS= png.5:${PORTSDIR}/graphics/png
+
+USE_RC_SUBR= yes
+RC_SCRIPTS_SUB= PREFIX=${PREFIX} RC_SUBR=${RC_SUBR}
+
+SUB_FILES= pkg-message
+PKGMESSAGE= ${WRKDIR}/pkg-message
+
+post-extract:
+ @${SED} ${RC_SCRIPTS_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} \
+ ${WRKSRC}/scripts/yabm.sh.sample > ${WRKSRC}/scripts/yabm.sh
+
+post-install:
+ ${INSTALL_SCRIPT} ${WRKSRC}/scripts/yabm.sh ${PREFIX}/etc/rc.d/yabm.sh
+ @${CAT} ${PKGMESSAGE}
+
+.include <bsd.port.mk>