blob: 6b8f807c9c4f585ad2a808e90c58d66e2d2fb450 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
# $Id: PKGBUILD 106740 2014-03-06 21:43:48Z anatolik $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
pkgname=passenger
pkgver=4.0.37
pkgrel=2
pkgdesc="mod_rails passenger"
arch=('i686' 'x86_64')
url="http://www.modrails.com"
_watch="https://github.com/phusion/passenger/releases"
license=('GPL')
depends=('ruby' 'ruby-rack' 'curl')
makedepends=('apache')
install=passenger.install
options=('!emptydirs' 'staticlibs')
source=($pkgname-$pkgver.tar.gz::https://github.com/FooBarWidget/passenger/archive/release-$pkgver.tar.gz)
md5sums=('7040af5314fe19a420f38732c6bd4f5b')
prepare() {
cd $srcdir/passenger-release-$pkgver
sed -i '1,1i#include <stdint.h>' \
ext/common/Utils/MD5.cpp \
ext/common/Logging.cpp \
ext/common/Utils/StrIntUtils.cpp \
ext/common/Utils.cpp \
ext/common/ApplicationPool2/AppTypes.cpp \
ext/boost/libs/thread/src/pthread/once.cpp \
ext/boost/libs/thread/src/pthread/once_atomic.cpp \
ext/boost/libs/thread/src/pthread/thread.cpp \
ext/boost/atomic/atomic.hpp
}
build(){
cd $srcdir/passenger-release-$pkgver
./bin/passenger-install-apache2-module -a
rake nginx
}
package() {
cd $srcdir/passenger-release-$pkgver
mkdir -p $pkgdir/usr/lib/passenger/
cp -R * $pkgdir/usr/lib/passenger/
mkdir -p $pkgdir/usr/lib/httpd/modules
ln -sf /usr/lib/passenger/buildout/apache2/mod_passenger.so $pkgdir/usr/lib/httpd/modules/mod_passenger.so
}
|