diff options
author | Renato Botelho <garga@FreeBSD.org> | 2005-10-18 17:34:16 +0000 |
---|---|---|
committer | Renato Botelho <garga@FreeBSD.org> | 2005-10-18 17:34:16 +0000 |
commit | ed19a25f0dd1130d785ebf7856168aca8aea4dd3 (patch) | |
tree | 1a9cda9b20b4288c1ee7d4f792c727e95e39367f /benchmarks/dbench/files | |
parent | 60ed2235aa504614712b5fc0283d4f19c8a7d61d (diff) | |
download | ports-ed19a25f0dd1130d785ebf7856168aca8aea4dd3.tar.gz ports-ed19a25f0dd1130d785ebf7856168aca8aea4dd3.zip |
- Update to 3.03
- Take maintainership
PR: ports/87620
Submitted by: Jean Milanez Melo <jmelo@freebsdbrasil.com.br>
Notes
Notes:
svn path=/head/; revision=145781
Diffstat (limited to 'benchmarks/dbench/files')
-rw-r--r-- | benchmarks/dbench/files/patch-aa | 22 | ||||
-rw-r--r-- | benchmarks/dbench/files/patch-ab | 52 | ||||
-rw-r--r-- | benchmarks/dbench/files/patch-configure | 11 |
3 files changed, 11 insertions, 74 deletions
diff --git a/benchmarks/dbench/files/patch-aa b/benchmarks/dbench/files/patch-aa deleted file mode 100644 index eee67cada756..000000000000 --- a/benchmarks/dbench/files/patch-aa +++ /dev/null @@ -1,22 +0,0 @@ -*** dbench.h.orig Fri Jan 5 06:49:41 2001 ---- dbench.h Sun Feb 17 02:06:34 2002 -*************** -*** 42,49 **** - #define MSG_WAITALL 0x100 - #endif - - #define MIN(x,y) ((x)<(y)?(x):(y)) -! - #define TCP_PORT 7003 - #define TCP_OPTIONS "TCP_NODELAY SO_REUSEADDR" - ---- 42,50 ---- - #define MSG_WAITALL 0x100 - #endif - -+ #ifndef MIN - #define MIN(x,y) ((x)<(y)?(x):(y)) -! #endif /* MIN */ - #define TCP_PORT 7003 - #define TCP_OPTIONS "TCP_NODELAY SO_REUSEADDR" - diff --git a/benchmarks/dbench/files/patch-ab b/benchmarks/dbench/files/patch-ab deleted file mode 100644 index 1f313beb5a5c..000000000000 --- a/benchmarks/dbench/files/patch-ab +++ /dev/null @@ -1,52 +0,0 @@ -*** fileio.c.orig Mon Sep 10 08:21:01 2001 ---- fileio.c Sun Feb 17 02:06:34 2002 -*************** -*** 18,23 **** ---- 18,27 ---- - Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. - */ - -+ #if (defined(__unix__) || defined(unix)) && !defined(USG) -+ #include <sys/param.h> -+ #endif -+ - #include "dbench.h" - - #define MAX_FILES 1000 -*************** -*** 58,64 **** ---- 62,73 ---- - copy_name, - strerror(errno)); - } else { -+ #ifdef BSD -+ if (fsync(dir_fd) == -1) { -+ #else - if (fdatasync(dir_fd) == -1) { -+ #endif /* BSD */ -+ - printf("datasync directory \"%s\" failed: %s\n", - copy_name, - strerror(errno)); -*************** -*** 111,118 **** - if (size == 0) flags |= O_TRUNC; - - if (sync_open) - flags |= O_SYNC; -! - fd = open(fname, flags, 0600); - if (fd == -1) { - printf("(%d) open %s failed for handle %d (%s)\n", ---- 120,130 ---- - if (size == 0) flags |= O_TRUNC; - - if (sync_open) -+ #ifdef BSD -+ flags |= O_FSYNC; -+ #else - flags |= O_SYNC; -! #endif /* BSD */ - fd = open(fname, flags, 0600); - if (fd == -1) { - printf("(%d) open %s failed for handle %d (%s)\n", diff --git a/benchmarks/dbench/files/patch-configure b/benchmarks/dbench/files/patch-configure new file mode 100644 index 000000000000..3624caed9f21 --- /dev/null +++ b/benchmarks/dbench/files/patch-configure @@ -0,0 +1,11 @@ +--- configure.old Tue Oct 18 11:18:21 2005 ++++ configure Tue Oct 18 11:19:00 2005 +@@ -339,7 +339,7 @@ + bindir='${exec_prefix}/bin' + sbindir='${exec_prefix}/sbin' + libexecdir='${exec_prefix}/libexec' +-datadir='${prefix}/share' ++datadir='${prefix}/share/dbench' + sysconfdir='${prefix}/etc' + sharedstatedir='${prefix}/com' + localstatedir='${prefix}/var' |