wok diff passenger/receipt @ rev 10520
octave: update bdeps
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed May 25 16:14:19 2011 +0200 (2011-05-25) |
parents | |
children | e0e2448eb53d |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/passenger/receipt Wed May 25 16:14:19 2011 +0200 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 +}