wok rev 10257
Add passenger.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Sat May 21 04:05:16 2011 +0000 (2011-05-21) |
parents | 6f847bf1994d |
children | 82e7c2884004 |
files | passenger/receipt passenger/stuff/passenger.conf |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/passenger/receipt Sat May 21 04:05:16 2011 +0000 1.3 @@ -0,0 +1,43 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +PACKAGE="passenger" 1.7 +VERSION="3.0.7" 1.8 +CATEGORY="networking" 1.9 +SHORT_DESC="Rails and Rack support for Apache2." 1.10 +MAINTAINER="erjo@slitaz.org" 1.11 +DEPENDS="ruby rake libev libcurl fastthread daemon_controller spruz file-tail rack apache" 1.12 +BUILD_DEPENDS="$DEPENDS ruby-dev curl-dev libev-dev apr-dev" 1.13 +TARBALL="$PACKAGE-$VERSION.gem" 1.14 +WEB_SITE="http://rubygems.org/gems/passenger" 1.15 +WGET_URL="http://rubygems.org/downloads/$TARBALL" 1.16 +COOK_OPT="!repack_src !unpack" 1.17 + 1.18 +# Rules to configure and make the package. 1.19 +compile_rules() 1.20 +{ 1.21 + [ -d $PACKAGE-$VERSION ] || mkdir $PACKAGE-$VERSION 1.22 + cd $src 1.23 + 1.24 + gem install --no-rdoc --no-ri --ignore-dependencies \ 1.25 + --install-dir $PWD/ $SOURCES_REPOSITORY/$TARBALL 1.26 + 1.27 + # Build Apache module 1.28 + cd gems/$PACKAGE-$VERSION/ 1.29 + rake fakeroot APXS2=/usr/bin/apxs USE_VENDORED_LIBEV=no RELEASE=yes \ 1.30 + APR_CONFIG=/usr/bin/apr-1-config APU_CONFIG=/usr/bin/apu-1-config 1.31 +} 1.32 + 1.33 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.34 +genpkg_rules() 1.35 +{ 1.36 + mkdir -p $fs/usr/share $fs/var/run/passenger $fs/etc/apache/conf.d 1.37 + 1.38 + cp -a $stuff/passenger.conf $fs/etc/apache/conf.d 1.39 + cp -a $src/gems/$PACKAGE-$VERSION/pkg/fakeroot/usr/bin $fs/usr 1.40 + cp -a $src/gems/$PACKAGE-$VERSION/pkg/fakeroot/usr/sbin $fs/usr 1.41 + cp -a $src/gems/$PACKAGE-$VERSION/pkg/fakeroot/usr/lib $fs/usr 1.42 + cp -a $src/gems/$PACKAGE-$VERSION/pkg/fakeroot/usr/share/phusion-passenger $fs/usr/share 1.43 + 1.44 + # Clean-up 1.45 + rm -rf $fs/usr/share/phusion-passenger/source 1.46 +}
2.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 2.2 +++ b/passenger/stuff/passenger.conf Sat May 21 04:05:16 2011 +0000 2.3 @@ -0,0 +1,10 @@ 2.4 +LoadModule passenger_module /usr/lib/apache2/modules/mod_passenger.so 2.5 + 2.6 +<IfModule mod_passenger.c> 2.7 + PassengerRoot /usr/lib/ruby/1.8/phusion_passenger 2.8 + PassengerRuby /usr/bin/ruby 2.9 + PassengerUserSwitching off 2.10 + PassengerDefaultUser www 2.11 + PassengerUseGlobalQueue on 2.12 + PassengerRestartDir /var/run/passenger 2.13 +</IfModule>