* [gentoo-commits] dev/graaff:master commit in: dev-ruby/sshkit-sudo/files/, dev-ruby/sshkit-sudo/
@ 2015-10-20 11:36 Hans de Graaff
0 siblings, 0 replies; only message in thread
From: Hans de Graaff @ 2015-10-20 11:36 UTC (permalink / raw
To: gentoo-commits
commit: 4e3045c2a9e7df23dbc75ffbce407a8d67bfc597
Author: Hans de Graaff <hans <AT> degraaff <DOT> org>
AuthorDate: Tue Oct 20 11:36:28 2015 +0000
Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org>
CommitDate: Tue Oct 20 11:36:28 2015 +0000
URL: https://gitweb.gentoo.org/dev/graaff.git/commit/?id=4e3045c2
dev-ruby/sshkit-sudo: add patch to handle capitalized password prompt
Package-Manager: portage-2.2.20.1
.../files/sshkit-sudo-0.0.4-Password.patch | 22 ++++++++++++++++++
dev-ruby/sshkit-sudo/sshkit-sudo-0.0.4-r1.ebuild | 26 ++++++++++++++++++++++
2 files changed, 48 insertions(+)
diff --git a/dev-ruby/sshkit-sudo/files/sshkit-sudo-0.0.4-Password.patch b/dev-ruby/sshkit-sudo/files/sshkit-sudo-0.0.4-Password.patch
new file mode 100644
index 0000000..a35093c
--- /dev/null
+++ b/dev-ruby/sshkit-sudo/files/sshkit-sudo-0.0.4-Password.patch
@@ -0,0 +1,22 @@
+commit 9742abc9a9f3c3112529dbbf24dbf66ba5b02ecc
+Author: Hans de Graaff <hans@winkwaves.com>
+Date: Tue Oct 20 13:20:38 2015 +0200
+
+ Also match a capitalized password prompt
+
+ sudo 1.8.12 from http://www.sudo.ws/ uses a capitalized "Password:" prompt instead of an
+ all-lowercase password prompt.
+
+diff --git a/lib/sshkit/sudo/backends_ext/netssh.rb b/lib/sshkit/sudo/backends_ext/netssh.rb
+index 41cc7ec..0784699 100644
+--- a/lib/sshkit/sudo/backends_ext/netssh.rb
++++ b/lib/sshkit/sudo/backends_ext/netssh.rb
+@@ -30,7 +30,7 @@ module SSHKit
+ if data =~ /Sorry.*\stry\sagain/
+ SSHKit::Sudo.password_cache[password_cache_key(cmd.host)] = nil
+ end
+- if data =~ /password.*:/
++ if data =~ /[Pp]assword.*:/
+ key = password_cache_key(cmd.host)
+ pass = SSHKit::Sudo.password_cache[key]
+ unless pass
diff --git a/dev-ruby/sshkit-sudo/sshkit-sudo-0.0.4-r1.ebuild b/dev-ruby/sshkit-sudo/sshkit-sudo-0.0.4-r1.ebuild
new file mode 100644
index 0000000..4f28b0d
--- /dev/null
+++ b/dev-ruby/sshkit-sudo/sshkit-sudo-0.0.4-r1.ebuild
@@ -0,0 +1,26 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+USE_RUBY="ruby20 ruby21 ruby22"
+
+RUBY_FAKEGEM_RECIPE_DOC="rdoc"
+RUBY_FAKEGEM_TASK_TEST=""
+
+RUBY_FAKEGEM_EXTRADOC="README.md"
+
+inherit ruby-fakegem
+
+DESCRIPTION="SSHKit extension, for sudo operation with password input"
+HOMEPAGE="https://github.com/kentaroi/sshkit-sudo"
+LICENSE="MIT"
+
+KEYWORDS="~amd64"
+SLOT="0"
+IUSE=""
+
+RUBY_PATCHES=( ${P}-Password.patch )
+
+ruby_add_rdepend "dev-ruby/sshkit"
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2015-10-20 11:36 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-20 11:36 [gentoo-commits] dev/graaff:master commit in: dev-ruby/sshkit-sudo/files/, dev-ruby/sshkit-sudo/ Hans de Graaff
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox