freebsd-ports/net-mgmt/bandwidthd/Makefile
Kirill Ponomarev 7e7e9e128d - Update to version 1.1.6
Changes: The buggy sort algorithm has been replaced.
The contents of the log file are loaded back into bandwidthd on
restart, so data is persistent between restarts. Log rotation
has been added.  RecoverCdf has been modified to load large log
files much faster, and to load files from the rotation. A
segmentation fault in DropOldData has been fixed.

PR:		59175
Submitted by:	maintainer
2003-11-11 20:59:54 +00:00

33 lines
795 B
Makefile

# New ports collection makefile for: bandwidthd
# Date created: Sun Nov 2
# Whom: Clement Laforet <sheepkiller@cultdeadsheep.org>
#
# $FreeBSD$
#
PORTNAME= bandwidthd
PORTVERSION= 1.1.6
CATEGORIES= net
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
EXTRACT_SUFX= .tgz
MAINTAINER= sheepkiller@cultdeadsheep.org
COMMENT= Tracks bandwidth usage by IP address
LIB_DEPENDS+= gd.4:${PORTSDIR}/graphics/gd
USE_GMAKE= YES
USE_REINPLACE= YES
CFLAGS+= -DFREEBSD -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
MAKE_ENV+= LDFLAGS="${LDFLAGS}"
post-patch:
@${REINPLACE_CMD} -e 's!localtime(!localtime((time_t *)!' ${WRKSRC}/graph.c
post-install:
@${INSTALL_SCRIPT} ${FILESDIR}/bandwidthd.sh \
${PREFIX}/etc/rc.d/bandwidthd.sh.sample
.include <bsd.port.mk>