summaryrefslogtreecommitdiffstats
path: root/phoronix-test-suite-1.4.2-destdir.patch
diff options
context:
space:
mode:
authorHans Ulrich Niedermann <hun@n-dimensional.de>2009-01-08 13:30:19 +0100
committerHans Ulrich Niedermann <hun@n-dimensional.de>2009-01-08 13:30:19 +0100
commitf134349a3aa37803ad369573c339b29c1d66f01c (patch)
tree06261ab608b5e3ecdfa37e04d3933bcc8f0e7cb3 /phoronix-test-suite-1.4.2-destdir.patch
parentfd1143638686ae005dc7017b0f1c68a21de7caee (diff)
downloadphoronix-test-suite-package-f134349a3aa37803ad369573c339b29c1d66f01c.zip
phoronix-test-suite-package-f134349a3aa37803ad369573c339b29c1d66f01c.tar.gz
phoronix-test-suite-package-f134349a3aa37803ad369573c339b29c1d66f01c.tar.xz
* Thu Jan 08 2009 Hans Ulrich Niedermann <hun@n-dimensional.de> - 1.4.2-2phoronix-test-suite-1.4.2-2.fc9
- Fix tcsh location definition for Fedora - fix install script using DESTDIR
Diffstat (limited to 'phoronix-test-suite-1.4.2-destdir.patch')
-rw-r--r--phoronix-test-suite-1.4.2-destdir.patch61
1 files changed, 61 insertions, 0 deletions
diff --git a/phoronix-test-suite-1.4.2-destdir.patch b/phoronix-test-suite-1.4.2-destdir.patch
new file mode 100644
index 0000000..cff44e3
--- /dev/null
+++ b/phoronix-test-suite-1.4.2-destdir.patch
@@ -0,0 +1,61 @@
+diff -ru phoronix-test-suite/install-sh phoronix-test-suite-destdir/install-sh
+--- phoronix-test-suite/install-sh 2008-11-08 03:02:28.000000000 +0100
++++ phoronix-test-suite-destdir/install-sh 2009-01-07 16:47:42.000000000 +0100
+@@ -37,37 +37,38 @@
+ exit
+ fi
+
+-if [ ! -w $INSTALL_PREFIX ]
++mkdir -p $DESTDIR$INSTALL_PREFIX
++if [ ! -w $DESTDIR$INSTALL_PREFIX ]
+ then
+ echo "\nERROR: $INSTALL_PREFIX is not writable. Run this installer as root or specify a different directory prefix as the first argument sent to this script.\n"
+ exit
+ fi
+
+-rm -rf $INSTALL_PREFIX/share/phoronix-test-suite/
+-rm -rf $INSTALL_PREFIX/share/doc/phoronix-test-suite/
++rm -rf $DESTDIR$INSTALL_PREFIX/share/phoronix-test-suite/
++rm -rf $DESTDIR$INSTALL_PREFIX/share/doc/phoronix-test-suite/
+
+-mkdir -p $INSTALL_PREFIX/bin/
+-mkdir -p $INSTALL_PREFIX/share/man/man1/
+-mkdir -p $INSTALL_PREFIX/share/phoronix-test-suite/
+-mkdir -p $INSTALL_PREFIX/share/doc/phoronix-test-suite/
+-
+-cp CHANGE-LOG $INSTALL_PREFIX/share/doc/phoronix-test-suite/
+-cp COPYING $INSTALL_PREFIX/share/doc/phoronix-test-suite/
+-cp AUTHORS $INSTALL_PREFIX/share/doc/phoronix-test-suite/
++mkdir -p $DESTDIR$INSTALL_PREFIX/bin/
++mkdir -p $DESTDIR$INSTALL_PREFIX/share/man/man1/
++mkdir -p $DESTDIR$INSTALL_PREFIX/share/phoronix-test-suite/
++mkdir -p $DESTDIR$INSTALL_PREFIX/share/doc/phoronix-test-suite/
++
++cp CHANGE-LOG $DESTDIR$INSTALL_PREFIX/share/doc/phoronix-test-suite/
++cp COPYING $DESTDIR$INSTALL_PREFIX/share/doc/phoronix-test-suite/
++cp AUTHORS $DESTDIR$INSTALL_PREFIX/share/doc/phoronix-test-suite/
+
+ cd documentation/
+-cp -r * $INSTALL_PREFIX/share/doc/phoronix-test-suite/
++cp -r * $DESTDIR$INSTALL_PREFIX/share/doc/phoronix-test-suite/
+ cd ..
+-rm -rf $INSTALL_PREFIX/share/doc/phoronix-test-suite/man-pages/
++rm -rf $DESTDIR$INSTALL_PREFIX/share/doc/phoronix-test-suite/man-pages/
+
+-cp documentation/man-pages/*.1 $INSTALL_PREFIX/share/man/man1/
++cp documentation/man-pages/*.1 $DESTDIR$INSTALL_PREFIX/share/man/man1/
+
+-cp -r pts/ $INSTALL_PREFIX/share/phoronix-test-suite/
+-rm -f $INSTALL_PREFIX/share/phoronix-test-suite/pts/etc/scripts/package-build-*
+-cp -r pts-core/ $INSTALL_PREFIX/share/phoronix-test-suite/
++cp -r pts/ $DESTDIR$INSTALL_PREFIX/share/phoronix-test-suite/
++rm -f $DESTDIR$INSTALL_PREFIX/share/phoronix-test-suite/pts/etc/scripts/package-build-*
++cp -r pts-core/ $DESTDIR$INSTALL_PREFIX/share/phoronix-test-suite/
+
+-sed 's:PTS_DIR=`pwd`:PTS_DIR='"$INSTALL_PREFIX"'\/share\/phoronix-test-suite:g' phoronix-test-suite > $INSTALL_PREFIX/bin/phoronix-test-suite
+-chmod +x $INSTALL_PREFIX/bin/phoronix-test-suite
++sed 's:PTS_DIR=`pwd`:PTS_DIR='"$INSTALL_PREFIX"'\/share\/phoronix-test-suite:g' phoronix-test-suite > $DESTDIR$INSTALL_PREFIX/bin/phoronix-test-suite
++chmod +x $DESTDIR$INSTALL_PREFIX/bin/phoronix-test-suite
+
+ echo "\nPhoronix Test Suite Installation Completed\n
+ Executable File: $INSTALL_PREFIX/bin/phoronix-test-suite