--- mongrel-1.1.4.orig/debian/copyright
+++ mongrel-1.1.4/debian/copyright
@@ -0,0 +1,88 @@
+This package was debianized by Gunnar Wolf <gwolf@debian.org>
+Fri, 03 Nov 2006 17:58:50 -0600
+
+It incorporates packaging work done by Jens Kraemer <jk@jkraemer.net>
+
+It was downloaded from http://rubyforge.org/projects/mongrel/
+
+Upstream Author: Zed Shaw <zedshaw@zedshaw.com>
+
+Licenses:
+
+Copyright (c) 2006-2007 Zed Shaw <zedshaw@zedshaw.com>
+
+Mongrel Web Server (Mongrel) is copyrighted free software by Zed A. Shaw  
+You can redistribute it and/or modify it under either the terms of the 
+GPL or the conditions below:
+
+1. You may make and give away verbatim copies of the source form of the
+   software without restriction, provided that you duplicate all of the
+   original copyright notices and associated disclaimers.
+
+2. You may modify your copy of the software in any way, provided that
+   you do at least ONE of the following:
+
+a) place your modifications in the Public Domain or otherwise make them
+Freely Available, such as by posting said modifications to Usenet or an
+equivalent medium, or by allowing the author to include your
+modifications in the software.
+
+b) use the modified software only within your corporation or
+   organization.
+
+c) rename any non-standard executables so the names do not conflict with
+standard executables, which must also be provided.
+
+d) make other distribution arrangements with the author.
+
+3. You may distribute the software in object code or executable
+   form, provided that you do at least ONE of the following:
+
+a) distribute the executables and library files of the software,
+together with instructions (in the manual page or equivalent) on where
+to get the original distribution.
+
+b) accompany the distribution with the machine-readable source of the
+software.
+
+c) give non-standard executables non-standard names, with
+   instructions on where to get the original software distribution.
+
+d) make other distribution arrangements with the author.
+
+4. You may modify and include the part of the software into any other
+   software (possibly commercial).  But some files in the distribution
+   are not written by the author, so that they are not under this terms.
+
+5. The scripts and library files supplied as input to or produced as 
+   output from the software do not automatically fall under the
+   copyright of the software, but belong to whomever generated them, 
+   and may be sold commercially, and may be aggregated with this
+   software.
+
+6. THIS SOFTWARE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR
+   IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
+   WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+   PURPOSE.
+
+On Debian systems, the full text of the GNU General Public License can be
+found at /usr/share/common-licenses/GPL.
+
+---
+File setup.rb:
+
+Copyright (c) 2000-2005 Minero Aoki
+
+You can distribute/modify this program under the terms of the GNU LGPL,
+Lesser General Public License version 2.1.
+
+On Debian systems, the full text of the GNU General Public License can be
+found at /usr/share/common-licenses/LGPL.
+
+---
+Debian package:
+
+Copyright (C) 2007 Filipe Lautert <filipe@icewall.org>
+
+This package is licensed under the same terms of the upstream sources
+(see above).
--- mongrel-1.1.4.orig/debian/rules
+++ mongrel-1.1.4/debian/rules
@@ -0,0 +1,34 @@
+#!/usr/bin/make -f
+
+include /usr/share/cdbs/1/rules/debhelper.mk
+include /usr/share/ruby-pkg-tools/1/class/ruby-common.mk
+#include /usr/share/ruby-pkg-tools/1/class/ruby-setup-rb.mk
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+# DEB_DH_INSTALL_SOURCEDIR := debian/tmp
+DEB_RUBY_CONFIG_ARGS = --installdirs=std --shebang=all
+DEB_RUBY_INSTALL_ARGS = --prefix=debian/$(cdbs_curpkg)
+
+configure/mongrel::
+	/usr/bin/ruby$(cdbs_ruby_ver) setup.rb config $(DEB_RUBY_CONFIG_ARGS)
+
+configure/mongrel-doc::
+	rdoc --op doc/rdoc lib/ ext/
+
+build/mongrel::
+	/usr/bin/ruby$(cdbs_ruby_ver) setup.rb setup
+
+install/mongrel::
+	/usr/bin/ruby$(cdbs_ruby_ver) setup.rb install $(DEB_RUBY_INSTALL_ARGS)
+	-ln -sf ../../../bin/mongrel_rails debian/mongrel/usr/lib/ruby/1.8/mongrel_rails
+	-dh_installman --package=mongrel debian/mongrel_rails.1
+	-find $(CURDIR)/debian -type d | xargs \
+		rmdir -p --ignore-fail-on-non-empty
+
+clean::
+	/usr/bin/ruby$(cdbs_ruby_ver) setup.rb config $(DEB_RUBY_CONFIG_ARGS)
+	/usr/bin/ruby$(cdbs_ruby_ver) setup.rb clean
+	rm -f $(DEB_SRCDIR)/.config-*
+	rm -rf doc/
--- mongrel-1.1.4.orig/debian/changelog
+++ mongrel-1.1.4/debian/changelog
@@ -0,0 +1,114 @@
+mongrel (1.1.4-1~bpo40+1) etch-backports; urgency=low
+
+  * Rebuild for etch.
+
+ -- Jeremy Lainé <jeremy.laine@m4x.org>  Mon, 31 Mar 2008 15:41:14 +0200
+
+mongrel (1.1.4-1) unstable; urgency=low
+
+  * New upstream version.
+
+ -- Filipe Lautert <filipe@icewall.org>  Thu, 06 Mar 2008 01:34:39 -0300
+
+mongrel (1.1.3-1) unstable; urgency=high
+
+  * New upstream version fixing a remote security bug - remote attackers could
+    read any file in the filesystem with a simple request string.
+
+ -- Filipe Lautert <filipe@icewall.org>  Sat, 29 Dec 2007 03:38:26 -0200
+
+mongrel (1.1.2-1) unstable; urgency=low
+
+  [ Lucas Nussbaum ]
+  * Use new Homepage dpkg header.
+
+  [ Filipe Lautert ]
+  * New upstream version.
+  * Added Vcs-Browser and Vcs-Svn fields.
+
+ -- Filipe Lautert <filipe@icewall.org>  Tue, 18 Dec 2007 02:30:13 -0200
+
+mongrel (1.1.1+deb-2) unstable; urgency=low
+
+  * Added prefix 'XS-' to Dm-Upload-Allowed field in file debian/control.
+  * Changed rules file to call setup.rb clean target.
+  * Confirmed that FTBFS if build twice problem was from the package. 
+    Tested and ensured that it is closed now. (Closes: #442677).
+
+ -- Filipe Lautert <filipe@icewall.org>  Sat, 01 Dec 2007 02:12:34 -0200
+
+mongrel (1.1.1+deb-1) unstable; urgency=low
+
+  [ Filipe Lautert ]
+  * Changed watch file to point to rubyforge download site, where
+    correct tgz files are hosted (closes: #451873, #452194).
+  * Added 'Dm-Upload-Allowed: yes' control field.
+
+  [ Gunnar Wolf ]
+  * Added fake upstream version 1.1.1+deb, as the original upstream
+    tar.gz shipped with a precompiled (for Windows) http11.so and
+    http11.jar file that rendered the package inoperant. (Closes:
+    #451873, #452194)
+
+ -- Gunnar Wolf <gwolf@debian.org>  Sat, 24 Nov 2007 21:07:57 -0600
+
+mongrel (1.1.1-1) unstable; urgency=low
+
+  * New upstream version
+
+ -- Gunnar Wolf <gwolf@debian.org>  Tue, 13 Nov 2007 13:06:02 -0600
+
+mongrel (1.1-1) unstable; urgency=low
+
+  * New upstream release.
+
+ -- Filipe Lautert <filipe@icewall.org>  Tue, 06 Nov 2007 00:08:56 -0200
+
+mongrel (1.0.4-1) unstable; urgency=low
+
+  [ Gunnar Wolf ]
+  * (NOT RELEASED YET) New upstream release
+
+  [ Filipe Lautert ]
+  * Removed patches as there is no use for them anymore (solved upstream).
+  * Added rdoc generation as upstream do not provide pre-generated rdocs
+    anymore.
+  * Added rdoc as build dependency and removed dpatch.
+  * Now it builds twice in a row (closes: #442677).
+  * New upstream release.
+
+ -- Gunnar Wolf <gwolf@debian.org>  Mon, 05 Nov 2007 13:27:10 -0600
+
+mongrel (1.0.1-1) unstable; urgency=low
+
+  [ Filipe Lautert ]
+  * First Mongrel stable release. (Closes: #399145)
+  * Created mongrel-doc package.
+  * Corrected copyright file (added entry for setup.rb).
+  * Finished documentation.
+
+  [ Paul van Tilburg ]
+  * Small description typo fix.
+  * Synced mongrel and mongrel-doc package descriptions; added
+    a homepage link.
+  * Added myself to the Uploaders field.
+
+ -- Paul van Tilburg <paulvt@debian.org>  Wed, 08 Aug 2007 22:26:15 +0200
+
+mongrel (1.0~rc1-1) experimental; urgency=low
+
+  * Merged gwolf tree and Jens tree.
+  * Aplied patch to init.d, so now it suports multiple environments.
+  * Removed insconsistent patchs.
+  * Updated copyright information.
+  * Created watch file for rubygems files.
+  * Cdbsfied debian rules.
+  * Added patch to use ruby default CGI lib.
+
+ -- Filipe Lautert <filipe@icewall.org>  Tue,  9 Jan 2007 14:16:59 -0200
+
+mongrel (0.3.13.4-1) experimental; urgency=low
+
+  * Initial Release.
+
+ -- Gunnar Wolf <gwolf@debian.org>  Fri, 03 Nov 2006 17:58:50 -0600
--- mongrel-1.1.4.orig/debian/watch
+++ mongrel-1.1.4/debian/watch
@@ -0,0 +1,2 @@
+version=3
+http://rubyforge.org/frs/?group_id=1306 .*/mongrel-(.*)\.tgz
--- mongrel-1.1.4.orig/debian/mongrel.docs
+++ mongrel-1.1.4/debian/mongrel.docs
@@ -0,0 +1 @@
+README
--- mongrel-1.1.4.orig/debian/mongrel_rails.1
+++ mongrel-1.1.4/debian/mongrel_rails.1
@@ -0,0 +1,128 @@
+.TH MONGREL_RAILS 1 "2006-11-17" "Mongrel Rails"
+.SH NAME
+mongrel_rails \- Ruby Web Server
+.
+.SH SYNOPSIS
+.TP
+mongrel_rails <command> [options]
+.
+.SH DESCRIPTION
+Mongrel is a fast HTTP library and server for Ruby that is intended for hosting Ruby web applications of any kind using plain HTTP rather than FastCGI or SCGI. It is framework agnostic and already supports Ruby On Rails, Og+Nitro, Camping, and IOWA frameworks.
+.PP
+Mongrel turns out to be really nice for development since it serves files much faster than WEBrick. For example, to use it in development with Ruby on Rails is easy as this:
+.TP
+$ mongrel_rails start
+.PP
+Mongrel is a self-documenting program by giving you an extensive help listing for each command. If you think that this manual page is outdated, simply running 
+.TP
+mongrel_rails start -h
+.PP
+will print out each possible option and what it does.
+.PP
+These options are also used in the 
+.B -C config_file
+option to set them without using the command line. The name used in the config file is slightly different since it's a YAML file. 
+.br
+Mongrel has a -G (generate) feature that will take any command line options you give it, generate the YAML file to replicate those options, and then exit. For example, you could make a config file like this:
+.TP
+mongrel_rails start -G mongrel_8080.yml -e production -p 8080
+.PP
+And it'll write all the options possible to mongrel_8080.yml, but with your specific changed for environment (-e production) and port (-p 8080). When you run a configuration file with -C, don't pass other options. Rather than have complex rules about whether a configuration file or command line option wins, mongrel_rails just uses configuration file and defaults, or command line options and defaults. Basically don't mix, it won't work.
+.
+.SH COMMANDS
+The following commands are supported by mongrel:
+.PP
+\fBstart\fP 				Starts the server.
+.br
+\fBstop\fP					Stops the server. Mongrel is very conservative when it shuts down, so it will wait up to 60 seconds for threads to exit before it finally exits gracefully.
+.br
+\fBstop --force [--wait n]\fP	Stops the server. This sends mongrel a kill -9 and then you must delete the .pid file. If the wait parameter is specified, mongrel will wait n seconds before it sends the kill sign.
+.br
+\fBrestart\fP				Restarts the server.
+.
+.SH OPTIONS
+Mongrel is extensible configurable, and it has the following configuration options (the name to use in configuration file is in parenthesis after the option name):
+.PP
+\fB-e, --environment ENV\fP (:environment)	Configures your Rails environment to what you need.
+.br
+.I									* Default: development
+.br
+\fB-d, --daemonize\fP (:daemon)			If given (no options) then Mongrel will run in the background.
+.br
+.I									* Default: false
+.br
+\fB-p, --port PORT\fP (:port)				Port to bind to when listening for connections.
+.br
+.I									* Default: 3000
+.br
+\fB-a, --address ADDR\fP (:host)			Address to bind to when listening for connections.
+.br
+.I									* Default: 0.0.0.0 (every interface)
+.br
+\fB-l, --log PATH\fP (:log_file)			Where to dump log messages in daemon mode - use an absolute path.
+.br
+.I									* Default: $PWD/log/mongrel.log
+.br
+\fB-P, --pid PATH\fP (:pid_file)			Where to write the PID file so start and stop commands know the Process ID - use absolute paths.
+.br
+.I									* Default: $PWD/log/mongrel.pid
+.br
+\fB-n,--num-procs PROCS\fP (:num_processors)	Maximum number of concurrent processing threads before Mongrel starts denying connections and trying to kill old threads.
+.br
+.I									* Default: 1024
+.br
+\fB-t, --timeout SEC\fP (:timeout)			Time to pause between accepting clients. Used as a throttle mechanism.
+.br
+.I									* Default: 0
+.br
+\fB-m, --mime PATH\fP (:mime_map)			A YAML file that lists additional MIME types.
+.br
+.I									* Default: not set.
+.br
+\fB-c, --chdir PATH\fP (:cwd)				Directory to change to prior to starting Mongrel.
+.br
+.I									* Default: . (current directory)
+.br
+\fB-r, --root PATH\fP (:docroot)			Document root where Mongrel should serve files from. If you are putting Mongrel under a different base URI, and you want it to serve files out of a different directory then you need to set this.
+.br
+.I									* Default: public
+.br
+\fB-B, --debug\fP (:debug)				Turns on a debugging mode which traces objects, threads, files request parameters, and logs accesses writing them to log/mongrel_debug. This option makes Mongrel very slow.
+.br
+.I									* Default: false
+.br
+\fB-C, --config PATH\fP (NONE)				Specifies a configuration YAML file that sets options - use absolute paths.
+.br
+.I									* Default: no default
+.br
+\fB-S, --script PATH\fP (:config_script)		A special Ruby file that is run after Rails is configured to give you the ability to change the configuration with Ruby. This would be where you can load customer Mongrel handlers, extra libraries, or setup additional Ruby code. This option is fairly advanced so use with caution.
+.br
+.I									* Default: not set
+.br
+\fB-G, --generate PATH\fP (NONE)			Takes whatever options set for Mongrel, and the current defaults, and then writes them to a YAML file suitable for use with the -C option.
+.br
+.I									* Default: not set
+.br	
+\fB--prefix URI\fP						A URI to mount your Rails application at rather than the default /. This URI is stripped off all requests by Rails (not Mongrel) so it cannot end in /.
+.br
+.I									* Default: not set
+.br
+\fB--user USER\fP						Must have --group too. The user to change to right after creating the listening socket. Use this if you have to bind Mongrel to a low port like port 80, but don't want Mongrel to run as root.
+.br
+.I									* Default: not set
+.br
+\fB--group GROUP\fP						Must have --user too. The group to change to right after creating the listening socket.
+.br
+.I									* Default: not set
+.br
+\fB-h, --help\fP						Show help message
+.br
+\fB--version\fP							Show mongrel version
+.
+.SH SEE ALSO
+.BR pen (1), mongrel-cluster (1)
+.
+.SH AUTHOR
+Mongrel (http://mongrel.rubyforge.org/) was written by Zed Shaw.
+This manual page was written for the Debian system by Filipe Lautert <filipe@icewall.org>. 
+It might be used and redistributed under the same terms as the program itself.
--- mongrel-1.1.4.orig/debian/mongrel-doc.docs
+++ mongrel-1.1.4/debian/mongrel-doc.docs
@@ -0,0 +1,2 @@
+examples/
+doc/rdoc/
--- mongrel-1.1.4.orig/debian/control
+++ mongrel-1.1.4/debian/control
@@ -0,0 +1,35 @@
+Source: mongrel
+Section: web
+Priority: optional
+Maintainer: Filipe Lautert <filipe@icewall.org>
+Uploaders: Debian Ruby Extras Maintainers <pkg-ruby-extras-maintainers@lists.alioth.debian.org>, Gunnar Wolf <gwolf@debian.org>, Paul van Tilburg <paulvt@debian.org>
+Build-Depends: debhelper (>= 5.0.0), ruby1.8 (>=1.8.4), ruby1.8-dev (>=1.8.4), rdoc1.8, cdbs, ruby-pkg-tools
+Build-Conflicts: gcc-3.3 (<< 1:3.3.2-0pre1)
+Standards-Version: 3.7.3
+XS-Dm-Upload-Allowed: yes
+Homepage: http://mongrel.rubyforge.org/
+Vcs-Browser: http://svn.debian.org/wsvn/pkg-ruby-extras/packages/mongrel/trunk/
+Vcs-Svn: svn://svn.debian.org/pkg-ruby-extras/packages/mongrel/trunk/
+
+Package: mongrel-doc
+Architecture: all
+Section: doc
+Recommends: mongrel
+Suggests: rdoc, w3m | www-browser
+Description: A small fast HTTP library and server for Ruby (documentation)
+ Mongrel is a fast HTTP library and server for Ruby that is intended
+ for hosting Ruby web applications of any kind using plain HTTP. It is 
+ framework agnostic and already supports Ruby On Rails, Og+Nitro, and 
+ Camping frameworks. 
+ .
+ This package contains Mongrel's documentation and some example scripts.
+
+Package: mongrel
+Architecture: any
+Depends: ${shlibs:Depends}, ruby1.8 (>= 1.8.4), libgems-ruby1.8, libgemplugin-ruby (>= 0.2.2), libdaemons-ruby
+Suggests: rails, mongrel-doc
+Description: A small fast HTTP library and server for Ruby
+ Mongrel is a fast HTTP library and server for Ruby that is intended
+ for hosting Ruby web applications of any kind using plain HTTP. It is 
+ framework agnostic and already supports Ruby On Rails, Og+Nitro, and 
+ Camping frameworks. 
--- mongrel-1.1.4.orig/debian/compat
+++ mongrel-1.1.4/debian/compat
@@ -0,0 +1 @@
+4
--- mongrel-1.1.4.orig/ext/http11/mkmf.log
+++ mongrel-1.1.4/ext/http11/mkmf.log
@@ -0,0 +1,12 @@
+have_library: checking for main() in -lc... -------------------- yes
+
+"gcc -o conftest -I. -I/usr/lib/ruby/1.8/x86_64-linux -I/tmp/buildd/mongrel-1.1.4/ext/http11  -Wall -g -fno-strict-aliasing -O2  -fPIC conftest.c  -L"/usr/lib"  -rdynamic -Wl,-export-dynamic     -lruby1.8-static -lc  -lpthread -ldl -lcrypt -lm   -lc"
+checked program was:
+/* begin */
+1: /*top*/
+2: int main() { return 0; }
+3: int t() { void ((*volatile p)()); p = (void ((*)()))main; return 0; }
+/* end */
+
+--------------------
+
--- mongrel-1.1.4.orig/ext/http11/Makefile
+++ mongrel-1.1.4/ext/http11/Makefile
@@ -0,0 +1,149 @@
+
+SHELL = /bin/sh
+
+#### Start of system configuration section. ####
+
+srcdir = /tmp/buildd/mongrel-1.1.4/ext/http11
+topdir = /usr/lib/ruby/1.8/x86_64-linux
+hdrdir = $(topdir)
+VPATH = $(srcdir):$(topdir):$(hdrdir)
+prefix = $(DESTDIR)/usr
+exec_prefix = $(DESTDIR)/usr
+sitedir = $(DESTDIR)/usr/local/lib/site_ruby
+rubylibdir = $(libdir)/ruby/$(ruby_version)
+docdir = $(datarootdir)/doc/$(PACKAGE)
+dvidir = $(docdir)
+datarootdir = $(prefix)/share
+archdir = $(rubylibdir)/$(arch)
+sbindir = $(exec_prefix)/sbin
+psdir = $(docdir)
+localedir = $(datarootdir)/locale
+htmldir = $(docdir)
+datadir = $(prefix)/share
+includedir = $(prefix)/include
+infodir = $(datarootdir)/info
+sysconfdir = $(DESTDIR)/etc
+mandir = $(datadir)/man
+libdir = $(DESTDIR)/usr/lib
+sharedstatedir = $(prefix)/com
+oldincludedir = $(DESTDIR)/usr/include
+pdfdir = $(docdir)
+sitearchdir = $(sitelibdir)/$(sitearch)
+bindir = $(exec_prefix)/bin
+localstatedir = $(DESTDIR)/var
+sitelibdir = $(sitedir)/$(ruby_version)
+libexecdir = $(exec_prefix)/libexec
+
+CC = gcc
+LIBRUBY = $(LIBRUBY_SO)
+LIBRUBY_A = lib$(RUBY_SO_NAME)-static.a
+LIBRUBYARG_SHARED = -l$(RUBY_SO_NAME)
+LIBRUBYARG_STATIC = -l$(RUBY_SO_NAME)-static
+
+RUBY_EXTCONF_H = 
+CFLAGS   =  -fPIC -Wall -g -fno-strict-aliasing -O2  -fPIC 
+INCFLAGS = -I. -I. -I/usr/lib/ruby/1.8/x86_64-linux -I/tmp/buildd/mongrel-1.1.4/ext/http11
+CPPFLAGS =  
+CXXFLAGS = $(CFLAGS) 
+DLDFLAGS =  -rdynamic -Wl,-export-dynamic  
+LDSHARED = $(CC) -shared
+AR = ar
+EXEEXT = 
+
+RUBY_INSTALL_NAME = ruby1.8
+RUBY_SO_NAME = ruby1.8
+arch = x86_64-linux
+sitearch = x86_64-linux
+ruby_version = 1.8
+ruby = /usr/bin/ruby1.8
+RUBY = $(ruby)
+RM = rm -f
+MAKEDIRS = mkdir -p
+INSTALL = /usr/bin/install -c
+INSTALL_PROG = $(INSTALL) -m 0755
+INSTALL_DATA = $(INSTALL) -m 644
+COPY = cp
+
+#### End of system configuration section. ####
+
+preload = 
+
+libpath = $(libdir)
+LIBPATH =  -L"$(libdir)"
+DEFFILE = 
+
+CLEANFILES = 
+DISTCLEANFILES = 
+
+extout = 
+extout_prefix = 
+target_prefix = 
+LOCAL_LIBS = 
+LIBS = $(LIBRUBYARG_SHARED) -lc  -lpthread -ldl -lcrypt -lm   -lc
+SRCS = http11.c http11_parser.c
+OBJS = http11.o http11_parser.o
+TARGET = http11
+DLLIB = $(TARGET).so
+EXTSTATIC = 
+STATIC_LIB = 
+
+RUBYCOMMONDIR = $(sitedir)$(target_prefix)
+RUBYLIBDIR    = $(sitelibdir)$(target_prefix)
+RUBYARCHDIR   = $(sitearchdir)$(target_prefix)
+
+TARGET_SO     = $(DLLIB)
+CLEANLIBS     = $(TARGET).so $(TARGET).il? $(TARGET).tds $(TARGET).map
+CLEANOBJS     = *.o *.a *.s[ol] *.pdb *.exp *.bak
+
+all:		$(DLLIB)
+static:		$(STATIC_LIB)
+
+clean:
+		@-$(RM) $(CLEANLIBS) $(CLEANOBJS) $(CLEANFILES)
+
+distclean:	clean
+		@-$(RM) Makefile $(RUBY_EXTCONF_H) conftest.* mkmf.log
+		@-$(RM) core ruby$(EXEEXT) *~ $(DISTCLEANFILES)
+
+realclean:	distclean
+install: install-so install-rb
+
+install-so: $(RUBYARCHDIR)
+install-so: $(RUBYARCHDIR)/$(DLLIB)
+$(RUBYARCHDIR)/$(DLLIB): $(DLLIB)
+	$(INSTALL_PROG) $(DLLIB) $(RUBYARCHDIR)
+install-rb: pre-install-rb install-rb-default
+install-rb-default: pre-install-rb-default
+pre-install-rb: Makefile
+pre-install-rb-default: Makefile
+$(RUBYARCHDIR):
+	$(MAKEDIRS) $@
+
+site-install: site-install-so site-install-rb
+site-install-so: install-so
+site-install-rb: install-rb
+
+.SUFFIXES: .c .m .cc .cxx .cpp .C .o
+
+.cc.o:
+	$(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) -c $<
+
+.cxx.o:
+	$(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) -c $<
+
+.cpp.o:
+	$(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) -c $<
+
+.C.o:
+	$(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) -c $<
+
+.c.o:
+	$(CC) $(INCFLAGS) $(CPPFLAGS) $(CFLAGS) -c $<
+
+$(DLLIB): $(OBJS)
+	@-$(RM) $@
+	$(LDSHARED) $(DLDFLAGS) $(LIBPATH) -o $@ $(OBJS) $(LOCAL_LIBS) $(LIBS)
+
+
+
+$(OBJS): ruby.h defines.h
