summaryrefslogtreecommitdiff
path: root/security
diff options
context:
space:
mode:
authortaca <taca@pkgsrc.org>2001-07-01 13:41:02 +0000
committertaca <taca@pkgsrc.org>2001-07-01 13:41:02 +0000
commit4234474af6131cb92f40c8d5efbcfd6a8c54e177 (patch)
tree4c7f88312c2fef65293124d9643dd1bd1caa7138 /security
parentc38635528beb343578748583a68515b0a5577745 (diff)
downloadpkgsrc-4234474af6131cb92f40c8d5efbcfd6a8c54e177.tar.gz
Importing ruby-acl package.
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
Diffstat (limited to 'security')
-rw-r--r--security/ruby-acl/Makefile38
-rw-r--r--security/ruby-acl/distinfo4
-rw-r--r--security/ruby-acl/pkg/DESCR17
-rw-r--r--security/ruby-acl/pkg/PLIST12
4 files changed, 71 insertions, 0 deletions
diff --git a/security/ruby-acl/Makefile b/security/ruby-acl/Makefile
new file mode 100644
index 00000000000..ed2568337b6
--- /dev/null
+++ b/security/ruby-acl/Makefile
@@ -0,0 +1,38 @@
+# $NetBSD: Makefile,v 1.1.1.1 2001/07/01 13:41:02 taca Exp $
+# FreeBSD: ports/security/ruby-acl/Makefile,v 1.4 2000/12/26 04:13:28 knu Exp
+
+DISTNAME= acl-1.0.1
+PKGNAME= ${RUBY_PKGNAMEPREFIX}${DISTNAME}
+CATEGORIES= security
+MASTER_SITES= http://www2a.biglobe.ne.jp/~seki/ruby/
+
+MAINTAINER= taca@netbsd.org
+HOMEPAGE= http://www2a.biglobe.ne.jp/~seki/ruby/
+COMMENT= Ruby module to provide Access Control List checks
+
+DIST_SUBDIR= ruby
+USE_RUBY= yes
+USE_RUBY_RD= yes
+
+do-build:
+.for f in acl.rd acl.rd.ja
+ @cd ${WRKSRC}/doc; \
+ ${RUBY_RD} ${f} > ${f:S/.rd/.html/}
+.endfor
+
+do-install:
+ @cd ${WRKSRC}; \
+ ${RUBY} install.rb
+ ${INSTALL_DATA_DIR} ${RUBY_EXAMPLESDIR}/acl
+ ${INSTALL_DATA} ${WRKSRC}/acltest.rb ${RUBY_EXAMPLESDIR}/acl
+ ${INSTALL_DATA_DIR} ${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
+
+.include "../../textproc/ruby-rdtool/Makefile.common"
+.include "../../lang/ruby-base/Makefile.common"
+.include "../../mk/bsd.pkg.mk"
diff --git a/security/ruby-acl/distinfo b/security/ruby-acl/distinfo
new file mode 100644
index 00000000000..a34cd6edc5c
--- /dev/null
+++ b/security/ruby-acl/distinfo
@@ -0,0 +1,4 @@
+$NetBSD: distinfo,v 1.1.1.1 2001/07/01 13:41:02 taca Exp $
+
+SHA1 (ruby/acl-1.0.1.tar.gz) = 7b81717a8486d4fa6ec0557abb870bbefe0b80fc
+Size (ruby/acl-1.0.1.tar.gz) = 4456 bytes
diff --git a/security/ruby-acl/pkg/DESCR b/security/ruby-acl/pkg/DESCR
new file mode 100644
index 00000000000..7079590cc28
--- /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 00000000000..6094d74efdd
--- /dev/null
+++ b/security/ruby-acl/pkg/PLIST
@@ -0,0 +1,12 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2001/07/01 13:41:02 taca Exp $
+${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