summaryrefslogtreecommitdiff
path: root/security
diff options
context:
space:
mode:
authorminskim <minskim@pkgsrc.org>2006-04-01 21:47:22 +0000
committerminskim <minskim@pkgsrc.org>2006-04-01 21:47:22 +0000
commit37d0896cae366199663346c875246ae5e51a979b (patch)
tree792df7f64d73953c616b11f2cf83ea1b0f27cf2b /security
parentbd274056bdb3ad58f994c75f071b3f9a57c04763 (diff)
downloadpkgsrc-37d0896cae366199663346c875246ae5e51a979b.tar.gz
Import ruby-password.
Ruby/Password is a suite of password handling methods for Ruby. It supports the manual entry of passwords from the keyboard in both buffered and unbuffered modes, password strength checking, random password generation, phonemic password generation (for easy memorization by human-beings) and the encryption of passwords.
Diffstat (limited to 'security')
-rw-r--r--security/ruby-password/DESCR5
-rw-r--r--security/ruby-password/Makefile24
-rw-r--r--security/ruby-password/PLIST3
-rw-r--r--security/ruby-password/distinfo7
-rw-r--r--security/ruby-password/patches/patch-aa13
-rw-r--r--security/ruby-password/patches/patch-ab13
6 files changed, 65 insertions, 0 deletions
diff --git a/security/ruby-password/DESCR b/security/ruby-password/DESCR
new file mode 100644
index 00000000000..14407f7e202
--- /dev/null
+++ b/security/ruby-password/DESCR
@@ -0,0 +1,5 @@
+Ruby/Password is a suite of password handling methods for Ruby. It
+supports the manual entry of passwords from the keyboard in both
+buffered and unbuffered modes, password strength checking, random
+password generation, phonemic password generation (for easy
+memorization by human-beings) and the encryption of passwords.
diff --git a/security/ruby-password/Makefile b/security/ruby-password/Makefile
new file mode 100644
index 00000000000..73bcf08e72f
--- /dev/null
+++ b/security/ruby-password/Makefile
@@ -0,0 +1,24 @@
+# $NetBSD: Makefile,v 1.1.1.1 2006/04/01 21:47:22 minskim Exp $
+
+DISTNAME= ruby-password-0.5.3
+PKGNAME= ${DISTNAME:S/ruby/${RUBY_PKGPREFIX}/}
+CATEGORIES= security
+MASTER_SITES= http://www.caliban.org/files/ruby/
+
+MAINTAINER= minskim@NetBSD.org
+HOMEPAGE= http://www.caliban.org/ruby/ruby-password.shtml
+COMMENT= Suite of password handling methods for Ruby
+
+DEPENDS+= ${RUBY_PKGPREFIX}-termios-[0-9]*:../../comms/ruby-termios
+
+USE_RUBY_EXTCONF= yes
+
+SUBST_CLASSES+= pwdict
+SUBST_MESSAGE.pwdict= Fixing a hardcoded path to pw_dict.pwd.
+SUBST_STAGE.pwdict= pre-configure
+SUBST_FILES.pwdict= extconf.rb
+SUBST_SED.pwdict= -e 's,/usr/local/lib/,${BUILDLINK_PREFIX.libcrack}/libdata/,g'
+
+.include "../../lang/ruby/modules.mk"
+.include "../../security/libcrack/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/security/ruby-password/PLIST b/security/ruby-password/PLIST
new file mode 100644
index 00000000000..7e15ae44599
--- /dev/null
+++ b/security/ruby-password/PLIST
@@ -0,0 +1,3 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2006/04/01 21:47:22 minskim Exp $
+${RUBY_SITELIBDIR}/password.rb
+${RUBY_SITEARCHLIBDIR}/crack.bundle
diff --git a/security/ruby-password/distinfo b/security/ruby-password/distinfo
new file mode 100644
index 00000000000..3e411fb3158
--- /dev/null
+++ b/security/ruby-password/distinfo
@@ -0,0 +1,7 @@
+$NetBSD: distinfo,v 1.1.1.1 2006/04/01 21:47:22 minskim Exp $
+
+SHA1 (ruby-password-0.5.3.tar.gz) = a8c006dac804534cec94b9d2585b10b7e105fb3f
+RMD160 (ruby-password-0.5.3.tar.gz) = 2977379b739c54373d70966d72e14e25aaf51c5f
+Size (ruby-password-0.5.3.tar.gz) = 23088 bytes
+SHA1 (patch-aa) = 05c6e46a99771bf1c42db529b1e8daf4dc7d4f97
+SHA1 (patch-ab) = 8e01e8e2950b941d75fa2b3621aec3fc115d143c
diff --git a/security/ruby-password/patches/patch-aa b/security/ruby-password/patches/patch-aa
new file mode 100644
index 00000000000..241e80bcb1d
--- /dev/null
+++ b/security/ruby-password/patches/patch-aa
@@ -0,0 +1,13 @@
+$NetBSD: patch-aa,v 1.1.1.1 2006/04/01 21:47:22 minskim Exp $
+
+--- extconf.rb.orig 2006-03-02 09:35:06.000000000 -0800
++++ extconf.rb
+@@ -41,7 +41,7 @@ hfile = File.new("rbcrack.h", 'w')
+ hfile.printf("#define CRACK_DICT \"%s\"\n", crack_dict)
+ hfile.close
+
+-have_header('crack.h') && have_library('crack', 'FascistCheck') or exit 1
++have_header('cracklib/crack.h') && have_library('crack', 'FascistCheck') or exit 1
+
+ create_makefile('crack')
+
diff --git a/security/ruby-password/patches/patch-ab b/security/ruby-password/patches/patch-ab
new file mode 100644
index 00000000000..42c84a8dffe
--- /dev/null
+++ b/security/ruby-password/patches/patch-ab
@@ -0,0 +1,13 @@
+$NetBSD: patch-ab,v 1.1.1.1 2006/04/01 21:47:22 minskim Exp $
+
+--- rbcrack.c.orig 2006-03-02 11:41:44.000000000 -0800
++++ rbcrack.c
+@@ -28,7 +28,7 @@
+ #include <string.h>
+ #include <unistd.h>
+ #include <errno.h>
+-#include <crack.h>
++#include <cracklib/crack.h>
+
+ #include "rbcrack.h"
+