[DRE-commits] r1253 - in packages-wip/mongrel/trunk: . debian debian/patches

Gunnar Wolf gwolf at alioth.debian.org
Sat Jan 6 06:54:45 CET 2007


Author: gwolf
Date: 2007-01-06 06:54:45 +0100 (Sat, 06 Jan 2007)
New Revision: 1253

Added:
   packages-wip/mongrel/trunk/debian/
   packages-wip/mongrel/trunk/debian/changelog
   packages-wip/mongrel/trunk/debian/compat
   packages-wip/mongrel/trunk/debian/control
   packages-wip/mongrel/trunk/debian/copyright
   packages-wip/mongrel/trunk/debian/mongrel_rails.1
   packages-wip/mongrel/trunk/debian/mongrel_rails_service.1
   packages-wip/mongrel/trunk/debian/mongrel_rails_svc.1
   packages-wip/mongrel/trunk/debian/patches/
   packages-wip/mongrel/trunk/debian/patches/00list
   packages-wip/mongrel/trunk/debian/patches/01_add_shebang.dpatch
   packages-wip/mongrel/trunk/debian/rules
Log:
[svn-inject] Applying Debian modifications to trunk


Property changes on: packages-wip/mongrel/trunk/debian
___________________________________________________________________
Name: mergeWithUpstream
   + 1

Added: packages-wip/mongrel/trunk/debian/changelog
===================================================================
--- packages-wip/mongrel/trunk/debian/changelog	2007-01-06 05:54:20 UTC (rev 1252)
+++ packages-wip/mongrel/trunk/debian/changelog	2007-01-06 05:54:45 UTC (rev 1253)
@@ -0,0 +1,5 @@
+mongrel (0.3.13.4-1) experimental; urgency=low
+
+  * Initial Release.
+
+ -- Gunnar Wolf <gwolf at debian.org>  Fri, 03 Nov 2006 17:58:50 -0600

Added: packages-wip/mongrel/trunk/debian/compat
===================================================================
--- packages-wip/mongrel/trunk/debian/compat	2007-01-06 05:54:20 UTC (rev 1252)
+++ packages-wip/mongrel/trunk/debian/compat	2007-01-06 05:54:45 UTC (rev 1253)
@@ -0,0 +1 @@
+4

Added: packages-wip/mongrel/trunk/debian/control
===================================================================
--- packages-wip/mongrel/trunk/debian/control	2007-01-06 05:54:20 UTC (rev 1252)
+++ packages-wip/mongrel/trunk/debian/control	2007-01-06 05:54:45 UTC (rev 1253)
@@ -0,0 +1,16 @@
+Source: mongrel
+Section: web
+Priority: optional
+Maintainer: Gunnar Wolf <gwolf at debian.org>
+Build-Depends: debhelper (>= 4.0.0), ruby1.8, ruby1.8-dev, dpatch
+Standards-Version: 3.7.2
+
+Package: mongrel
+Architecture: any
+Depends: ruby1.8
+Recommends: rails
+Description: A small fast HTTP library and server that runs Rails, Camping, and Nitro apps
+ 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, and Camping frameworks. 

Added: packages-wip/mongrel/trunk/debian/copyright
===================================================================
--- packages-wip/mongrel/trunk/debian/copyright	2007-01-06 05:54:20 UTC (rev 1252)
+++ packages-wip/mongrel/trunk/debian/copyright	2007-01-06 05:54:45 UTC (rev 1253)
@@ -0,0 +1,10 @@
+This package was debianized by Gunnar Wolf
+Fri, 03 Nov 2006 17:58:50 -0600
+
+It was downloaded from <SOMEWHERE>
+
+Copyright Holder: Zed Shaw <zedshaw at zedshaw.com>
+
+License:
+
+<LICENSE>

Added: packages-wip/mongrel/trunk/debian/mongrel_rails.1
===================================================================
--- packages-wip/mongrel/trunk/debian/mongrel_rails.1	2007-01-06 05:54:20 UTC (rev 1252)
+++ packages-wip/mongrel/trunk/debian/mongrel_rails.1	2007-01-06 05:54:45 UTC (rev 1253)
@@ -0,0 +1,19 @@
+.TH mongrel_rails 1 "2006-11-17" "Mongrel Rails"
+.SH NAME
+mongrel_rails \- Do something
+.
+.SH SYNOPSIS
+.
+.SH DESCRIPTION
+.
+This manpage is not yet written. Go away, pretend you didn't see this.
+.PP
+Y'know, there is a reason why this package is only uploaded to 
+.I experimental...
+No, really - I'll work on this. Promise.
+.
+.SH AUTHOR
+Zed a. Shaw <zedshaw at zedshaw.com>
+.PP
+This manual page was written for the Debian system by Gunnar Wolf <gwolf at debian.org>. 
+It might be used and redistributed under the same terms as the program itself.

Added: packages-wip/mongrel/trunk/debian/mongrel_rails_service.1
===================================================================
--- packages-wip/mongrel/trunk/debian/mongrel_rails_service.1	2007-01-06 05:54:20 UTC (rev 1252)
+++ packages-wip/mongrel/trunk/debian/mongrel_rails_service.1	2007-01-06 05:54:45 UTC (rev 1253)
@@ -0,0 +1,19 @@
+.TH mongrel_rails_service 1 "2006-11-17" "Mongrel Rails Service"
+.SH NAME
+mongrel_rails_service \- Do something
+.
+.SH SYNOPSIS
+.
+.SH DESCRIPTION
+.
+This manpage is not yet written. Go away, pretend you didn't see this.
+.PP
+Y'know, there is a reason why this package is only uploaded to 
+.I experimental...
+No, really - I'll work on this. Promise.
+.
+.SH AUTHOR
+Zed a. Shaw <zedshaw at zedshaw.com>
+.PP
+This manual page was written for the Debian system by Gunnar Wolf <gwolf at debian.org>. 
+It might be used and redistributed under the same terms as the program itself.

Added: packages-wip/mongrel/trunk/debian/mongrel_rails_svc.1
===================================================================
--- packages-wip/mongrel/trunk/debian/mongrel_rails_svc.1	2007-01-06 05:54:20 UTC (rev 1252)
+++ packages-wip/mongrel/trunk/debian/mongrel_rails_svc.1	2007-01-06 05:54:45 UTC (rev 1253)
@@ -0,0 +1,19 @@
+.TH mongrel_rails_svc 1 "2006-11-17" "Mongrel Rails Svc"
+.SH NAME
+mongrel_rails_svc \- Do something
+.
+.SH SYNOPSIS
+.
+.SH DESCRIPTION
+.
+This manpage is not yet written. Go away, pretend you didn't see this.
+.PP
+Y'know, there is a reason why this package is only uploaded to 
+.I experimental...
+No, really - I'll work on this. Promise.
+.
+.SH AUTHOR
+Zed a. Shaw <zedshaw at zedshaw.com>
+.PP
+This manual page was written for the Debian system by Gunnar Wolf <gwolf at debian.org>. 
+It might be used and redistributed under the same terms as the program itself.

Added: packages-wip/mongrel/trunk/debian/patches/00list
===================================================================
--- packages-wip/mongrel/trunk/debian/patches/00list	2007-01-06 05:54:20 UTC (rev 1252)
+++ packages-wip/mongrel/trunk/debian/patches/00list	2007-01-06 05:54:45 UTC (rev 1253)
@@ -0,0 +1 @@
+01_add_shebang.dpatch

Added: packages-wip/mongrel/trunk/debian/patches/01_add_shebang.dpatch
===================================================================
--- packages-wip/mongrel/trunk/debian/patches/01_add_shebang.dpatch	2007-01-06 05:54:20 UTC (rev 1252)
+++ packages-wip/mongrel/trunk/debian/patches/01_add_shebang.dpatch	2007-01-06 05:54:45 UTC (rev 1253)
@@ -0,0 +1,31 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 01_add_shebang.dpatch by  <gwolf at debian.org>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: Add #! to executable scripts
+
+ at DPATCH@
+diff -ru mongrel.orig/bin/mongrel_rails mongrel/bin/mongrel_rails
+--- mongrel.orig/bin/mongrel_rails	2006-11-17 20:12:40.000000000 -0600
++++ mongrel/bin/mongrel_rails	2006-11-17 20:12:50.000000000 -0600
+@@ -1,3 +1,4 @@
++#!/usr/bin/ruby
+ # Copyright (c) 2005 Zed A. Shaw 
+ # You can redistribute it and/or modify it under the same terms as Ruby.
+ #
+diff -ru mongrel.orig/bin/mongrel_rails_service mongrel/bin/mongrel_rails_service
+--- mongrel.orig/bin/mongrel_rails_service	2006-11-17 20:12:40.000000000 -0600
++++ mongrel/bin/mongrel_rails_service	2006-11-17 20:13:04.000000000 -0600
+@@ -1,3 +1,4 @@
++#!/usr/bin/ruby
+ ###############################################
+ # mongrel_rails_service
+ #
+diff -ru mongrel.orig/bin/mongrel_rails_svc mongrel/bin/mongrel_rails_svc
+--- mongrel.orig/bin/mongrel_rails_svc	2006-11-17 20:12:40.000000000 -0600
++++ mongrel/bin/mongrel_rails_svc	2006-11-17 20:13:20.000000000 -0600
+@@ -1,3 +1,4 @@
++#!/usr/bin/ruby
+ ###############################################
+ # mongrel_rails_svc
+ #

Added: packages-wip/mongrel/trunk/debian/rules
===================================================================
--- packages-wip/mongrel/trunk/debian/rules	2007-01-06 05:54:20 UTC (rev 1252)
+++ packages-wip/mongrel/trunk/debian/rules	2007-01-06 05:54:45 UTC (rev 1253)
@@ -0,0 +1,86 @@
+#!/usr/bin/make -f
+# Sample debian/rules that uses debhelper.
+# GNU copyright 1997 to 1999 by Joey Hess.
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+PACKAGE = mongrel
+BUILDDIR = $(CURDIR)/debian/$(PACKAGE)
+
+PREFIX = $(BUILDDIR)/usr
+CONFDIR = $(BUILDDIR)/etc/$(PACKAGE)
+SITERUBY = $(PREFIX)/lib/ruby
+SITEVER = $(BUILDDIR)/`ruby -rrbconfig -e 'puts Config::CONFIG["rubylibdir"]'`
+ARCHDIR = $(BUILDDIR)/`ruby -rrbconfig -e 'puts Config::CONFIG["archdir"]'`
+
+include /usr/share/dpatch/dpatch.make
+
+config = --prefix=$(PREFIX) \
+	--sysconfdir=$(CONFDIR) \
+	--localstatedir=$(STATEDIR) \
+	--siteruby=$(SITERUBY) \
+	--siterubyver=$(SITEVER) \
+	--siterubyverarch=$(ARCHDIR)
+
+# Upstream distributes only "Ruby gems". What do we do? Just gzip the gem
+# and use it as our orig.tar.gz - A gem contains two files: metadata.gz
+# (a YAML package description for the Ruby Gems package system) and 
+# data.tar.gz, which we unceremoniously unpack right here, right now.
+# And why do we hide tar's STDERR? Well, our upstream author ships tarballs
+# made in December 1969 - tar complains too much, at every line. We can just
+# skip it (and enable it in case we think it is necessary)
+unpack: 
+	dh_testdir
+	tar xzf data.tar.gz 2>/dev/null
+	-rm -fr patch-stamp debian/patched/
+
+build: unpack patch
+	dh_testdir 
+	ruby1.8 setup.rb config $(config)
+	ruby1.8 setup.rb setup
+
+# Usually, we would run unpatch here. Sadly, setup.rb modifies bin/mongrel*,
+# replacing /usr/bin/ruby by /usr/bin/ruby1.8 (or something like that). Ok, so
+# we don't depend on unpatch for clean, but do remove all of its tracks: 
+# patch-stamp and debian/patched. Niiiiice.
+clean: 
+	dh_testdir
+	dh_testroot
+	dh_clean
+	[ ! -f setup.rb ] || ruby setup.rb clean
+	rm -rf $(BUILDDIR)
+	rm -rf bin doc examples ext lib test tools COPYING LICENSE \
+		README Rakefile setup.rb patch-stamp debian/patched/
+
+install:
+	dh_testdir
+	dh_testroot
+	dh_clean -k
+	dh_installdirs
+
+	ruby1.8 setup.rb install 
+
+	-find $(CURDIR)/debian -type d | xargs \
+		rmdir -p --ignore-fail-on-non-empty
+
+binary-indep:;
+binary-arch: build install
+	dh_testdir
+	dh_testroot
+	dh_installdocs
+	dh_installman debian/mongrel_rails_service.1\
+		debian/mongrel_rails_svc.1\
+		debian/mongrel_rails.1
+	dh_installchangelogs 
+	dh_link
+	dh_strip
+	dh_compress
+	dh_fixperms
+	dh_installdeb
+	dh_gencontrol
+	dh_md5sums
+	dh_builddeb
+
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary install configure


Property changes on: packages-wip/mongrel/trunk/debian/rules
___________________________________________________________________
Name: svn:executable
   + *




More information about the Pkg-ruby-extras-commits mailing list