summaryrefslogtreecommitdiff
path: root/security/ruby-sha1
diff options
context:
space:
mode:
authortaca <taca>2001-07-01 13:42:06 +0000
committertaca <taca>2001-07-01 13:42:06 +0000
commitc75dc87d21d3a14ad5e978eea15d5b160484a7c5 (patch)
tree1cb32629faa1e8d760bcbd6d9dad4ae2bade81ac /security/ruby-sha1
parent144cc738af5471f2208793bc9151c980b7277f17 (diff)
downloadpkgsrc-c75dc87d21d3a14ad5e978eea15d5b160484a7c5.tar.gz
Importing ruby-sha1 package.
ruby-sha1 - A Ruby interface to the SHA-1 Secure Hash Algorithm This is a Ruby extension which implements the SHA-1 Secure Hash Algorithm by NIST (the US' National Institute of Standards and Technology), described in FIPS PUB 180-1.
Diffstat (limited to 'security/ruby-sha1')
-rw-r--r--security/ruby-sha1/Makefile24
-rw-r--r--security/ruby-sha1/distinfo5
-rw-r--r--security/ruby-sha1/patches/patch-aa20
-rw-r--r--security/ruby-sha1/pkg/DESCR8
-rw-r--r--security/ruby-sha1/pkg/PLIST4
5 files changed, 61 insertions, 0 deletions
diff --git a/security/ruby-sha1/Makefile b/security/ruby-sha1/Makefile
new file mode 100644
index 00000000000..0afd281ae34
--- /dev/null
+++ b/security/ruby-sha1/Makefile
@@ -0,0 +1,24 @@
+# $NetBSD: Makefile,v 1.1.1.1 2001/07/01 13:42:06 taca Exp $
+# FreeBSD: ports/converters/ruby-sha1/Makefile,v 1.2 2000/11/03 18:14:37 knu Exp
+
+DISTNAME= ruby-sha1-${VERSION}
+PKGNAME= ${RUBY_PKGNAMEPREFIX}sha1-${VERSION}
+CATEGORIES= security
+MASTER_SITES= http://www.omcl.org/~spcoltri/ruby/
+
+MAINTAINER= taca@netbsd.org
+HOMEPAGE= http://www.omcl.org/~spcoltri/ruby/ruby-sha1.html
+COMMENT= Ruby interface to the SHA-1 Secure Hash Algorithm
+
+VERSION= 1.2
+DIST_SUBDIR= ruby
+USE_RUBY_EXTCONF= yes
+
+INSTALL_TARGET= site-install
+
+post-install:
+ ${INSTALL_DATA_DIR} ${RUBY_DOCDIR}/sha1
+ ${INSTALL_DATA} ${WRKSRC}/README ${RUBY_DOCDIR}/sha1
+
+.include "../../lang/ruby-base/Makefile.common"
+.include "../../mk/bsd.pkg.mk"
diff --git a/security/ruby-sha1/distinfo b/security/ruby-sha1/distinfo
new file mode 100644
index 00000000000..058e4eeacc1
--- /dev/null
+++ b/security/ruby-sha1/distinfo
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1.1.1 2001/07/01 13:42:06 taca Exp $
+
+SHA1 (ruby/ruby-sha1-1.2.tar.gz) = 09c5674a5c5a17d23a37aa19c7b6cb8c8eeecfae
+Size (ruby/ruby-sha1-1.2.tar.gz) = 3866 bytes
+SHA1 (patch-aa) = 372c6fb08ae3bd021a6ee903b13257914a6ac990
diff --git a/security/ruby-sha1/patches/patch-aa b/security/ruby-sha1/patches/patch-aa
new file mode 100644
index 00000000000..e42602b26bb
--- /dev/null
+++ b/security/ruby-sha1/patches/patch-aa
@@ -0,0 +1,20 @@
+$NetBSD: patch-aa,v 1.1.1.1 2001/07/01 13:42:06 taca Exp $
+
+--- extconf.rb.orig Fri Nov 3 05:08:42 2000
++++ extconf.rb
+@@ -1,15 +1,3 @@
+ require 'mkmf'
+
+-i = 0x01020304
+-
+-case [i].pack('l')
+- when [i].pack('V')
+- $CFLAGS += " -DLITTLE_ENDIAN"
+- when [i].pack('N')
+- $CFLAGS += " -DBIG_ENDIAN"
+- else
+- p "Sorry, your machine has an unusual byte order which is not supported."
+- exit!
+-end
+-
+ create_makefile('sha1')
diff --git a/security/ruby-sha1/pkg/DESCR b/security/ruby-sha1/pkg/DESCR
new file mode 100644
index 00000000000..168dda166d3
--- /dev/null
+++ b/security/ruby-sha1/pkg/DESCR
@@ -0,0 +1,8 @@
+ruby-sha1 - A Ruby interface to the SHA-1 Secure Hash Algorithm
+
+This is a Ruby extension which implements the SHA-1 Secure Hash
+Algorithm by NIST (the US' National Institute of Standards and
+Technology), described in FIPS PUB 180-1.
+
+Author: Steve Coltrin <spcoltri@omcl.org>
+WWW: http://www.omcl.org/~spcoltri/ruby/ruby-sha1.html
diff --git a/security/ruby-sha1/pkg/PLIST b/security/ruby-sha1/pkg/PLIST
new file mode 100644
index 00000000000..65026973d5a
--- /dev/null
+++ b/security/ruby-sha1/pkg/PLIST
@@ -0,0 +1,4 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2001/07/01 13:42:06 taca Exp $
+${RUBY_SITEARCHLIBDIR}/sha1.so
+${RUBY_DOCDIR}/sha1/README
+@dirrm ${RUBY_DOCDIR}/sha1