[DRE-commits] [ruby-sshkit] 01/05: Import Debian patch.

Sebastien Badia sbadia-guest at moszumanska.debian.org
Mon Apr 21 14:02:38 UTC 2014


This is an automated email from the git hooks/post-receive script.

sbadia-guest pushed a commit to branch master
in repository ruby-sshkit.

commit 2123c058a59439858b98c611ccb7e2a8c384438a
Author: Sebastien Badia <seb at sebian.fr>
Date:   Mon Apr 21 15:25:17 2014 +0200

    Import Debian patch.
---
 debian/changelog                                   |  5 ++++
 debian/compat                                      |  1 +
 debian/control                                     | 33 ++++++++++++++++++++++
 debian/copyright                                   | 31 ++++++++++++++++++++
 debian/patches/001_disabled-rubygems-bundler.patch | 33 ++++++++++++++++++++++
 debian/patches/002_fix-local-test-cd.patch         | 19 +++++++++++++
 debian/patches/series                              |  2 ++
 debian/ruby-sshkit.docs                            |  1 +
 debian/ruby-tests.rake                             |  7 +++++
 debian/rules                                       | 15 ++++++++++
 debian/source/format                               |  1 +
 debian/watch                                       |  3 ++
 12 files changed, 151 insertions(+)

diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..3458211
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+ruby-sshkit (1.4.0-1) UNRELEASED; urgency=medium
+
+  * Initial release (Closes: #nnnn)
+
+ -- Sebastien Badia <seb at sebian.fr>  Mon, 21 Apr 2014 13:21:28 +0200
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..7f8f011
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+7
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..f32168c
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,33 @@
+Source: ruby-sshkit
+Section: ruby
+Priority: optional
+Maintainer: Debian Ruby Extras Maintainers <pkg-ruby-extras-maintainers at lists.alioth.debian.org>
+Uploaders: Sebastien Badia <seb at sebian.fr>
+Build-Depends: debhelper (>= 7.0.50~),
+               gem2deb (>= 0.7.5~),
+               rake,
+               ruby-mocha,
+               ruby-net-scp (>= 1.1.1),
+               ruby-net-ssh (>= 2.8.0),
+               ruby-rspec,
+               ruby-term-ansicolor
+Standards-Version: 3.9.5
+Vcs-Git: git://anonscm.debian.org/pkg-ruby-extras/ruby-sshkit.git
+Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-ruby-extras/ruby-sshkit.git;a=summary
+Homepage: http://github.com/capistrano/sshkit
+XS-Ruby-Versions: all
+
+Package: ruby-sshkit
+Architecture: all
+XB-Ruby-Versions: ${ruby:Versions}
+Depends: ruby | ruby-interpreter,
+         ruby-net-scp (>= 1.1.1),
+         ruby-net-ssh (>= 2.8.0),
+         ruby-term-ansicolor,
+         ${misc:Depends},
+         ${shlibs:Depends}
+Description: toolkit for running commands in a structured way on one or more servers
+ SSHKit is a comprehensive toolkit for remotely running commands in a structured
+ manner on groups of servers.
+ .
+ SSHKit makes it easy to write structured, testable SSH commands in Ruby.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..43f7fbe
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,31 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: sshkit
+Source: https://github.com/capistrano/sshkit
+
+Files: *
+Copyright: 2012-2014 Lee Hambley <lee.hambley at gmail.com>
+           2012-2014 Tom Clements <seenmyfate at gmail.com>
+License: GPL-3
+
+Files: debian/*
+Copyright: 2014 Sebastien Badia <seb at sebian.fr>
+License: GPL-3
+Comment: the Debian packaging is licensed under the same terms as the original package.
+
+License: GPL-3
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+ .
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ GNU General Public License for more details.
+ .
+ You should have received a copy of the GNU General Public License
+ along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ .
+ On Debian systems, the full text of the GNU General Public
+ License version 3 can be found in the file
+ `/usr/share/common-licenses/GPL-3'.
diff --git a/debian/patches/001_disabled-rubygems-bundler.patch b/debian/patches/001_disabled-rubygems-bundler.patch
new file mode 100644
index 0000000..482af1b
--- /dev/null
+++ b/debian/patches/001_disabled-rubygems-bundler.patch
@@ -0,0 +1,33 @@
+Description: Disable development gems
+ This patch disable development dependencies (not yet packaged in Debian) and
+ rubygems/bundler.
+Author: Sebastien Badia <seb at sebian.fr>
+Origin: 
+Forwarded: not-needed
+Last-Update: 2014-04-21
+
+--- a/test/helper.rb
++++ b/test/helper.rb
+@@ -1,11 +1,6 @@
+-require 'rubygems'
+-require 'bundler/setup'
+ require 'tempfile'
+ require 'minitest/unit'
+ require 'mocha/setup'
+-require 'turn'
+-require 'unindent'
+-require 'stringio'
+ require 'json'
+ 
+ $LOAD_PATH.unshift(File.dirname(__FILE__))
+@@ -75,10 +70,4 @@ class FunctionalTest < MiniTest::Unit::T
+ 
+ end
+ 
+-#
+-# Force colours in Autotest
+-#
+-Turn.config.ansi = true
+-Turn.config.format = :pretty
+-
+ MiniTest::Unit.autorun
diff --git a/debian/patches/002_fix-local-test-cd.patch b/debian/patches/002_fix-local-test-cd.patch
new file mode 100644
index 0000000..1c69e12
--- /dev/null
+++ b/debian/patches/002_fix-local-test-cd.patch
@@ -0,0 +1,19 @@
+Description: Fix error « can't cd to /sbuild-nonexistent »
+ In a chrooted environment this test fail, this patch remove the cd command.
+Author: Sebastien Badia <seb at sebian.fr>
+
+Origin: 
+Forwarded: not-needed
+Last-Update: 2014-04-21
+
+--- ruby-sshkit-1.4.0.orig/test/unit/backends/test_local.rb
++++ ruby-sshkit-1.4.0/test/unit/backends/test_local.rb
+@@ -11,7 +11,7 @@ module SSHKit
+       def test_execute
+         assert_equal true, local.execute('uname -a')
+         assert_equal true, local.execute
+-        assert_equal true, local.execute('cd && pwd')
++        assert_equal true, local.execute('pwd')
+       end
+     end
+   end
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..6904525
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1,2 @@
+001_disabled-rubygems-bundler.patch
+002_fix-local-test-cd.patch
diff --git a/debian/ruby-sshkit.docs b/debian/ruby-sshkit.docs
new file mode 100644
index 0000000..b43bf86
--- /dev/null
+++ b/debian/ruby-sshkit.docs
@@ -0,0 +1 @@
+README.md
diff --git a/debian/ruby-tests.rake b/debian/ruby-tests.rake
new file mode 100644
index 0000000..80aafe6
--- /dev/null
+++ b/debian/ruby-tests.rake
@@ -0,0 +1,7 @@
+require 'rake/testtask'
+task :default => :test
+Rake::TestTask.new do |t| 
+  t.libs << 'test'
+  t.test_files = FileList['test/unit/**/test*.rb']
+  t.verbose = true
+end
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..06981cd
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,15 @@
+#!/usr/bin/make -f
+#export DH_VERBOSE=1
+#
+# Uncomment to ignore all test failures (but the tests will run anyway)
+#export DH_RUBY_IGNORE_TESTS=all
+#
+# Uncomment to ignore some test failures (but the tests will run anyway).
+# Valid values:
+#export DH_RUBY_IGNORE_TESTS=ruby2.0 ruby2.1 require-rubygems
+#
+# If you need to specify the .gemspec (eg there is more than one)
+#export DH_RUBY_GEMSPEC=gem.gemspec
+
+%:
+	dh $@ --buildsystem=ruby --with ruby
diff --git a/debian/source/format b/debian/source/format
new file mode 100644
index 0000000..163aaf8
--- /dev/null
+++ b/debian/source/format
@@ -0,0 +1 @@
+3.0 (quilt)
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..ac86378
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,3 @@
+version=3
+opts=filenamemangle=s/.+\/v?(\d\S*)\.tar\.gz/sshkit-$1\.tar\.gz/ \
+  https://github.com/capistrano/sshkit/tags .*/v?(\d\S*)\.tar\.gz

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/ruby-sshkit.git



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