summaryrefslogtreecommitdiff
path: root/benchmarks/autobench/Makefile
blob: 7d640fe1691b485d821e17c580d5db6cd713957b (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
# Created by: ijliao
# $FreeBSD$

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

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

LICENSE=	GPLv2+
LICENSE_FILE=	${WRKSRC}/LICENCE

RUN_DEPENDS=	httperf:benchmarks/httperf \
		gawk:lang/gawk \
		gnuplot:math/gnuplot

USES=		gmake perl5 shebangfix
MAKE_ARGS=	CC="${CC}" CFLAGS="${CFLAGS}" DEBUG_FLAGS= \
		PREFIX=${PREFIX}
SHEBANG_FILES= 	autobench_admin autobenchd autobench

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

.include <bsd.port.mk>