summaryrefslogtreecommitdiff
path: root/community/passenger/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/passenger/PKGBUILD')
-rw-r--r--community/passenger/PKGBUILD36
1 files changed, 36 insertions, 0 deletions
diff --git a/community/passenger/PKGBUILD b/community/passenger/PKGBUILD
new file mode 100644
index 000000000..6b83259c7
--- /dev/null
+++ b/community/passenger/PKGBUILD
@@ -0,0 +1,36 @@
+# $Id: PKGBUILD 94276 2013-07-18 16:46:21Z spupykin $
+# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
+
+pkgname=passenger
+pkgver=4.0.7
+pkgrel=2
+pkgdesc="mod_rails passenger"
+arch=('i686' 'x86_64')
+url="http://www.modrails.com"
+#http://rubyforge.org/frs/?group_id=5873
+license=('GPL')
+depends=('ruby' 'ruby-rack' 'curl')
+makedepends=('apache')
+install=passenger.install
+options=('!emptydirs')
+source=($pkgname-$pkgver.tar.gz::https://github.com/FooBarWidget/passenger/archive/release-$pkgver.tar.gz)
+md5sums=('07f892d34164bfcc883a46d8b730b8e5')
+
+build(){
+ cd $srcdir/passenger-release-$pkgver
+
+# sed -i 's/env python/env python2/' lib/phusion_passenger/wsgi/request_handler.py
+
+ ./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
+}