# New ports collection makefile for:	bandwidthd
# Date created:				Sun Nov  2
# Whom:					Clement Laforet <sheepkiller@cultdeadsheep.org>
#
# $FreeBSD: ports/net-mgmt/bandwidthd/Makefile,v 1.9 2004/04/14 19:15:33 clement Exp $
#

PORTNAME=	bandwidthd
PORTVERSION=	1.2.1
CATEGORIES=	net-mgmt
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR=	${PORTNAME}
DISTNAME=		${PORTNAME}-${PORTVERSION}b
EXTRACT_SUFX=	.tgz

MAINTAINER=	clement@FreeBSD.org
COMMENT=	Tracks bandwidth usage by IP address

WRKSRC=		${WRKDIR}/${DISTNAME}

LIB_DEPENDS+=	gd.4:${PORTSDIR}/graphics/gd

USE_GMAKE=	YES
USE_ICONV=	YES
USE_REINPLACE=	YES

post-install:
	@${INSTALL_SCRIPT} ${FILESDIR}/bandwidthd.sh \
				${PREFIX}/etc/rc.d/bandwidthd.sh.sample

.include <bsd.port.mk>
