[DRE-commits] r2706 - in packages-wip/rush/trunk: . debian debian/patches
michi-guest at alioth.debian.org
michi-guest at alioth.debian.org
Wed May 7 18:19:14 UTC 2008
Author: michi-guest
Date: 2008-05-07 18:19:13 +0000 (Wed, 07 May 2008)
New Revision: 2706
Added:
packages-wip/rush/trunk/debian/
packages-wip/rush/trunk/debian/changelog
packages-wip/rush/trunk/debian/compat
packages-wip/rush/trunk/debian/control
packages-wip/rush/trunk/debian/copyright
packages-wip/rush/trunk/debian/patches/
packages-wip/rush/trunk/debian/patches/keep-loadpath
packages-wip/rush/trunk/debian/patches/no-rubygems
packages-wip/rush/trunk/debian/patches/no-session-library
packages-wip/rush/trunk/debian/patches/series
packages-wip/rush/trunk/debian/rules
packages-wip/rush/trunk/debian/rush.docs
packages-wip/rush/trunk/debian/rush.install
packages-wip/rush/trunk/debian/rush.manpages
packages-wip/rush/trunk/debian/rush.sgml
packages-wip/rush/trunk/debian/rushd.install
packages-wip/rush/trunk/debian/rushd.manpages
packages-wip/rush/trunk/debian/rushd.sgml
packages-wip/rush/trunk/debian/watch
Log:
[svn-inject] Applying Debian modifications to trunk
Property changes on: packages-wip/rush/trunk/debian
___________________________________________________________________
Name: mergeWithUpstream
+ 1
Added: packages-wip/rush/trunk/debian/changelog
===================================================================
--- packages-wip/rush/trunk/debian/changelog (rev 0)
+++ packages-wip/rush/trunk/debian/changelog 2008-05-07 18:19:13 UTC (rev 2706)
@@ -0,0 +1,5 @@
+rush (0.3-1) UNRELEASED; urgency=low
+
+ * Initial release, closes: #466823.
+
+ -- Michael Schutte <m.schutte.jr at gmail.com> Sun, 30 Mar 2008 19:58:55 +0200
Added: packages-wip/rush/trunk/debian/compat
===================================================================
--- packages-wip/rush/trunk/debian/compat (rev 0)
+++ packages-wip/rush/trunk/debian/compat 2008-05-07 18:19:13 UTC (rev 2706)
@@ -0,0 +1 @@
+7
Added: packages-wip/rush/trunk/debian/control
===================================================================
--- packages-wip/rush/trunk/debian/control (rev 0)
+++ packages-wip/rush/trunk/debian/control 2008-05-07 18:19:13 UTC (rev 2706)
@@ -0,0 +1,33 @@
+Source: rush
+Section: shells
+Priority: optional
+Maintainer: Michael Schutte <m.schutte.jr at gmail.com>
+Uploaders: Debian Ruby Extras Maintainers <pkg-ruby-extras-maintainers at lists.alioth.debian.org>
+Build-Depends: debhelper (>= 7.0.0), quilt
+Build-Depends-Indep: ruby, docbook-to-man
+Standards-Version: 3.7.3
+Homepage: http://rush.heroku.com/
+
+Package: rush
+Architecture: all
+Depends: ruby, libreadline-ruby
+Suggests: openssh-client
+Description: Ruby replacement for a shell
+ rush is a replacement for the traditional UNIX shell which uses pure Ruby
+ syntax. Many common operations are provided as builtin methods, like
+ grepping, finding and killing processes, or moving and copying files. It can
+ also control remote machines running rushd, which can be found in the rushd
+ package.
+
+Package: rushd
+Section: net
+Architecture: all
+Depends: ruby, rush, mongrel
+Recommends: openssh-server
+Description: Ruby replacement for a shell, server part
+ rush is a replacement for the traditional UNIX shell which uses pure Ruby
+ syntax. Many common operations are provided as builtin methods, like
+ grepping, finding and killing processes, or moving and copying files.
+ .
+ This package contains the server needed to remotely control machines from
+ rush shell sessions.
Added: packages-wip/rush/trunk/debian/copyright
===================================================================
--- packages-wip/rush/trunk/debian/copyright (rev 0)
+++ packages-wip/rush/trunk/debian/copyright 2008-05-07 18:19:13 UTC (rev 2706)
@@ -0,0 +1,35 @@
+X-Format-Specification: http://wiki.debian.org/Proposals/CopyrightFormat
+X-Debianized-By: Michael Schutte <m.schutte.jr at gmail.com>
+X-Debianized-Date: Fre, 22 Feb 2008 11:15:13 +0100
+X-Source-Downloaded-From: git://github.com/adamwiggins/rush.git
+X-Upstream-Author: Adam Wiggins <adam at heroku.com>
+
+Files: debian/*
+Copyright: © 2008 Michael Schutte <m.schutte.jr at gmail.com>
+License: GPL-2+
+ The Debian packaging work is under the GNU General Public License,
+ version 2 or, at your option, any later version. On Debian systems, the
+ complete text of the GNU General Public License can be found in
+ “/usr/share/common-licenses/GPL”.
+
+Files: *
+Copyright: © 2008 Adam Wiggins <adam at heroku.com>
+License: MIT
+ Permission is hereby granted, free of charge, to any person obtaining a
+ copy of this software and associated documentation files (the
+ "Software"), to deal in the Software without restriction, including
+ without limitation the rights to use, copy, modify, merge, publish,
+ distribute, sublicense, and/or sell copies of the Software, and to permit
+ persons to whom the Software is furnished to do so, subject to the
+ following conditions:
+ .
+ The above copyright notice and this permission notice shall be included
+ in all copies or substantial portions of the Software.
+ .
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
+ OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
+ NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
+ DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
+ OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
+ USE OR OTHER DEALINGS IN THE SOFTWARE.
Added: packages-wip/rush/trunk/debian/patches/keep-loadpath
===================================================================
--- packages-wip/rush/trunk/debian/patches/keep-loadpath (rev 0)
+++ packages-wip/rush/trunk/debian/patches/keep-loadpath 2008-05-07 18:19:13 UTC (rev 2706)
@@ -0,0 +1,43 @@
+Index: rush-0.3/bin/rush
+===================================================================
+--- rush-0.3.orig/bin/rush 2008-03-26 08:45:32.000000000 +0100
++++ rush-0.3/bin/rush 2008-05-07 19:43:30.000000000 +0200
+@@ -1,7 +1,8 @@
+ #!/usr/bin/env ruby
+
+-require File.dirname(__FILE__) + '/../lib/rush'
+-require File.dirname(__FILE__) + '/../lib/rush/shell'
++$:.unshift(File.dirname(__FILE__) + '/../lib') # Removed when packaging
++require 'rush'
++require 'rush/shell'
+
+ Rush::Shell.new.run
+
+Index: rush-0.3/bin/rushd
+===================================================================
+--- rush-0.3.orig/bin/rushd 2008-03-26 08:45:32.000000000 +0100
++++ rush-0.3/bin/rushd 2008-05-07 19:44:08.000000000 +0200
+@@ -1,7 +1,8 @@
+ #!/usr/bin/env ruby
+
+-require File.dirname(__FILE__) + '/../lib/rush'
+-require File.dirname(__FILE__) + '/../lib/rush/server'
++$:.unshift(File.dirname(__FILE__) + '/../lib') # Removed when packaging
++require 'rush'
++require 'rush/server'
+
+ RushServer.new.run
+
+Index: rush-0.3/lib/rush.rb
+===================================================================
+--- rush-0.3.orig/lib/rush.rb 2008-03-26 08:45:32.000000000 +0100
++++ rush-0.3/lib/rush.rb 2008-05-07 19:45:38.000000000 +0200
+@@ -3,8 +3,6 @@
+ module Rush; end
+ module Rush::Connection; end
+
+-$LOAD_PATH.unshift(File.dirname(__FILE__))
+-
+ require 'rush/exceptions'
+ require 'rush/config'
+ require 'rush/commands'
Added: packages-wip/rush/trunk/debian/patches/no-rubygems
===================================================================
--- packages-wip/rush/trunk/debian/patches/no-rubygems (rev 0)
+++ packages-wip/rush/trunk/debian/patches/no-rubygems 2008-05-07 18:19:13 UTC (rev 2706)
@@ -0,0 +1,19 @@
+Index: rush-0.2/lib/rush.rb
+===================================================================
+--- rush-0.2.orig/lib/rush.rb 2008-05-07 16:43:00.000000000 +0200
++++ rush-0.2/lib/rush.rb 2008-05-07 16:43:12.000000000 +0200
+@@ -1,5 +1,3 @@
+-require 'rubygems'
+-
+ module Rush; end
+ module Rush::Connection; end
+
+Index: rush-0.2/lib/rush/server.rb
+===================================================================
+--- rush-0.2.orig/lib/rush/server.rb 2008-05-07 16:43:07.000000000 +0200
++++ rush-0.2/lib/rush/server.rb 2008-05-07 16:43:16.000000000 +0200
+@@ -1,4 +1,3 @@
+-require 'rubygems'
+ require 'mongrel'
+ require 'base64'
+
Added: packages-wip/rush/trunk/debian/patches/no-session-library
===================================================================
--- packages-wip/rush/trunk/debian/patches/no-session-library (rev 0)
+++ packages-wip/rush/trunk/debian/patches/no-session-library 2008-05-07 18:19:13 UTC (rev 2706)
@@ -0,0 +1,30 @@
+Index: rush-0.3/lib/rush/local.rb
+===================================================================
+--- rush-0.3.orig/lib/rush/local.rb 2008-03-26 08:45:32.000000000 +0100
++++ rush-0.3/lib/rush/local.rb 2008-05-07 20:03:09.000000000 +0200
+@@ -259,21 +259,13 @@
+ end
+
+ def bash(command, user=nil)
+- require 'session'
+-
+- sh = Session::Bash.new
+-
+ if user and user != ""
+- out, err = sh.execute "sudo -u #{user} bash", :stdin => command
++ command.gsub! /[$`\\"]/, '\\\\\0'
++ out = `sudo -u #{user} sh -c "#{command}"`
+ else
+- out, err = sh.execute command
++ out = `#{command}`
+ end
+-
+- retval = sh.status
+- sh.close!
+-
+- raise(Rush::BashFailed, err) if retval != 0
+-
++ raise(Rush::BashFailed, $?.to_i) if $? != 0
+ out
+ end
+
Added: packages-wip/rush/trunk/debian/patches/series
===================================================================
--- packages-wip/rush/trunk/debian/patches/series (rev 0)
+++ packages-wip/rush/trunk/debian/patches/series 2008-05-07 18:19:13 UTC (rev 2706)
@@ -0,0 +1,3 @@
+keep-loadpath
+no-rubygems
+no-session-library
Added: packages-wip/rush/trunk/debian/rules
===================================================================
--- packages-wip/rush/trunk/debian/rules (rev 0)
+++ packages-wip/rush/trunk/debian/rules 2008-05-07 18:19:13 UTC (rev 2706)
@@ -0,0 +1,38 @@
+#!/usr/bin/make -f
+
+include /usr/share/quilt/quilt.make
+
+RUBY_LIBDIR=$(shell ruby -rrbconfig -e 'puts Config::CONFIG["rubylibdir"]')
+
+build: patch build-stamp
+build-stamp:
+ docbook-to-man debian/rush.sgml > debian/rush.1
+ docbook-to-man debian/rushd.sgml > debian/rushd.8
+ touch build-stamp
+
+clean: unpatch
+ dh clean
+ rm -f debian/rush.1 debian/rushd.8
+ rm -f build-stamp
+
+install: build
+ dh install --before install
+ install -d $(CURDIR)/debian/rush/$(RUBY_LIBDIR)
+ cp -R lib/rush.rb lib/rush $(CURDIR)/debian/rush/$(RUBY_LIBDIR)
+ install -d $(CURDIR)/debian/rushd/$(RUBY_LIBDIR)/rush/
+ mv $(CURDIR)/debian/rush/$(RUBY_LIBDIR)/rush/server.rb \
+ $(CURDIR)/debian/rushd/$(RUBY_LIBDIR)/rush/
+ sed -i -e '/Removed when packaging/d' \
+ $(CURDIR)/debian/rush/usr/bin/rush \
+ $(CURDIR)/debian/rushd/usr/sbin/rushd
+ dh install --after install
+
+binary-indep: install
+ dh binary-indep
+
+binary-arch:
+# Nothing to do here
+
+binary: binary-indep
+
+.PHONY: build clean install binary-indep binary-arch binary
Property changes on: packages-wip/rush/trunk/debian/rules
___________________________________________________________________
Name: svn:executable
+ *
Added: packages-wip/rush/trunk/debian/rush.docs
===================================================================
--- packages-wip/rush/trunk/debian/rush.docs (rev 0)
+++ packages-wip/rush/trunk/debian/rush.docs 2008-05-07 18:19:13 UTC (rev 2706)
@@ -0,0 +1 @@
+README
Added: packages-wip/rush/trunk/debian/rush.install
===================================================================
--- packages-wip/rush/trunk/debian/rush.install (rev 0)
+++ packages-wip/rush/trunk/debian/rush.install 2008-05-07 18:19:13 UTC (rev 2706)
@@ -0,0 +1 @@
+bin/rush usr/bin
Added: packages-wip/rush/trunk/debian/rush.manpages
===================================================================
--- packages-wip/rush/trunk/debian/rush.manpages (rev 0)
+++ packages-wip/rush/trunk/debian/rush.manpages 2008-05-07 18:19:13 UTC (rev 2706)
@@ -0,0 +1 @@
+debian/rush.1
Added: packages-wip/rush/trunk/debian/rush.sgml
===================================================================
--- packages-wip/rush/trunk/debian/rush.sgml (rev 0)
+++ packages-wip/rush/trunk/debian/rush.sgml 2008-05-07 18:19:13 UTC (rev 2706)
@@ -0,0 +1,45 @@
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook V4.1//EN">
+<refentry id="rush">
+ <refmeta>
+ <refentrytitle>rush</refentrytitle>
+ <manvolnum>1</manvolnum>
+ <refmiscinfo class="date">January 2008</refmiscinfo>
+ <refmiscinfo class="source"></refmiscinfo>
+ <refmiscinfo class="title">Ruby Shell</refmiscinfo>
+ </refmeta>
+
+ <refnamediv>
+ <refname>rush</refname>
+ <refpurpose>Ruby replacement for a shell</refpurpose>
+ </refnamediv>
+
+ <refsynopsisdiv>
+ <cmdsynopsis>
+ <command>rush</command>
+ </cmdsynopsis>
+ </refsynopsisdiv>
+
+ <refsect1>
+ <title>DESCRIPTION</title>
+
+ <para>
+ <command>rush</command> is a shell which uses pure Ruby syntax. The
+ command runs interactively and does not take any arguments.
+ </para>
+ </refsect1>
+
+ <refsect1>
+ <title>AUTHOR</title>
+
+ <para>
+ rush is Copyright © 2008 Adam Wiggins
+ <<email>adam at heroku.com</email>>.
+ </para>
+
+ <para>
+ This manual page was written by Michael Schutte for the Debian GNU/Linux
+ system (but may be used by others).
+ </para>
+ </refsect1>
+</refentry>
+<!-- vim: set sw=2 ts=2 sts=2 tw=78: -->
Added: packages-wip/rush/trunk/debian/rushd.install
===================================================================
--- packages-wip/rush/trunk/debian/rushd.install (rev 0)
+++ packages-wip/rush/trunk/debian/rushd.install 2008-05-07 18:19:13 UTC (rev 2706)
@@ -0,0 +1 @@
+bin/rushd usr/sbin
Added: packages-wip/rush/trunk/debian/rushd.manpages
===================================================================
--- packages-wip/rush/trunk/debian/rushd.manpages (rev 0)
+++ packages-wip/rush/trunk/debian/rushd.manpages 2008-05-07 18:19:13 UTC (rev 2706)
@@ -0,0 +1 @@
+debian/rushd.8
Added: packages-wip/rush/trunk/debian/rushd.sgml
===================================================================
--- packages-wip/rush/trunk/debian/rushd.sgml (rev 0)
+++ packages-wip/rush/trunk/debian/rushd.sgml 2008-05-07 18:19:13 UTC (rev 2706)
@@ -0,0 +1,48 @@
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook V4.1//EN">
+<refentry id="rushd">
+ <refmeta>
+ <refentrytitle>rushd</refentrytitle>
+ <manvolnum>8</manvolnum>
+ <refmiscinfo class="date">January 2008</refmiscinfo>
+ <refmiscinfo class="source"></refmiscinfo>
+ <refmiscinfo class="title">Ruby Shell Daemon</refmiscinfo>
+ </refmeta>
+
+ <refnamediv>
+ <refname>rushd</refname>
+ <refpurpose>daemon for remote access from rush sessions</refpurpose>
+ </refnamediv>
+
+ <refsynopsisdiv>
+ <cmdsynopsis>
+ <command>rushd</command>
+ </cmdsynopsis>
+ </refsynopsisdiv>
+
+ <refsect1>
+ <title>DESCRIPTION</title>
+
+ <para>
+ <command>rush</command> is a shell which uses pure Ruby syntax.
+ <command>rushd</command> is its server counterpart, which makes it
+ possible to treat remote boxes just like the local host from rush
+ sessions. It only listens on the loopback interface; remote access is
+ done using SSH.
+ </para>
+ </refsect1>
+
+ <refsect1>
+ <title>AUTHOR</title>
+
+ <para>
+ rushd is Copyright © 2008 Adam Wiggins
+ <<email>adam at heroku.com</email>>.
+ </para>
+
+ <para>
+ This manual page was written by Michael Schutte for the Debian GNU/Linux
+ system (but may be used by others).
+ </para>
+ </refsect1>
+</refentry>
+<!-- vim: set sw=2 ts=2 sts=2 tw=78: -->
Added: packages-wip/rush/trunk/debian/watch
===================================================================
--- packages-wip/rush/trunk/debian/watch (rev 0)
+++ packages-wip/rush/trunk/debian/watch 2008-05-07 18:19:13 UTC (rev 2706)
@@ -0,0 +1,3 @@
+version=3
+opts=downloadurlmangle=s/commits/tarball/,filenamemangle=s/.*\/commits\/(.*)$/rush-$1.tar.gz/ \
+ http://github.com/schutte/rush/commits/([\d.]+)
More information about the Pkg-ruby-extras-commits
mailing list