--- mod-ruby-1.2.6.orig/autoconf.rb
+++ mod-ruby-1.2.6/autoconf.rb
@@ -84,7 +84,7 @@
end
end
-require 'ftools'
+require 'fileutils'
def AC_OUTPUT(*files)
$DEFS ||= ""
@@ -97,7 +97,7 @@
for file in files
print "creating ", file, "\n"
open(File.join($srcdir, file + ".in")) do |fin|
- File.makedirs(File.dirname(file))
+ FileUtils.mkdir_p(File.dirname(file))
open(file, "w") do |fout|
depend = false
while line = fin.gets
@@ -189,6 +189,11 @@
end
end
+begin
+ require "continuation"
+rescue LoadError
+end
+
def AC_PROG_INSTALL
AC_MSG_CHECKING("for a BSD compatible install")
$ac_cv_path_install = callcc { |c|
@@ -342,7 +347,7 @@
$LDFLAGS = "-link -incremental:no -pdb:none"
end
$LIBS = CONFIG["LIBS"]
-$XLDFLAGS = CONFIG["XLDFLAGS"]
+$XLDFLAGS = CONFIG["XLDFLAGS"].to_s
$XLDFLAGS.gsub!(/-L\./, "")
if /mswin32/ !~ RUBY_PLATFORM
$XLDFLAGS += " -L$(libdir)"
--- mod-ruby-1.2.6.orig/configure.rb
+++ mod-ruby-1.2.6/configure.rb
@@ -62,7 +62,7 @@
end
end
-require 'ftools'
+require 'fileutils'
def AC_OUTPUT(*files)
$DEFS ||= ""
@@ -75,7 +75,7 @@
for file in files
print "creating ", file, "\n"
open(File.join($srcdir, file + ".in")) do |fin|
- File.makedirs(File.dirname(file))
+ FileUtils.mkdir_p(File.dirname(file))
open(file, "w") do |fout|
depend = false
while line = fin.gets
@@ -167,6 +167,11 @@
end
end
+begin
+ require "continuation"
+rescue LoadError
+end
+
def AC_PROG_INSTALL
AC_MSG_CHECKING("for a BSD compatible install")
$ac_cv_path_install = callcc { |c|
@@ -320,7 +325,7 @@
$LDFLAGS = "-link -incremental:no -pdb:none"
end
$LIBS = CONFIG["LIBS"]
-$XLDFLAGS = CONFIG["XLDFLAGS"]
+$XLDFLAGS = CONFIG["XLDFLAGS"].to_s
$XLDFLAGS.gsub!(/-L\./, "")
if /mswin32/ !~ RUBY_PLATFORM
$XLDFLAGS += " -L$(libdir)"
--- mod-ruby-1.2.6.orig/debian/libapache2-mod-ruby.dirs
+++ mod-ruby-1.2.6/debian/libapache2-mod-ruby.dirs
@@ -0,0 +1,2 @@
+usr/lib/apache2/modules
+etc/apache2/mods-available
--- mod-ruby-1.2.6.orig/debian/httpd.conf-apache1
+++ mod-ruby-1.2.6/debian/httpd.conf-apache1
@@ -0,0 +1,47 @@
+LoadModule ruby_module /usr/lib/apache/1.3/mod_ruby.so
+
+# If the ruby module is installed, this will be enabled.
+
+ # for Apache::RubyRun
+ RubyRequire apache/ruby-run
+
+ # exec files under /ruby as ruby scripts.
+
+ SetHandler ruby-object
+ RubyHandler Apache::RubyRun.instance
+ Options +ExecCGI
+
+
+ # exec *.rbx as ruby scripts.
+
+ SetHandler ruby-object
+ RubyHandler Apache::RubyRun.instance
+
+
+ # # for Apache::ERubyRun
+ # RubyRequire apache/eruby-run
+ #
+ # # handle files under /eruby as eRuby files by eruby.
+ #
+ # SetHandler ruby-object
+ # RubyHandler Apache::ERubyRun.instance
+ #
+ #
+ # # handle *.rhtml as eruby files.
+ #
+ # SetHandler ruby-object
+ # RubyHandler Apache::ERubyRun.instance
+ #
+
+ # # for Apache::ERbRun
+ # RubyRequire apache/erb-run
+ #
+ # # handle files under /erb as eRuby files by ERb.
+ #
+ # SetHandler ruby-object
+ # RubyHandler Apache::ERbRun.instance
+ #
+
+ # # for debug
+ # RubyRequire auto-reload
+
--- mod-ruby-1.2.6.orig/debian/README.Debian
+++ mod-ruby-1.2.6/debian/README.Debian
@@ -0,0 +1,13 @@
+mod_ruby for Debian GNU/Linux
+-----------------------------
+
+This is the mod_ruby module, packaged for Debian GNU/Linux.
+
+The postinst script does not change httpd.conf. Please edit httpd.conf
+yourself, then restart Apache. examples/httpd.conf is an example.
+
+libapache-mod-ruby works without liberuby now, so liberuby is removed
+from the Depends: field. If you want to use eRuby, please install the
+liberuby package, and use the Apache::ERubyRun handler.
+
+Shugo Maeda , Tue, 5 Jun 2001 11:43:15 +0900
--- mod-ruby-1.2.6.orig/debian/changelog
+++ mod-ruby-1.2.6/debian/changelog
@@ -0,0 +1,380 @@
+mod-ruby (1.2.6-2) unstable; urgency=low
+
+ * Fixes for Ruby 1.8.7.
+
+ -- Shugo Maeda Tue, 22 Jul 2008 14:33:45 +0000
+
+mod-ruby (1.2.6-1.2) unstable; urgency=low
+
+ * Non-maintainer upload.
+ * Drop support for apache 1.x (Closes: #429134).
+ * Build against latest apache2 package (Closes: #384883).
+
+ -- Aurelien Jarno Tue, 15 Jan 2008 11:57:01 +0100
+
+mod-ruby (1.2.6-1.1) unstable; urgency=medium
+
+ * Non-maintainer upload.
+ * Update for apache 2.2 (Closes: #391791).
+
+ -- Luk Claes Tue, 17 Oct 2006 19:03:02 +0200
+
+mod-ruby (1.2.6-1) unstable; urgency=low
+
+ * Upgraded to new upstream version.
+
+ -- Shugo Maeda Thu, 15 Jun 2006 13:43:03 +0900
+
+mod-ruby (1.2.5-1) unstable; urgency=low
+
+ * Upgraded to new upstream version.
+
+ -- Shugo Maeda Mon, 27 Mar 2006 23:15:47 +0900
+
+mod-ruby (1.2.4-1) unstable; urgency=low
+
+ * Upgraded to new upstream version.
+
+ -- Shugo Maeda Fri, 1 Oct 2004 14:34:00 +0900
+
+mod-ruby (1.2.2-3) unstable; urgency=high
+
+ * Back out the ill-fated apache2 LFS transition. Closes: Bug#267346.
+ * Remove the LFS CFLAGS that I added for the transition. Man, I
+ wish my apache module just used CFLAGS from apxs2 like all the
+ OTHER ones do, so I could skip this step.
+ * Bump the apache2-{threaded,prefork}-dev build-dep to (>= 2.0.50-10)
+
+ -- Shugo Maeda Mon, 23 Aug 2004 11:21:40 +0900
+
+mod-ruby (1.2.2-2) unstable; urgency=medium
+
+ * Rebuld for apache2 LFS transition. Closes: Bug#259994.
+ * Merged bug fixes in svn head.
+
+ -- Shugo Maeda Tue, 17 Aug 2004 11:11:34 +0900
+
+mod-ruby (1.2.2-1) unstable; urgency=low
+
+ * Upgraded to new upstream version.
+ * Do not use dh_installmanpages.
+
+ -- Shugo Maeda Mon, 9 Aug 2004 18:00:46 +0900
+
+mod-ruby (1.2.1-1) unstable; urgency=low
+
+ * Upgraded to new upstream version.
+
+ -- Shugo Maeda Sun, 8 Aug 2004 08:40:58 +0900
+
+mod-ruby (1.2.0-2) unstable; urgency=low
+
+ * Removed apache/apache2 from the Depends field. Closes: Bug#259994.
+ * Merged changes in the subversion repository.
+
+ -- Shugo Maeda Fri, 23 Jul 2004 12:25:43 +0900
+
+mod-ruby (1.2.0-1) unstable; urgency=low
+
+ * Upgraded to new upstream version.
+ * Enabled build for multi binary package to support apache2.
+ * Renamed source package name "mod-ruby".
+ * Fixed copyright.
+ * Use ruby1.8 instead of ruby.
+ * Added the Recommends: line to libapache-ruby1.8.
+ * Changed the Architecture: line of libapache-ruby1.8 from "any"
+ to "all".
+ * Use a2enmod in libapache2-mod-ruby.postinst.
+
+ -- Shugo Maeda Thu, 13 May 2004 18:26:22 +0900
+
+libapache-mod-ruby (1.0.7-3) unstable; urgency=low
+
+ * Fix for ERB2. Closes: Bug#239597.
+
+ -- Shugo Maeda Wed, 31 Mar 2004 15:51:33 +0900
+
+libapache-mod-ruby (1.0.7-2) unstable; urgency=low
+
+ * Built on sarge.
+
+ -- Shugo Maeda Sat, 13 Dec 2003 15:34:27 +0000
+
+libapache-mod-ruby (1.0.7-1) unstable; urgency=low
+
+ * Upgraded to new upstream version.
+ * Built with ruby1.8.
+
+ -- Shugo Maeda Mon, 8 Sep 2003 16:57:06 +0900
+
+libapache-mod-ruby (1.0.6-1) unstable; urgency=low
+
+ * Upgraded to new upstream version.
+
+ -- Shugo Maeda Wed, 12 Mar 2003 14:12:16 +0900
+
+libapache-mod-ruby (1.0.5-1) unstable; urgency=low
+
+ * Upgraded to new upstream version.
+
+ -- Shugo Maeda Wed, 19 Feb 2003 11:58:07 +0900
+
+libapache-mod-ruby (1.0.4-1) unstable; urgency=low
+
+ * Upgraded to new upstream version.
+
+ -- Shugo Maeda Fri, 24 Jan 2003 12:32:58 +0900
+
+libapache-mod-ruby (1.0.3-1) unstable; urgency=low
+
+ * Upgraded to new upstream version.
+
+ -- Shugo Maeda Fri, 17 Jan 2003 14:20:57 +0900
+
+libapache-mod-ruby (1.0.1-1) unstable; urgency=low
+
+ * Upgraded to new upstream version.
+
+ -- Shugo Maeda Tue, 29 Oct 2002 11:50:36 +0900
+
+libapache-mod-ruby (1.0.0-1) unstable; urgency=low
+
+ * Upgraded to new upstream version.
+
+ -- Shugo Maeda Wed, 21 Aug 2002 11:59:31 +0900
+
+libapache-mod-ruby (0.9.9-1) unstable; urgency=low
+
+ * Upgraded to new upstream version.
+
+ -- Shugo Maeda Fri, 21 Jun 2002 16:10:26 +0900
+
+libapache-mod-ruby (0.9.8-1) unstable; urgency=low
+
+ * Upgraded to new upstream version.
+
+ -- Shugo Maeda Tue, 7 May 2002 14:23:58 +0900
+
+libapache-mod-ruby (0.9.7-2) unstable; urgency=low
+
+ * request.c: added Apache::Request#allowed and
+ Apache::Request#allowed=.
+ * debian/httpd.conf: example for Debian.
+
+ -- Shugo Maeda Wed, 6 Mar 2002 15:56:50 +0900
+
+libapache-mod-ruby (0.9.7-1) unstable; urgency=low
+
+ * Upgraded to new upstream version.
+ * debian/control: Removed ", apache-common (<< ${NEXTDEV})" from
+ the Depends field. Closes: Bug#132921.
+
+ -- Shugo Maeda Wed, 13 Feb 2002 15:26:39 +0900
+
+libapache-mod-ruby (0.9.4-1) unstable; urgency=low
+
+ * Upgraded to new upstream version.
+ * Rebuilt with apache 1.3.22-1.
+
+ -- Shugo Maeda Tue, 23 Oct 2001 13:07:05 +0900
+
+libapache-mod-ruby (0.9.3-1) unstable; urgency=low
+
+ * Upgraded to new upstream version.
+
+ -- Shugo Maeda Fri, 24 Aug 2001 17:08:27 +0900
+
+libapache-mod-ruby (0.9.2-1) unstable; urgency=low
+
+ * Upgraded to new upstream version.
+
+ -- Shugo Maeda Mon, 13 Aug 2001 14:56:48 +0900
+
+libapache-mod-ruby (0.9.1-1) unstable; urgency=low
+
+ * Upgraded to new upstream version.
+
+ -- Shugo Maeda Mon, 6 Aug 2001 15:00:14 +0900
+
+libapache-mod-ruby (0.9.0-2) unstable; urgency=low
+
+ * debian/control: Use substitution variable for the version of
+ apache-common in the Depends field.
+
+ -- Shugo Maeda Wed, 18 Jul 2001 15:12:28 +0900
+
+libapache-mod-ruby (0.9.0-1) unstable; urgency=low
+
+ * Upgraded to new upstream version.
+
+ -- Shugo Maeda Fri, 6 Jul 2001 14:36:57 +0900
+
+libapache-mod-ruby (0.8.5-1) unstable; urgency=low
+
+ * Upgraded to new upstream version.
+
+ -- Shugo Maeda Thu, 28 Jun 2001 16:16:04 +0900
+
+libapache-mod-ruby (0.8.4-1) unstable; urgency=low
+
+ * Upgraded to new upstream version.
+
+ -- Shugo Maeda Wed, 20 Jun 2001 18:35:09 +0900
+
+libapache-mod-ruby (0.8.3-2) unstable; urgency=low
+
+ * Rebuild with apache 1.3.20-1.
+
+ -- Shugo Maeda Tue, 19 Jun 2001 17:44:07 +0900
+
+libapache-mod-ruby (0.8.3-1) unstable; urgency=low
+
+ * Upgraded to new upstream version.
+
+ -- Shugo Maeda Wed, 6 Jun 2001 18:12:02 +0900
+
+libapache-mod-ruby (0.8.2-1) unstable; urgency=low
+
+ * Upgraded to new upstream version.
+
+ * debian/rules: Removed --enable-eruby option.
+
+ * Removed the 'Restart Apache?' question in the postinst and the prerm.
+
+ -- Shugo Maeda Tue, 5 Jun 2001 11:44:01 +0900
+
+libapache-mod-ruby (0.8.0-1) unstable; urgency=low
+
+ * Upgraded to new upstream version.
+
+ -- Shugo Maeda Sat, 14 Apr 2001 10:19:58 +0900
+
+libapache-mod-ruby (0.2.2-4) unstable; urgency=low
+
+ * Rebuild with apache 1.3.19-1. Closes: Bug#92211.
+
+ -- Shugo Maeda Mon, 2 Apr 2001 12:29:09 +0900
+
+libapache-mod-ruby (0.2.2-3) unstable; urgency=low
+
+ * Fixed Maintainer field really.
+
+ -- Shugo Maeda Mon, 19 Feb 2001 18:11:19 +0900
+
+libapache-mod-ruby (0.2.2-2) unstable; urgency=low
+
+ * Fixed Maintainer field.
+
+ -- Shugo Maeda Mon, 19 Feb 2001 17:58:15 +0900
+
+libapache-mod-ruby (0.2.2-1) unstable; urgency=low
+
+ * New maintainer.
+ * Upgraded to new upstream version.
+ * Removed dh_suidregister from rules.
+
+ -- Shugo Maeda Mon, 19 Feb 2001 14:36:04 +0900
+
+libapache-mod-ruby (0.2.1-1.2) unstable; urgency=low
+
+ * Rebuild with apache_1.3.14.
+
+ -- akira yamada Thu, 14 Dec 2000 14:05:55 +0900
+
+libapache-mod-ruby (0.2.1-1.1) unstable; urgency=low
+
+ * Upgraded to new upstream version.
+
+ -- akira yamada Sat, 28 Oct 2000 03:10:06 +0900
+
+libapache-mod-ruby (0.2.0-1.3) unstable; urgency=low
+
+ * Upgraded to new CVS version (2000-10-16)
+
+ -- akira yamada Mon, 16 Oct 2000 18:20:33 +0900
+
+libapache-mod-ruby (0.2.0-1.2) unstable; urgency=low
+
+ * Rebuild with libc6_2.1.94.
+
+ -- akira yamada Mon, 2 Oct 2000 19:14:19 +0900
+
+libapache-mod-ruby (0.2.0-1.1) unstable; urgency=low
+
+ * Rebuild with ruby_1.6.0.
+
+ -- akira yamada Wed, 13 Sep 2000 17:36:54 +0900
+
+libapache-mod-ruby (0.2.0-1) unstable; urgency=low
+
+ * Upgraded to new upstream version.
+ * Added Builid-Depends field into control file.
+
+ -- akira yamada Mon, 11 Sep 2000 16:37:48 +0900
+
+libapache-mod-ruby (0.1.8-1.1) unstable; urgency=low
+
+ * Build with 1.3.12.
+ closes: #63538
+
+ -- akira yamada Sat, 27 May 2000 16:07:01 +0900
+
+libapache-mod-ruby (0.1.8-1) unstable; urgency=low
+
+ * Upgraded to new upstream version.
+
+ -- akira yamada Wed, 24 May 2000 14:23:32 +0900
+
+libapache-mod-ruby (0.1.4-2.2) unstable; urgency=low
+
+ * Rebuild with ruby 1.4.3-1. Now, mod_ruby.so links to libruby.so.1.4.
+
+ -- akira yamada Fri, 10 Dec 1999 02:22:04 +0900
+
+libapache-mod-ruby (0.1.4-2.1) unstable; urgency=low
+
+ * Rebuild with ruby 1.4.2-7.
+
+ -- akira yamada Tue, 9 Nov 1999 02:23:34 +0900
+
+libapache-mod-ruby (0.1.4-2.0) unstable; urgency=low
+
+ * Recompiled for apache 1.3.9.
+ * Moved documentation from /usr/doc to /usr/share/doc.
+
+ -- akira yamada Mon, 1 Nov 1999 13:27:36 +0900
+
+libapache-mod-ruby (0.1.4-1.0) unstable; urgency=low
+
+ * Build with ruby 1.4.
+
+ -- akira yamada Wed, 18 Aug 1999 11:02:46 +0900
+
+libapache-mod-ruby (0.1.4-1) unstable; urgency=low
+
+ * Upgraded to new upstream version.
+
+ -- akira yamada Tue, 10 Aug 1999 15:49:06 +0900
+
+libapache-mod-ruby (0.1.3-1) unstable; urgency=low
+
+ * Upgraded to new upstream version.
+
+ -- akira yamada Tue, 6 Jul 1999 20:27:49 +0900
+
+libapache-mod-ruby (0.1.2-1) unstable; urgency=low
+
+ * Upgraded to new upstream version.
+
+ -- akira yamada Mon, 21 Jun 1999 16:34:12 +0900
+
+libapache-mod-ruby (0.0.8-1) unstable; urgency=low
+
+ * Initial Release.
+
+ -- akira yamada Sun, 7 Mar 1999 21:21:28 +0900
+
+Local variables:
+debian-changelog-full-name: "Shugo Maeda"
+debian-changelog-mailing-address: "shugo@debian.org"
+End:
--- mod-ruby-1.2.6.orig/debian/ruby.load
+++ mod-ruby-1.2.6/debian/ruby.load
@@ -0,0 +1 @@
+LoadModule ruby_module /usr/lib/apache2/modules/mod_ruby.so
--- mod-ruby-1.2.6.orig/debian/libapache-mod-ruby.dirs
+++ mod-ruby-1.2.6/debian/libapache-mod-ruby.dirs
@@ -0,0 +1 @@
+usr/lib/apache/1.3
--- mod-ruby-1.2.6.orig/debian/libapache2-mod-ruby.examples
+++ mod-ruby-1.2.6/debian/libapache2-mod-ruby.examples
@@ -0,0 +1 @@
+debian/httpd.conf-apache2
--- mod-ruby-1.2.6.orig/debian/700mod_ruby.info
+++ mod-ruby-1.2.6/debian/700mod_ruby.info
@@ -0,0 +1,16 @@
+LoadModule: ruby_module /usr/lib/apache/1.3/mod_ruby.so
+Directives:
+ RubyKanjiCode
+ RubyAddPath
+ RubyRequire
+ RubyPassEnv
+ RubySetEnv
+ RubyTimeOut
+ RubySafeLevel
+ RubyHandler
+Handles:
+ ruby-object
+ ruby-script
+MimeTypes:
+ application/x-httpd-eruby
+Description: Support for the Ruby object-oriented scripting language
--- mod-ruby-1.2.6.orig/debian/httpd.conf-apache2
+++ mod-ruby-1.2.6/debian/httpd.conf-apache2
@@ -0,0 +1,48 @@
+## use "a2enmod ruby"
+##LoadModule ruby_module /usr/lib/apache2/modules/mod_ruby.so
+
+# If the ruby module is installed, this will be enabled.
+
+ # for Apache::RubyRun
+ RubyRequire apache/ruby-run
+
+ # exec files under /ruby as ruby scripts.
+
+ SetHandler ruby-object
+ RubyHandler Apache::RubyRun.instance
+ Options +ExecCGI
+
+
+ # exec *.rbx as ruby scripts.
+
+ SetHandler ruby-object
+ RubyHandler Apache::RubyRun.instance
+
+
+ # # for Apache::ERubyRun
+ # RubyRequire apache/eruby-run
+ #
+ # # handle files under /eruby as eRuby files by eruby.
+ #
+ # SetHandler ruby-object
+ # RubyHandler Apache::ERubyRun.instance
+ #
+ #
+ # # handle *.rhtml as eruby files.
+ #
+ # SetHandler ruby-object
+ # RubyHandler Apache::ERubyRun.instance
+ #
+
+ # # for Apache::ERbRun
+ # RubyRequire apache/erb-run
+ #
+ # # handle files under /erb as eRuby files by ERb.
+ #
+ # SetHandler ruby-object
+ # RubyHandler Apache::ERbRun.instance
+ #
+
+ # # for debug
+ # RubyRequire auto-reload
+
--- mod-ruby-1.2.6.orig/debian/libapache2-mod-ruby.prerm
+++ mod-ruby-1.2.6/debian/libapache2-mod-ruby.prerm
@@ -0,0 +1,15 @@
+#!/bin/sh
+
+set -e
+
+#DEBHELPER#
+
+if [ "$1" != "remove" -a "$1" != "purge" ]; then
+ exit 0
+fi;
+
+if [ -e /etc/apache2/apache2.conf ]; then
+ a2dismod ruby || true
+fi
+
+exit 0
--- mod-ruby-1.2.6.orig/debian/libapache-mod-ruby.docs
+++ mod-ruby-1.2.6/debian/libapache-mod-ruby.docs
@@ -0,0 +1,3 @@
+README.en
+README.ja
+NOTICE
--- mod-ruby-1.2.6.orig/debian/libapache-mod-ruby.examples
+++ mod-ruby-1.2.6/debian/libapache-mod-ruby.examples
@@ -0,0 +1 @@
+debian/httpd.conf-apache1
--- mod-ruby-1.2.6.orig/debian/control
+++ mod-ruby-1.2.6/debian/control
@@ -0,0 +1,30 @@
+Source: mod-ruby
+Section: web
+Priority: optional
+Maintainer: Shugo Maeda
+Uploaders: Shugo Maeda , ARAKI Yasuhiro
+Build-Depends: debhelper (>= 4.1.16), apache2-threaded-dev (>= 2.2.3-1) | apache2-prefork-dev (>= 2.2.3-1), ruby1.8, ruby1.8-dev
+Standards-Version: 3.6.2
+
+Package: libapache-ruby1.8
+Architecture: all
+Depends: libruby1.8
+Recommends: libapache2-mod-ruby
+Suggests: libapache2-mod-ruby
+Conflicts: libapache-mod-ruby (<< 1.2.0)
+Description: Ruby libraries for mod_ruby
+ mod_ruby embeds the Ruby interpreter into the Apache2 web server,
+ allowing Ruby CGI scripts to be executed natively. These scripts will
+ start up much faster than without mod_ruby.
+ .
+ This package contains Ruby libraries for mod_ruby.
+
+Package: libapache2-mod-ruby
+Architecture: any
+Depends: ${shlibs:Depends}, apache2.2-common, libapache-ruby1.8 (= ${source:Version})
+Suggests: liberuby (>= 0.9.4)
+Description: Embedding Ruby in the Apache2 web server
+ mod_ruby embeds the Ruby interpreter into the Apache2 web server,
+ allowing Ruby CGI scripts to be executed natively. These scripts will
+ start up much faster than without mod_ruby.
+
--- mod-ruby-1.2.6.orig/debian/libapache2-mod-ruby.postinst
+++ mod-ruby-1.2.6/debian/libapache2-mod-ruby.postinst
@@ -0,0 +1,15 @@
+#!/bin/sh
+
+set -e
+
+#DEBHELPER#
+
+if [ "$1" != "configure" ]; then
+ exit 0
+fi
+
+if [ -e /etc/apache2/apache2.conf ]; then
+ a2enmod ruby || true
+fi
+
+exit 0
--- mod-ruby-1.2.6.orig/debian/libapache2-mod-ruby.docs
+++ mod-ruby-1.2.6/debian/libapache2-mod-ruby.docs
@@ -0,0 +1,3 @@
+README.en
+README.ja
+NOTICE
--- mod-ruby-1.2.6.orig/debian/copyright
+++ mod-ruby-1.2.6/debian/copyright
@@ -0,0 +1,46 @@
+This package was debianized by akira yamada on
+Sun, 7 Mar 1999 21:21:28 +0900.
+
+It was downloaded from .
+
+Copyright:
+
+mod_ruby is copyright ZetaBITS, Inc., and Information-technology Promotion
+Agency, and Shugo Maeda, and licensed under the following BSD-style license
+except the files derived from libapreq.
+
+/*
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
+ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
+ * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
+ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+ * SUCH DAMAGE.
+ */
+
+The following files derived from libapreq are copyright The Apache Software
+Foundation and covered under the Apache License Version 2.0.
+
+apache_request.h:
+apache_request.c:
+apache_multipart_buffer.h:
+apache_multipart_buffer.c:
+apache_cookie.h:
+apache_cookie.c:
+
+On Debian systems, the complete text of the Apache License Version 2.0 can
+be found in `/usr/share/common-licenses/Apache-2.0'.
--- mod-ruby-1.2.6.orig/debian/libapache-ruby1.8.dirs
+++ mod-ruby-1.2.6/debian/libapache-ruby1.8.dirs
@@ -0,0 +1,2 @@
+usr/lib/ruby/1.8
+usr/lib/ruby/1.8/apache
--- mod-ruby-1.2.6.orig/debian/rules
+++ mod-ruby-1.2.6/debian/rules
@@ -0,0 +1,96 @@
+#!/usr/bin/make -f
+# MAde with the aid of dh_make, by Craig Small
+# Sample debian/rules that uses debhelper. GNU copyright 1997 by Joey Hess.
+# Some lines taken from debmake, by Cristoph Lameter.
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+##DEV_DPKG_VERSION2 := $(shell dpkg -s apache2-dev | awk '/Version:/ {print $2}')
+DEV_DPKG_VERSION2 := $(shell dpkg -s apache2-threaded-dev apache2-prefork-dev | awk '/Version:/ {print $2}')
+DEV_VERSION2 := $(shell echo $(DEV_DPKG_VERSION2) | sed "s/^Version: \(.*\)-.*$$/\1/")
+# (From the egcs packaging)
+NEXTVERNO2 := $(shell echo $(DEV_VERSION2) | awk -F. '{OFS="."; $$NF = $$NF + 1; print}')
+
+pwd := $(shell pwd)
+DEB_DESTDIR_LIBAPACHE_RUBY = $(pwd)/debian/libapache-ruby1.8
+DEB_DESTDIR_APACHE2 = $(pwd)/debian/libapache2-mod-ruby
+
+# This is the debhelper compatability version to use.
+export DH_COMPAT=4
+
+build: build-stamp
+build-stamp: build-stamp-apache2
+build-stamp-apache2:
+ dh_testdir
+
+ # Add here commands to compile the package.
+ rm -rf build-apache2
+ mkdir build-apache2
+ cd build-apache2; \
+ ruby1.8 ../configure.rb --with-apr-includes=/usr/include/apr-1.0 --with-apxs=/usr/bin/apxs2; \
+ $(MAKE)
+
+# dh_testroot
+# dh_clean -k -plibapache2-mod-ruby
+# dh_installdirs -plibapache2-mod-ruby
+# $(MAKE) install DESTDIR=$(DEB_DESTDIR_APACHE2)
+
+ touch build-stamp-apache2
+
+clean:
+ dh_testdir
+ dh_testroot
+ rm -f build-stamp-apache2 build-stamp
+ # Add here commands to clean up after the build process.
+ rm -rf build-apache2
+ #-$(MAKE) distclean
+
+ dh_clean
+
+# Build architecture-independent files here.
+binary-indep: build
+# We have nothing to do
+
+# Build architecture-dependent files here.
+binary-arch: build
+ dh_testdir
+ dh_testroot
+ dh_clean -k
+ dh_installdirs
+
+ cd build-apache2; \
+ $(MAKE) install-ruby DESTDIR=$(DEB_DESTDIR_LIBAPACHE_RUBY)
+
+# dh_clean -k -plibapache2-mod-ruby
+# dh_installdirs -plibapache2-mod-ruby
+ cd build-apache2; \
+ $(MAKE) install-shared DESTDIR=$(DEB_DESTDIR_APACHE2)
+ install -m644 $(CURDIR)/debian/ruby.load $(DEB_DESTDIR_APACHE2)/etc/apache2/mods-available
+
+# dh_clean -k -plibapache-mod-ruby
+# dh_installdirs -plibapache-mod-ruby
+
+ dh_installdocs
+ dh_installexamples
+# dh_installinit
+# dh_installman
+# dh_undocumented
+ dh_installchangelogs ChangeLog
+ dh_strip
+ dh_compress
+ dh_fixperms
+ dh_installdeb
+ dh_shlibdeps
+ dh_gencontrol -plibapache-ruby1.8
+ dh_gencontrol -plibapache2-mod-ruby -- -VTHISDEV="$(DEV_VERSION2)" \
+ -VNEXTDEV="$(NEXTVERNO2)"
+# dh_makeshlibs
+ dh_md5sums
+ dh_builddeb
+
+source diff:
+ @echo >&2 'source and diff are obsolete - use dpkg-source -b'; false
+
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary