[20756] trunk/dports/benchmarks/bonniexx

source_changes at macosforge.org source_changes at macosforge.org
Sun Nov 26 00:52:21 PST 2006


Revision: 20756
          http://trac.macosforge.org/projects/macports/changeset/20756
Author:   markd at macports.org
Date:     2006-11-26 00:52:21 -0800 (Sun, 26 Nov 2006)

Log Message:
-----------
Closes #2181.  Update to 1.93c.

Modified Paths:
--------------
    trunk/dports/benchmarks/bonniexx/Portfile

Added Paths:
-----------
    trunk/dports/benchmarks/bonniexx/files/
    trunk/dports/benchmarks/bonniexx/files/patch-Makefile.in
    trunk/dports/benchmarks/bonniexx/files/patch-bonnie++.8
    trunk/dports/benchmarks/bonniexx/files/patch-bonnie++.cpp
    trunk/dports/benchmarks/bonniexx/files/patch-getc_putc.cpp
    trunk/dports/benchmarks/bonniexx/files/patch-zcav.8

Modified: trunk/dports/benchmarks/bonniexx/Portfile
===================================================================
--- trunk/dports/benchmarks/bonniexx/Portfile	2006-11-26 08:35:49 UTC (rev 20755)
+++ trunk/dports/benchmarks/bonniexx/Portfile	2006-11-26 08:52:21 UTC (rev 20756)
@@ -2,7 +2,7 @@
 
 PortSystem 1.0
 name			bonniexx
-version			1.03a	
+version			1.93c
 categories		benchmarks
 maintainers		lomion at mac.com
 description 		Disk and FS performance tester	
@@ -16,17 +16,28 @@
 			such things.
 platforms		darwin
 homepage		http://www.coker.com.au/bonnie++/
-master_sites		http://www.coker.com.au/bonnie++/
-checksums		sha1 b519b79a00fb7145d51320abc3cd46caca7ff05b
+master_sites		http://www.coker.com.au/bonnie++/experimental/
+checksums		sha1 85f670f5b82accb62ca2cff82e94cbbaefd5aedb
 distname		bonnie++-${version}
 extract.suffix		.tgz
+patchfiles		patch-Makefile.in \
+			patch-bonnie++.8 \
+			patch-bonnie++.cpp \
+			patch-getc_putc.cpp \
+			patch-zcav.8
 
+pre-patch {
+		reinplace "s|/usr/share/|${prefix}/share/|g" ${worksrcpath}/bonnie++.8 \
+}
+
 destroot		{ xinstall -m 755 -d "${destroot}${prefix}/bin" \
 			  "${destroot}${prefix}/share/man/man1" \
-			  "${destroot}${prefix}/share/man/man8"
+			  "${destroot}${prefix}/share/man/man8" \
+			  "${destroot}${prefix}/share/doc/bonnie++"
 			  xinstall -m 755 -W ${worksrcpath} bonnie++ zcav ${destroot}${prefix}/bin
 			  xinstall -m 644 -W ${worksrcpath} bon_csv2html.1 bon_csv2txt.1 ${destroot}${prefix}/share/man/man1
 			  xinstall -m 644 -W ${worksrcpath} bonnie++.8 zcav.8 ${destroot}${prefix}/share/man/man8
+			  xinstall -m 644 ${worksrcpath}/readme.html ${destroot}${prefix}/share/doc/bonnie++
 			}		
 
 platform darwin 8	{

Added: trunk/dports/benchmarks/bonniexx/files/patch-Makefile.in
===================================================================
--- trunk/dports/benchmarks/bonniexx/files/patch-Makefile.in	                        (rev 0)
+++ trunk/dports/benchmarks/bonniexx/files/patch-Makefile.in	2006-11-26 08:52:21 UTC (rev 20756)
@@ -0,0 +1,5 @@
+--- Makefile.in.orig	Tue Jan  7 22:40:11 2003
++++ Makefile.in	Tue Feb 25 17:21:00 2003
+@@ -12 +12 @@
+-CFLAGS=-O2 @debug@ -DNDEBUG $(WFLAGS) $(MORECFLAGS)
++CFLAGS=${CXXFLAGS} -DNDEBUG $(WFLAGS) $(MORECFLAGS)

Added: trunk/dports/benchmarks/bonniexx/files/patch-bonnie++.8
===================================================================
--- trunk/dports/benchmarks/bonniexx/files/patch-bonnie++.8	                        (rev 0)
+++ trunk/dports/benchmarks/bonniexx/files/patch-bonnie++.8	2006-11-26 08:52:21 UTC (rev 20756)
@@ -0,0 +1,9 @@
+--- bonnie++.8.orig	Sun Sep  9 16:25:02 2001
++++ bonnie++.8	Sun Sep  9 16:25:43 2001
+@@ -194,4 +194,5 @@
+ 
+ .SH "SEE ALSO"
+ .BR bon_csv2html (1),
+-.BR bon_csv2txt (1)
++.BR bon_csv2txt (1) ,
++.BR zcav (8)

Added: trunk/dports/benchmarks/bonniexx/files/patch-bonnie++.cpp
===================================================================
--- trunk/dports/benchmarks/bonniexx/files/patch-bonnie++.cpp	                        (rev 0)
+++ trunk/dports/benchmarks/bonniexx/files/patch-bonnie++.cpp	2006-11-26 08:52:21 UTC (rev 20756)
@@ -0,0 +1,47 @@
+$FreeBSD: /repoman/r/pcvs/ports/benchmarks/bonnie++/files/patch-bonnie++.cpp,v 1.3 2003/12/21 03:19:28 petef Exp $
+
+--- bonnie++.cpp.orig	Mon Aug 25 17:08:46 2003
++++ bonnie++.cpp	Mon Aug 25 17:08:46 2003
+@@ -322,11 +322,7 @@
+       {
+         char *sbuf = _strdup(optarg);
+         char *size = strtok(sbuf, ":");
+-#ifdef _LARGEFILE64_SOURCE
+         file_size = size_from_str(size, "gt");
+-#else
+-        file_size = size_from_str(size, "g");
+-#endif
+         size = strtok(NULL, "");
+         if(size)
+         {
+@@ -411,15 +407,6 @@
+     if(file_size % 1024 > 512)
+       file_size = file_size + 1024 - (file_size % 1024);
+   }
+-#ifndef _LARGEFILE64_SOURCE
+-  if(file_size == 2048)
+-    file_size = 2047;
+-  if(file_size > 2048)
+-  {
+-    fprintf(stderr, "Large File Support not present, can't do %dM.\n", file_size);
+-    usage();
+-  }
+-#endif
+   globals.byte_io_size = __min(file_size, globals.byte_io_size);
+   globals.byte_io_size = __max(0, globals.byte_io_size);
+ 
+@@ -503,14 +490,6 @@
+      && (directory_max_size < directory_min_size || directory_max_size < 0
+      || directory_min_size < 0) )
+     usage();
+-#ifndef _LARGEFILE64_SOURCE
+-  if(file_size > (1 << (31 - 20 + globals.io_chunk_bits)) )
+-  {
+-    fprintf(stderr
+-   , "The small chunk size and large IO size make this test impossible in 32bit.\n");
+-    usage();
+-  }
+-#endif
+   if(file_size && globals.ram && (file_size * concurrency) < (globals.ram * 2) )
+   {
+     fprintf(stderr

Added: trunk/dports/benchmarks/bonniexx/files/patch-getc_putc.cpp
===================================================================
--- trunk/dports/benchmarks/bonniexx/files/patch-getc_putc.cpp	                        (rev 0)
+++ trunk/dports/benchmarks/bonniexx/files/patch-getc_putc.cpp	2006-11-26 08:52:21 UTC (rev 20756)
@@ -0,0 +1,11 @@
+--- getc_putc.cpp.org	2006-11-26 00:02:44.000000000 -0800
++++ getc_putc.cpp	2006-11-26 00:03:50.000000000 -0800
+@@ -16,6 +16,8 @@
+ 
+ #include "duration.h"
+ #include "getc_putc.h"
++#include <sys/param.h>
++#define min MIN
+ 
+ static void usage()
+ {

Added: trunk/dports/benchmarks/bonniexx/files/patch-zcav.8
===================================================================
--- trunk/dports/benchmarks/bonniexx/files/patch-zcav.8	                        (rev 0)
+++ trunk/dports/benchmarks/bonniexx/files/patch-zcav.8	2006-11-26 08:52:21 UTC (rev 20756)
@@ -0,0 +1,12 @@
+--- zcav.8.orig	Sun Sep  9 16:26:11 2001
++++ zcav.8	Sun Sep  9 16:26:33 2001
+@@ -72,6 +72,9 @@
+ parameter, just a different way to specify it for compatibility with other
+ programs.
+ 
++.SH "SEE ALSO"
++.BR bonnie++ (8)
++
+ .SH "AUTHOR"
+ This program, it's manual page, and the Debian package were written by
+ Russell Coker <russell at coker.com.au>.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20061126/50117ba2/attachment.html


More information about the macports-changes mailing list