1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-30 10:38:37 +00:00

Add gatling 0.4, a high performance webserver with scalability benchmark

tools.

PR:		ports/63196
Submitted by:	Thomas-Martin Seck <tmseck@netcologne.de>
This commit is contained in:
Alex Dupre 2004-02-23 00:21:00 +00:00
parent 1716e01c06
commit cd86d94aaf
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=101778
5 changed files with 82 additions and 0 deletions

View File

@ -111,6 +111,7 @@
SUBDIR += galeon
SUBDIR += galeon2
SUBDIR += gallery
SUBDIR += gatling
SUBDIR += geeklog
SUBDIR += gforge
SUBDIR += glibwww

53
www/gatling/Makefile Normal file
View File

@ -0,0 +1,53 @@
# Ports collection Makefile for: gatling
# Date created: Feb 21, 2004
# Whom: Thomas-Martin Seck <tmseck@netcologne.de>
#
# $FreeBSD$
#
PORTNAME= gatling
PORTVERSION= 0.4
CATEGORIES= www benchmarks
MASTER_SITES= http://dl.fefe.de/
MAINTAINER= tmseck@netcologne.de
COMMENT= A high performance webserver with scalability benchmark tools
BUILD_DEPENDS= ${LOCALBASE}/lib/libowfat.a:${PORTSDIR}/devel/libowfat
USE_BZIP2= yes
MAKE_ENV+= LDFLAGS="-L${LOCALBASE}/lib -lowfat" \
PTHREAD_LIBS="${PTHREAD_LIBS}"
bin= dl gatling
examples= run-gatling
examplesdir= ${EXAMPLESDIR:S,^${PREFIX}/,,}
PORTDOCS= CHANGES README README.ftp README.http README.performance \
README.prefetch
OPTIONS= BENCHMARKS "Install system benchmark programs" on
.include <bsd.port.pre.mk>
.if !defined(WITHOUT_BENCHMARKS)
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
.endif
PLIST_DIRS= ${examplesdir}
PLIST_FILES= ${bin:S,^,bin/,} ${examples:S,^,${examplesdir}/,}
do-install:
cd ${WRKSRC} && ${INSTALL_PROGRAM} ${bin} ${PREFIX}/bin
${MKDIR} ${EXAMPLESDIR}
cd ${WRKSRC} && ${INSTALL_SCRIPT} ${examples} ${EXAMPLESDIR}
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}
.endif
.include <bsd.port.post.mk>

2
www/gatling/distinfo Normal file
View File

@ -0,0 +1,2 @@
MD5 (gatling-0.4.tar.bz2) = fcc8dffa24663205c0bb317dee74b22b
SIZE (gatling-0.4.tar.bz2) = 33923

View File

@ -0,0 +1,22 @@
--- Makefile.orig Thu Feb 19 17:22:17 2004
+++ Makefile Mon Feb 23 01:12:25 2004
@@ -6,9 +6,7 @@
all: $(TARGET)
-CC=gcc
-CFLAGS=-pipe -Wall -Os -I../libowfat/
-LDFLAGS=-s -L../libowfat/ -lowfat
+CFLAGS+=-I${LOCALBASE}/include/libowfat
gatling: gatling.o libsocket libiconv
$(CC) -o $@ gatling.o $(LDFLAGS) `cat libsocket libiconv`
@@ -32,7 +30,7 @@
$(CC) -static -o $@ forkbench.o $(LDFLAGS)
pthreadbench: pthreadbench.o
- $(CC) -o $@ pthreadbench.o $(LDFLAGS) -lpthread
+ $(CC) -o $@ pthreadbench.o $(LDFLAGS) $(PTHREAD_LIBS)
mktestdata: mktestdata.o
$(CC) -o $@ mktestdata.o $(LDFLAGS)

4
www/gatling/pkg-descr Normal file
View File

@ -0,0 +1,4 @@
gatling is a high-performance webserver. Some scalability benchmark
tests are included, too.
WWW: http://www.fefe.de/gatling/