aboutsummaryrefslogtreecommitdiff
path: root/security/ruby-acl
diff options
context:
space:
mode:
authorAkinori MUSHA <knu@FreeBSD.org>2000-09-07 15:38:41 +0000
committerAkinori MUSHA <knu@FreeBSD.org>2000-09-07 15:38:41 +0000
commit544c969b5944a6a931242fc8014046b9a88b19e7 (patch)
tree0ef1627c7c972549831ebbc613aa76f4abeeafd6 /security/ruby-acl
parent793093fca0c51887cb0c914a2a69ef754a51eb4f (diff)
downloadports-544c969b5944a6a931242fc8014046b9a88b19e7.tar.gz
ports-544c969b5944a6a931242fc8014046b9a88b19e7.zip
Notes
Diffstat (limited to 'security/ruby-acl')
-rw-r--r--security/ruby-acl/Makefile48
-rw-r--r--security/ruby-acl/distinfo1
-rw-r--r--security/ruby-acl/pkg-comment1
-rw-r--r--security/ruby-acl/pkg-descr17
-rw-r--r--security/ruby-acl/pkg-plist11
5 files changed, 78 insertions, 0 deletions
diff --git a/security/ruby-acl/Makefile b/security/ruby-acl/Makefile
new file mode 100644
index 000000000000..83894fd60696
--- /dev/null
+++ b/security/ruby-acl/Makefile
@@ -0,0 +1,48 @@
+# New ports collection makefile for: Ruby-acl
+# Date created: 7 Sep 2000
+# Whom: Akinori MUSHA aka knu <knu@idaemons.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= acl
+PORTVERSION= 1.0
+CATEGORIES= security ipv6 ruby
+MASTER_SITES= http://www2a.biglobe.ne.jp/~seki/ruby/
+PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX}
+DIST_SUBDIR= ruby
+
+MAINTAINER= knu@FreeBSD.org
+
+USE_RUBY= yes
+
+.if !defined(NOPORTDOCS)
+USE_RUBY_RD= yes
+.endif
+
+do-build:
+.if !defined(NOPORTDOCS)
+.for f in acl.rd acl.rd.ja
+ @cd ${WRKSRC}/doc; \
+ ${RUBY_RD} ${f} > ${f:S/.rd/.html/}
+.endfor
+.endif
+
+do-install:
+ @cd ${WRKSRC}; \
+ ${RUBY} install.rb
+.if !defined(NOPORTDOCS)
+ ${MKDIR} ${RUBY_EXAMPLESDIR}/acl
+ ${INSTALL_DATA} ${WRKSRC}/acltest.rb ${RUBY_EXAMPLESDIR}/acl
+ ${MKDIR} ${RUBY_DOCDIR}/acl/ja
+.for f in README doc/acl.rd doc/acl.html
+ ${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_DOCDIR}/acl
+.endfor
+.for f in README.ja doc/acl.rd.ja doc/acl.html.ja
+ ${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_DOCDIR}/acl/ja
+.endfor
+.endif
+
+.include <bsd.port.pre.mk>
+.include "${PORTSDIR}/Mk/bsd.ruby.mk"
+.include <bsd.port.post.mk>
diff --git a/security/ruby-acl/distinfo b/security/ruby-acl/distinfo
new file mode 100644
index 000000000000..5041b3c50e64
--- /dev/null
+++ b/security/ruby-acl/distinfo
@@ -0,0 +1 @@
+MD5 (ruby/acl-1.0.tar.gz) = 068aec424ca77b2acaf6c07210fde52f
diff --git a/security/ruby-acl/pkg-comment b/security/ruby-acl/pkg-comment
new file mode 100644
index 000000000000..39c2739f86ff
--- /dev/null
+++ b/security/ruby-acl/pkg-comment
@@ -0,0 +1 @@
+Ruby module to provide Access Control List checks
diff --git a/security/ruby-acl/pkg-descr b/security/ruby-acl/pkg-descr
new file mode 100644
index 000000000000..7079590cc284
--- /dev/null
+++ b/security/ruby-acl/pkg-descr
@@ -0,0 +1,17 @@
+Ruby-acl provides Access Control List checks.
+
+ list = %w(
+ deny all
+ allow 192.168.1.*
+ allow 127.0.0.1
+ )
+ acl = ACL.new(list, ACL::DENY_ALLOW)
+ ...
+ ns = soc.accept
+ unless acl.allow_socket?(ns)
+ # forbidden
+ end
+
+
+Author: Masatoshi SEKI <m_seki@mva.biglobe.ne.jp>
+WWW: http://www.ruby-lang.org/en/raa-list.rhtml?name=acl
diff --git a/security/ruby-acl/pkg-plist b/security/ruby-acl/pkg-plist
new file mode 100644
index 000000000000..9c60b78334ef
--- /dev/null
+++ b/security/ruby-acl/pkg-plist
@@ -0,0 +1,11 @@
+%%RUBY_SITELIBDIR%%/acl.rb
+%%RUBY_EXAMPLESDIR%%/acl/acltest.rb
+@dirrm %%RUBY_EXAMPLESDIR%%/acl
+%%RUBY_DOCDIR%%/acl/README
+%%RUBY_DOCDIR%%/acl/acl.html
+%%RUBY_DOCDIR%%/acl/acl.rd
+%%RUBY_DOCDIR%%/acl/ja/README.ja
+%%RUBY_DOCDIR%%/acl/ja/acl.html.ja
+%%RUBY_DOCDIR%%/acl/ja/acl.rd.ja
+@dirrm %%RUBY_DOCDIR%%/acl/ja
+@dirrm %%RUBY_DOCDIR%%/acl