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.

93 lines
3.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/alessandro/webmin/nodefuser.patch
  9. # ROCK Linux is Copyright (C) 1998 - 2003 Clifford Wolf
  10. #
  11. # This program is free software; you can redistribute it and/or modify
  12. # it under the terms of the GNU General Public License as published by
  13. # the Free Software Foundation; either version 2 of the License, or
  14. # (at your option) any later version. A copy of the GNU General Public
  15. # License can be found at Documentation/COPYING.
  16. #
  17. # Many people helped and are helping developing ROCK Linux. Please
  18. # have a look at http://www.rocklinux.org/ and the Documentation/TEAM
  19. # file for details.
  20. #
  21. # --- ROCK-COPYRIGHT-NOTE-END ---
  22. --- ./setup.sh 2003-02-20 11:40:14.000000000 +0000
  23. +++ ./setup.sh 2003-04-05 16:37:29.000000000 +0000
  24. @@ -382,7 +382,6 @@
  25. echo "Webmin does not support being started at boot time on your system."
  26. fi
  27. fi
  28. - makeboot=$atboot
  29. # Create webserver config file
  30. echo $perl > $config_dir/perl-path
  31. @@ -391,8 +390,8 @@
  32. echo "Creating web server config files.."
  33. cfile=$config_dir/miniserv.conf
  34. echo "port=$port" >> $cfile
  35. - echo "root=$wadir" >> $cfile
  36. - echo "mimetypes=$wadir/mime.types" >> $cfile
  37. + echo "root=$prefix" >> $cfile
  38. + echo "mimetypes=$prefix/mime.types" >> $cfile
  39. echo "addtype_cgi=internal/cgi" >> $cfile
  40. echo "realm=Webmin Server" >> $cfile
  41. echo "logfile=$var_dir/miniserv.log" >> $cfile
  42. @@ -461,12 +460,8 @@
  43. fi
  44. ufile=$config_dir/miniserv.users
  45. - if [ "$crypt" != "" ]; then
  46. - echo "$login:$crypt:0" > $ufile
  47. - else
  48. - $perl -e 'print "$ARGV[0]:",crypt($ARGV[1], "XX"),":0\n"' "$login" "$password" > $ufile
  49. - fi
  50. - chmod 600 $ufile
  51. + touch $ufile
  52. + chmod 600 $ufile
  53. echo "userfile=$ufile" >> $cfile
  54. kfile=$config_dir/miniserv.pem
  55. @@ -502,7 +497,7 @@
  56. echo "Creating access control file.."
  57. afile=$config_dir/webmin.acl
  58. rm -f $afile
  59. - echo "$login: $allmods" >> $afile
  60. + touch $afile
  61. chmod 600 $afile
  62. echo "..done"
  63. echo ""
  64. @@ -523,7 +518,7 @@
  65. echo "Creating start and stop scripts.."
  66. rm -f $config_dir/stop $config_dir/start
  67. echo "#!/bin/sh" >>$config_dir/start
  68. -echo "echo Starting Webmin server in $wadir" >>$config_dir/start
  69. +echo "echo Starting Webmin server in $prefix" >>$config_dir/start
  70. echo "trap '' 1" >>$config_dir/start
  71. echo "LANG=" >>$config_dir/start
  72. echo "export LANG" >>$config_dir/start
  73. @@ -531,13 +526,13 @@
  74. echo "export PERLIO" >>$config_dir/start
  75. uname -a | grep -i 'HP/*UX' >/dev/null
  76. if [ $? = "0" ]; then
  77. - echo "exec '$wadir/miniserv.pl' $config_dir/miniserv.conf &" >>$config_dir/start
  78. + echo "exec '$prefix/miniserv.pl' $config_dir/miniserv.conf &" >>$config_dir/start
  79. else
  80. - echo "exec '$wadir/miniserv.pl' $config_dir/miniserv.conf" >>$config_dir/start
  81. + echo "exec '$prefix/miniserv.pl' $config_dir/miniserv.conf" >>$config_dir/start
  82. fi
  83. echo "#!/bin/sh" >>$config_dir/stop
  84. -echo "echo Stopping Webmin server in $wadir" >>$config_dir/stop
  85. +echo "echo Stopping Webmin server in $prefix" >>$config_dir/stop
  86. echo "pidfile=\`grep \"^pidfile=\" $config_dir/miniserv.conf | sed -e 's/pidfile=//g'\`" >>$config_dir/stop
  87. echo "kill \`cat \$pidfile\`" >>$config_dir/stop
  88. chmod 755 $config_dir/start $config_dir/stop