Add ruby-acl, Ruby module to provide Access Control List checks.

This commit is contained in:
Akinori MUSHA 2000-09-07 15:38:41 +00:00
parent 793093fca0
commit 544c969b59
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=32395
6 changed files with 79 additions and 0 deletions

View File

@ -84,6 +84,7 @@
SUBDIR += radiusniff
SUBDIR += rid
SUBDIR += rsaref
SUBDIR += ruby-acl
SUBDIR += ruby-tcpwrap
SUBDIR += saint
SUBDIR += seahorse

View File

@ -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>

View File

@ -0,0 +1 @@
MD5 (ruby/acl-1.0.tar.gz) = 068aec424ca77b2acaf6c07210fde52f

View File

@ -0,0 +1 @@
Ruby module to provide Access Control List checks

View File

@ -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

View File

@ -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