wok annotate passenger/receipt @ rev 24203
updated perl-exporter-tiny (1.002001 -> 1.002002)
author | Hans-G?nter Theisgen |
---|---|
date | Fri Dec 31 15:25:57 2021 +0100 (2021-12-31) |
parents | 9c7d9bab4f4f |
children | 98eb7c7288b5 |
rev | line source |
---|---|
slaxemulator@10257 | 1 # SliTaz package receipt. |
slaxemulator@10257 | 2 |
slaxemulator@10257 | 3 PACKAGE="passenger" |
pascal@15150 | 4 VERSION="4.0.10" |
slaxemulator@10673 | 5 CATEGORY="network" |
slaxemulator@10257 | 6 SHORT_DESC="Rails and Rack support for Apache2." |
slaxemulator@10257 | 7 MAINTAINER="erjo@slitaz.org" |
pascal@15379 | 8 LICENSE="MIT" |
slaxemulator@10257 | 9 TARBALL="$PACKAGE-$VERSION.gem" |
pascal@20669 | 10 WEB_SITE="https://rubygems.org/gems/passenger" |
pascal@20669 | 11 WGET_URL="https://rubygems.org/downloads/$TARBALL" |
slaxemulator@10257 | 12 COOK_OPT="!repack_src !unpack" |
slaxemulator@10257 | 13 |
pascal@22474 | 14 DEPENDS="ruby rake libev libcurl daemon_controller spruz file-tail \ |
pascal@20584 | 15 rack apache" |
pascal@20584 | 16 BUILD_DEPENDS="$DEPENDS ruby-dev curl-dev libev-dev apr-dev apr-util-dev \ |
pascal@20584 | 17 apache-dev file" |
pascal@15379 | 18 |
pascal@24083 | 19 current_version() |
pascal@24083 | 20 { |
pascal@24083 | 21 wget -O - $WEB_SITE 2>/dev/null | \ |
pascal@24083 | 22 sed '/versions.[0-9]/!d;s|.*versions/||;s|".*||;q' |
pascal@24083 | 23 } |
pascal@24083 | 24 |
slaxemulator@10257 | 25 # Rules to configure and make the package. |
slaxemulator@10257 | 26 compile_rules() |
slaxemulator@10257 | 27 { |
slaxemulator@10257 | 28 gem install --no-rdoc --no-ri --ignore-dependencies \ |
slaxemulator@10257 | 29 --install-dir $PWD/ $SOURCES_REPOSITORY/$TARBALL |
slaxemulator@10257 | 30 |
slaxemulator@10257 | 31 # Build Apache module |
slaxemulator@10257 | 32 cd gems/$PACKAGE-$VERSION/ |
slaxemulator@10257 | 33 rake fakeroot APXS2=/usr/bin/apxs USE_VENDORED_LIBEV=no RELEASE=yes \ |
slaxemulator@10257 | 34 APR_CONFIG=/usr/bin/apr-1-config APU_CONFIG=/usr/bin/apu-1-config |
slaxemulator@10257 | 35 } |
slaxemulator@10257 | 36 |
slaxemulator@10257 | 37 # Rules to gen a SliTaz package suitable for Tazpkg. |
slaxemulator@10257 | 38 genpkg_rules() |
slaxemulator@10257 | 39 { |
slaxemulator@10257 | 40 mkdir -p $fs/usr/share $fs/var/run/passenger $fs/etc/apache/conf.d |
slaxemulator@10257 | 41 |
slaxemulator@10257 | 42 cp -a $stuff/passenger.conf $fs/etc/apache/conf.d |
slaxemulator@10257 | 43 cp -a $src/gems/$PACKAGE-$VERSION/pkg/fakeroot/usr/bin $fs/usr |
slaxemulator@10257 | 44 cp -a $src/gems/$PACKAGE-$VERSION/pkg/fakeroot/usr/sbin $fs/usr |
slaxemulator@10257 | 45 cp -a $src/gems/$PACKAGE-$VERSION/pkg/fakeroot/usr/lib $fs/usr |
pascal@15150 | 46 cp -a $src/gems/$PACKAGE-$VERSION/pkg/fakeroot/usr/share/passenger $fs/usr/share |
slaxemulator@10257 | 47 |
slaxemulator@10257 | 48 # Clean-up |
slaxemulator@10257 | 49 rm -rf $fs/usr/share/phusion-passenger/source |
slaxemulator@10257 | 50 } |