wok-current view passenger/receipt @ rev 22333
Up mplayer (1.4)
author | Richard Dunbar <mojo@slitaz.org> |
---|---|
date | Fri Nov 15 08:58:24 2019 -0500 (2019-11-15) |
parents | febd8d7de57b |
children | 9c7d9bab4f4f |
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 fastthread 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 }