]> git.donarmstrong.com Git - cran2deb.git/blobdiff - branch/split_build/inst/etc/patches/Rpad/01_installRpadWWW.sh_conversion.patch
rename double_build -> split_build
[cran2deb.git] / branch / split_build / inst / etc / patches / Rpad / 01_installRpadWWW.sh_conversion.patch
diff --git a/branch/split_build/inst/etc/patches/Rpad/01_installRpadWWW.sh_conversion.patch b/branch/split_build/inst/etc/patches/Rpad/01_installRpadWWW.sh_conversion.patch
new file mode 100644 (file)
index 0000000..402836a
--- /dev/null
@@ -0,0 +1,176 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 01_installRpadWWW.sh_conversion.dpatch by  <edd@xmcorsairs.wu-wien.ac.at>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: dos to unix fileconversion
+
+@DPATCH@
+
+diff -Naur Rpad.orig/inst/serverversion/installRpadWWW.sh Rpad/inst/serverversion/installRpadWWW.sh
+--- Rpad.orig/inst/serverversion/installRpadWWW.sh     2007-04-24 17:47:26.000000000 +0200
++++ Rpad/inst/serverversion/installRpadWWW.sh  2009-04-09 04:25:13.000000000 +0200
+@@ -1,82 +1,82 @@
+-#!/bin/sh\r
+-# This installs the extra server files for Rpad on Debian.\r
+-# The defaults are to install to /var/www/Rpad.\r
+-# usage:\r
+-#   installRpadWWW.sh directory tree\r
+-# examples: \r
+-#   installRpadWWW.sh /var/www/Rpad \r
+-#   installRpadWWW.sh /var/www/Rpad /testingdir\r
+-#   installRpadWWW.sh /var/www/anotherdir\r
+-\r
+-RPAD=/var/www/Rpad\r
+-TREE=/.\r
+-if [ $# -eq 1 ]; then\r
+-  RPAD=$1\r
+-fi\r
+-if [ $# -eq 2 ]; then\r
+-  RPAD=$1\r
+-  TREE=$2\r
+-fi\r
+-\r
+-# copy the base files\r
+-mkdir -p $RPAD\r
+-cp -r ../basehtml/* $RPAD\r
+-cp -r ../basehtml/.RpadStartup.R $RPAD\r
+-\r
+-# fix the directory permissions\r
+-chmod a+w  $TREE$RPAD\r
+-chmod a+w  $TREE$RPAD/server\r
+-chmod a+x  $TREE$RPAD/server/*.pl\r
+-\r
+-# this link makes the help menu work\r
+-ln -s /usr/lib/R $TREE$RPAD/R\r
+-\r
+-# make a name for the apache config file\r
+-conf_d_name=`echo $RPAD | sed s^/^.^g`\r
+-\r
+-# apache configuration file (cgi or mod_perl)\r
+-mkdir -p $TREE/etc/apache2/conf.d\r
+-cat >> $TREE/etc/apache2/conf.d/Rpad$conf_d_name << EOF\r
+-<Directory $RPAD/server*>  \r
+-  <IfModule mod_perl.c>\r
+-    <Files *.pl> # requires mod_perl\r
+-      SetHandler perl-script\r
+-      PerlResponseHandler ModPerl::PerlRun\r
+-      PerlOptions +ParseHeaders\r
+-      Options -Indexes +ExecCGI\r
+-    </Files>\r
+-  </IfModule>\r
+-  Options +ExecCGI\r
+-  AddHandler cgi-script .pl\r
+-  <IfModule mod_expires.c>\r
+-    ExpiresActive on\r
+-    ExpiresDefault "now plus 0 seconds"\r
+-  </IfModule>\r
+-</Directory>\r
+-AddType text/x-component .htc\r
+-AddType text/html .Rpad\r
+-EOF\r
+-\r
+-# apache2 configuration file (cgi or mod_perl)\r
+-mkdir -p $TREE/etc/apache/conf.d\r
+-cat >> $TREE/etc/apache/conf.d/Rpad$conf_d_name << EOF\r
+-<Directory $RPAD/server*>  \r
+-  <IfModule mod_perl.c>\r
+-    <Files *.pl> # requires mod_perl\r
+-      SetHandler perl-script\r
+-      PerlHandler Apache::Registry\r
+-      Options +ExecCGI\r
+-      PerlSendHeader ON\r
+-    </Files>\r
+-  </IfModule>\r
+-  Options +ExecCGI\r
+-  AddHandler cgi-script .pl\r
+-  <IfModule mod_expires.c>\r
+-    ExpiresActive on\r
+-    ExpiresDefault "now plus 0 seconds"\r
+-  </IfModule>\r
+-</Directory>\r
+-AddType text/x-component .htc\r
+-AddType text/html .Rpad\r
+-EOF\r
+-\r
++#!/bin/sh
++# This installs the extra server files for Rpad on Debian.
++# The defaults are to install to /var/www/Rpad.
++# usage:
++#   installRpadWWW.sh directory tree
++# examples: 
++#   installRpadWWW.sh /var/www/Rpad 
++#   installRpadWWW.sh /var/www/Rpad /testingdir
++#   installRpadWWW.sh /var/www/anotherdir
++
++RPAD=/var/www/Rpad
++TREE=/.
++if [ $# -eq 1 ]; then
++  RPAD=$1
++fi
++if [ $# -eq 2 ]; then
++  RPAD=$1
++  TREE=$2
++fi
++
++# copy the base files
++mkdir -p $RPAD
++cp -r ../basehtml/* $RPAD
++cp -r ../basehtml/.RpadStartup.R $RPAD
++
++# fix the directory permissions
++chmod a+w  $TREE$RPAD
++chmod a+w  $TREE$RPAD/server
++chmod a+x  $TREE$RPAD/server/*.pl
++
++# this link makes the help menu work
++ln -s /usr/lib/R $TREE$RPAD/R
++
++# make a name for the apache config file
++conf_d_name=`echo $RPAD | sed s^/^.^g`
++
++# apache configuration file (cgi or mod_perl)
++mkdir -p $TREE/etc/apache2/conf.d
++cat >> $TREE/etc/apache2/conf.d/Rpad$conf_d_name << EOF
++<Directory $RPAD/server*>  
++  <IfModule mod_perl.c>
++    <Files *.pl> # requires mod_perl
++      SetHandler perl-script
++      PerlResponseHandler ModPerl::PerlRun
++      PerlOptions +ParseHeaders
++      Options -Indexes +ExecCGI
++    </Files>
++  </IfModule>
++  Options +ExecCGI
++  AddHandler cgi-script .pl
++  <IfModule mod_expires.c>
++    ExpiresActive on
++    ExpiresDefault "now plus 0 seconds"
++  </IfModule>
++</Directory>
++AddType text/x-component .htc
++AddType text/html .Rpad
++EOF
++
++# apache2 configuration file (cgi or mod_perl)
++mkdir -p $TREE/etc/apache/conf.d
++cat >> $TREE/etc/apache/conf.d/Rpad$conf_d_name << EOF
++<Directory $RPAD/server*>  
++  <IfModule mod_perl.c>
++    <Files *.pl> # requires mod_perl
++      SetHandler perl-script
++      PerlHandler Apache::Registry
++      Options +ExecCGI
++      PerlSendHeader ON
++    </Files>
++  </IfModule>
++  Options +ExecCGI
++  AddHandler cgi-script .pl
++  <IfModule mod_expires.c>
++    ExpiresActive on
++    ExpiresDefault "now plus 0 seconds"
++  </IfModule>
++</Directory>
++AddType text/x-component .htc
++AddType text/html .Rpad
++EOF
++