# Created by: ijliao
# $FreeBSD: benchmarks/autobench/Makefile 327708 2013-09-20 15:52:44Z bapt $

PORTNAME=	autobench
PORTVERSION=	2.1.2
PORTREVISION=	6
CATEGORIES=	benchmarks www
MASTER_SITES=	http://www.xenoclast.org/autobench/downloads/ \
		http://www.sfr-fresh.com/unix/privat/

MAINTAINER=	sylvio@FreeBSD.org
COMMENT=	Automating the process of benchmarking a web server

RUN_DEPENDS=	httperf:${PORTSDIR}/benchmarks/httperf \
		gawk:${PORTSDIR}/lang/gawk \
		gnuplot:${PORTSDIR}/math/gnuplot

LICENSE=	GPLv2

USES=		gmake perl5
MAKE_ARGS=	CC="${CC}" CFLAGS="${CFLAGS}" DEBUG_FLAGS= \
		PREFIX=${PREFIX}

MAN1=	autobench.1 autobench_admin.1 autobenchd.1 bench2graph.1 \
	crfile.1 sesslog.1

NO_STAGE=	yes
post-patch:
.for file in autobench autobench_admin
	@${REINPLACE_CMD} -i '' -e 's|/etc/|${PREFIX}/etc/|' ${WRKSRC}/${file}
.endfor

.include <bsd.port.mk>
