aboutsummaryrefslogtreecommitdiffstats
path: root/security
diff options
context:
space:
mode:
authorknu <knu@FreeBSD.org>2000-09-07 23:38:41 +0800
committerknu <knu@FreeBSD.org>2000-09-07 23:38:41 +0800
commit74534d3342d8d57ef8eb73c9933845a22537a803 (patch)
tree36da235cefb44f0f805089c203959ca9462b899c /security
parent831e5730c8b6e4d84065c5ce763820b95a962cbb (diff)
downloadfreebsd-ports-gnome-74534d3342d8d57ef8eb73c9933845a22537a803.tar.gz
freebsd-ports-gnome-74534d3342d8d57ef8eb73c9933845a22537a803.tar.zst
freebsd-ports-gnome-74534d3342d8d57ef8eb73c9933845a22537a803.zip
Add ruby-acl, Ruby module to provide Access Control List checks.
Diffstat (limited to 'security')
-rw-r--r--security/Makefile1
-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
6 files changed, 79 insertions, 0 deletions
diff --git a/security/Makefile b/security/Makefile
index c74e6dea13b9..6a9e5db1c03c 100644
--- a/security/Makefile
+++ b/security/Makefile
@@ -84,6 +84,7 @@
SUBDIR += radiusniff
SUBDIR += rid
SUBDIR += rsaref
+ SUBDIR += ruby-acl
SUBDIR += ruby-tcpwrap
SUBDIR += saint
SUBDIR += seahorse
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