wok view passenger/receipt @ rev 14922

Up: firefox-langpack-ru (17.0.7esr)
author Richard Dunbar <mojo@slitaz.org>
date Tue Aug 06 01:27:08 2013 +0000 (2013-08-06)
parents 769b80c8e4cf
children f315dcaf1948
line source
1 # SliTaz package receipt.
3 PACKAGE="passenger"
4 VERSION="3.0.7"
5 CATEGORY="network"
6 SHORT_DESC="Rails and Rack support for Apache2."
7 MAINTAINER="erjo@slitaz.org"
8 DEPENDS="ruby rake libev libcurl fastthread daemon_controller spruz file-tail rack apache"
9 BUILD_DEPENDS="$DEPENDS ruby-dev curl-dev libev-dev apr-dev apr-util-dev apache-dev"
10 TARBALL="$PACKAGE-$VERSION.gem"
11 WEB_SITE="http://rubygems.org/gems/passenger"
12 WGET_URL="http://rubygems.org/downloads/$TARBALL"
13 COOK_OPT="!repack_src !unpack"
15 # Rules to configure and make the package.
16 compile_rules()
17 {
18 cd $src
20 gem install --no-rdoc --no-ri --ignore-dependencies \
21 --install-dir $PWD/ $SOURCES_REPOSITORY/$TARBALL
23 # Build Apache module
24 cd gems/$PACKAGE-$VERSION/
25 rake fakeroot APXS2=/usr/bin/apxs USE_VENDORED_LIBEV=no RELEASE=yes \
26 APR_CONFIG=/usr/bin/apr-1-config APU_CONFIG=/usr/bin/apu-1-config
27 }
29 # Rules to gen a SliTaz package suitable for Tazpkg.
30 genpkg_rules()
31 {
32 mkdir -p $fs/usr/share $fs/var/run/passenger $fs/etc/apache/conf.d
34 cp -a $stuff/passenger.conf $fs/etc/apache/conf.d
35 cp -a $src/gems/$PACKAGE-$VERSION/pkg/fakeroot/usr/bin $fs/usr
36 cp -a $src/gems/$PACKAGE-$VERSION/pkg/fakeroot/usr/sbin $fs/usr
37 cp -a $src/gems/$PACKAGE-$VERSION/pkg/fakeroot/usr/lib $fs/usr
38 cp -a $src/gems/$PACKAGE-$VERSION/pkg/fakeroot/usr/share/phusion-passenger $fs/usr/share
40 # Clean-up
41 rm -rf $fs/usr/share/phusion-passenger/source
42 }