Date: Fri, 23 Aug 2002 10:31:29 +0400 (MSD) From: miniEleph <nyxo@dnuc.polyn.kiae.su> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/41923: Update port: benchmarks/dbench Message-ID: <200208230631.g7N6VTC48674@dnuc.polyn.kiae.su>
next in thread | raw e-mail | index | archive | help
>Number: 41923 >Category: ports >Synopsis: Update port: benchmarks/dbench >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Thu Aug 22 23:30:08 PDT 2002 >Closed-Date: >Last-Modified: >Originator: miniEleph >Release: FreeBSD 4.6-RC i386 >Organization: >Environment: System: FreeBSD dnuc.polyn.kiae.su 4.6-RC FreeBSD 4.6-RC #1: Sat May 18 18:01:39 MSD 2002 nyxo@dnuc.polyn.kiae.su:/usr/obj/usr/src/sys/ZANOZA i386 >Description: Fixed bug in patch for Makefile and added (sig_t) for signal(3) due to warnings. >How-To-Repeat: >Fix: # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # dbench # dbench/Makefile # dbench/files # dbench/files/patch-aa # dbench/files/patch-ab # dbench/files/patch-ac # dbench/pkg-comment # dbench/pkg-descr # dbench/pkg-plist # dbench/distinfo # echo c - dbench mkdir -p dbench > /dev/null 2>&1 echo x - dbench/Makefile sed 's/^X//' >dbench/Makefile << 'END-of-dbench/Makefile' X# New ports collection makefile for: dbench X# Date created: 18 Febrary 2002 X# Whom: Andrew Shevtsov <nyxo@dnuc.polyn.kiae.su> X# X# $FreeBSD: ports/benchmarks/dbench/Makefile,v 1.1 2002/02/24 03:46:12 markp Exp $ X# X XPORTNAME= dbench XPORTVERSION= 1.3 XCATEGORIES= benchmarks XMASTER_SITES= ftp://samba.org/pub/tridge/dbench/ X XMAINTAINER= nyxo@dnuc.polyn.kiae.su X XWRKSRC= ${WRKDIR}/dbench X Xpost-patch: X @${PERL} -pi -e 's/^CFLAGS.+//g' ${WRKSRC}/Makefile X @${PERL} -pi -e 's/SEGV\, /SEGV\, (sig_t)/g' ${WRKSRC}/child.c X @${PERL} -pi -e 's/CONT\, /CONT\, (sig_t)/g' ${WRKSRC}/dbench.c X Xdo-install: X ${INSTALL_PROGRAM} ${WRKSRC}/dbench ${PREFIX}/bin/dbench X ${INSTALL_PROGRAM} ${WRKSRC}/tbench ${PREFIX}/bin/tbench X ${INSTALL_PROGRAM} ${WRKSRC}/tbench_srv ${PREFIX}/bin/tbench_srv X X.include <bsd.port.mk> END-of-dbench/Makefile echo c - dbench/files mkdir -p dbench/files > /dev/null 2>&1 echo x - dbench/files/patch-aa sed 's/^X//' >dbench/files/patch-aa << 'END-of-dbench/files/patch-aa' X*** dbench.h.orig Fri Jan 5 06:49:41 2001 X--- dbench.h Sun Feb 17 02:06:34 2002 X*************** X*** 42,49 **** X #define MSG_WAITALL 0x100 X #endif X X #define MIN(x,y) ((x)<(y)?(x):(y)) X! X #define TCP_PORT 7003 X #define TCP_OPTIONS "TCP_NODELAY SO_REUSEADDR" X X--- 42,50 ---- X #define MSG_WAITALL 0x100 X #endif X X+ #ifndef MIN X #define MIN(x,y) ((x)<(y)?(x):(y)) X! #endif /* MIN */ X #define TCP_PORT 7003 X #define TCP_OPTIONS "TCP_NODELAY SO_REUSEADDR" X END-of-dbench/files/patch-aa echo x - dbench/files/patch-ab sed 's/^X//' >dbench/files/patch-ab << 'END-of-dbench/files/patch-ab' X*** fileio.c.orig Mon Sep 10 08:21:01 2001 X--- fileio.c Sun Feb 17 02:06:34 2002 X*************** X*** 18,23 **** X--- 18,27 ---- X Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. X */ X X+ #if (defined(__unix__) || defined(unix)) && !defined(USG) X+ #include <sys/param.h> X+ #endif X+ X #include "dbench.h" X X #define MAX_FILES 1000 X*************** X*** 58,64 **** X--- 62,73 ---- X copy_name, X strerror(errno)); X } else { X+ #ifdef BSD X+ if (fsync(dir_fd) == -1) { X+ #else X if (fdatasync(dir_fd) == -1) { X+ #endif /* BSD */ X+ X printf("datasync directory \"%s\" failed: %s\n", X copy_name, X strerror(errno)); X*************** X*** 111,118 **** X if (size == 0) flags |= O_TRUNC; X X if (sync_open) X flags |= O_SYNC; X! X fd = open(fname, flags, 0600); X if (fd == -1) { X printf("(%d) open %s failed for handle %d (%s)\n", X--- 120,130 ---- X if (size == 0) flags |= O_TRUNC; X X if (sync_open) X+ #ifdef BSD X+ flags |= O_FSYNC; X+ #else X flags |= O_SYNC; X! #endif /* BSD */ X fd = open(fname, flags, 0600); X if (fd == -1) { X printf("(%d) open %s failed for handle %d (%s)\n", END-of-dbench/files/patch-ab echo x - dbench/files/patch-ac sed 's/^X//' >dbench/files/patch-ac << 'END-of-dbench/files/patch-ac' X*** Makefile.orig Mon Sep 10 08:21:01 2001 X--- Makefile Fri Aug 23 10:07:07 2002 X*************** X*** 1,7 **** X VERSION = 1.2.01 X X! CC = gcc X! CFLAGS = -O2 -Wall X CPPFLAGS = "-DVERSION=\"$(VERSION)\"" X X DB_OBJS = fileio.o util.o dbench.o child.o X--- 1,7 ---- X VERSION = 1.2.01 X X! CC ?= gcc X! X CPPFLAGS = "-DVERSION=\"$(VERSION)\"" X X DB_OBJS = fileio.o util.o dbench.o child.o X*************** X*** 11,23 **** X all: dbench tbench tbench_srv X X dbench: $(DB_OBJS) X! $(CC) -o $@ $(DB_OBJS) X X tbench: $(TB_OBJS) X! $(CC) -o $@ $(TB_OBJS) X X tbench_srv: $(SRV_OBJS) X! $(CC) -o $@ $(SRV_OBJS) X X clean: X rm -f *.o *~ dbench tbench tbench_srv X--- 11,23 ---- X all: dbench tbench tbench_srv X X dbench: $(DB_OBJS) X! $(CC) $(CFLAGS) -o $@ $(DB_OBJS) X X tbench: $(TB_OBJS) X! $(CC) $(CFLAGS) -o $@ $(TB_OBJS) X X tbench_srv: $(SRV_OBJS) X! $(CC) $(CFLAGS) -o $@ $(SRV_OBJS) X X clean: X rm -f *.o *~ dbench tbench tbench_srv END-of-dbench/files/patch-ac echo x - dbench/pkg-comment sed 's/^X//' >dbench/pkg-comment << 'END-of-dbench/pkg-comment' XA simulation of the Ziff-Davis netbench benchmark END-of-dbench/pkg-comment echo x - dbench/pkg-descr sed 's/^X//' >dbench/pkg-descr << 'END-of-dbench/pkg-descr' XDbench is a filesystem benchmark that generates load patterns similar to those Xof the commercial Netbench benchmark, but without requiring a lab of Windows Xload generators to run. It is now considered a de-facto standard for generating Xload on the Linux VFS. END-of-dbench/pkg-descr echo x - dbench/pkg-plist sed 's/^X//' >dbench/pkg-plist << 'END-of-dbench/pkg-plist' Xbin/dbench Xbin/tbench Xbin/tbench_srv END-of-dbench/pkg-plist echo x - dbench/distinfo sed 's/^X//' >dbench/distinfo << 'END-of-dbench/distinfo' XMD5 (dbench-1.3.tar.gz) = 38d6e6dcb6a4482e3e210f0f9c4050f9 END-of-dbench/distinfo exit >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200208230631.g7N6VTC48674>