diff options
author | Mamoru Komachi <usata@gentoo.org> | 2004-04-16 16:50:35 +0000 |
---|---|---|
committer | Mamoru Komachi <usata@gentoo.org> | 2004-04-16 16:50:35 +0000 |
commit | 695949f6d0f114f3964121eddb067db80948b293 (patch) | |
tree | 1f7631f3923cab242dc9d25f4d9fe4ffcfd7054a /dev-ruby | |
parent | ~amd64 (Manifest recommit) (diff) | |
download | gentoo-2-695949f6d0f114f3964121eddb067db80948b293.tar.gz gentoo-2-695949f6d0f114f3964121eddb067db80948b293.tar.bz2 gentoo-2-695949f6d0f114f3964121eddb067db80948b293.zip |
Fix configs for apache-1.x, thanks to Jeff Mitchell <quixoticsycophant@yahoo.com> for the patch. Closing bug #27649
Diffstat (limited to 'dev-ruby')
-rw-r--r-- | dev-ruby/mod-ruby/ChangeLog | 9 | ||||
-rw-r--r-- | dev-ruby/mod-ruby/Manifest | 12 | ||||
-rw-r--r-- | dev-ruby/mod-ruby/files/digest-mod-ruby-1.1.3-r1 | 1 | ||||
-rw-r--r-- | dev-ruby/mod-ruby/files/mod_ruby.conf | 2 | ||||
-rw-r--r-- | dev-ruby/mod-ruby/mod-ruby-1.1.1-r2.ebuild | 10 | ||||
-rw-r--r-- | dev-ruby/mod-ruby/mod-ruby-1.1.3-r1.ebuild | 86 |
6 files changed, 107 insertions, 13 deletions
diff --git a/dev-ruby/mod-ruby/ChangeLog b/dev-ruby/mod-ruby/ChangeLog index e88cc69d4896..5a6bc28f690d 100644 --- a/dev-ruby/mod-ruby/ChangeLog +++ b/dev-ruby/mod-ruby/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for dev-ruby/mod-ruby # Copyright 2002-2004 Gentoo Technologies, Inc.; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-ruby/mod-ruby/ChangeLog,v 1.10 2004/04/10 23:30:00 dholm Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-ruby/mod-ruby/ChangeLog,v 1.11 2004/04/16 16:50:35 usata Exp $ + +*mod-ruby-1.1.3-r1 (17 Apr 2004) + + 17 Apr 2004; Mamoru KOMACHI <usata@gentoo.org> mod-ruby-1.1.1-r2.ebuild, + mod-ruby-1.1.3-r1.ebuild, files/mod_ruby.conf: + Fix configs for apache-1.x, thanks to Jeff Mitchell + <quixoticsycophant@yahoo.com> for the patch. Closing bug #27649 11 Apr 2004; David Holm <dholm@gentoo.org> mod-ruby-1.1.3.ebuild: Added to ~ppc. diff --git a/dev-ruby/mod-ruby/Manifest b/dev-ruby/mod-ruby/Manifest index 06abe6cb4c23..73b580504f13 100644 --- a/dev-ruby/mod-ruby/Manifest +++ b/dev-ruby/mod-ruby/Manifest @@ -1,12 +1,14 @@ +MD5 8c26f311f362706330f3ce6fec5bb6e2 mod-ruby-1.0.1.ebuild 869 +MD5 a26204f581bca50186f84d0f9e87c987 mod-ruby-1.1.1-r2.ebuild 2063 MD5 cef54c208363cbc5629bdc7cf07e434f ChangeLog 1839 MD5 3eec9f3fe48b51f49dbc1f171a3b026f metadata.xml 157 -MD5 8c26f311f362706330f3ce6fec5bb6e2 mod-ruby-1.0.1.ebuild 869 MD5 a90d9307d00c333246966c53a13777a0 mod-ruby-1.0.7.ebuild 870 -MD5 6e88c22a53a143107cf9508c1d404d66 mod-ruby-1.1.1-r2.ebuild 2134 +MD5 44dd07aedaa8c52691efb120d48300b4 mod-ruby-1.1.3-r1.ebuild 2065 MD5 5c173bbfedcee4a0bd876c1529cd248a mod-ruby-1.1.3.ebuild 2136 -MD5 9212f9bc81514ddee76f6c4251ca71c3 files/20_mod_ruby.conf 1286 MD5 fa5123111f5278201525d49f658b4a3b files/digest-mod-ruby-1.0.7 65 MD5 4b96c0ca2a3a6b8360a1e619d4c64e04 files/digest-mod-ruby-1.0.1 65 -MD5 808f10c468d40bfb56996efe8f5eafb9 files/digest-mod-ruby-1.1.3 65 +MD5 70674a49abbe9321ac65cf4932c0ad23 files/mod_ruby.conf 846 MD5 a6dbaa099dac1d5325700347616ea724 files/digest-mod-ruby-1.1.1-r2 65 -MD5 77b4dff16b861be3dbb9c6bc3c9e66b6 files/mod_ruby.conf 859 +MD5 9212f9bc81514ddee76f6c4251ca71c3 files/20_mod_ruby.conf 1286 +MD5 808f10c468d40bfb56996efe8f5eafb9 files/digest-mod-ruby-1.1.3 65 +MD5 808f10c468d40bfb56996efe8f5eafb9 files/digest-mod-ruby-1.1.3-r1 65 diff --git a/dev-ruby/mod-ruby/files/digest-mod-ruby-1.1.3-r1 b/dev-ruby/mod-ruby/files/digest-mod-ruby-1.1.3-r1 new file mode 100644 index 000000000000..1d0ee8d962c0 --- /dev/null +++ b/dev-ruby/mod-ruby/files/digest-mod-ruby-1.1.3-r1 @@ -0,0 +1 @@ +MD5 e5b9158ab8884c75f1729900741bb322 mod_ruby-1.1.3.tar.gz 90888 diff --git a/dev-ruby/mod-ruby/files/mod_ruby.conf b/dev-ruby/mod-ruby/files/mod_ruby.conf index 7d681b42aef2..2caed81309bb 100644 --- a/dev-ruby/mod-ruby/files/mod_ruby.conf +++ b/dev-ruby/mod-ruby/files/mod_ruby.conf @@ -1,5 +1,5 @@ # REQUIRED -LoadModule ruby_module /usr/local/apache/libexec/mod_ruby.so +LoadModule ruby_module extramodules/mod_ruby.so <IfModule mod_ruby.c> # for Apache::RubyRun diff --git a/dev-ruby/mod-ruby/mod-ruby-1.1.1-r2.ebuild b/dev-ruby/mod-ruby/mod-ruby-1.1.1-r2.ebuild index 08ca6e38dd92..0d33206751e0 100644 --- a/dev-ruby/mod-ruby/mod-ruby-1.1.1-r2.ebuild +++ b/dev-ruby/mod-ruby/mod-ruby-1.1.1-r2.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2004 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-ruby/mod-ruby/mod-ruby-1.1.1-r2.ebuild,v 1.5 2004/04/10 12:19:52 usata Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-ruby/mod-ruby/mod-ruby-1.1.1-r2.ebuild,v 1.6 2004/04/16 16:50:35 usata Exp $ MY_P=mod_ruby-${PV} DESCRIPTION="Embeds the Ruby interpreter into Apache" @@ -69,7 +69,7 @@ src_install() { pkg_postinst() { if apache2-detect ; then einfo "To enable mod_ruby, edit /etc/conf.d/apache2 and add \"-D RUBY\"" - einfo "You may also wish to edit /etc/conf.d/apache2/modules.d/20_mod_ruby.conf" + einfo "You may also wish to edit /etc/apache2/conf/modules.d/20_mod_ruby.conf" else # apache1 einfo "To enable mod_ruby:" einfo "1. Run \"ebuild /var/db/pkg/${CATEGORY}/${PF}/${PF}.ebuild config\"" @@ -80,9 +80,7 @@ pkg_postinst() { pkg_config() { if ! apache2-detect ; then - ${ROOT}/usr/sbin/apacheaddmod \ - ${ROOT}/etc/apache/conf/apache.conf \ - extramodules/mod_ruby.so mod_ruby.c ruby_module \ - before=perl define=RUBY addconf=conf/addon-modules/mod_ruby.conf + echo -e "<IfDefine RUBY>\n Include conf/addon-modules/mod_ruby.conf\n</IfDefine>" \ + >> ${ROOT}/etc/apache/conf/apache.conf fi } diff --git a/dev-ruby/mod-ruby/mod-ruby-1.1.3-r1.ebuild b/dev-ruby/mod-ruby/mod-ruby-1.1.3-r1.ebuild new file mode 100644 index 000000000000..701e18e14b6f --- /dev/null +++ b/dev-ruby/mod-ruby/mod-ruby-1.1.3-r1.ebuild @@ -0,0 +1,86 @@ +# Copyright 1999-2004 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-ruby/mod-ruby/mod-ruby-1.1.3-r1.ebuild,v 1.1 2004/04/16 16:50:35 usata Exp $ + +MY_P=mod_ruby-${PV} +DESCRIPTION="Embeds the Ruby interpreter into Apache" +HOMEPAGE="http://modruby.net/" +SRC_URI="http://modruby.net/archive/${MY_P}.tar.gz" +LICENSE="BSD" +SLOT="0" +# 1.0.X -> stable branch; 1.1.Y -> development branch +KEYWORDS="~alpha ~sparc ~x86 ~ppc" +IUSE="apache2 doc" +DEPEND=">=net-www/apache-1.3.3 + virtual/ruby + doc? ( dev-ruby/rdtool )" +S=${WORKDIR}/${MY_P} + +apache2-detect() { + if [ "`has_version '=net-www/apache-1*'`" != 1 -o "`use apache2`" ]; then + true + else + false + fi +} + +src_compile() { + + local two + if apache2-detect ; then + two="2" + else # apache1 + ewarn "apache 1.3.x support is UNTESTED" + two="" + fi + + ./configure.rb --with-apxs=/usr/sbin/apxs${two} + + sed -i -e "s:\(^APACHE_LIBEXECDIR = \$(DESTDIR)/usr/lib/apache${two}\)/modules:\1-extramodules:" Makefile + + emake || die + + if [ "`use doc`" ]; then + cd doc + emake + fi +} + +src_install() { + + make DESTDIR=${D} install || die + + if apache2-detect ; then + insinto /etc/apache2/conf/modules.d + doins ${FILESDIR}/20_mod_ruby.conf + else # apache1 + insinto /etc/apache/conf/addon-modules + doins ${FILESDIR}/mod_ruby.conf + fi + + dodoc ChangeLog COPYING README.* + + if [ "`use doc`" ]; then + dohtml doc/*.css doc/*.html + fi + +} + +pkg_postinst() { + if apache2-detect ; then + einfo "To enable mod_ruby, edit /etc/conf.d/apache2 and add \"-D RUBY\"" + einfo "You may also wish to edit /etc/apache2/conf/modules.d/20_mod_ruby.conf" + else # apache1 + einfo "To enable mod_ruby:" + einfo "1. Run \"ebuild /var/db/pkg/${CATEGORY}/${PF}/${PF}.ebuild config\"" + einfo "2. Edit /etc/conf.d/apache and add \"-D RUBY\"" + fi + einfo "You must restart apache for changes to take effect" +} + +pkg_config() { + if ! apache2-detect ; then + echo -e "<IfDefine RUBY>\n Include conf/addon-modules/mod_ruby.conf\n</IfDefine>" \ + >> ${ROOT}/etc/apache/conf/apache.conf + fi +} |