summaryrefslogtreecommitdiff
path: root/benchmarks
diff options
context:
space:
mode:
authorBill Fenner <fenner@FreeBSD.org>1999-09-08 23:06:01 +0000
committerBill Fenner <fenner@FreeBSD.org>1999-09-08 23:06:01 +0000
commit0b047e689546faca44898a03ac493ec9206ef3aa (patch)
treeaa2ea2c2af77ea508be5b5558c5042be5dbb2733 /benchmarks
parentxspin333.tcl should be in the PLIST, not 300 (diff)
Include RFC1644 tests. (ports/11581)
Allow ${PREFIX} setting. (ports/12213) Clean up makefile a smidge. PR: ports/11581 and ports/12213 Submitted by: Martin Kammerhofer dada@sbox.tu-graz.ac.at and Nick Hibma nick.hibma@jrc.it
Notes
Notes: svn path=/head/; revision=21434
Diffstat (limited to 'benchmarks')
-rw-r--r--benchmarks/netperf/Makefile16
-rw-r--r--benchmarks/netperf/files/patch-aa16
2 files changed, 20 insertions, 12 deletions
diff --git a/benchmarks/netperf/Makefile b/benchmarks/netperf/Makefile
index 889e863f4c89..f31523942eae 100644
--- a/benchmarks/netperf/Makefile
+++ b/benchmarks/netperf/Makefile
@@ -15,16 +15,24 @@ MAINTAINER= fenner@freebsd.org
MAKEFILE= makefile
MAN1= netperf.1 netserver.1
-MINSTALL= ${INSTALL} ${COPY} -o ${MANOWN} -g ${MANGRP} -m ${MANMODE}
+
+SCRIPTS= arr_script snapshot_script tcp_range_script tcp_rr_script \
+ tcp_stream_script udp_rr_script udp_stream_script
+
+post-patch:
+.for i in ${SCRIPTS}
+ @${MV} ${WRKSRC}/$i ${WRKSRC}/$i.pre-sed
+ @${SED} -e 's^%%PREFIX%%^${PREFIX}^' ${WRKSRC}/$i.pre-sed > ${WRKSRC}/$i
+.endfor
post-install:
strip ${PREFIX}/netperf/netperf
strip ${PREFIX}/netperf/netserver
- ${MINSTALL} ${WRKSRC}/netperf.man ${PREFIX}/man/man1/netperf.1
- ${MINSTALL} ${WRKSRC}/netserver.man ${PREFIX}/man/man1/netserver.1
+ ${INSTALL_MAN} ${WRKSRC}/netperf.man ${PREFIX}/man/man1/netperf.1
+ ${INSTALL_MAN} ${WRKSRC}/netserver.man ${PREFIX}/man/man1/netserver.1
.if !defined(NOPORTDOCS)
${MKDIR} ${PREFIX}/share/doc/netperf
- ${MINSTALL} ${WRKSRC}/netperf.ps ${PREFIX}/share/doc/netperf
+ ${INSTALL_DATA} ${WRKSRC}/netperf.ps ${PREFIX}/share/doc/netperf
${GZIP_CMD} ${PREFIX}/share/doc/netperf/netperf.ps
.endif
diff --git a/benchmarks/netperf/files/patch-aa b/benchmarks/netperf/files/patch-aa
index 667061b52de5..d3161d61ebb6 100644
--- a/benchmarks/netperf/files/patch-aa
+++ b/benchmarks/netperf/files/patch-aa
@@ -14,7 +14,7 @@
# for the rest of the world, it is probably better to put the binaries
# in /usr/local/netperf or /opt/netperf
#
-! NETPERF_HOME = /usr/local/netperf
+! NETPERF_HOME = ${PREFIX}/netperf
! #NETPERF_HOME = /opt/netperf
# The compiler on your system might be somewhere else, and/or have
@@ -32,7 +32,7 @@
# -U__hpux - Use this when compiling _on_ HP-UX *for* an HP-RT system
LOG_FILE=DEBUG_LOG_FILE="\"/tmp/netperf.debug\""
-! CFLAGS = %CFLAGS% -D$(LOG_FILE) -DUSE_LOOPER -DHISTOGRAM -DDO_UNIX
+! CFLAGS = %CFLAGS% -D$(LOG_FILE) -DUSE_LOOPER -DHISTOGRAM -DDO_UNIX -DDO_1644
# Some platforms, and some options, require additional libraries.
# you can add to the "LIBS =" line to accomplish this. if you find
@@ -207,7 +207,7 @@
#
# where is netperf installed, there are a few possible places:
-! NETPERF_CMD=${NETPERF_CMD:=/usr/local/netperf/netperf}
+! NETPERF_CMD=${NETPERF_CMD:=%%PREFIX%%/netperf/netperf}
# there should be no more than two parms passed
@@ -226,7 +226,7 @@
# where is netperf, and are there any "constant" options such as
# the netserver port number
#NETHOME=/usr/etc/net_perf
-! NETHOME="/usr/local/netperf"
+! NETHOME="%%PREFIX%%/netperf"
NETPERF=$NETHOME/netperf $PORT
# How accurate we want the estimate of performance:
@@ -247,7 +247,7 @@
fi
# where the programs are
-! NETHOME=/usr/local/netperf
+! NETHOME=%%PREFIX%%/netperf
#NETHOME="/opt/netperf"
! #NETHOME=.
@@ -270,7 +270,7 @@
fi
# where the programs are
-! NETHOME=/usr/local/netperf
+! NETHOME=%%PREFIX%%/netperf
#NETHOME="/opt/netperf"
! #NETHOME=.
@@ -293,7 +293,7 @@
# where the programs are
-! NETHOME=/usr/local/netperf
+! NETHOME=%%PREFIX%%/netperf
#NETHOME="/opt/netperf"
! #NETHOME="."
@@ -316,7 +316,7 @@
# where the programs are
-! NETHOME=/usr/local/netperf
+! NETHOME=%%PREFIX%%/netperf
#NETHOME="/opt/netperf"
! #NETHOME="."