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.

112 lines
4.3 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/alessandro/webmin/nodefuser.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. diff -ruN webmin-1.180/setup.sh webmin-1.180-new/setup.sh
  20. --- webmin-1.180/setup.sh 2005-01-24 23:15:16.000000000 +0100
  21. +++ webmin-1.180-new/setup.sh 2005-01-29 15:07:12.515588416 +0100
  22. @@ -438,7 +438,7 @@
  23. echo "Webmin does not support being started at boot time on your system."
  24. fi
  25. fi
  26. - makeboot=$atboot
  27. + #ROCK makeboot=$atboot
  28. # Copy files to target directory
  29. echo "***********************************************************************"
  30. @@ -455,8 +455,8 @@
  31. echo "Creating web server config files.."
  32. cfile=$config_dir/miniserv.conf
  33. echo "port=$port" >> $cfile
  34. - echo "root=$wadir" >> $cfile
  35. - echo "mimetypes=$wadir/mime.types" >> $cfile
  36. + echo "root=$prefix" >> $cfile
  37. + echo "mimetypes=$prefix/mime.types" >> $cfile
  38. echo "addtype_cgi=internal/cgi" >> $cfile
  39. echo "realm=Webmin Server" >> $cfile
  40. echo "logfile=$var_dir/miniserv.log" >> $cfile
  41. @@ -490,15 +490,16 @@
  42. md5pass=`$perl -e 'print crypt("test", "\\$1\\$A9wB3O18\\$zaZgqrEmb9VNltWTL454R/") eq "\\$1\\$A9wB3O18\\$zaZgqrEmb9VNltWTL454R/" ? "1\n" : "0\n"'`
  43. ufile=$config_dir/miniserv.users
  44. - if [ "$crypt" != "" ]; then
  45. - echo "$login:$crypt:0" > $ufile
  46. - else
  47. - if [ "$md5pass" = "1" ]; then
  48. - $perl -e 'print "$ARGV[0]:",crypt($ARGV[1], "\$1\$XXXXXXXX"),":0\n"' "$login" "$password" > $ufile
  49. - else
  50. - $perl -e 'print "$ARGV[0]:",crypt($ARGV[1], "XX"),":0\n"' "$login" "$password" > $ufile
  51. - fi
  52. - fi
  53. +#ROCK if [ "$crypt" != "" ]; then
  54. +#ROCK echo "$login:$crypt:0" > $ufile
  55. +#ROCK else
  56. +#ROCK if [ "$md5pass" = "1" ]; then
  57. +#ROCK $perl -e 'print "$ARGV[0]:",crypt($ARGV[1], "\$1\$XXXXXXXX"),":0\n"' "$login" "$password" > $ufile
  58. +#ROCK else
  59. +#ROCK $perl -e 'print "$ARGV[0]:",crypt($ARGV[1], "XX"),":0\n"' "$login" "$password" > $ufile
  60. +#ROCK fi
  61. +#ROCK fi
  62. + touch $ufile
  63. chmod 600 $ufile
  64. echo "userfile=$ufile" >> $cfile
  65. @@ -535,11 +536,12 @@
  66. echo "Creating access control file.."
  67. afile=$config_dir/webmin.acl
  68. rm -f $afile
  69. - if [ "$defaultmods" = "" ]; then
  70. - echo "$login: $allmods" >> $afile
  71. - else
  72. - echo "$login: $defaultmods" >> $afile
  73. - fi
  74. +#ROCK if [ "$defaultmods" = "" ]; then
  75. +#ROCK echo "$login: $allmods" >> $afile
  76. +#ROCK else
  77. +#ROCK echo "$login: $defaultmods" >> $afile
  78. +#ROCK fi
  79. + touch $afile
  80. chmod 600 $afile
  81. echo "..done"
  82. echo ""
  83. @@ -560,7 +562,7 @@
  84. echo "Creating start and stop scripts.."
  85. rm -f $config_dir/stop $config_dir/start $config_dir/restart
  86. echo "#!/bin/sh" >>$config_dir/start
  87. -echo "echo Starting Webmin server in $wadir" >>$config_dir/start
  88. +echo "echo Starting Webmin server in $prefix" >>$config_dir/start
  89. echo "trap '' 1" >>$config_dir/start
  90. echo "LANG=" >>$config_dir/start
  91. echo "export LANG" >>$config_dir/start
  92. @@ -571,13 +573,13 @@
  93. echo "export PERLLIB" >>$config_dir/start
  94. uname -a | grep -i 'HP/*UX' >/dev/null
  95. if [ $? = "0" ]; then
  96. - echo "exec '$wadir/miniserv.pl' $config_dir/miniserv.conf &" >>$config_dir/start
  97. + echo "exec '$prefix/miniserv.pl' $config_dir/miniserv.conf &" >>$config_dir/start
  98. else
  99. - echo "exec '$wadir/miniserv.pl' $config_dir/miniserv.conf" >>$config_dir/start
  100. + echo "exec '$prefix/miniserv.pl' $config_dir/miniserv.conf" >>$config_dir/start
  101. fi
  102. echo "#!/bin/sh" >>$config_dir/stop
  103. -echo "echo Stopping Webmin server in $wadir" >>$config_dir/stop
  104. +echo "echo Stopping Webmin server in $prefix" >>$config_dir/stop
  105. echo "pidfile=\`grep \"^pidfile=\" $config_dir/miniserv.conf | sed -e 's/pidfile=//g'\`" >>$config_dir/stop
  106. echo "kill \`cat \$pidfile\`" >>$config_dir/stop