mirror of the now-defunct rocklinux.org
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.

83 lines
2.4 KiB

  1. # --- ROCK-COPYRIGHT-NOTE-BEGIN ---
  2. #
  3. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  4. # Please add additional copyright information _after_ the line containing
  5. # the ROCK-COPYRIGHT-NOTE-END tag. Otherwise it might get removed by
  6. # the ./scripts/Create-CopyPatch script. Do not edit this copyright text!
  7. #
  8. # ROCK Linux: rock-src/package/base/dmapi/install.patch
  9. # ROCK Linux is Copyright (C) 1998 - 2006 Clifford Wolf
  10. #
  11. # This patch file is dual-licensed. It is available under the license the
  12. # patched project is licensed under, as long as it is an OpenSource license
  13. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  14. # of the GNU General Public License as published by the Free Software
  15. # Foundation; either version 2 of the License, or (at your option) any later
  16. # version.
  17. #
  18. # --- ROCK-COPYRIGHT-NOTE-END ---
  19. --- ./install-sh.orig 2002-06-05 01:07:56.000000000 +0200
  20. +++ ./install-sh 2003-04-15 07:42:07.000000000 +0200
  21. @@ -122,9 +122,9 @@
  22. if $INSTALL
  23. then
  24. - CP=cp; LN=ln; MKDIR=mkdir; CHMOD=chmod; CHOWN=_chown
  25. + MV=mv; CP=cp; LN=ln; MKDIR=mkdir; CHMOD=chmod; CHOWN=_chown
  26. else
  27. - CP=true; LN=true; MKDIR=true; CHMOD=true; CHOWN=true
  28. + MV=mv; CP=true; LN=true; MKDIR=true; CHMOD=true; CHOWN=true
  29. fi
  30. [ -n "$DIST_ROOT" -a $REAL_UID -ne 0 ] && CHOWN=true
  31. @@ -229,7 +229,8 @@
  32. if [ $cnt -eq 5 ]
  33. then
  34. install_name=$target/$solib
  35. - $CP $solib $install_name
  36. + $CP $solib $install_name.new
  37. + $MV $install_name.new $install_name
  38. status=$?
  39. $MANIFEST f $FILEMODE $OWNER $GROUP $HERE/$solib ${install_name#$DIST_ROOT}
  40. break
  41. @@ -280,7 +281,8 @@
  42. ;;
  43. old_lib)
  44. install_name=$target/$old_library
  45. - $CP $old_library $install_name
  46. + $CP $old_library $install_name.new
  47. + $MV $install_name.new $install_name
  48. status=$?
  49. $MANIFEST f $FILEMODE $OWNER $GROUP $HERE/$old_library ${install_name#$DIST_ROOT}
  50. ;;
  51. @@ -314,7 +316,13 @@
  52. then
  53. mkdir -p `dirname $dir`
  54. fi
  55. - $CP $f $dir
  56. + if test -d $dir; then
  57. + $CP $f $dir/${f##*/}.new
  58. + $MV $dir/${f##*/}.new $dir/${f##*/}
  59. + else
  60. + $CP $f $dir.new
  61. + $MV $dir.new $dir
  62. + fi
  63. status=$?
  64. if [ $status -eq 0 ]
  65. then
  66. @@ -357,7 +365,13 @@
  67. for f in $list
  68. do
  69. - $CP $f $dir
  70. + if test -d $dir; then
  71. + $CP $f $dir/${f##*/}.new
  72. + $MV $dir/${f##*/}.new $dir/${f##*/}
  73. + else
  74. + $CP $f $dir.new
  75. + $MV $dir.new $dir
  76. + fi
  77. status=$?
  78. if [ $status -eq 0 ]
  79. then