summaryrefslogtreecommitdiff
path: root/www/mod_ruby
diff options
context:
space:
mode:
authorAkinori MUSHA <knu@FreeBSD.org>2000-08-11 16:39:39 +0000
committerAkinori MUSHA <knu@FreeBSD.org>2000-08-11 16:39:39 +0000
commit443067020051d380e31abcfca07740365ce8050f (patch)
treecb445121d14ae13c50a38293e2c4f1648af246bd /www/mod_ruby
parentfix dialog call in configure script (diff)
Add mod_ruby, an Apache module that embeds Ruby interpreter within.
Notes
Notes: svn path=/head/; revision=31537
Diffstat (limited to 'www/mod_ruby')
-rw-r--r--www/mod_ruby/Makefile52
-rw-r--r--www/mod_ruby/distinfo1
-rw-r--r--www/mod_ruby/pkg-comment1
-rw-r--r--www/mod_ruby/pkg-descr5
-rw-r--r--www/mod_ruby/pkg-message16
-rw-r--r--www/mod_ruby/pkg-plist8
6 files changed, 83 insertions, 0 deletions
diff --git a/www/mod_ruby/Makefile b/www/mod_ruby/Makefile
new file mode 100644
index 000000000000..9f15d78155ff
--- /dev/null
+++ b/www/mod_ruby/Makefile
@@ -0,0 +1,52 @@
+# New ports collection makefile for: mod_ruby
+# Date created: 12 Aug 2000
+# Whom: Akinori MUSHA aka knu <knu@idaemons.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= mod_ruby
+PORTVERSION= ${RELEASE_VER}.${SNAPSHOT_DATE}
+CATEGORIES= www lang # ruby
+MASTER_SITES= ${MASTER_SITE_LOCAL}
+MASTER_SITE_SUBDIR= knu
+DIST_SUBDIR= ruby
+
+MAINTAINER= knu@FreeBSD.org
+
+BUILD_DEPENDS= ${APXS}:${PORTSDIR}/www/apache13 \
+ ruby:${PORTSDIR}/lang/ruby
+RUN_DEPENDS= ${APXS}:${PORTSDIR}/www/apache13 \
+ ruby:${PORTSDIR}/lang/ruby
+
+WRKSRC= ${WRKDIR}/${PORTNAME}
+
+RELEASE_VER= 0.1.8
+SNAPSHOT_DATE= 2000.08.04
+
+APXS= ${LOCALBASE}/sbin/apxs
+
+RUBY= ${LOCALBASE}/bin/ruby
+RUBY_VER= 1.4
+RUBY_ARCH= ${ARCH}-freebsd${OSREL}
+
+DOCS_EN= ChangeLog README.en
+DOCS_JA= README.ja
+
+do-configure:
+ @cd ${WRKSRC}; ${SETENV} ${CONFIGURE_ENV} ${RUBY} Makefile.RB
+
+do-install:
+ ${APXS} -i -A -n ruby ${WRKSRC}/mod_ruby.so
+.if !defined(NOPORTDOCS)
+ ${MKDIR} ${PREFIX}/share/doc/ruby/mod_ruby/ja
+.for f in ${DOCS_EN}
+ ${INSTALL_DATA} ${WRKSRC}/${f} ${PREFIX}/share/doc/ruby/mod_ruby/
+.endfor
+.for f in ${DOCS_JA}
+ ${INSTALL_DATA} ${WRKSRC}/${f} ${PREFIX}/share/doc/ruby/mod_ruby/ja/
+.endfor
+.endif
+ ${CAT} ${PKGMESSAGE}
+
+.include <bsd.port.mk>
diff --git a/www/mod_ruby/distinfo b/www/mod_ruby/distinfo
new file mode 100644
index 000000000000..825112546219
--- /dev/null
+++ b/www/mod_ruby/distinfo
@@ -0,0 +1 @@
+MD5 (ruby/mod_ruby-0.1.8.2000.08.04.tar.gz) = 52d5b75ce7ad821bf2ae0524a454aac7
diff --git a/www/mod_ruby/pkg-comment b/www/mod_ruby/pkg-comment
new file mode 100644
index 000000000000..b58f66da9d48
--- /dev/null
+++ b/www/mod_ruby/pkg-comment
@@ -0,0 +1 @@
+An Apache module that embeds Ruby interpreter within
diff --git a/www/mod_ruby/pkg-descr b/www/mod_ruby/pkg-descr
new file mode 100644
index 000000000000..0b3c9a7ee39a
--- /dev/null
+++ b/www/mod_ruby/pkg-descr
@@ -0,0 +1,5 @@
+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.
+
+WWW: http://www.ruby-lang.org/en/raa-list.rhtml?name=mod_ruby
diff --git a/www/mod_ruby/pkg-message b/www/mod_ruby/pkg-message
new file mode 100644
index 000000000000..a1b41cc59905
--- /dev/null
+++ b/www/mod_ruby/pkg-message
@@ -0,0 +1,16 @@
+************************************************************
+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/, where ${PREFIX} is
+typically /usr/local.
+
+When it's done, do the following to take effect:
+
+ apachectl configtest (and correct any errors reported)
+ apachectl restart
+
+Enjoy!
+************************************************************
diff --git a/www/mod_ruby/pkg-plist b/www/mod_ruby/pkg-plist
new file mode 100644
index 000000000000..de0b83996cdb
--- /dev/null
+++ b/www/mod_ruby/pkg-plist
@@ -0,0 +1,8 @@
+libexec/apache/mod_ruby.so
+@exec %D/sbin/apxs -e -A -n ruby %D/%F
+@unexec %D/sbin/apxs -e -A -n ruby %D/%F
+share/doc/ruby/mod_ruby/ChangeLog
+share/doc/ruby/mod_ruby/README.en
+share/doc/ruby/mod_ruby/ja/README.ja
+@dirrm share/doc/ruby/mod_ruby/ja
+@dirrm share/doc/ruby/mod_ruby