summaryrefslogtreecommitdiff
path: root/community-staging/passenger
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2012-08-31 00:04:43 +0000
committerroot <root@rshg054.dnsready.net>2012-08-31 00:04:43 +0000
commit68cdc08aec92abf91448a542e06fabbedbb583bf (patch)
tree2c42e2f29a6162e0cb5ff3db8f0b46277ab4ed90 /community-staging/passenger
parentdba5b0127d9f00a13c489f0f5893481cbe7d429b (diff)
Fri Aug 31 00:04:43 UTC 2012
Diffstat (limited to 'community-staging/passenger')
-rw-r--r--community-staging/passenger/PKGBUILD32
-rw-r--r--community-staging/passenger/build-fix.patch12
-rw-r--r--community-staging/passenger/passenger.install32
3 files changed, 76 insertions, 0 deletions
diff --git a/community-staging/passenger/PKGBUILD b/community-staging/passenger/PKGBUILD
new file mode 100644
index 000000000..0464836d8
--- /dev/null
+++ b/community-staging/passenger/PKGBUILD
@@ -0,0 +1,32 @@
+# $Id: PKGBUILD 75683 2012-08-29 07:32:45Z spupykin $
+# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
+
+pkgname=passenger
+pkgver=3.0.15
+pkgrel=1
+_pkgdlnr=76337
+pkgdesc="mod_rails passenger"
+arch=('i686' 'x86_64')
+url="http://www.modrails.com"
+license=('GPL')
+depends=('ruby' 'ruby-rack' 'curl')
+makedepends=('apache')
+install=passenger.install
+options=('!emptydirs')
+source=(http://rubyforge.org/frs/download.php/${_pkgdlnr}/passenger-$pkgver.tar.gz
+ build-fix.patch)
+md5sums=('532d977eabb4acd5a831b3526ddd8ac4'
+ 'ee4699596dffb5357fdac4e3b2c98ee1')
+
+build(){
+ cd $srcdir/passenger-$pkgver
+ patch -p1 <$srcdir/build-fix.patch
+ ./bin/passenger-install-apache2-module -a
+ rake nginx
+
+ mkdir -p $pkgdir/usr/lib/passenger/
+ cp -R * $pkgdir/usr/lib/passenger/
+
+ mkdir -p $pkgdir/usr/lib/httpd/modules
+ ln -sf /usr/lib/passenger/ext/apache2/mod_passenger.so $pkgdir/usr/lib/httpd/modules/mod_passenger.so
+}
diff --git a/community-staging/passenger/build-fix.patch b/community-staging/passenger/build-fix.patch
new file mode 100644
index 000000000..cdbb78e68
--- /dev/null
+++ b/community-staging/passenger/build-fix.patch
@@ -0,0 +1,12 @@
+diff -wbBur passenger-3.0.15/ext/boost/thread/xtime.hpp passenger-3.0.15.my/ext/boost/thread/xtime.hpp
+--- passenger-3.0.15/ext/boost/thread/xtime.hpp 2012-04-16 11:43:52.000000000 +0400
++++ passenger-3.0.15.my/ext/boost/thread/xtime.hpp 2012-08-29 11:06:02.000000000 +0400
+@@ -18,6 +18,8 @@
+
+ namespace boost {
+
++#undef TIME_UTC
++
+ enum xtime_clock_types
+ {
+ TIME_UTC=1
diff --git a/community-staging/passenger/passenger.install b/community-staging/passenger/passenger.install
new file mode 100644
index 000000000..6faaab1b6
--- /dev/null
+++ b/community-staging/passenger/passenger.install
@@ -0,0 +1,32 @@
+post_install() {
+ echo "Please edit your Apache configuration file, and add these lines:"
+ echo ""
+ echo "LoadModule passenger_module /usr/lib/httpd/modules/mod_passenger.so"
+ echo "PassengerRoot /usr/lib/passenger"
+ echo "PassengerRuby /usr/bin/ruby"
+ echo ""
+ echo "After you restart Apache, you are ready to deploy any number of Ruby on Rails"
+ echo "applications on Apache, without any further Ruby on Rails-specific"
+ echo "configuration!"
+ echo ""
+ echo ""
+ echo "Deploying a Ruby on Rails application: an example"
+ echo ""
+ echo "Suppose you have a Ruby on Rails application in /somewhere. Add a virtual host"
+ echo "to your Apache configuration file, and set its DocumentRoot to"
+ echo "/somewhere/public, like this:"
+ echo ""
+ echo "<VirtualHost *:80>"
+ echo " ServerName www.yourhost.com"
+ echo " DocumentRoot /somewhere/public # <-- be sure to point to 'public'!"
+ echo " <Directory /somewhere/public>"
+ echo " AllowOverride all # <-- relax Apache security settings"
+ echo " Options -MultiViews # <-- MultiViews must be turned off"
+ echo " </Directory>"
+ echo "</VirtualHost>"
+ echo ""
+ echo "And that's it! You may also want to check the Users Guide for security and"
+ echo "optimization tips, troubleshooting and other useful information:"
+ echo ""
+ echo "/usr/lib/passenger/doc/Users guide Apache.html"
+}