summaryrefslogtreecommitdiff
path: root/security
diff options
context:
space:
mode:
authorAkinori MUSHA <knu@FreeBSD.org>2001-01-09 11:47:16 +0000
committerAkinori MUSHA <knu@FreeBSD.org>2001-01-09 11:47:16 +0000
commitc80b35ad723cb82f79015a41269cae0bdba7715f (patch)
treeef82d997549c5945b405bac7b475916a1c938654 /security
parentUpdate to 0.14b. (diff)
Add ruby-ssl, an SSL socket module for Ruby.
Notes
Notes: svn path=/head/; revision=36993
Diffstat (limited to 'security')
-rw-r--r--security/Makefile1
-rw-r--r--security/ruby-ssl/Makefile31
-rw-r--r--security/ruby-ssl/distinfo1
-rw-r--r--security/ruby-ssl/files/patch-extconf.rb11
-rw-r--r--security/ruby-ssl/pkg-comment1
-rw-r--r--security/ruby-ssl/pkg-descr3
-rw-r--r--security/ruby-ssl/pkg-plist9
7 files changed, 57 insertions, 0 deletions
diff --git a/security/Makefile b/security/Makefile
index 37d0c2a0e984..69a49c354b57 100644
--- a/security/Makefile
+++ b/security/Makefile
@@ -109,6 +109,7 @@
SUBDIR += rid
SUBDIR += rsaref
SUBDIR += ruby-acl
+ SUBDIR += ruby-ssl
SUBDIR += ruby-tcpwrap
SUBDIR += saint
SUBDIR += scanssh
diff --git a/security/ruby-ssl/Makefile b/security/ruby-ssl/Makefile
new file mode 100644
index 000000000000..0f8f8eafbdd5
--- /dev/null
+++ b/security/ruby-ssl/Makefile
@@ -0,0 +1,31 @@
+# New ports collection makefile for: Ruby-ssl
+# Date created: 9 Jan 2001
+# Whom: Akinori MUSHA aka knu <knu@idaemons.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= ssl
+PORTVERSION= 0.0.1
+CATEGORIES= security ruby
+MASTER_SITES= http://www.notwork.org/~gotoyuzo/ruby/src/
+PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX}
+DIST_SUBDIR= ruby
+
+MAINTAINER= knu@FreeBSD.org
+
+USE_OPENSSL= yes
+USE_RUBY= yes
+USE_RUBY_EXTCONF= yes
+
+CONFIGURE_ARGS= --with-ssl-include="${OPENSSLBASE}/include/openssl" \
+ --with-ssl-lib="${OPENSSLBASE}/lib"
+INSTALL_TARGET= site-install
+
+post-install:
+.if !defined(NOPORTDOCS)
+ ${MKDIR} ${RUBY_EXAMPLESDIR}/ssl
+ ${INSTALL_DATA} ${WRKSRC}/sample/* ${RUBY_EXAMPLESDIR}/ssl/
+.endif
+
+.include <bsd.port.mk>
diff --git a/security/ruby-ssl/distinfo b/security/ruby-ssl/distinfo
new file mode 100644
index 000000000000..b1e2ab96f403
--- /dev/null
+++ b/security/ruby-ssl/distinfo
@@ -0,0 +1 @@
+MD5 (ruby/ssl-0.0.1.tar.gz) = e1246b8365ab1993024f0be252a1ace0
diff --git a/security/ruby-ssl/files/patch-extconf.rb b/security/ruby-ssl/files/patch-extconf.rb
new file mode 100644
index 000000000000..793e3cceb69f
--- /dev/null
+++ b/security/ruby-ssl/files/patch-extconf.rb
@@ -0,0 +1,11 @@
+--- extconf.rb.orig Tue Jan 2 06:03:16 2001
++++ extconf.rb Tue Jan 9 19:47:42 2001
+@@ -2,7 +2,7 @@
+
+ SSLLIB="ssl"
+
+-$CFLAGS += "-I/usr/include/openssl "
++dir_config("ssl")
+ $LDFLAGS += "-lcrypto "
+
+ if have_header("ssl.h")
diff --git a/security/ruby-ssl/pkg-comment b/security/ruby-ssl/pkg-comment
new file mode 100644
index 000000000000..432efd60c856
--- /dev/null
+++ b/security/ruby-ssl/pkg-comment
@@ -0,0 +1 @@
+SSL socket module for Ruby
diff --git a/security/ruby-ssl/pkg-descr b/security/ruby-ssl/pkg-descr
new file mode 100644
index 000000000000..9d5315c3e3d5
--- /dev/null
+++ b/security/ruby-ssl/pkg-descr
@@ -0,0 +1,3 @@
+This is a Ruby module for handling SSL sockets, ported from Python.
+
+Author: GOTOU YUUZOU <gotoyuzo@notwork.org>
diff --git a/security/ruby-ssl/pkg-plist b/security/ruby-ssl/pkg-plist
new file mode 100644
index 000000000000..3eca95f53022
--- /dev/null
+++ b/security/ruby-ssl/pkg-plist
@@ -0,0 +1,9 @@
+%%RUBY_SITEARCHLIBDIR%%/ssl.so
+%%RUBY_SITELIBDIR%%/buffering.rb
+%%RUBY_SITELIBDIR%%/ssl.rb
+%%RUBY_EXAMPLESDIR%%/ssl/cli.rb
+%%RUBY_EXAMPLESDIR%%/ssl/sample.crt
+%%RUBY_EXAMPLESDIR%%/ssl/sample.key
+%%RUBY_EXAMPLESDIR%%/ssl/svr.rb
+%%RUBY_EXAMPLESDIR%%/ssl/wget.rb
+@dirrm %%RUBY_EXAMPLESDIR%%/ssl