blob: ae7fdf145d7222efeff57f08f307d166472f4c38 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
# Created by: Jon Nistor <nistor@snickers.org>
# $FreeBSD$
PORTNAME= bmon
PORTVERSION= 2.1.0
PORTREVISION= 4
CATEGORIES= net
MASTER_SITES= http://people.suug.ch/~tgr/bmon/files/
MAINTAINER= nistor@snickers.org
COMMENT= Portable bandwidth monitor and rate estimator
OPTIONS_DEFINE= DBI RRDTOOL
OPTIONS_DEFAULT= DBI
DBI_DESC= LibDBI output module for rsyslog
RRDTOOL_DESC= Usage graphs support
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
GNU_CONFIGURE= YES
CONFIGURE_ARGS= --disable-asound
USE_GMAKE= YES
MAKEFILE= GNUmakefile
MAN1= bmon.1
PLIST_FILES= sbin/bmon
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MRRDTOOL}
BUILD_DEPENDS= rrdtool:${PORTSDIR}/databases/rrdtool
.else
CONFIGURE_ARGS+=--disable-rrd
.endif
.if ${PORT_OPTIONS:MDBI}
LIB_DEPENDS= dbi.1:${PORTSDIR}/databases/libdbi
.else
CONFIGURE_ARGS+=--disable-dbi
.endif
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/src/bmon ${PREFIX}/sbin
${INSTALL_MAN} ${WRKSRC}/man/bmon.1 ${PREFIX}/man/man1/bmon.1
.include <bsd.port.mk>
|