summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--benchmarks/Makefile3
-rw-r--r--benchmarks/phoronix-test-suite/patches/patch-install-sh41
2 files changed, 43 insertions, 1 deletions
diff --git a/benchmarks/Makefile b/benchmarks/Makefile
index ab9540b81bb..1e3febb1d81 100644
--- a/benchmarks/Makefile
+++ b/benchmarks/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.44 2011/02/28 18:39:07 wiz Exp $
+# $NetBSD: Makefile,v 1.45 2011/12/07 00:23:09 jym Exp $
#
COMMENT= Benchmarking tools
@@ -30,6 +30,7 @@ SUBDIR+= nettest
SUBDIR+= nsieve
SUBDIR+= nttcp
SUBDIR+= paranoia
+SUBDIR+= phoronix-test-suite
SUBDIR+= pipebench
SUBDIR+= postal
SUBDIR+= postmark
diff --git a/benchmarks/phoronix-test-suite/patches/patch-install-sh b/benchmarks/phoronix-test-suite/patches/patch-install-sh
new file mode 100644
index 00000000000..68ab8b1bf2d
--- /dev/null
+++ b/benchmarks/phoronix-test-suite/patches/patch-install-sh
@@ -0,0 +1,41 @@
+$NetBSD: patch-install-sh,v 1.1 2011/12/07 00:23:09 jym Exp $
+Handle pkgsrc hierarchy, especially paths to man pages.
+Do not execute xdg-* during installation, let the shared-mime-info
+and desktop-file-utils update their databases.
+--- install-sh.orig 2011-05-17 18:00:59.000000000 +0000
++++ install-sh
+@@ -50,10 +50,9 @@ rm -rf $DESTDIR$INSTALL_PREFIX/share/doc
+ mkdir -p $DESTDIR$INSTALL_PREFIX/bin/
+ mkdir -p $DESTDIR$INSTALL_PREFIX/share/applications/
+ mkdir -p $DESTDIR$INSTALL_PREFIX/share/icons/hicolor/48x48/apps/
+-mkdir -p $DESTDIR$INSTALL_PREFIX/share/man/man1/
++mkdir -p $DESTDIR$INSTALL_PREFIX/man/man1/
+ mkdir -p $DESTDIR$INSTALL_PREFIX/share/phoronix-test-suite/
+ mkdir -p $DESTDIR$INSTALL_PREFIX/share/doc/phoronix-test-suite/
+-mkdir -p $DESTDIR$INSTALL_PREFIX/../etc/bash_completion.d/
+
+ cp CHANGE-LOG $DESTDIR$INSTALL_PREFIX/share/doc/phoronix-test-suite/
+ cp COPYING $DESTDIR$INSTALL_PREFIX/share/doc/phoronix-test-suite/
+@@ -64,8 +63,8 @@ cp -r * $DESTDIR$INSTALL_PREFIX/share/do
+ cd ..
+ rm -rf $DESTDIR$INSTALL_PREFIX/share/doc/phoronix-test-suite/man-pages/
+
+-cp documentation/man-pages/*.1 $DESTDIR$INSTALL_PREFIX/share/man/man1/
+-cp pts-core/static/bash_completion $DESTDIR$INSTALL_PREFIX/../etc/bash_completion.d/phoronix-test-suite
++cp documentation/man-pages/*.1 $DESTDIR$INSTALL_PREFIX/man/man1/
++cp pts-core/static/bash_completion $DESTDIR$INSTALL_PREFIX/share/bash-completion.d
+ cp pts-core/static/images/phoronix-test-suite.png $DESTDIR$INSTALL_PREFIX/share/icons/hicolor/48x48/apps/phoronix-test-suite.png
+ cp pts-core/static/images/openbenchmarking.png $DESTDIR$INSTALL_PREFIX/share/icons/hicolor/64x64/apps/openbenchmarking.png
+ cp pts-core/static/phoronix-test-suite.desktop $DESTDIR$INSTALL_PREFIX/share/applications/
+@@ -79,11 +78,6 @@ chmod +x $DESTDIR$INSTALL_PREFIX/bin/pho
+
+ # sed 's:\$url = PTS_PATH . \"documentation\/index.html\";:\$url = \"'"$INSTALL_PREFIX"'\/share\/doc\/packages\/phoronix-test-suite\/index.html\";:g' pts-core/commands/gui_gtk.php > $DESTDIR$INSTALL_PREFIX/share/phoronix-test-suite/pts-core/commands/gui_gtk.php
+
+-# XDG MIME OpenBenchmarking support
+-xdg-mime install pts-core/openbenchmarking.org/openbenchmarking-mime.xml
+-xdg-mime default phoronix-test-suite.desktop application/x-openbenchmarking
+-xdg-icon-resource install --context mimetypes --size 64 pts-core/static/images/openbenchmarking.png application-x-openbenchmarking
+-
+ echo -e "\nPhoronix Test Suite Installation Completed\n
+ Executable File: $INSTALL_PREFIX/bin/phoronix-test-suite
+ Documentation: $INSTALL_PREFIX/share/doc/phoronix-test-suite/