summaryrefslogtreecommitdiff
path: root/community/passenger
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2011-09-03 23:14:38 +0000
committerroot <root@rshg054.dnsready.net>2011-09-03 23:14:38 +0000
commit3b18be1752c9fd9fa74eb1314ca97dd61e9ce912 (patch)
tree695198e2351a85f6c3a8fe7ba53ba5e4a4ec2bdd /community/passenger
parentb37ee9de1a430956d9e5958ebd9d7e0dbfc79327 (diff)
Sat Sep 3 23:14:38 UTC 2011
Diffstat (limited to 'community/passenger')
-rw-r--r--community/passenger/PKGBUILD30
-rw-r--r--community/passenger/passenger-install-apache2-module.patch5
-rw-r--r--community/passenger/passenger.install32
3 files changed, 67 insertions, 0 deletions
diff --git a/community/passenger/PKGBUILD b/community/passenger/PKGBUILD
new file mode 100644
index 000000000..7ebf7fd69
--- /dev/null
+++ b/community/passenger/PKGBUILD
@@ -0,0 +1,30 @@
+# $Id: PKGBUILD 55084 2011-09-02 09:22:31Z spupykin $
+# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
+
+pkgname=passenger
+pkgver=3.0.8
+pkgrel=1
+pkgdlnr=75219
+pkgdesc="mod_rails passenger"
+arch=('i686' 'x86_64')
+url="http://www.modrails.com"
+license=('GPL')
+depends=('apache' 'ruby' 'ruby-rack' 'curl')
+install=$pkgname.install
+options=('!emptydirs')
+source=(http://rubyforge.org/frs/download.php/$pkgdlnr/$pkgname-$pkgver.tar.gz
+ $pkgname-install-apache2-module.patch)
+md5sums=('b283f3be6bbbc93a94cc30f99ab0263e'
+ '3d04eba10c55a955c378678d5df8497f')
+
+build(){
+ cd $srcdir/$pkgname-$pkgver
+ patch bin/passenger-install-apache2-module <$srcdir/passenger-install-apache2-module.patch
+ ./bin/passenger-install-apache2-module
+ mkdir -p $pkgdir/etc/httpd/modules/
+ cp ext/apache2/mod_passenger.so $pkgdir/etc/httpd/modules/mod_passenger.so
+ mkdir -p $pkgdir/usr/lib/passenger/
+ cp -R * $pkgdir/usr/lib/passenger/
+ mkdir -p $pkgdir/usr/lib/httpd
+ mv $pkgdir/etc/httpd/modules $pkgdir/usr/lib/httpd/modules
+}
diff --git a/community/passenger/passenger-install-apache2-module.patch b/community/passenger/passenger-install-apache2-module.patch
new file mode 100644
index 000000000..ee6080c1a
--- /dev/null
+++ b/community/passenger/passenger-install-apache2-module.patch
@@ -0,0 +1,5 @@
+105d104
+< wait
+179,180d177
+< else
+< wait
diff --git a/community/passenger/passenger.install b/community/passenger/passenger.install
new file mode 100644
index 000000000..9c683e7cd
--- /dev/null
+++ b/community/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 /var/aur/passenger3/src/passenger-3.0.0/ext/apache2/mod_passenger.so"
+ echo "PassengerRoot /var/aur/passenger3/src/passenger-3.0.0"
+ echo "PassengerRuby /opt/ruby1.8/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 "/var/aur/passenger3/src/passenger-3.0.0/doc/Users guide Apache.html"
+}