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.

95 lines
3.7 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) 2008 The OpenSDE Project
  6. # Copyright (C) 2004 - 2006 The T2 SDE Project
  7. # Copyright (C) 1998 - 2003 Clifford Wolf
  8. #
  9. # More information can be found in the files COPYING and README.
  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. # --- SDE-COPYRIGHT-NOTE-END ---
  18. diff -Nur webmin-1.410-orig/setup.sh webmin-1.410/setup.sh
  19. --- webmin-1.410-orig/setup.sh 2008-04-20 14:07:39.000000000 +0000
  20. +++ webmin-1.410/setup.sh 2008-04-20 14:13:43.000000000 +0000
  21. @@ -456,7 +456,6 @@
  22. echo "Webmin does not support being started at boot time on your system."
  23. fi
  24. fi
  25. - makeboot=$atboot
  26. # Copy files to target directory
  27. echo "***********************************************************************"
  28. @@ -473,8 +472,8 @@
  29. echo "Creating web server config files.."
  30. cfile=$config_dir/miniserv.conf
  31. echo "port=$port" >> $cfile
  32. - echo "root=$wadir" >> $cfile
  33. - echo "mimetypes=$wadir/mime.types" >> $cfile
  34. + echo "root=/$prefix" >> $cfile
  35. + echo "mimetypes=/$prefix/mime.types" >> $cfile
  36. echo "addtype_cgi=internal/cgi" >> $cfile
  37. echo "realm=Webmin Server" >> $cfile
  38. echo "logfile=$var_dir/miniserv.log" >> $cfile
  39. @@ -517,15 +516,7 @@
  40. md5pass=`$perl -e 'print crypt("test", "\\$1\\$A9wB3O18\\$zaZgqrEmb9VNltWTL454R/") eq "\\$1\\$A9wB3O18\\$zaZgqrEmb9VNltWTL454R/" ? "1\n" : "0\n"'`
  41. ufile=$config_dir/miniserv.users
  42. - if [ "$crypt" != "" ]; then
  43. - echo "$login:$crypt:0" > $ufile
  44. - else
  45. - if [ "$md5pass" = "1" ]; then
  46. - $perl -e 'print "$ARGV[0]:",crypt($ARGV[1], "\$1\$XXXXXXXX"),":0\n"' "$login" "$password" > $ufile
  47. - else
  48. - $perl -e 'print "$ARGV[0]:",crypt($ARGV[1], "XX"),":0\n"' "$login" "$password" > $ufile
  49. - fi
  50. - fi
  51. + touch $ufile
  52. chmod 600 $ufile
  53. echo "userfile=$ufile" >> $cfile
  54. @@ -562,11 +553,7 @@
  55. echo "Creating access control file.."
  56. afile=$config_dir/webmin.acl
  57. rm -f $afile
  58. - if [ "$defaultmods" = "" ]; then
  59. - echo $login: $defaultallmods >> $afile
  60. - else
  61. - echo $login: $defaultmods >> $afile
  62. - fi
  63. + touch $afile
  64. chmod 600 $afile
  65. echo "..done"
  66. echo ""
  67. @@ -587,7 +574,7 @@
  68. echo "Creating start and stop scripts.."
  69. rm -f $config_dir/stop $config_dir/start $config_dir/restart $config_dir/reload
  70. echo "#!/bin/sh" >>$config_dir/start
  71. -echo "echo Starting Webmin server in $wadir" >>$config_dir/start
  72. +echo "echo Starting Webmin server in $prefix" >>$config_dir/start
  73. echo "trap '' 1" >>$config_dir/start
  74. echo "LANG=" >>$config_dir/start
  75. echo "export LANG" >>$config_dir/start
  76. @@ -598,13 +585,13 @@
  77. echo "export PERLLIB" >>$config_dir/start
  78. uname -a | grep -i 'HP/*UX' >/dev/null
  79. if [ $? = "0" ]; then
  80. - echo "exec '$wadir/miniserv.pl' $config_dir/miniserv.conf &" >>$config_dir/start
  81. + echo "exec '/opt/webmin/miniserv.pl' $config_dir/miniserv.conf &" >>$config_dir/start
  82. else
  83. - echo "exec '$wadir/miniserv.pl' $config_dir/miniserv.conf" >>$config_dir/start
  84. + echo "exec '/opt/webmin/miniserv.pl' $config_dir/miniserv.conf" >>$config_dir/start
  85. fi
  86. echo "#!/bin/sh" >>$config_dir/stop
  87. -echo "echo Stopping Webmin server in $wadir" >>$config_dir/stop
  88. +echo "echo Stopping Webmin server in $prefix" >>$config_dir/stop
  89. echo "pidfile=\`grep \"^pidfile=\" $config_dir/miniserv.conf | sed -e 's/pidfile=//g'\`" >>$config_dir/stop
  90. echo "kill \`cat \$pidfile\`" >>$config_dir/stop