[DRE-commits] r3535 - in packages-wip/libpassword-ruby/trunk: . debian lib

Micah Anderson micah at alioth.debian.org
Thu May 7 13:22:10 UTC 2009


Author: micah
Date: 2009-05-07 13:22:10 +0000 (Thu, 07 May 2009)
New Revision: 3535

Added:
   packages-wip/libpassword-ruby/trunk/debian/
   packages-wip/libpassword-ruby/trunk/debian/breakpoint_client.1
   packages-wip/libpassword-ruby/trunk/debian/changelog
   packages-wip/libpassword-ruby/trunk/debian/compat
   packages-wip/libpassword-ruby/trunk/debian/control
   packages-wip/libpassword-ruby/trunk/debian/copyright
   packages-wip/libpassword-ruby/trunk/debian/rules
   packages-wip/libpassword-ruby/trunk/rbcrack.h
Modified:
   packages-wip/libpassword-ruby/trunk/lib/password.rb
Log:
[svn-inject] Applying Debian modifications to trunk


Property changes on: packages-wip/libpassword-ruby/trunk/debian
___________________________________________________________________
Added: mergeWithUpstream
   + 1

Added: packages-wip/libpassword-ruby/trunk/debian/breakpoint_client.1
===================================================================
--- packages-wip/libpassword-ruby/trunk/debian/breakpoint_client.1	                        (rev 0)
+++ packages-wip/libpassword-ruby/trunk/debian/breakpoint_client.1	2009-05-07 13:22:10 UTC (rev 3535)
@@ -0,0 +1,53 @@
+.TH "BREAKPOINT_CLIENT" 1 "October 2005" "Debian GNU/Linux" "User Commands"
+.SH NAME
+breakpoint_client - a tool to connect to a Ruby/Breakpoint service
+.SH SYNOPSIS
+.B breakpoint_client
+[\fIoptions\fR]
+[\fIserver uri\fR]
+.SH DESCRIPTION
+This tool lets you connect to a Ruby/Breakpoint service which was started
+via Breakpoint.activate_drb.
+
+The server uri defaults to druby://localhost:42531
+.SH OPTIONS
+.TP
+.B \-c, \-\-client\-uri=uri
+Run the client on the specified \fIuri\fR.  This can be used to specify the
+port that the client uses to allow for back connections from the server
+(default:  find a good URI automatically).
+Example: \-c druby://localhost:12345
+.TP
+.B \-s, \-\-server\-uri=uri
+Connect to the server specified at the specified \fIuri\fR
+(default: druby://localhost:42531).
+.TP
+.B \-R, \-\-retry\-delay=delay
+Automatically try to reconnect to the server after delay seconds when the
+connection failed or timed out.  A value of 0 disables automatical
+reconnecting completely (default:  10).
+.TP
+.B \-P, \-\-[no\-]permanent
+Run the breakpoint client in permanent mode.  This means that the client
+will keep continue running even after the server has closed the connection. 
+Useful for example in Rails (default: non\-permanent).
+.TP
+.B \-V, \-\-[no\-]verbose
+Run the breakpoint client in verbose mode.  Will produce more messages, for
+example between individual breakpoints.  This might help in seeing that the
+breakpoint client is still alive, but adds quite a bit of clutter. 
+(default: non\-verbose).
+.TP
+.B \-h, \-\-help
+Show this help message.
+.TP
+.B \-v, \-\-version
+Display the version information.
+.SH SEE ALSO
+The Ruby/Breakpoint website on http://ruby-breakpoint.rubyforge.org/ 
+(has FAQ!).
+.SH AUTHOR
+Ruby/Breakpoint was written by Florian Gross <flgr at ccan.de>
+.PP
+This manual page was written by Paul van Tilburg <paulvt at debian.org>
+for the Debian project (but may be used by others).

Added: packages-wip/libpassword-ruby/trunk/debian/changelog
===================================================================
--- packages-wip/libpassword-ruby/trunk/debian/changelog	                        (rev 0)
+++ packages-wip/libpassword-ruby/trunk/debian/changelog	2009-05-07 13:22:10 UTC (rev 3535)
@@ -0,0 +1,12 @@
+libpassword-ruby (0.5.3-2) unstable; urgency=low
+
+  * Added dependencies on cracklib2-dev, cracklib2-dev, 
+    wamerican | wordlist, libtermios-ruby1.8
+
+ -- Micah Anderson <micah at debian.org>  Fri, 01 May 2009 21:34:16 +0000
+
+libpassword-ruby (0.5.3-1) unstable; urgency=low
+
+  * Initial Release.
+
+ -- Micah Anderson <micah at debian.org>  Tue, 12 Aug 2008 00:50:59 -0400

Added: packages-wip/libpassword-ruby/trunk/debian/compat
===================================================================
--- packages-wip/libpassword-ruby/trunk/debian/compat	                        (rev 0)
+++ packages-wip/libpassword-ruby/trunk/debian/compat	2009-05-07 13:22:10 UTC (rev 3535)
@@ -0,0 +1 @@
+5

Added: packages-wip/libpassword-ruby/trunk/debian/control
===================================================================
--- packages-wip/libpassword-ruby/trunk/debian/control	                        (rev 0)
+++ packages-wip/libpassword-ruby/trunk/debian/control	2009-05-07 13:22:10 UTC (rev 3535)
@@ -0,0 +1,34 @@
+Source: libpassword-ruby
+Section: ruby
+Priority: optional
+Maintainer: Micah Anderson <micah at debian.org>
+Build-Depends: cdbs, debhelper (>= 5), ruby-pkg-tools (>= 0.8), ruby1.8, cracklib-runtime, cracklib2-dev, wamerican | wordlist
+Standards-Version: 3.8.1
+
+Package: libpassword-ruby
+Architecture: any
+Depends: libpassword-ruby1.8, ${shlibs:Depends}, ${misc:Depends}
+Description: Ruby library for handling passwords
+ This package is a suite of password handling methods. Specifically, it
+ handles manual entry of passwords from the keyboard in both buffered and
+ unbuffered modes, password strength checking, random password generation,
+ phonemic password generation, and encryption of passwords.
+ .
+ The common CrackLib library is used to perform password strength checking.
+ .
+ This is a dummy package depending on the library for the current default
+ version of Ruby.
+
+Package: libpassword-ruby1.8
+Architecture: any
+Depends: ruby, wamerican | wordlist, libtermios-ruby1.8, cracklib-runtime, ${shlibs:Depends}, ${misc:Depends}
+Description: Ruby 1.8 library for handling passwords
+ This package is a suite of password handling methods. Specifically, it
+ handles manual entry of passwords from the keyboard in both buffered and
+ unbuffered modes, password strength checking, random password generation,
+ phonemic password generation, and encryption of passwords.
+ .
+ The common CrackLib library is used to perform password strength checking.
+ .
+ This package is part of the Ruby library extras, a supplement to Ruby's
+ standard library.

Added: packages-wip/libpassword-ruby/trunk/debian/copyright
===================================================================
--- packages-wip/libpassword-ruby/trunk/debian/copyright	                        (rev 0)
+++ packages-wip/libpassword-ruby/trunk/debian/copyright	2009-05-07 13:22:10 UTC (rev 3535)
@@ -0,0 +1,16 @@
+This package was debianized by Micah Anderson <micah at riseup.net> on
+Tue, 12 Aug 2008 00:50:59 -0400
+
+It was downloaded from http://www.caliban.org/ruby/ruby-password.shtml
+
+Copyright: (c) 2004-2006 Ian Caliban <ian at caliban.org>
+
+License:
+
+You are free to distribute this software under the terms of the GNU General
+Public License.  On Debian systems, the complete text of the GNU General
+Public License can be found in the file `/usr/share/common-licenses/GPL'.
+
+The setup.rb file included in the package's source is released under the GNU
+LGPL. On Debian systems, the complete text of the GNU Lesser General Public
+can be found in `/usr/share/common-licenses/LGPL'.

Added: packages-wip/libpassword-ruby/trunk/debian/rules
===================================================================
--- packages-wip/libpassword-ruby/trunk/debian/rules	                        (rev 0)
+++ packages-wip/libpassword-ruby/trunk/debian/rules	2009-05-07 13:22:10 UTC (rev 3535)
@@ -0,0 +1,7 @@
+#!/usr/bin/make -f
+#
+# CDBS file to build the Ruby Password package.
+
+include /usr/share/cdbs/1/rules/debhelper.mk
+include /usr/share/ruby-pkg-tools/1/class/ruby-extconf-rb.mk
+


Property changes on: packages-wip/libpassword-ruby/trunk/debian/rules
___________________________________________________________________
Added: svn:executable
   + *

Modified: packages-wip/libpassword-ruby/trunk/lib/password.rb
===================================================================
--- packages-wip/libpassword-ruby/trunk/lib/password.rb	2009-05-07 13:21:50 UTC (rev 3534)
+++ packages-wip/libpassword-ruby/trunk/lib/password.rb	2009-05-07 13:22:10 UTC (rev 3535)
@@ -19,11 +19,6 @@
 #   along with this program; if not, write to the Free Software Foundation,
 #   Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
-
-require 'crack'
-require 'termios'
-
-
 # Ruby/Password is a collection of password handling routines for Ruby,
 # including an interface to CrackLib for the purposes of testing password
 # strength.
@@ -164,6 +159,8 @@
   # normal operations.
   #
   def Password.echo(on=true, masked=false)
+    require 'termios'
+
     term = Termios::getattr( $stdin )
 
     if on
@@ -183,6 +180,8 @@
   # connected to a tty, no prompt will be displayed.
   #
   def Password.get(message="Password: ")
+    require 'termios'
+
     begin
       if $stdin.tty?
 	Password.echo false
@@ -206,6 +205,8 @@
   # _mask_ to the terminal. There is no need to hit <b>[Enter]</b> at the end.
   #
   def Password.getc(message="Password: ", mask='*')
+    require 'termios'
+
     # Save current buffering mode
     buffering = $stdout.sync
 
@@ -401,6 +402,20 @@
   #
   def crypt(type=DES, salt='')
 
+    # Compatibility with String's crypt method.
+    # Really, salt should be the first argument here.
+    if (type.kind_of?(String) && salt == '')
+      salt = type
+      type = (type =~ /^\$1\$/ ? MD5 : DES)
+    end
+
+    # Compatibility with String's crypt method.
+    # Really, salt should be the first argument here.
+    if (type.kind_of?(String) && salt == '')
+      salt = type
+      type = (salt =~ /^\$1\$/ ? MD5 : DES)
+    end
+
     unless ( salt.split( // ) - SALT_CHARS.split( // ) ).empty?
       raise CryptError, 'bad salt'
     end
@@ -422,9 +437,15 @@
     crypt
   end
 
+  # :stopdoc:
+
+  def check(dict=nil)
+    # Load the crack module (which injects a check method into this class,
+    # overriding this one) and try again.
+    self.send("check") if require 'crack'
+  end
 end
 
-
 # Display a phonemic password, if run directly.
 #
 if $0 == __FILE__

Added: packages-wip/libpassword-ruby/trunk/rbcrack.h
===================================================================
--- packages-wip/libpassword-ruby/trunk/rbcrack.h	                        (rev 0)
+++ packages-wip/libpassword-ruby/trunk/rbcrack.h	2009-05-07 13:22:10 UTC (rev 3535)
@@ -0,0 +1 @@
+#define CRACK_DICT "/var/cache/cracklib/cracklib_dict"




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