ports/113048: [PATCH] benchmark/iozone add ssh option
CHAO Shin
quakelee at cn.FreeBSD.org
Sun May 27 06:40:01 UTC 2007
>Number: 113048
>Category: ports
>Synopsis: [PATCH] benchmark/iozone add ssh option
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Sun May 27 06:40:00 GMT 2007
>Closed-Date:
>Last-Modified:
>Originator: CHAO Shin
>Release: FreeBSD 7.0-current i386
>Organization:
The FreeBSD Simplified Chinese Project
>Environment:
System: FreeBSD portyard.sysdept.sina.com.cn 7.0-CURRENT FreeBSD 7.0-CURRENT #0: Thu Feb 1 19:02:06 CST 2007 root at portyard.sysdept.sina.com.cn:/usr/obj/usr/src/sys/GX270 i386
>Description:
add an option to use ssh instead of rsh in distributed measurement.
>How-To-Repeat:
>Fix:
--- patch-iozone-ssh.diff begins here ---
Index: Makefile
===================================================================
RCS file: /home/ncvs/ports/benchmarks/iozone/Makefile,v
retrieving revision 1.49
diff -u -p -a -u -r1.49 Makefile
--- Makefile 26 May 2007 03:16:04 -0000 1.49
+++ Makefile 27 May 2007 06:07:06 -0000
@@ -27,7 +27,8 @@ ALL_TARGET=
MAN1= iozone.1
PLIST_FILES= bin/iozone
-OPTIONS= THREADS "Enable threading (uses pthreads)" on
+OPTIONS= THREADS "Enable threading (uses pthreads)" on \
+ SSH "Use ssh in distributed measurement" on
.include <bsd.port.pre.mk>
@@ -38,6 +39,9 @@ MAKE_ENV= LDFLAGS=${PTHREAD_LIBS}
CFLAGS+=-DNO_THREADS
.endif
+post-patch:
+ ${REINPLACE_CMD} -e 's|shell\,\"rsh\"|shell\,\"ssh\"|' ${WRKSRC}/iozone.c
+
do-install:
${STRIP_CMD} ${WRKSRC}/iozone
${INSTALL_PROGRAM} ${WRKSRC}/iozone ${PREFIX}/bin
--- patch-iozone-ssh.diff ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list