wok-current annotate passenger/receipt @ rev 10257
Add passenger.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Sat May 21 04:05:16 2011 +0000 (2011-05-21) |
parents | |
children | e0e2448eb53d |
rev | line source |
---|---|
slaxemulator@10257 | 1 # SliTaz package receipt. |
slaxemulator@10257 | 2 |
slaxemulator@10257 | 3 PACKAGE="passenger" |
slaxemulator@10257 | 4 VERSION="3.0.7" |
slaxemulator@10257 | 5 CATEGORY="networking" |
slaxemulator@10257 | 6 SHORT_DESC="Rails and Rack support for Apache2." |
slaxemulator@10257 | 7 MAINTAINER="erjo@slitaz.org" |
slaxemulator@10257 | 8 DEPENDS="ruby rake libev libcurl fastthread daemon_controller spruz file-tail rack apache" |
slaxemulator@10257 | 9 BUILD_DEPENDS="$DEPENDS ruby-dev curl-dev libev-dev apr-dev" |
slaxemulator@10257 | 10 TARBALL="$PACKAGE-$VERSION.gem" |
slaxemulator@10257 | 11 WEB_SITE="http://rubygems.org/gems/passenger" |
slaxemulator@10257 | 12 WGET_URL="http://rubygems.org/downloads/$TARBALL" |
slaxemulator@10257 | 13 COOK_OPT="!repack_src !unpack" |
slaxemulator@10257 | 14 |
slaxemulator@10257 | 15 # Rules to configure and make the package. |
slaxemulator@10257 | 16 compile_rules() |
slaxemulator@10257 | 17 { |
slaxemulator@10257 | 18 [ -d $PACKAGE-$VERSION ] || mkdir $PACKAGE-$VERSION |
slaxemulator@10257 | 19 cd $src |
slaxemulator@10257 | 20 |
slaxemulator@10257 | 21 gem install --no-rdoc --no-ri --ignore-dependencies \ |
slaxemulator@10257 | 22 --install-dir $PWD/ $SOURCES_REPOSITORY/$TARBALL |
slaxemulator@10257 | 23 |
slaxemulator@10257 | 24 # Build Apache module |
slaxemulator@10257 | 25 cd gems/$PACKAGE-$VERSION/ |
slaxemulator@10257 | 26 rake fakeroot APXS2=/usr/bin/apxs USE_VENDORED_LIBEV=no RELEASE=yes \ |
slaxemulator@10257 | 27 APR_CONFIG=/usr/bin/apr-1-config APU_CONFIG=/usr/bin/apu-1-config |
slaxemulator@10257 | 28 } |
slaxemulator@10257 | 29 |
slaxemulator@10257 | 30 # Rules to gen a SliTaz package suitable for Tazpkg. |
slaxemulator@10257 | 31 genpkg_rules() |
slaxemulator@10257 | 32 { |
slaxemulator@10257 | 33 mkdir -p $fs/usr/share $fs/var/run/passenger $fs/etc/apache/conf.d |
slaxemulator@10257 | 34 |
slaxemulator@10257 | 35 cp -a $stuff/passenger.conf $fs/etc/apache/conf.d |
slaxemulator@10257 | 36 cp -a $src/gems/$PACKAGE-$VERSION/pkg/fakeroot/usr/bin $fs/usr |
slaxemulator@10257 | 37 cp -a $src/gems/$PACKAGE-$VERSION/pkg/fakeroot/usr/sbin $fs/usr |
slaxemulator@10257 | 38 cp -a $src/gems/$PACKAGE-$VERSION/pkg/fakeroot/usr/lib $fs/usr |
slaxemulator@10257 | 39 cp -a $src/gems/$PACKAGE-$VERSION/pkg/fakeroot/usr/share/phusion-passenger $fs/usr/share |
slaxemulator@10257 | 40 |
slaxemulator@10257 | 41 # Clean-up |
slaxemulator@10257 | 42 rm -rf $fs/usr/share/phusion-passenger/source |
slaxemulator@10257 | 43 } |