Skip to content

Commit

Permalink
Use zpassenger.load for passenger
Browse files Browse the repository at this point in the history
  • Loading branch information
Ondrej Prazak committed Nov 3, 2016
1 parent 705eb4d commit 05b08dc
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 9 deletions.
1 change: 0 additions & 1 deletion rubygem-passenger/apache-passenger.conf.in
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
LoadModule passenger_module modules/mod_passenger.so
<IfModule mod_passenger.c>
PassengerRoot @PASSENGERROOT@
PassengerRuby @BINDIR@/ruby
Expand Down
11 changes: 3 additions & 8 deletions rubygem-passenger/rubygem-passenger.spec
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ Source1: passenger.logrotate
Source2: rubygem-passenger.tmpfiles
Source10: apache-passenger.conf.in
Source11: locations.ini
Source12: zpassenger.load.in

# Include sys/types.h for GCC 4.7
Patch2: rubygem-passenger-4.0.18-gcc47-include-sys_types.patch
Expand Down Expand Up @@ -315,15 +316,9 @@ install -pm 0755 buildout/apache2/mod_passenger.so %{buildroot}/%{_httpd_moddir}
%{__sed} -e 's|@PASSENGERROOT@|%{gem_instdir}/lib/phusion_passenger/locations.ini|g' %{SOURCE10} > passenger.conf
%{__sed} -i 's|@BINDIR@|%{_bindir}|' passenger.conf

%if "%{_httpd_modconfdir}" != "%{_httpd_confdir}"
%{__sed} -n /^LoadModule/p passenger.conf > 10-passenger.conf
%{__sed} -i /^LoadModule/d passenger.conf
touch -r %{SOURCE10} 10-passenger.conf
install -pm 0644 10-passenger.conf %{buildroot}%{_httpd_modconfdir}/passenger.conf
%endif
touch -r %{SOURCE10} passenger.conf
install -pm 0644 passenger.conf %{buildroot}%{_httpd_confdir}/passenger.conf

install -pm 0644 %{SOURCE12} %{buildroot}%{_httpd_modconfdir}/zpassenger.load

# Install man pages into the proper location.
%{__mkdir_p} %{buildroot}%{_mandir}/man1
Expand Down Expand Up @@ -442,7 +437,7 @@ rake test --trace ||:
%if 0%{?rhel} >= 7
%config(noreplace) %{_httpd_confdir}/*.conf
%endif
%config(noreplace) %{_httpd_modconfdir}/*.conf
%config(noreplace) %{_httpd_modconfdir}/*.load
%{_httpd_moddir}/mod_passenger.so
%doc doc/Users?guide?Apache.txt

Expand Down
1 change: 1 addition & 0 deletions rubygem-passenger/zpassenger.load.in
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
LoadModule passenger_module modules/mod_passenger.so

0 comments on commit 05b08dc

Please sign in to comment.