aboutsummaryrefslogtreecommitdiff
path: root/benchmarks
diff options
context:
space:
mode:
authorYing-Chieh Liao <ijliao@FreeBSD.org>2002-11-20 13:22:13 +0000
committerYing-Chieh Liao <ijliao@FreeBSD.org>2002-11-20 13:22:13 +0000
commitda3815cb3b95d85e686b3adcba7ee34137a512db (patch)
treeeb1f4a0739ee6678cea1e7b19a01237b66cbe4ec /benchmarks
parent2c93990d8522f3adfccd95cde91da286c90fb875 (diff)
downloadports-da3815cb3b95d85e686b3adcba7ee34137a512db.tar.gz
ports-da3815cb3b95d85e686b3adcba7ee34137a512db.zip
Notes
Diffstat (limited to 'benchmarks')
-rw-r--r--benchmarks/httperf/Makefile28
-rw-r--r--benchmarks/httperf/distinfo2
-rw-r--r--benchmarks/httperf/files/patch-Makefile.in10
-rw-r--r--benchmarks/httperf/files/patch-httperf.c13
-rw-r--r--benchmarks/httperf/files/patch-lib::ssl_writev.c13
-rw-r--r--benchmarks/httperf/pkg-plist11
6 files changed, 55 insertions, 22 deletions
diff --git a/benchmarks/httperf/Makefile b/benchmarks/httperf/Makefile
index 5d2e4c71c1d3..ca0e08772c72 100644
--- a/benchmarks/httperf/Makefile
+++ b/benchmarks/httperf/Makefile
@@ -6,28 +6,26 @@
#
PORTNAME= httperf
-PORTVERSION= 0.6
+PORTVERSION= 0.8
CATEGORIES= www
MASTER_SITES= ftp://ftp.hpl.hp.com/pub/httperf/
MAINTAINER= ports@FreeBSD.org
-USE_GMAKE= yes
-MAN1= httperf.1
+USE_OPENSSL= yes
+GNU_CONFIGURE= yes
+CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
+ LDFLAGS="-L${LOCALBASE}/lib -lgnugetopt"
-# there is no "install" target in the Makefile.
-# chmod'ing httperf as it could be exploited by normal users to overload
-# a webserver, instead of for its actual purpose.
+MAN1= httperf.1
-do-install:
- @${INSTALL_PROGRAM} ${WRKSRC}/httperf ${PREFIX}/bin
+post-install:
${CHMOD} 750 ${PREFIX}/bin/httperf
- @${INSTALL_MAN} ${WRKSRC}/httperf.man ${PREFIX}/man/man1/httperf.1
- @${MKDIR} ${PREFIX}/share/doc/httperf
- @${INSTALL_MAN} ${WRKSRC}/README ${PREFIX}/share/doc/httperf
- @${INSTALL_MAN} ${WRKSRC}/COPYRIGHT ${PREFIX}/share/doc/httperf
- @${INSTALL_MAN} ${WRKSRC}/NEWS ${PREFIX}/share/doc/httperf
- @${INSTALL_MAN} ${WRKSRC}/TODO ${PREFIX}/share/doc/httperf
- @${INSTALL_MAN} ${WRKSRC}/ChangeLog ${PREFIX}/share/doc/httperf
+.if !defined(NOPORTDOCS)
+ @${MKDIR} ${DOCSDIR}
+.for file in ChangeLog NEWS README TODO
+ @${INSTALL_MAN} ${WRKSRC}/${file} ${DOCSDIR}
+.endfor
+.endif
.include <bsd.port.mk>
diff --git a/benchmarks/httperf/distinfo b/benchmarks/httperf/distinfo
index 6822e18e34b6..319b5cee0898 100644
--- a/benchmarks/httperf/distinfo
+++ b/benchmarks/httperf/distinfo
@@ -1 +1 @@
-MD5 (httperf-0.6.tar.gz) = d67ee49eb06e14d0bf8dbf5bce954c5b
+MD5 (httperf-0.8.tar.gz) = 2971956d4846349f9e8d3c54acd591a5
diff --git a/benchmarks/httperf/files/patch-Makefile.in b/benchmarks/httperf/files/patch-Makefile.in
new file mode 100644
index 000000000000..59491595c46d
--- /dev/null
+++ b/benchmarks/httperf/files/patch-Makefile.in
@@ -0,0 +1,10 @@
+--- Makefile.in.orig Thu Oct 19 16:38:59 2000
++++ Makefile.in Wed Nov 13 06:30:08 2002
+@@ -6,6 +6,7 @@
+ top_builddir = .
+
+ prefix = @prefix@
++exec_prefix = @exec_prefix@
+ bindir = @bindir@
+ mandir = @mandir@
+
diff --git a/benchmarks/httperf/files/patch-httperf.c b/benchmarks/httperf/files/patch-httperf.c
new file mode 100644
index 000000000000..8e735afadb8d
--- /dev/null
+++ b/benchmarks/httperf/files/patch-httperf.c
@@ -0,0 +1,13 @@
+--- httperf.c.orig Wed Nov 1 05:20:00 2000
++++ httperf.c Wed Nov 13 06:19:41 2002
+@@ -68,6 +68,10 @@
+ #include <conn.h>
+ #include <timer.h>
+
++#ifdef __FreeBSD__
++#include <machine/floatingpoint.h>
++#endif
++
+ #ifdef HAVE_SSL
+ # include <openssl/rand.h>
+ #endif
diff --git a/benchmarks/httperf/files/patch-lib::ssl_writev.c b/benchmarks/httperf/files/patch-lib::ssl_writev.c
new file mode 100644
index 000000000000..81c05af1e52c
--- /dev/null
+++ b/benchmarks/httperf/files/patch-lib::ssl_writev.c
@@ -0,0 +1,13 @@
+--- lib/ssl_writev.c.orig Thu Oct 12 09:09:47 2000
++++ lib/ssl_writev.c Wed Nov 13 06:22:01 2002
+@@ -31,7 +31,10 @@
+
+ #ifdef HAVE_OPENSSL_SSL_H
+
++#ifdef HAVE_ALLOCA_H
+ #include <alloca.h>
++#endif
++
+ #include <string.h>
+
+ #include <sys/types.h>
diff --git a/benchmarks/httperf/pkg-plist b/benchmarks/httperf/pkg-plist
index 3499d90afdba..0fec88272ceb 100644
--- a/benchmarks/httperf/pkg-plist
+++ b/benchmarks/httperf/pkg-plist
@@ -1,7 +1,6 @@
bin/httperf
-share/doc/httperf/COPYRIGHT
-share/doc/httperf/ChangeLog
-share/doc/httperf/NEWS
-share/doc/httperf/README
-share/doc/httperf/TODO
-@dirrm share/doc/httperf
+%%PORTDOCS%%share/doc/httperf/ChangeLog
+%%PORTDOCS%%share/doc/httperf/NEWS
+%%PORTDOCS%%share/doc/httperf/README
+%%PORTDOCS%%share/doc/httperf/TODO
+%%PORTDOCS%%@dirrm share/doc/httperf