summaryrefslogtreecommitdiff
path: root/security/ruby-hmac
diff options
context:
space:
mode:
authorAkinori MUSHA <knu@FreeBSD.org>2002-02-20 06:24:20 +0000
committerAkinori MUSHA <knu@FreeBSD.org>2002-02-20 06:24:20 +0000
commitd6689b08c698f0212081eacdb9b014a5d2e776e6 (patch)
tree3c183d15902ddb6923c398c40f8b882c56e44cae /security/ruby-hmac
parentMake libgnugetopt a build and runtime dependency (via LIB_DEPENDS), instead (diff)
Add ruby-hmac, a Ruby library which implements the HMAC algorithm.
Diffstat (limited to 'security/ruby-hmac')
-rw-r--r--security/ruby-hmac/Makefile29
-rw-r--r--security/ruby-hmac/distinfo1
-rw-r--r--security/ruby-hmac/pkg-comment1
-rw-r--r--security/ruby-hmac/pkg-descr10
-rw-r--r--security/ruby-hmac/pkg-plist6
5 files changed, 47 insertions, 0 deletions
diff --git a/security/ruby-hmac/Makefile b/security/ruby-hmac/Makefile
new file mode 100644
index 000000000000..6595db848aff
--- /dev/null
+++ b/security/ruby-hmac/Makefile
@@ -0,0 +1,29 @@
+# New ports collection makefile for: ruby-hmac
+# Date created: 20 February 2002
+# Whom: Akinori MUSHA aka knu <knu@idaemons.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= hmac
+PORTVERSION= 0.3
+CATEGORIES= security ruby
+MASTER_SITES= http://deisui.org/~ueno/ruby/
+PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX}
+DISTNAME= ruby-${PORTNAME}-${PORTVERSION}
+DIST_SUBDIR= ruby
+
+MAINTAINER= knu@FreeBSD.org
+
+USE_RUBY= yes
+
+NO_BUILD= yes
+
+do-install:
+ ${INSTALL_DATA} ${WRKSRC}/hmac*.rb ${RUBY_SITELIBDIR}/
+.if !defined(NOPORTDOCS)
+ ${MKDIR} ${RUBY_EXAMPLESDIR}/${PORTNAME}
+ ${INSTALL_DATA} ${WRKSRC}/test.rb ${RUBY_EXAMPLESDIR}/${PORTNAME}/
+.endif
+
+.include <bsd.port.mk>
diff --git a/security/ruby-hmac/distinfo b/security/ruby-hmac/distinfo
new file mode 100644
index 000000000000..7ffda8fe8781
--- /dev/null
+++ b/security/ruby-hmac/distinfo
@@ -0,0 +1 @@
+MD5 (ruby/ruby-hmac-0.3.tar.gz) = 4f0ca6c3e03d3920ad7e032dd8f79185
diff --git a/security/ruby-hmac/pkg-comment b/security/ruby-hmac/pkg-comment
new file mode 100644
index 000000000000..65620b68bc03
--- /dev/null
+++ b/security/ruby-hmac/pkg-comment
@@ -0,0 +1 @@
+A Ruby library which implements the HMAC algorithm
diff --git a/security/ruby-hmac/pkg-descr b/security/ruby-hmac/pkg-descr
new file mode 100644
index 000000000000..122a341a4140
--- /dev/null
+++ b/security/ruby-hmac/pkg-descr
@@ -0,0 +1,10 @@
+ruby-hmac: HMAC for Ruby
+
+This module provides a common interface to HMAC functionality. HMAC
+is a kind of "Message Authentication Code" (MAC) algorithm which
+standard is documented in RFC2104. Namely, a MAC provides a way to
+check the integrity of information transmitted over or stored in an
+unreliable medium, based on a secret key.
+
+Author: Daiki Ueno <ueno@unixuser.org>
+WWW: http://deisui.org/~ueno/ruby/hmac.html
diff --git a/security/ruby-hmac/pkg-plist b/security/ruby-hmac/pkg-plist
new file mode 100644
index 000000000000..40cc94411459
--- /dev/null
+++ b/security/ruby-hmac/pkg-plist
@@ -0,0 +1,6 @@
+%%RUBY_SITELIBDIR%%/hmac-md5.rb
+%%RUBY_SITELIBDIR%%/hmac-rmd160.rb
+%%RUBY_SITELIBDIR%%/hmac-sha1.rb
+%%RUBY_SITELIBDIR%%/hmac-sha2.rb
+%%RUBY_SITELIBDIR%%/hmac.rb
+%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/hmac/test.rb