Package: ruby-password / 0.5.3-4

password_crack.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
Description: change the name of the C extension from crack to password_crack
 This is to avoid conflict with crack.rb shipped by the ruby-crack package
Author: C├ędric Boutillier <boutil@debian.org>
Forwarded: no
Last-Update: 2013-09-26

--- a/extconf.rb
+++ b/extconf.rb
@@ -43,7 +43,7 @@
 
 have_header('crack.h') && have_library('crack', 'FascistCheck') or exit 1
 
-create_makefile('crack')
+create_makefile('password_crack')
 
 File.open('Makefile', 'a') do |f|
   f.print <<EOF
@@ -54,7 +54,7 @@
 docs:
 		-rdoc -x CVS rbcrack.c lib
 
-test:		crack.so FORCE
+test:		password_crack.so FORCE
 		-cd test; ./tc_password.rb
 
 FORCE:
--- a/lib/password.rb
+++ b/lib/password.rb
@@ -442,7 +442,7 @@
   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'
+    self.send("check") if require 'password_crack'
   end
 end
 
--- a/rbcrack.c
+++ b/rbcrack.c
@@ -89,7 +89,7 @@
 }
 
 /* initialize this class */
-void Init_crack()
+void Init_password_crack()
 {
     VALUE cPassword;