diff options
author | Daniel Nagy | 2015-06-08 19:42:07 +0200 |
---|---|---|
committer | Daniel Nagy | 2015-06-08 19:42:07 +0200 |
commit | b1a166e57bc32f7611f55bab74dcf219c5d92175 (patch) | |
tree | 0be07c36c95a328a365477721032419afd2c14f9 | |
download | aur-b1a166e57bc32f7611f55bab74dcf219c5d92175.tar.gz |
import to aur4
-rw-r--r-- | .SRCINFO | 16 | ||||
-rw-r--r-- | PKGBUILD | 22 | ||||
-rw-r--r-- | mod_ruby.install | 22 |
3 files changed, 60 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..33c56b44da93 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,16 @@ +pkgbase = mod_ruby + pkgdesc = Embeds the Ruby interpreter into Apache + pkgver = 1.3.0 + pkgrel = 1 + url = http://www.modruby.net/ + install = mod_ruby.install + arch = i686 + arch = x86_64 + license = Apache + depends = apache>=1.3.3 + depends = ruby>=1.6.4 + source = http://www.modruby.net/archive/mod_ruby-1.3.0.tar.gz + md5sums = 5aae358c3c9f1bfa2554da9242289ab7 + +pkgname = mod_ruby + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..02e6d8b9cf57 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,22 @@ +# Maintainer: Daniel Nagy <danielnagy at gmx de> +# Contributor: Ryan Coyner <rcoyner@gmail.com> + +pkgname=mod_ruby +pkgver=1.3.0 +pkgrel=1 +pkgdesc="Embeds the Ruby interpreter into Apache" +arch=('i686' 'x86_64') +url="http://www.modruby.net/" +license=('Apache') +depends=('apache>=1.3.3' 'ruby>=1.6.4') +install=$pkgname.install +source=(http://www.modruby.net/archive/$pkgname-$pkgver.tar.gz) +md5sums=('5aae358c3c9f1bfa2554da9242289ab7') + +build() { + cd $srcdir/$pkgname-$pkgver + ./configure.rb --with-apxs --with-apr-includes=/usr/include/apr-1 \ + --prefix=/usr || return 1 + make || return 1 + make DESTDIR=$pkgdir install || return 1 +} diff --git a/mod_ruby.install b/mod_ruby.install new file mode 100644 index 000000000000..cd16908b4387 --- /dev/null +++ b/mod_ruby.install @@ -0,0 +1,22 @@ +post_install() { +/bin/cat << ENDOFMESSAGE +==> +==> +==> To install mod_ruby, add the following line in +==> /etc/httpd/conf/httpd.conf file : +==> +==> LoadModule ruby_module modules/mod_ruby.so +==> +==> and restart/reload Apache. +==> +==> +ENDOFMESSAGE +} + +post_upgrade() { +post_install +} + +op=$1 +shift +$op $* |