Add an option to use ssh instead of rsh in distributed measurement.

PR:		ports/113048
Submitted by:	CHAO Shin <quakelee cn.FreeBSD.org>
Approved by:	maintainer timeout
This commit is contained in:
Xin LI 2007-06-15 08:11:40 +00:00
parent 916ef11b09
commit c84165d51d
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=193549

View File

@ -7,7 +7,7 @@
PORTNAME= iozone
PORTVERSION= 3.283
PORTREVISION= 0
PORTREVISION= 1
CATEGORIES= benchmarks
MASTER_SITES= http://www.iozone.org/src/current/
DISTNAME= ${PORTNAME}${PORTVERSION:S/./_/}
@ -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