You are not logged in.

#1 2004-12-21 07:12:38

cactus
Taco Eater
From: t͈̫̹ͨa͖͕͎̱͈ͨ͆ć̥̖̝o̫̫̼s͈̭̱̞͍̃!̰
Registered: 2004-05-25
Posts: 4,622
Website

mod_ruby

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

#2 2004-12-21 07:27:23

cactus
Taco Eater
From: t͈̫̹ͨa͖͕͎̱͈ͨ͆ć̥̖̝o̫̫̼s͈̭̱̞͍̃!̰
Registered: 2004-05-25
Posts: 4,622
Website

Re: mod_ruby

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 $*

pkgbuilds in cvs here
binaries here


"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

Board footer

Powered by FluxBB