wok-current view passenger/receipt @ rev 23595
updated qoauth (1.0 -> 2.0.0)
author | Hans-G?nter Theisgen |
---|---|
date | Wed Apr 08 14:40:29 2020 +0100 (2020-04-08) |
parents | a78610b2eb47 |
children | a3c45ab9082e |
line source
1 # SliTaz package receipt.
3 PACKAGE="passenger"
4 VERSION="4.0.10"
5 CATEGORY="network"
6 SHORT_DESC="Rails and Rack support for Apache2."
7 MAINTAINER="erjo@slitaz.org"
8 LICENSE="MIT"
9 TARBALL="$PACKAGE-$VERSION.gem"
10 WEB_SITE="https://rubygems.org/gems/passenger"
11 WGET_URL="https://rubygems.org/downloads/$TARBALL"
12 COOK_OPT="!repack_src !unpack"
14 DEPENDS="ruby rake libev libcurl daemon_controller spruz file-tail \
15 rack apache"
16 BUILD_DEPENDS="$DEPENDS ruby-dev curl-dev libev-dev apr-dev apr-util-dev \
17 apache-dev file"
19 # Rules to configure and make the package.
20 compile_rules()
21 {
22 gem install --no-rdoc --no-ri --ignore-dependencies \
23 --install-dir $PWD/ $SOURCES_REPOSITORY/$TARBALL
25 # Build Apache module
26 cd gems/$PACKAGE-$VERSION/
27 rake fakeroot APXS2=/usr/bin/apxs USE_VENDORED_LIBEV=no RELEASE=yes \
28 APR_CONFIG=/usr/bin/apr-1-config APU_CONFIG=/usr/bin/apu-1-config
29 }
31 # Rules to gen a SliTaz package suitable for Tazpkg.
32 genpkg_rules()
33 {
34 mkdir -p $fs/usr/share $fs/var/run/passenger $fs/etc/apache/conf.d
36 cp -a $stuff/passenger.conf $fs/etc/apache/conf.d
37 cp -a $src/gems/$PACKAGE-$VERSION/pkg/fakeroot/usr/bin $fs/usr
38 cp -a $src/gems/$PACKAGE-$VERSION/pkg/fakeroot/usr/sbin $fs/usr
39 cp -a $src/gems/$PACKAGE-$VERSION/pkg/fakeroot/usr/lib $fs/usr
40 cp -a $src/gems/$PACKAGE-$VERSION/pkg/fakeroot/usr/share/passenger $fs/usr/share
42 # Clean-up
43 rm -rf $fs/usr/share/phusion-passenger/source
44 }