aboutsummaryrefslogtreecommitdiff
path: root/www/mod_ruby
diff options
context:
space:
mode:
authorAkinori MUSHA <knu@FreeBSD.org>2001-03-05 12:35:23 +0000
committerAkinori MUSHA <knu@FreeBSD.org>2001-03-05 12:35:23 +0000
commit8751bc0197dcc99a4b449c80f782de8146acbc1c (patch)
treed026c7b904745166388afe6736364ed272c7b506 /www/mod_ruby
parentbed0739f29b8534404a75b341ea19fc4288e2ef1 (diff)
downloadports-8751bc0197dcc99a4b449c80f782de8146acbc1c.tar.gz
ports-8751bc0197dcc99a4b449c80f782de8146acbc1c.zip
Notes
Diffstat (limited to 'www/mod_ruby')
-rw-r--r--www/mod_ruby/Makefile12
-rw-r--r--www/mod_ruby/files/httpd.conf.mod_ruby19
-rw-r--r--www/mod_ruby/pkg-message15
-rw-r--r--www/mod_ruby/pkg-plist3
4 files changed, 35 insertions, 14 deletions
diff --git a/www/mod_ruby/Makefile b/www/mod_ruby/Makefile
index 852f078d68cd..63abbc306bd7 100644
--- a/www/mod_ruby/Makefile
+++ b/www/mod_ruby/Makefile
@@ -7,6 +7,7 @@
PORTNAME= mod_ruby
PORTVERSION= ${VERSION}
+PORTREVISION= 1
CATEGORIES= www ruby
MASTER_SITES= http://www.modruby.net/archive/
DIST_SUBDIR= ruby
@@ -42,16 +43,17 @@ do-configure:
@cd ${WRKSRC}; ${SETENV} ${CONFIGURE_ENV} ${RUBY} Makefile.RB ${CONFIGURE_ARGS}
do-install:
- ${APXS} -i -A -n ruby ${WRKSRC}/mod_ruby.so
+ ${APXS} -i -n ruby ${WRKSRC}/mod_ruby.so
+ ${INSTALL_DATA} ${FILESDIR}/httpd.conf.${PORTNAME} ${PREFIX}/etc/apache/
.if !defined(NOPORTDOCS)
- ${MKDIR} ${RUBY_DOCDIR}/mod_ruby/ja
+ ${MKDIR} ${RUBY_DOCDIR}/${PORTNAME}/ja
.for f in ${DOCS_EN}
- ${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_DOCDIR}/mod_ruby/
+ ${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_DOCDIR}/${PORTNAME}/
.endfor
.for f in ${DOCS_JA}
- ${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_DOCDIR}/mod_ruby/ja/
+ ${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_DOCDIR}/${PORTNAME}/ja/
.endfor
.endif
- ${CAT} ${PKGMESSAGE}
+ @${CAT} ${PKGMESSAGE}
.include <bsd.port.post.mk>
diff --git a/www/mod_ruby/files/httpd.conf.mod_ruby b/www/mod_ruby/files/httpd.conf.mod_ruby
new file mode 100644
index 000000000000..a4e24b799b46
--- /dev/null
+++ b/www/mod_ruby/files/httpd.conf.mod_ruby
@@ -0,0 +1,19 @@
+#
+# Example configuration for the mod_ruby module
+#
+# $FreeBSD$
+#
+
+LoadModule ruby_module libexec/apache/mod_ruby.so
+
+AddModule mod_ruby.c
+
+<IfModule mod_ruby.c>
+ AddHandler ruby-script .rb
+
+# Alias /ruby/ /usr/local/www/cgi-bin/
+# <Location /ruby/>
+# SetHandler ruby-script
+# Options ExecCGI
+# </Location>
+</IfModule>
diff --git a/www/mod_ruby/pkg-message b/www/mod_ruby/pkg-message
index a1b41cc59905..2d68bd0cfa7c 100644
--- a/www/mod_ruby/pkg-message
+++ b/www/mod_ruby/pkg-message
@@ -1,13 +1,14 @@
************************************************************
-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.
+Please edit your Apache configuration file to enable and set
+up this module.
-You can always refer to the useful documents held in
-${PREFIX}/share/doc/ruby/mod_ruby/, where ${PREFIX} is
-typically /usr/local.
+Look at the file ${PREFIX}/etc/apache/httpd.conf.mod_ruby
+and the documents held in ${PREFIX}/share/doc/ruby/mod_ruby/
+for indications on what to do.
-When it's done, do the following to take effect:
+(${PREFIX} is typically /usr/local)
+
+When it's all set up, do the following to take effect:
apachectl configtest (and correct any errors reported)
apachectl restart
diff --git a/www/mod_ruby/pkg-plist b/www/mod_ruby/pkg-plist
index dc06fc255171..6ab5f8031a73 100644
--- a/www/mod_ruby/pkg-plist
+++ b/www/mod_ruby/pkg-plist
@@ -1,6 +1,5 @@
+etc/apache/httpd.conf.mod_ruby
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
%%PORTDOCS%%%%RUBY_DOCDIR%%/mod_ruby/ChangeLog
%%PORTDOCS%%%%RUBY_DOCDIR%%/mod_ruby/README.en
%%PORTDOCS%%%%RUBY_DOCDIR%%/mod_ruby/ja/README.ja