[DRE-commits] r2946 - in packages-wip/redmine/trunk/debian: . patches
rnhurt-guest at alioth.debian.org
rnhurt-guest at alioth.debian.org
Fri Aug 15 19:18:36 UTC 2008
Author: rnhurt-guest
Date: 2008-08-15 19:18:35 +0000 (Fri, 15 Aug 2008)
New Revision: 2946
Added:
packages-wip/redmine/trunk/debian/files
packages-wip/redmine/trunk/debian/patches/
packages-wip/redmine/trunk/debian/patches/dispatch.patch
packages-wip/redmine/trunk/debian/patches/series
packages-wip/redmine/trunk/debian/redmine.debhelper.log
packages-wip/redmine/trunk/debian/redmine.logrotate
Modified:
packages-wip/redmine/trunk/debian/control
packages-wip/redmine/trunk/debian/rules
Log:
Used quilt to patch the dispatch.xxx.example files. This allows us relocate /public and /config from the /usr/share/redmine directory to /etc/redmine.
Modified: packages-wip/redmine/trunk/debian/control
===================================================================
--- packages-wip/redmine/trunk/debian/control 2008-08-15 18:26:27 UTC (rev 2945)
+++ packages-wip/redmine/trunk/debian/control 2008-08-15 19:18:35 UTC (rev 2946)
@@ -2,7 +2,7 @@
Section: web
Priority: optional
Maintainer: Richard Hurt <rnhurt at kangaroobox.com>
-Build-Depends: debhelper (>= 7), dpatch
+Build-Depends: debhelper (>= 7), quilt
Standards-Version: 3.8.0
Vcs-Svn: svn://rubyforge.org/var/svn/redmine/trunk redmine
Vcs-Browser: http://www.redmine.org/repositories/show/redmine
Added: packages-wip/redmine/trunk/debian/files
===================================================================
--- packages-wip/redmine/trunk/debian/files (rev 0)
+++ packages-wip/redmine/trunk/debian/files 2008-08-15 19:18:35 UTC (rev 2946)
@@ -0,0 +1 @@
+redmine_0.7.4~1-1_all.deb web optional
Added: packages-wip/redmine/trunk/debian/patches/dispatch.patch
===================================================================
--- packages-wip/redmine/trunk/debian/patches/dispatch.patch (rev 0)
+++ packages-wip/redmine/trunk/debian/patches/dispatch.patch 2008-08-15 19:18:35 UTC (rev 2946)
@@ -0,0 +1,54 @@
+Index: redmine-0.7.4~1/public/dispatch.fcgi.example
+===================================================================
+--- redmine-0.7.4~1.orig/public/dispatch.fcgi.example 2008-08-15 14:29:29.000000000 -0400
++++ redmine-0.7.4~1/public/dispatch.fcgi.example 2008-08-15 14:33:27.000000000 -0400
+@@ -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)
+@@ -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!
+Index: redmine-0.7.4~1/public/dispatch.cgi.example
+===================================================================
+--- redmine-0.7.4~1.orig/public/dispatch.cgi.example 2008-08-15 14:31:46.000000000 -0400
++++ redmine-0.7.4~1/public/dispatch.cgi.example 2008-08-15 14:31:51.000000000 -0400
+@@ -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
+Index: redmine-0.7.4~1/public/dispatch.rb.example
+===================================================================
+--- redmine-0.7.4~1.orig/public/dispatch.rb.example 2008-08-15 14:31:54.000000000 -0400
++++ redmine-0.7.4~1/public/dispatch.rb.example 2008-08-15 14:32:00.000000000 -0400
+@@ -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
Added: packages-wip/redmine/trunk/debian/patches/series
===================================================================
--- packages-wip/redmine/trunk/debian/patches/series (rev 0)
+++ packages-wip/redmine/trunk/debian/patches/series 2008-08-15 19:18:35 UTC (rev 2946)
@@ -0,0 +1 @@
+dispatch.patch
Added: packages-wip/redmine/trunk/debian/redmine.debhelper.log
===================================================================
--- packages-wip/redmine/trunk/debian/redmine.debhelper.log (rev 0)
+++ packages-wip/redmine/trunk/debian/redmine.debhelper.log 2008-08-15 19:18:35 UTC (rev 2946)
@@ -0,0 +1,15 @@
+dh_installdirs
+dh_installchangelogs
+dh_installdocs
+dh_install
+dh_installdirs
+dh_lintian
+dh_installlogrotate
+dh_link
+dh_strip
+dh_compress
+dh_fixperms
+dh_installdeb
+dh_gencontrol
+dh_md5sums
+dh_builddeb
Added: packages-wip/redmine/trunk/debian/redmine.logrotate
===================================================================
--- packages-wip/redmine/trunk/debian/redmine.logrotate (rev 0)
+++ packages-wip/redmine/trunk/debian/redmine.logrotate 2008-08-15 19:18:35 UTC (rev 2946)
@@ -0,0 +1,12 @@
+# Redmine logs:
+ /var/log/redmine/*.log {
+ daily
+ missingok
+ rotate 14
+ compress
+ delaycompress
+ notifempty
+ copytruncate
+ create 0666 www-data www-data
+}
+
Modified: packages-wip/redmine/trunk/debian/rules
===================================================================
--- packages-wip/redmine/trunk/debian/rules 2008-08-15 18:26:27 UTC (rev 2945)
+++ packages-wip/redmine/trunk/debian/rules 2008-08-15 19:18:35 UTC (rev 2946)
@@ -4,10 +4,15 @@
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
-clean:
+include /usr/share/quilt/quilt.make
+
+build: build-stamp
+build-stamp: $(QUILT_STAMPFN)
+
+clean: unpatch
dh_testdir
dh_testroot
- dh_clean
+ dh_clean build-stamp
install:
dh_testdir
More information about the Pkg-ruby-extras-commits
mailing list