Gentoo Archives: gentoo-commits

From: "Benedikt Boehm (hollow)" <hollow@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in www-apache/passenger/files: 30_mod_passenger-2.0.1.conf 2.0.1-gentoo.patch 1.0.1-gentoo.patch
Date: Tue, 01 Jul 2008 19:36:23
Message-Id: E1KDleD-0008SL-UC@stork.gentoo.org
1 hollow 08/07/01 19:36:17
2
3 Added: 30_mod_passenger-2.0.1.conf 2.0.1-gentoo.patch
4 Removed: 1.0.1-gentoo.patch
5 Log:
6 version bump wrt #229449
7 (Portage version: 2.2_pre8/cvs/Linux 2.6.22-vs2.2.0.6-gentoo x86_64)
8
9 Revision Changes Path
10 1.1 www-apache/passenger/files/30_mod_passenger-2.0.1.conf
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-apache/passenger/files/30_mod_passenger-2.0.1.conf?rev=1.1&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-apache/passenger/files/30_mod_passenger-2.0.1.conf?rev=1.1&content-type=text/plain
14
15 Index: 30_mod_passenger-2.0.1.conf
16 ===================================================================
17 <IfDefine PASSENGER>
18 LoadModule passenger_module modules/mod_passenger.so
19
20 # The location to the Phusion Passenger root directory. This configuration
21 # option is essential to Phusion Passenger. The correct value is given by the
22 # installer, and should usually not be changed manually.
23 PassengerRoot /usr
24
25 # This option allows one to specify how much information Phusion Passenger
26 # should write to the Apache error log file. A higher log level value means
27 # that more information will be logged.
28 #
29 # Possible values are:
30 #
31 # 0: Show only errors and warnings.
32 # 1: Show the most important debugging information. This might be useful for
33 # system administrators who are trying to figure out the cause of a
34 # problem.
35 # 2: Show more debugging information. This is typically only useful for
36 # developers.
37 # 3: Show even more debugging information.
38 PassengerLogLevel 0
39
40 # This option allows one to specify the Ruby interpreter to use.
41 PassengerRuby /usr/bin/ruby18
42
43 # Whether Passenger should automatically detect whether a virtual host's
44 # document root is a Ruby on Rails application.
45 RailsAutoDetect On
46
47 # The maximum number of Ruby on Rails application instances that may be
48 # simultaneously active. A larger number results in higher memory usage, but
49 # improved ability to handle concurrent HTTP clients.
50 PassengerMaxPoolSize 20
51
52 # The maximum number of seconds that a Ruby on Rails application instance may
53 # be idle. That is, if an application instance hasn't done anything after the
54 # given number of seconds, then it will be shutdown in order to conserve
55 # memory.
56 PassengerPoolIdleTime 120
57
58 # The maximum number of application instances that may be simultaneously active
59 # for a single application. This helps to make sure that a single application
60 # will not occupy all available slots in the application pool.
61 #
62 # This value must be less than PassengerMaxPoolSize. A value of 0 means that
63 # there is no limit placed on the number of instances a single application may
64 # use, i.e. only the global limit of PassengerMaxPoolSize will be enforced.
65 PassengerMaxInstancesPerApp 0
66
67 # When the PassengerUserSwitching option is enabled a Rails application is started
68 # as the owner of the file config/environment.rb. So if
69 # /home/webapps/foo/config/environment.rb is owned by joe, then Passenger will
70 # launch the corresponding Rails application as joe as well.
71 PassengerUserSwitching On
72
73 # Under no circumstances will Rails applications be run as root. If
74 # environment.rb is owned by root or by an unknown user, then the Rails
75 # application will run as the user specified by PassengerDefaultUser.
76 PassengerDefaultUser apache
77 </IfDefine>
78
79 # vim: ts=4 filetype=apache
80
81
82
83 1.1 www-apache/passenger/files/2.0.1-gentoo.patch
84
85 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-apache/passenger/files/2.0.1-gentoo.patch?rev=1.1&view=markup
86 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-apache/passenger/files/2.0.1-gentoo.patch?rev=1.1&content-type=text/plain
87
88 Index: 2.0.1-gentoo.patch
89 ===================================================================
90 Index: passenger-2.0.1/Rakefile
91 ===================================================================
92 --- passenger-2.0.1.orig/Rakefile
93 +++ passenger-2.0.1/Rakefile
94 @@ -38,12 +38,8 @@ APR_FLAGS.nil? and raise "Could not find
95
96 CXX = "g++"
97 THREADING_FLAGS = "-D_REENTRANT"
98 -if OPTIMIZE
99 - OPTIMIZATION_FLAGS = "-O2 -DNDEBUG"
100 -else
101 - OPTIMIZATION_FLAGS = "-g -DPASSENGER_DEBUG"
102 -end
103 -CXXFLAGS = "#{THREADING_FLAGS} #{OPTIMIZATION_FLAGS} -Wall -I/usr/local/include #{MULTI_ARCH_FLAGS}"
104 +OPTIMIZATION_FLAGS = "#{ENV['CXXFLAGS']} -DNDEBUG"
105 +CXXFLAGS = "#{THREADING_FLAGS} #{OPTIMIZATION_FLAGS} -Wall #{MULTI_ARCH_FLAGS}"
106 LDFLAGS = ""
107
108
109 @@ -156,7 +152,7 @@ subdir 'ext/apache2' do
110 ] do
111 create_executable "ApplicationPoolServerExecutable",
112 'ApplicationPoolServerExecutable.cpp System.o Utils.o Logging.o',
113 - "-I.. #{CXXFLAGS} #{LDFLAGS} -DPASSENGER_DEBUG ../boost/src/libboost_thread.a -lpthread"
114 + "-I.. #{CXXFLAGS} #{LDFLAGS} ../boost/src/libboost_thread.a -lpthread"
115 end
116
117 file 'mod_passenger.o' => ['mod_passenger.c'] do
118 @@ -476,15 +472,15 @@ desc "Create a fakeroot, useful for buil
119 task :fakeroot => [:apache2, :native_support, :doc] do
120 require 'rbconfig'
121 include Config
122 - fakeroot = "pkg/fakeroot"
123 + fakeroot = ENV['DISTDIR']
124
125 # We don't use CONFIG['archdir'] and the like because we want
126 # the files to be installed to /usr, and the Ruby interpreter
127 # on the packaging machine might be in /usr/local.
128 - libdir = "#{fakeroot}/usr/lib/ruby/#{CONFIG['ruby_version']}"
129 + libdir = "#{fakeroot}/#{CONFIG['sitedir']}/#{CONFIG['ruby_version']}"
130 extdir = "#{libdir}/#{CONFIG['arch']}"
131 bindir = "#{fakeroot}/usr/bin"
132 - docdir = "#{fakeroot}/usr/share/doc/passenger"
133 + docdir = "#{fakeroot}/usr/share/doc/passenger-#{PACKAGE_VERSION}"
134 libexecdir = "#{fakeroot}/usr/lib/passenger"
135
136 sh "rm -rf #{fakeroot}"
137 @@ -503,7 +499,6 @@ task :fakeroot => [:apache2, :native_sup
138 sh "cp bin/* #{bindir}/"
139
140 sh "mkdir -p #{libexecdir}"
141 - sh "cp ext/apache2/mod_passenger.so #{libexecdir}/"
142 sh "mv #{fakeroot}/usr/bin/passenger-spawn-server #{libexecdir}/"
143 sh "cp ext/apache2/ApplicationPoolServerExecutable #{libexecdir}/"
144
145
146
147
148 --
149 gentoo-commits@l.g.o mailing list