summaryrefslogtreecommitdiff
path: root/www/ap-ruby
diff options
context:
space:
mode:
authortaca <taca@pkgsrc.org>2001-07-01 14:13:48 +0000
committertaca <taca@pkgsrc.org>2001-07-01 14:13:48 +0000
commit31b65c550a0c283e1c496c083ffde0937297c75e (patch)
tree24cc8ab3a727cb202a7f733970824a1231cf26a1 /www/ap-ruby
parentfa0fb6856aeaf65d5680399e682b16657030228e (diff)
downloadpkgsrc-31b65c550a0c283e1c496c083ffde0937297c75e.tar.gz
Importing ap-ruby, ap-ruby-0.8.5 package.
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.
Diffstat (limited to 'www/ap-ruby')
-rw-r--r--www/ap-ruby/Makefile48
-rw-r--r--www/ap-ruby/distinfo4
-rw-r--r--www/ap-ruby/pkg/DESCR6
-rw-r--r--www/ap-ruby/pkg/MESSAGE15
-rw-r--r--www/ap-ruby/pkg/PLIST10
5 files changed, 83 insertions, 0 deletions
diff --git a/www/ap-ruby/Makefile b/www/ap-ruby/Makefile
new file mode 100644
index 00000000000..577b4c8f06b
--- /dev/null
+++ b/www/ap-ruby/Makefile
@@ -0,0 +1,48 @@
+# $NetBSD: Makefile,v 1.1.1.1 2001/07/01 14:13:48 taca Exp $
+# $FreeBSD: ports/www/mod_ruby/Makefile,v 1.10 2000/12/31 10:14:53 knu Exp $
+
+DISTNAME= mod_ruby-${VERSION}
+PKGNAME= ap-${RUBY_PKGNAMEPREFIX}${VERSION}
+CATEGORIES= www
+MASTER_SITES= http://www.modruby.net/archive/
+
+MAINTAINER= packages@netbsd.org
+HOMEPAGE= http://www.modruby.net/
+COMMENT= Apache module that embeds Ruby interpreter within
+
+DEPENDS+= apache>=1.3.12:../../www/apache
+DEPENDS+= ${RUBY_PKGNAMEPREFIX}eruby>=0.9:../../textproc/ruby-eruby
+
+DIST_SUBDIR= ruby
+USE_RUBY= yes
+RUBY_REQD= 1.6
+VERSION= 0.8.5
+
+APXS= ${LOCALBASE}/sbin/apxs
+
+HAS_CONFIGURE= yes
+CONFIGURE_SCRIPT= ./configure.rb
+CONFIGURE_ARGS= --with-apxs="${APXS}" \
+ --with-eruby-includes="${LOCALBASE}/include" \
+ --with-eruby-libraries="${LOCALBASE}/lib"
+
+DOCS_EN= ChangeLog README.en
+DOCS_JA= README.ja
+
+post-build:
+ ${SED} -e 's|/usr/local/apache/libexec|${LOCALBASE}/lib/httpd|g' \
+ ${WRKSRC}/examples/httpd.conf > ${WRKDIR}/mod_ruby.conf
+
+do-install:
+ ${APXS} -i -A -n ruby ${WRKSRC}/mod_ruby.so
+ ${INSTALL_DATA} ${WRKDIR}/mod_ruby.conf ${LOCALBASE}/etc/httpd
+ ${INSTALL_DATA_DIR} ${RUBY_DOCDIR}/mod_ruby/ja
+.for f in ${DOCS_EN}
+ ${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_DOCDIR}/mod_ruby
+.endfor
+.for f in ${DOCS_JA}
+ ${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_DOCDIR}/mod_ruby/ja
+.endfor
+
+.include "../../lang/ruby-base/Makefile.common"
+.include "../../mk/bsd.pkg.mk"
diff --git a/www/ap-ruby/distinfo b/www/ap-ruby/distinfo
new file mode 100644
index 00000000000..1606980b5a4
--- /dev/null
+++ b/www/ap-ruby/distinfo
@@ -0,0 +1,4 @@
+$NetBSD: distinfo,v 1.1.1.1 2001/07/01 14:13:48 taca Exp $
+
+SHA1 (ruby/mod_ruby-0.8.5.tar.gz) = 529cb651ef27f5c90f134496ca8c3b98e2ef936c
+Size (ruby/mod_ruby-0.8.5.tar.gz) = 44917 bytes
diff --git a/www/ap-ruby/pkg/DESCR b/www/ap-ruby/pkg/DESCR
new file mode 100644
index 00000000000..adc16063fe3
--- /dev/null
+++ b/www/ap-ruby/pkg/DESCR
@@ -0,0 +1,6 @@
+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.
+
+Author: Shugo Maeda <shugo@netlab.co.jp>
+WWW: http://www.ruby-lang.org/en/raa-list.rhtml?name=mod_ruby
diff --git a/www/ap-ruby/pkg/MESSAGE b/www/ap-ruby/pkg/MESSAGE
new file mode 100644
index 00000000000..d7dfe087fe9
--- /dev/null
+++ b/www/ap-ruby/pkg/MESSAGE
@@ -0,0 +1,15 @@
+************************************************************
+Please edit your apache.conf or httpd.conf to enable and
+setup this module, and you might also need to create an
+htpasswd file, if you introduce basic authentication.
+
+You can always refer to the useful documents held in
+${PREFIX}/share/doc/ruby/mod_ruby.
+
+When it's done, do the following to take effect:
+
+ apachectl configtest (and correct any errors reported)
+ apachectl restart
+
+Enjoy!
+************************************************************
diff --git a/www/ap-ruby/pkg/PLIST b/www/ap-ruby/pkg/PLIST
new file mode 100644
index 00000000000..092fa9a6cc9
--- /dev/null
+++ b/www/ap-ruby/pkg/PLIST
@@ -0,0 +1,10 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2001/07/01 14:13:48 taca Exp $
+etc/httpd/mod_ruby.conf
+lib/httpd/mod_ruby.so
+@exec %D/sbin/apxs -e -A -n ruby %D/%F
+@unexec %D/sbin/apxs -e -A -n ruby %D/%F
+${RUBY_DOCDIR}/mod_ruby/ChangeLog
+${RUBY_DOCDIR}/mod_ruby/README.en
+${RUBY_DOCDIR}/mod_ruby/ja/README.ja
+@dirrm ${RUBY_DOCDIR}/mod_ruby/ja
+@dirrm ${RUBY_DOCDIR}/mod_ruby