FreeBSD Bugzilla – Attachment 19773 Details for
Bug 35055
New port: benchmarks/dbench
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
file.shar
file.shar (text/plain), 5.59 KB, created by
miniEleph
on 2002-02-17 16:50:05 UTC
(
hide
)
Description:
file.shar
Filename:
MIME Type:
Creator:
miniEleph
Created:
2002-02-17 16:50:05 UTC
Size:
5.59 KB
patch
obsolete
># 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: ># ># /usr/ports/benchmarks/dbench ># /usr/ports/benchmarks/dbench/Makefile ># /usr/ports/benchmarks/dbench/files ># /usr/ports/benchmarks/dbench/files/patch-aa ># /usr/ports/benchmarks/dbench/files/patch-ab ># /usr/ports/benchmarks/dbench/files/patch-ac ># /usr/ports/benchmarks/dbench/pkg-comment ># /usr/ports/benchmarks/dbench/pkg-descr ># /usr/ports/benchmarks/dbench/pkg-plist ># /usr/ports/benchmarks/dbench/distinfo ># >echo c - /usr/ports/benchmarks/dbench >mkdir -p /usr/ports/benchmarks/dbench > /dev/null 2>&1 >echo x - /usr/ports/benchmarks/dbench/Makefile >sed 's/^X//' >/usr/ports/benchmarks/dbench/Makefile << 'END-of-/usr/ports/benchmarks/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$ >X# >X >XPORTNAME= dbench >XPORTVERSION= 1.3 >XCATEGORIES= benchmarks >XMASTER_SITES= ftp://samba.org/pub/tridge/dbench/ >XDISTNAME= dbench >XEXTRACT_SUFX= -1.3.tar.gz >X >XMAINTAINER= nyxo@dnuc.polyn.kiae.su >X >XNOMAN= YES >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-/usr/ports/benchmarks/dbench/Makefile >echo c - /usr/ports/benchmarks/dbench/files >mkdir -p /usr/ports/benchmarks/dbench/files > /dev/null 2>&1 >echo x - /usr/ports/benchmarks/dbench/files/patch-aa >sed 's/^X//' >/usr/ports/benchmarks/dbench/files/patch-aa << 'END-of-/usr/ports/benchmarks/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-/usr/ports/benchmarks/dbench/files/patch-aa >echo x - /usr/ports/benchmarks/dbench/files/patch-ab >sed 's/^X//' >/usr/ports/benchmarks/dbench/files/patch-ab << 'END-of-/usr/ports/benchmarks/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-/usr/ports/benchmarks/dbench/files/patch-ab >echo x - /usr/ports/benchmarks/dbench/files/patch-ac >sed 's/^X//' >/usr/ports/benchmarks/dbench/files/patch-ac << 'END-of-/usr/ports/benchmarks/dbench/files/patch-ac' >X*** Makefile.orig Mon Sep 10 08:21:01 2001 >X--- Makefile Sun Feb 17 02:09:04 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! CFLAGS += -O2 -Wall >X CPPFLAGS = "-DVERSION=\"$(VERSION)\"" >X >X DB_OBJS = fileio.o util.o dbench.o child.o >END-of-/usr/ports/benchmarks/dbench/files/patch-ac >echo x - /usr/ports/benchmarks/dbench/pkg-comment >sed 's/^X//' >/usr/ports/benchmarks/dbench/pkg-comment << 'END-of-/usr/ports/benchmarks/dbench/pkg-comment' >XA simulation of the Ziff-Davis netbench benchmark >END-of-/usr/ports/benchmarks/dbench/pkg-comment >echo x - /usr/ports/benchmarks/dbench/pkg-descr >sed 's/^X//' >/usr/ports/benchmarks/dbench/pkg-descr << 'END-of-/usr/ports/benchmarks/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. >X >XAndrew Tridgell >X<tridge@samba.org> >END-of-/usr/ports/benchmarks/dbench/pkg-descr >echo x - /usr/ports/benchmarks/dbench/pkg-plist >sed 's/^X//' >/usr/ports/benchmarks/dbench/pkg-plist << 'END-of-/usr/ports/benchmarks/dbench/pkg-plist' >Xbin/dbench >Xbin/tbench >Xbin/tbench_srv >X >END-of-/usr/ports/benchmarks/dbench/pkg-plist >echo x - /usr/ports/benchmarks/dbench/distinfo >sed 's/^X//' >/usr/ports/benchmarks/dbench/distinfo << 'END-of-/usr/ports/benchmarks/dbench/distinfo' >XMD5 (dbench-1.3.tar.gz) = 38d6e6dcb6a4482e3e210f0f9c4050f9 >END-of-/usr/ports/benchmarks/dbench/distinfo >exit
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 35055
: 19773