blob: 29b2593b900ec07f8fdf3eb0304f9a7967d58c7c (
plain) (
blame)
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
47
|
# 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= 3
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
CONFIGURE_ARGS= --disable-asound
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
.else
CONFIGURE_ARGS+=--disable-rrd
.endif
.if defined(WITH_DBI)
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.post.mk>
|