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.

94 lines
3.5 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../webmin/nodefuser.patch
  5. # Copyright (C) 2004 - 2006 The T2 SDE Project
  6. # Copyright (C) 1998 - 2003 Clifford Wolf
  7. #
  8. # More information can be found in the files COPYING and README.
  9. #
  10. # This patch file is dual-licensed. It is available under the license the
  11. # patched project is licensed under, as long as it is an OpenSource license
  12. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  13. # of the GNU General Public License as published by the Free Software
  14. # Foundation; either version 2 of the License, or (at your option) any later
  15. # version.
  16. # --- SDE-COPYRIGHT-NOTE-END ---
  17. --- ./setup.sh.orig 2005-01-24 19:15:16.000000000 -0300
  18. +++ ./setup.sh 2005-02-12 11:19:41.308502117 -0300
  19. @@ -438,7 +438,6 @@
  20. echo "Webmin does not support being started at boot time on your system."
  21. fi
  22. fi
  23. - makeboot=$atboot
  24. # Copy files to target directory
  25. echo "***********************************************************************"
  26. @@ -455,8 +454,8 @@
  27. echo "Creating web server config files.."
  28. cfile=$config_dir/miniserv.conf
  29. echo "port=$port" >> $cfile
  30. - echo "root=$wadir" >> $cfile
  31. - echo "mimetypes=$wadir/mime.types" >> $cfile
  32. + echo "root=/$prefix" >> $cfile
  33. + echo "mimetypes=/$prefix/mime.types" >> $cfile
  34. echo "addtype_cgi=internal/cgi" >> $cfile
  35. echo "realm=Webmin Server" >> $cfile
  36. echo "logfile=$var_dir/miniserv.log" >> $cfile
  37. @@ -490,15 +489,7 @@
  38. md5pass=`$perl -e 'print crypt("test", "\\$1\\$A9wB3O18\\$zaZgqrEmb9VNltWTL454R/") eq "\\$1\\$A9wB3O18\\$zaZgqrEmb9VNltWTL454R/" ? "1\n" : "0\n"'`
  39. ufile=$config_dir/miniserv.users
  40. - if [ "$crypt" != "" ]; then
  41. - echo "$login:$crypt:0" > $ufile
  42. - else
  43. - if [ "$md5pass" = "1" ]; then
  44. - $perl -e 'print "$ARGV[0]:",crypt($ARGV[1], "\$1\$XXXXXXXX"),":0\n"' "$login" "$password" > $ufile
  45. - else
  46. - $perl -e 'print "$ARGV[0]:",crypt($ARGV[1], "XX"),":0\n"' "$login" "$password" > $ufile
  47. - fi
  48. - fi
  49. + touch $ufile
  50. chmod 600 $ufile
  51. echo "userfile=$ufile" >> $cfile
  52. @@ -535,11 +526,7 @@
  53. echo "Creating access control file.."
  54. afile=$config_dir/webmin.acl
  55. rm -f $afile
  56. - if [ "$defaultmods" = "" ]; then
  57. - echo "$login: $allmods" >> $afile
  58. - else
  59. - echo "$login: $defaultmods" >> $afile
  60. - fi
  61. + touch $afile
  62. chmod 600 $afile
  63. echo "..done"
  64. echo ""
  65. @@ -560,7 +547,7 @@
  66. echo "Creating start and stop scripts.."
  67. rm -f $config_dir/stop $config_dir/start $config_dir/restart
  68. echo "#!/bin/sh" >>$config_dir/start
  69. -echo "echo Starting Webmin server in $wadir" >>$config_dir/start
  70. +echo "echo Starting Webmin server in $prefix" >>$config_dir/start
  71. echo "trap '' 1" >>$config_dir/start
  72. echo "LANG=" >>$config_dir/start
  73. echo "export LANG" >>$config_dir/start
  74. @@ -571,13 +558,13 @@
  75. echo "export PERLLIB" >>$config_dir/start
  76. uname -a | grep -i 'HP/*UX' >/dev/null
  77. if [ $? = "0" ]; then
  78. - echo "exec '$wadir/miniserv.pl' $config_dir/miniserv.conf &" >>$config_dir/start
  79. + echo "exec '/opt/webmin/miniserv.pl' $config_dir/miniserv.conf &" >>$config_dir/start
  80. else
  81. - echo "exec '$wadir/miniserv.pl' $config_dir/miniserv.conf" >>$config_dir/start
  82. + echo "exec '/opt/webmin/miniserv.pl' $config_dir/miniserv.conf" >>$config_dir/start
  83. fi
  84. echo "#!/bin/sh" >>$config_dir/stop
  85. -echo "echo Stopping Webmin server in $wadir" >>$config_dir/stop
  86. +echo "echo Stopping Webmin server in $prefix" >>$config_dir/stop
  87. echo "pidfile=\`grep \"^pidfile=\" $config_dir/miniserv.conf | sed -e 's/pidfile=//g'\`" >>$config_dir/stop
  88. echo "kill \`cat \$pidfile\`" >>$config_dir/stop