2013-06-05 08:59:44 +02:00
|
|
|
# Created by: Thomas-Martin Seck <tmseck@netcologne.de>
|
2004-02-23 01:21:00 +01:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= gatling
|
2012-12-10 07:52:30 +01:00
|
|
|
PORTVERSION= 0.13
|
2004-08-12 18:13:10 +02:00
|
|
|
CATEGORIES= www benchmarks ftp ipv6
|
2004-02-23 01:21:00 +01:00
|
|
|
MASTER_SITES= http://dl.fefe.de/
|
|
|
|
|
2013-03-09 19:09:24 +01:00
|
|
|
MAINTAINER= tmseck@FreeBSD.org
|
2004-02-23 01:21:00 +01:00
|
|
|
COMMENT= A high performance webserver with scalability benchmark tools
|
|
|
|
|
2012-12-10 07:52:30 +01:00
|
|
|
BUILD_DEPENDS= libowfat>=0.29:${PORTSDIR}/devel/libowfat
|
2004-02-23 01:21:00 +01:00
|
|
|
|
|
|
|
USE_BZIP2= yes
|
2005-06-10 17:32:11 +02:00
|
|
|
USE_GMAKE= yes
|
2005-02-02 18:37:00 +01:00
|
|
|
USE_OPENSSL= yes
|
2009-05-28 19:21:46 +02:00
|
|
|
USE_RC_SUBR= gatling
|
2004-02-23 01:21:00 +01:00
|
|
|
|
2012-12-10 07:52:30 +01:00
|
|
|
CFLAGS+= -I${LOCALBASE}/include/libowfat -I${OPENSSLINC} -I${LOCALBASE}/include
|
2005-06-10 17:32:11 +02:00
|
|
|
LDFLAGS+= -L${LOCALBASE}/lib -L${OPENSSLLIB}
|
2004-02-23 01:21:00 +01:00
|
|
|
|
2005-06-10 17:32:11 +02:00
|
|
|
MAKEFILE= GNUmakefile
|
2005-02-02 18:37:00 +01:00
|
|
|
|
|
|
|
bin= dl
|
2005-06-10 17:32:11 +02:00
|
|
|
sbin= gatling
|
2004-08-12 18:13:10 +02:00
|
|
|
MAN8= gatling.8
|
2009-05-28 19:21:46 +02:00
|
|
|
PORTDOCS= CHANGES README README.antidos README.cgi README.ftp \
|
|
|
|
README.htaccess \
|
2005-06-10 17:32:11 +02:00
|
|
|
README.http README.performance README.prefetch README.proxy \
|
|
|
|
README.redirect
|
2009-05-28 19:21:46 +02:00
|
|
|
PORTEXAMPLES= run-gatling cgi acc getlinks hcat hitprofile matchiprange \
|
|
|
|
referrer
|
2004-02-23 01:21:00 +01:00
|
|
|
|
2013-06-05 08:59:44 +02:00
|
|
|
OPTIONS_DEFINE= BENCHMARKS SMB TLS ZLIB OPTIMIZED_CFLAGS
|
|
|
|
OPTIONS_DEFAULT= BENCHMARKS SMB TLS ZLIB OPTIMIZED_CFLAGS
|
|
|
|
BENCHMARKS_DESC= Install some benchmark programs
|
|
|
|
TLS_DESC= Build and install tlsgatling
|
|
|
|
ZLIB_DESC= Compress outgoing data
|
2004-02-23 01:21:00 +01:00
|
|
|
|
2013-09-21 01:36:50 +02:00
|
|
|
NO_STAGE= yes
|
2004-02-23 01:21:00 +01:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2013-06-05 08:59:44 +02:00
|
|
|
.if ${PORT_OPTIONS:MBENCHMARKS}
|
2004-02-23 01:21:00 +01:00
|
|
|
PORTDOCS+= README.bindbench README.forkbench README.httpbench \
|
|
|
|
README.manymapbench README.mmapbench
|
|
|
|
bin+= bindbench forkbench forksbench httpbench ioerr manymapbench \
|
|
|
|
mktestdata mmapbench pthreadbench
|
|
|
|
examples+= prep run-bench
|
2009-05-28 19:21:46 +02:00
|
|
|
MAN1+= bench.1
|
2005-06-10 17:32:11 +02:00
|
|
|
MAKE_ENV+= BENCHMARKS=1
|
|
|
|
.endif
|
|
|
|
|
2013-06-05 08:59:44 +02:00
|
|
|
.if ${PORT_OPTIONS:MOPTIMIZED_CFLAGS} && !defined(WITH_DEBUG)
|
2005-06-10 17:32:11 +02:00
|
|
|
CFLAGS+= -O2 -fomit-frame-pointer
|
|
|
|
.endif
|
|
|
|
|
2013-06-05 08:59:44 +02:00
|
|
|
.if ${PORT_OPTIONS:MSMB}
|
2013-04-27 20:25:24 +02:00
|
|
|
USES+= iconv
|
2007-08-28 12:55:06 +02:00
|
|
|
CFLAGS+= -I${LOCALBASE}/include
|
2005-06-10 17:32:11 +02:00
|
|
|
MAKE_ENV+= ICONV=1
|
2009-05-28 19:21:46 +02:00
|
|
|
.else
|
|
|
|
EXTRA_PATCHES+= ${PATCHDIR}/extra-patch-disable_smb
|
2005-06-10 17:32:11 +02:00
|
|
|
.endif
|
|
|
|
|
2013-06-05 08:59:44 +02:00
|
|
|
.if ${PORT_OPTIONS:MTLS}
|
2005-06-10 17:32:11 +02:00
|
|
|
MAKE_ENV+= TLSGATLING=1
|
|
|
|
sbin+= tlsgatling
|
2009-05-28 19:21:46 +02:00
|
|
|
PORTDOCS+= README.tls
|
2005-06-10 17:32:11 +02:00
|
|
|
.endif
|
|
|
|
|
2013-06-05 08:59:44 +02:00
|
|
|
.if ${PORT_OPTIONS:MZLIB}
|
2005-06-10 17:32:11 +02:00
|
|
|
MAKE_ENV+= ZLIB=1
|
2004-02-23 01:21:00 +01:00
|
|
|
.endif
|
|
|
|
|
2013-06-05 08:59:44 +02:00
|
|
|
.if ${PORT_OPTIONS:MDEBUG}
|
2009-05-28 19:21:46 +02:00
|
|
|
MAKE_ENV+= DEBUG=1
|
|
|
|
STRIP=
|
|
|
|
.endif
|
|
|
|
|
2010-04-01 12:12:24 +02:00
|
|
|
.if ${ARCH} == "ia64" || ${ARCH} == "powerpc" || ${ARCH} == "sparc64"
|
|
|
|
BROKEN= Does not compile on ia64, powerpc, or sparc64
|
2009-06-04 02:09:48 +02:00
|
|
|
.endif
|
|
|
|
|
2009-05-28 19:21:46 +02:00
|
|
|
PLIST_FILES= ${bin:S,^,bin/,} ${sbin:S,^,sbin/,} sbin/gatling_wrapper
|
2004-02-23 01:21:00 +01:00
|
|
|
|
2004-08-12 18:13:10 +02:00
|
|
|
pre-install:
|
|
|
|
@cd ${WRKSRC} && ${CP} gatling.1 gatling.8
|
|
|
|
|
2004-02-23 01:21:00 +01:00
|
|
|
do-install:
|
|
|
|
cd ${WRKSRC} && ${INSTALL_PROGRAM} ${bin} ${PREFIX}/bin
|
2005-02-02 18:37:00 +01:00
|
|
|
cd ${WRKSRC} && ${INSTALL_PROGRAM} ${sbin} ${PREFIX}/sbin
|
2009-05-28 19:21:46 +02:00
|
|
|
${INSTALL_SCRIPT} ${FILESDIR}/gatling_wrapper ${PREFIX}/sbin
|
2013-06-05 08:59:44 +02:00
|
|
|
.if ${PORT_OPTIONS:MEXAMPLES}
|
2004-02-23 01:21:00 +01:00
|
|
|
${MKDIR} ${EXAMPLESDIR}
|
2007-08-28 12:55:06 +02:00
|
|
|
cd ${WRKSRC} && ${INSTALL_SCRIPT} ${PORTEXAMPLES} ${EXAMPLESDIR}
|
2009-05-28 19:21:46 +02:00
|
|
|
.endif
|
|
|
|
.if !empty(MAN1)
|
|
|
|
cd ${WRKSRC} && ${INSTALL_MAN} ${MAN1} ${MAN1PREFIX}/man/man1
|
2007-08-28 12:55:06 +02:00
|
|
|
.endif
|
2004-08-12 18:13:10 +02:00
|
|
|
cd ${WRKSRC} && ${INSTALL_MAN} ${MAN8} ${MAN8PREFIX}/man/man8
|
2013-06-05 08:59:44 +02:00
|
|
|
.if ${PORT_OPTIONS:MDOCS}
|
2004-02-23 01:21:00 +01:00
|
|
|
${MKDIR} ${DOCSDIR}
|
|
|
|
cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|