You are not logged in.
Pages: 1
Working on packaging mod_ruby.
Almost done. I just want to do some testing before I let the cat out of the bag...
"Be conservative in what you send; be liberal in what you accept." -- Postel's Law
"tacos" -- Cactus' Law
"t̥͍͎̪̪͗a̴̻̩͈͚ͨc̠o̩̙͈ͫͅs͙͎̙͊ ͔͇̫̜t͎̳̀a̜̞̗ͩc̗͍͚o̲̯̿s̖̣̤̙͌ ̖̜̈ț̰̫͓ạ̪͖̳c̲͎͕̰̯̃̈o͉ͅs̪ͪ ̜̻̖̜͕" -- -̖͚̫̙̓-̺̠͇ͤ̃ ̜̪̜ͯZ͔̗̭̞ͪA̝͈̙͖̩L͉̠̺͓G̙̞̦͖O̳̗͍
Offline
At first glance or two, it looks like it works ok.
PKGBUILD:
# $Id: PKGBUILD,v 1.4 2004/12/21 06:14:37 eliott Exp $
# Maintainer: eliott
pkgname=mod_ruby
pkgver=1.2.4
pkgrel=1
pkgdesc="mod_ruby embeds the Ruby interpreter into the Apache web server, allowing Ruby CGI scripts to be executed natively. These scripts will start up much faster than without mod_ruby."
url="http://www.modruby.net/"
#license="GNU GPL"
depends=('ruby' 'apache')
makedepends=()
install=$pkgname.install
backup=()
source=(http://www.modruby.net/archive/$pkgname-$pkgver.tar.gz)
md5sums=('2b803c021297517eecb3dc6cf77b9534')
build() {
cd $startdir/src/$pkgname-$pkgver
./configure.rb --with-apxs --prefix=/usr
make || return 1
make DESTDIR=$startdir/pkg install || return 1
}
mod_ruby.install:
# arg 1: the new package version
post_install() {
/bin/cat <<THEEND
NOTE
----
Add these lines to httpd.conf.
LoadModule ruby_module lib/apache/mod_ruby.so
<IfModule mod_ruby.c>
RubyRequire apache/ruby-run
# Execute *.rbx files as Ruby scripts
<Files *.rbx>
SetHandler ruby-object
RubyHandler Apache::RubyRun.instance
</Files>
</IfModule>
THEEND
}
op=$1
shift
$op $*
"Be conservative in what you send; be liberal in what you accept." -- Postel's Law
"tacos" -- Cactus' Law
"t̥͍͎̪̪͗a̴̻̩͈͚ͨc̠o̩̙͈ͫͅs͙͎̙͊ ͔͇̫̜t͎̳̀a̜̞̗ͩc̗͍͚o̲̯̿s̖̣̤̙͌ ̖̜̈ț̰̫͓ạ̪͖̳c̲͎͕̰̯̃̈o͉ͅs̪ͪ ̜̻̖̜͕" -- -̖͚̫̙̓-̺̠͇ͤ̃ ̜̪̜ͯZ͔̗̭̞ͪA̝͈̙͖̩L͉̠̺͓G̙̞̦͖O̳̗͍
Offline
Pages: 1