2003-02-22 17:56:35 +01:00
|
|
|
# New ports collection makefile for: bmon
|
|
|
|
# Date created: 21 Feb 2003
|
|
|
|
# Whom: Jon Nistor <nistor@snickers.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= bmon
|
2005-10-08 16:35:37 +02:00
|
|
|
PORTVERSION= 2.1.0
|
2011-03-07 15:39:50 +01:00
|
|
|
PORTREVISION= 3
|
2003-02-22 17:56:35 +01:00
|
|
|
CATEGORIES= net
|
2004-12-02 13:43:44 +01:00
|
|
|
MASTER_SITES= http://people.suug.ch/~tgr/bmon/files/
|
2003-02-22 17:56:35 +01:00
|
|
|
|
|
|
|
MAINTAINER= nistor@snickers.org
|
2005-10-08 16:35:37 +02:00
|
|
|
COMMENT= Portable bandwidth monitor and rate estimator
|
2003-02-22 17:56:35 +01:00
|
|
|
|
2008-05-04 19:44:50 +02:00
|
|
|
OPTIONS= RRDTOOL "Enable RRD support" Off \
|
|
|
|
DBI "Enable DBI support" On
|
2008-04-10 00:12:18 +02:00
|
|
|
|
2008-05-04 19:44:50 +02:00
|
|
|
CONFIGURE_ENV+= "LDFLAGS=-L${LOCALBASE}/lib" "CPPFLAGS=-I${LOCALBASE}/include"
|
2003-02-22 17:56:35 +01:00
|
|
|
GNU_CONFIGURE= YES
|
|
|
|
USE_GMAKE= YES
|
2004-12-02 13:43:44 +01:00
|
|
|
MAKEFILE= GNUmakefile
|
2003-02-22 17:56:35 +01:00
|
|
|
|
|
|
|
MAN1= bmon.1
|
2004-02-06 14:12:53 +01:00
|
|
|
PLIST_FILES= sbin/bmon
|
2003-02-22 17:56:35 +01:00
|
|
|
|
2008-05-04 19:44:50 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if defined(WITH_RRDTOOL)
|
|
|
|
BUILD_DEPENDS= rrdtool:${PORTSDIR}/databases/rrdtool
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_DBI)
|
2011-03-07 15:39:50 +01:00
|
|
|
LIB_DEPENDS= dbi.1:${PORTSDIR}/databases/libdbi
|
2008-05-04 19:44:50 +02:00
|
|
|
.endif
|
|
|
|
|
2003-02-22 17:56:35 +01:00
|
|
|
do-install:
|
2004-12-02 13:43:44 +01:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/src/bmon ${PREFIX}/sbin
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/man/bmon.1 ${PREFIX}/man/man1/bmon.1
|
2003-02-22 17:56:35 +01:00
|
|
|
|
2008-05-04 19:44:50 +02:00
|
|
|
.include <bsd.port.post.mk>
|