mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-02 01:20:54 +00:00
b3e147ebc8
Add support for RRD, off by default. PR: ports/121650 Submitted by: Mel <mel.xyzzy@rachie.is-a-geek.net> Approved by: garga (mentor), maintainer
43 lines
941 B
Makefile
43 lines
941 B
Makefile
# New ports collection makefile for: bmon
|
|
# Date created: 21 Feb 2003
|
|
# Whom: Jon Nistor <nistor@snickers.org>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= bmon
|
|
PORTVERSION= 2.1.0
|
|
PORTREVISION= 2
|
|
CATEGORIES= net
|
|
MASTER_SITES= http://people.suug.ch/~tgr/bmon/files/
|
|
|
|
MAINTAINER= nistor@snickers.org
|
|
COMMENT= Portable bandwidth monitor and rate estimator
|
|
|
|
OPTIONS= RRDTOOL "Enable RRD support" Off \
|
|
DBI "Enable DBI support" On
|
|
|
|
CONFIGURE_ENV+= "LDFLAGS=-L${LOCALBASE}/lib" "CPPFLAGS=-I${LOCALBASE}/include"
|
|
GNU_CONFIGURE= YES
|
|
USE_GMAKE= YES
|
|
MAKEFILE= GNUmakefile
|
|
|
|
MAN1= bmon.1
|
|
PLIST_FILES= sbin/bmon
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if defined(WITH_RRDTOOL)
|
|
BUILD_DEPENDS= rrdtool:${PORTSDIR}/databases/rrdtool
|
|
.endif
|
|
|
|
.if defined(WITH_DBI)
|
|
LIB_DEPENDS= dbi.0:${PORTSDIR}/databases/libdbi
|
|
.endif
|
|
|
|
do-install:
|
|
${INSTALL_PROGRAM} ${WRKSRC}/src/bmon ${PREFIX}/sbin
|
|
${INSTALL_MAN} ${WRKSRC}/man/bmon.1 ${PREFIX}/man/man1/bmon.1
|
|
|
|
.include <bsd.port.post.mk>
|