Skip to content
Snippets Groups Projects
Commit 8e3704c8 authored by Sergej Pupykin's avatar Sergej Pupykin
Browse files

upd

parent 28274864
No related branches found
No related tags found
No related merge requests found
......@@ -2,28 +2,29 @@
pkgname=passenger
pkgver=3.0.11
pkgrel=1
pkgrel=2
_pkgdlnr=75548
pkgdesc="mod_rails passenger"
arch=('i686' 'x86_64')
url="http://www.modrails.com"
license=('GPL')
depends=('apache' 'ruby' 'ruby-rack' 'curl')
install=$pkgname.install
install=passenger.install
options=('!emptydirs')
source=(http://rubyforge.org/frs/download.php/${_pkgdlnr}/$pkgname-$pkgver.tar.gz
$pkgname-install-apache2-module.patch)
source=(http://rubyforge.org/frs/download.php/${_pkgdlnr}/passenger-$pkgver.tar.gz
passenger-install-apache2-module.patch)
md5sums=('9186d799e065ccad803cbc0289954f40'
'3d04eba10c55a955c378678d5df8497f')
build(){
cd $srcdir/$pkgname-$pkgver
cd $srcdir/passenger-$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
rake nginx
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
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
}
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 "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"
......@@ -28,5 +28,5 @@ post_install() {
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"
echo "/usr/lib/passenger/doc/Users guide Apache.html"
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment