OpenSDE Packages Database (without history before r20070)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

58 lines
1.9 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../matrox-mtx/extract.diff
  5. # Copyright (C) 2004 - 2006 The T2 SDE Project
  6. #
  7. # More information can be found in the files COPYING and README.
  8. #
  9. # This patch file is dual-licensed. It is available under the license the
  10. # patched project is licensed under, as long as it is an OpenSource license
  11. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  12. # of the GNU General Public License as published by the Free Software
  13. # Foundation; either version 2 of the License, or (at your option) any later
  14. # version.
  15. # --- SDE-COPYRIGHT-NOTE-END ---
  16. Yuck. Ok, let's patch the self extracting file slightly ;-).
  17. - Rene Rebe <rene@exactcode.de>
  18. --- mtxdrivers-rh9.0-0.3.0.run 2005-01-27 18:24:57.560943152 +0100
  19. +++ mtxdrivers-rh9.0-0.3.0.run 2005-01-27 18:41:02.832199616 +0100
  20. @@ -5,7 +5,7 @@
  21. TMPROOT=${TMPDIR:=/tmp}
  22. label="Matrox Parhelia Driver"
  23. -script="./install.sh"
  24. +script="true"
  25. scriptargs=""
  26. echo -n "Please, enter the directory to extract the files [$HOME/] "
  27. read str_installdir
  28. @@ -89,7 +89,7 @@
  29. MD5_PATH=${MD5_PATH:-`which md5 2>/dev/null || type md5 2>/dev/null`}
  30. PATH=$OLD_PATH
  31. MS_Printf "Verifying archive integrity..."
  32. - offset=`head -345 "$1" | wc -c | tr -d " "`
  33. + offset=`head -n 345 "$1" | wc -c | tr -d " "`
  34. verbose=$2
  35. i=1
  36. for s in $filesizes
  37. @@ -185,7 +185,7 @@
  38. ;;
  39. --list)
  40. echo Target directory: $targetdir
  41. - offset=`head -345 "$0" | wc -c | tr -d " "`
  42. + offset=`head -n 345 "$0" | wc -c | tr -d " "`
  43. for s in $filesizes
  44. do
  45. MS_dd "$0" $offset $s | eval "gzip -cd" | UnTAR t
  46. @@ -299,7 +299,7 @@
  47. if test x$SETUP_NOCHECK != x1; then
  48. MS_Check "$0"
  49. fi
  50. -offset=`head -345 "$0" | wc -c | tr -d " "`
  51. +offset=`head -n 345 "$0" | wc -c | tr -d " "`
  52. MS_Printf "Uncompressing $label"
  53. res=3