[DRE-commits] r2986 - packages-wip/redmine/trunk/debian/patches
rnhurt-guest at alioth.debian.org
rnhurt-guest at alioth.debian.org
Tue Sep 9 13:38:00 UTC 2008
Author: rnhurt-guest
Date: 2008-09-09 13:37:59 +0000 (Tue, 09 Sep 2008)
New Revision: 2986
Added:
packages-wip/redmine/trunk/debian/patches/dispatch-config.patch
packages-wip/redmine/trunk/debian/patches/dispatch-env.patch
Log:
added missing patch files
Added: packages-wip/redmine/trunk/debian/patches/dispatch-config.patch
===================================================================
--- packages-wip/redmine/trunk/debian/patches/dispatch-config.patch (rev 0)
+++ packages-wip/redmine/trunk/debian/patches/dispatch-config.patch 2008-09-09 13:37:59 UTC (rev 2986)
@@ -0,0 +1,12 @@
+--- a/public/dispatch.fcgi.example
++++ b/public/dispatch.fcgi.example
+@@ -18,7 +18,8 @@
+ # # Custom log path, normal GC behavior.
+ # RailsFCGIHandler.process! '/var/log/myapp_fcgi_crash.log'
+ #
+-require File.dirname(__FILE__) + "/../config/environment"
++RAILS_ROOT = "/usr/share/redmine"
++require "/usr/share/redmine/config/environment"
+ require 'fcgi_handler'
+
+ RailsFCGIHandler.process!
Added: packages-wip/redmine/trunk/debian/patches/dispatch-env.patch
===================================================================
--- packages-wip/redmine/trunk/debian/patches/dispatch-env.patch (rev 0)
+++ packages-wip/redmine/trunk/debian/patches/dispatch-env.patch 2008-09-09 13:37:59 UTC (rev 2986)
@@ -0,0 +1,38 @@
+--- a/public/dispatch.cgi.example
++++ b/public/dispatch.cgi.example
+@@ -1,4 +1,4 @@
+-#!/usr/bin/ruby
++#!/usr/bin/env ruby
+
+ require File.dirname(__FILE__) + "/../config/environment" unless defined?(RAILS_ROOT)
+
+@@ -7,4 +7,4 @@
+ require "dispatcher"
+
+ ADDITIONAL_LOAD_PATHS.reverse.each { |dir| $:.unshift(dir) if File.directory?(dir) } if defined?(Apache::RubyRun)
+-Dispatcher.dispatch
+\ No newline at end of file
++Dispatcher.dispatch
+--- a/public/dispatch.fcgi.example
++++ b/public/dispatch.fcgi.example
+@@ -1,4 +1,4 @@
+-#!/usr/bin/ruby
++#!/usr/bin/env ruby
+ #
+ # You may specify the path to the FastCGI crash log (a log of unhandled
+ # exceptions which forced the FastCGI instance to exit, great for debugging)
+--- a/public/dispatch.rb.example
++++ b/public/dispatch.rb.example
+@@ -1,4 +1,4 @@
+-#!/usr/bin/ruby
++#!/usr/bin/env ruby
+
+ require File.dirname(__FILE__) + "/../config/environment" unless defined?(RAILS_ROOT)
+
+@@ -7,4 +7,4 @@
+ require "dispatcher"
+
+ ADDITIONAL_LOAD_PATHS.reverse.each { |dir| $:.unshift(dir) if File.directory?(dir) } if defined?(Apache::RubyRun)
+-Dispatcher.dispatch
+\ No newline at end of file
++Dispatcher.dispatch
More information about the Pkg-ruby-extras-commits
mailing list