diff -ruN libmicro.orig/Makefile libmicro/Makefile --- libmicro.orig/Makefile 2007-04-16 13:48:02.000000000 +0200 +++ libmicro/Makefile 2008-01-12 12:50:21.000000000 +0100 @@ -6,9 +6,9 @@ # PORTNAME= libmicro -PORTVERSION= 0.3.0 +PORTVERSION= 0.4.0 CATEGORIES= benchmarks -MASTER_SITES= http://opensolaris.org/os/community/performance/libmicro/ +MASTER_SITES= http://opensolaris.org/os/project/libmicro/files/ MAINTAINER= ports@FreeBSD.org COMMENT= Set of utilities to benchmark productivity of system calls diff -ruN libmicro.orig/distinfo libmicro/distinfo --- libmicro.orig/distinfo 2006-01-22 09:20:05.000000000 +0100 +++ libmicro/distinfo 2008-01-12 10:49:11.000000000 +0100 @@ -1,3 +1,3 @@ -MD5 (libmicro-0.3.0.tar.gz) = 3c2ad95bd6e44e4dccae4bb349818038 -SHA256 (libmicro-0.3.0.tar.gz) = 1673031c579f830f72f74de3c4dc7777db992ec763353ebe0003e38581165e24 -SIZE (libmicro-0.3.0.tar.gz) = 49287 +MD5 (libmicro-0.4.0.tar.gz) = 67ea2541a663bca8cfc9efe435577ea3 +SHA256 (libmicro-0.4.0.tar.gz) = a005694c125d36ee9b089c1c4fb6d102a5f26e28f0282e5855d5661276bf7b7c +SIZE (libmicro-0.4.0.tar.gz) = 48858 diff -ruN libmicro.orig/files/patch-Makefile libmicro/files/patch-Makefile --- libmicro.orig/files/patch-Makefile 2005-08-28 11:05:53.000000000 +0200 +++ libmicro/files/patch-Makefile 2008-01-12 10:49:11.000000000 +0100 @@ -1,11 +1,11 @@ ---- Makefile.orig Sat Aug 6 14:07:26 2005 -+++ Makefile Sat Aug 6 14:07:43 2005 -@@ -67,7 +67,7 @@ - wrapper \ +--- Makefile.orig Tue Jan 8 12:11:55 2008 ++++ Makefile Tue Jan 8 12:12:21 2008 +@@ -68,7 +68,7 @@ + wrapper.sh \ README -default $(ALL) run cstyle lint tattle: $(BINS) +all $(ALL) run cstyle lint tattle: $(BINS) - @chmod +x bench multiview - @mkdir -p bin-`uname -m`; cd bin-`uname -m`; MACH=`uname -m` $(MAKE) -f ../Makefile.`uname -s` $@ - + @cp bench.sh bench + @cp multiview.sh multiview + @cp wrapper.sh wrapper diff -ruN libmicro.orig/files/patch-bench libmicro/files/patch-bench --- libmicro.orig/files/patch-bench 2005-08-28 11:05:53.000000000 +0200 +++ libmicro/files/patch-bench 2008-01-12 14:30:19.000000000 +0100 @@ -1,15 +1,15 @@ ---- bench.orig Fri Aug 5 06:35:13 2005 -+++ bench Tue Aug 9 12:32:52 2005 -@@ -67,7 +67,7 @@ +--- bench.orig 2008-01-12 14:26:38.000000000 +0100 ++++ bench 2008-01-12 14:26:59.000000000 +0100 +@@ -65,7 +65,7 @@ touch $IFILE -ARCH=`arch -k` -+ARCH=`uname -m` ++ARCH=`uname -p` # produce benchmark header for easier comparisons -@@ -85,6 +85,12 @@ +@@ -83,6 +83,12 @@ p_type=`awk -F: '/model name/{print $2; exit}' /proc/cpuinfo` fi @@ -22,11 +22,11 @@ printf "!Libmicro_#: %30s\n" $libmicro_version printf "!Options: %30s\n" "$OPTS" printf "!Machine_name: %30s\n" $hostname -@@ -156,7 +162,6 @@ +@@ -154,7 +160,6 @@ memset $OPTS -N "memset_10k" -s 10k -I 600 memset $OPTS -N "memset_1m" -s 1m -I 200000 memset $OPTS -N "memset_10m" -s 10m -I 2000000 -memset $OPTS -N "memsetP2_10m" -s 10m -P 2 -I 2000000 - memrand $OPTS -N "memrand" -s 40m -B 10000 + memrand $OPTS -N "memrand" -s 128m -B 10000 cachetocache $OPTS -N "cachetocache" -s 100k -T 2 -I 200 diff -ruN libmicro.orig/files/patch-bench.sh libmicro/files/patch-bench.sh --- libmicro.orig/files/patch-bench.sh 1970-01-01 01:00:00.000000000 +0100 +++ libmicro/files/patch-bench.sh 2008-01-12 14:38:55.000000000 +0100 @@ -0,0 +1,32 @@ +--- bench.sh.orig 2008-01-12 14:26:38.000000000 +0100 ++++ bench.sh 2008-01-12 14:26:59.000000000 +0100 +@@ -65,7 +65,7 @@ + + touch $IFILE + +-ARCH=`arch -k` ++ARCH=`uname -p` + + # produce benchmark header for easier comparisons + +@@ -83,6 +83,12 @@ + p_type=`awk -F: '/model name/{print $2; exit}' /proc/cpuinfo` + fi + ++if [ F"`uname -s`" = F"FreeBSD" ] ; then ++ p_count=`sysctl -n hw.ncpu` ++ p_mhz=`sysctl -n hw.clockrate` ++ p_type=`sysctl -n hw.model` ++fi ++ + printf "!Libmicro_#: %30s\n" $libmicro_version + printf "!Options: %30s\n" "$OPTS" + printf "!Machine_name: %30s\n" $hostname +@@ -154,7 +160,6 @@ + memset $OPTS -N "memset_10k" -s 10k -I 600 + memset $OPTS -N "memset_1m" -s 1m -I 200000 + memset $OPTS -N "memset_10m" -s 10m -I 2000000 +-memset $OPTS -N "memsetP2_10m" -s 10m -P 2 -I 2000000 + + memrand $OPTS -N "memrand" -s 128m -B 10000 + cachetocache $OPTS -N "cachetocache" -s 100k -T 2 -I 200 diff -ruN libmicro.orig/files/patch-multiview libmicro/files/patch-multiview --- libmicro.orig/files/patch-multiview 2005-08-28 11:05:53.000000000 +0200 +++ libmicro/files/patch-multiview 2008-01-12 10:49:11.000000000 +0100 @@ -28,10 +28,10 @@ } { -@@ -128,7 +128,7 @@ +@@ -136,7 +136,7 @@ for (j = 2; j < ARGC; j++) - printf("%25s\n", "not computed"); + printf("%s\n", "not computed"); - continue; + next; }