openbsd-ports/net/ttg/Makefile
sthen 173a380270 import ports/net/ttg, ok jasper@
TTG is a small command-line utility to display the throughput (bandwidth
usage) on an interface of a remote device such as a router, switch, etc.,
over SNMP.

Unlike tools like MRTG which sample bandwidth over a relatively long
interval (often 5 minutes), TTG is normally used to display throughput
over as little as one second.
2012-07-16 15:22:05 +00:00

38 lines
754 B
Makefile

# $OpenBSD: Makefile,v 1.1.1.1 2012/07/16 15:22:05 sthen Exp $
COMMENT= live CLI display of interface bandwidth, using SNMP
DISTNAME= ttg-2.0
CATEGORIES= net
HOMEPAGE= http://www.tenox.tc/out/\#ttg
MAINTAINER= Stuart Henderson <sthen@openbsd.org>
# BSD
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
WANTLIB += c netsnmp
# Mirrored from http://www.tenox.tc/out/ttg.c
MASTER_SITES= http://spacehopper.org/mirrors/
LIB_DEPENDS= net/net-snmp
NO_REGRESS= Yes
LDFLAGS= -L${LOCALBASE}/lib -lnetsnmp
do-build:
cd ${WRKSRC}; ${MAKE_PROGRAM} CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="${LDFLAGS}" ttg
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/ttg ${PREFIX}/bin
.include <bsd.port.mk>