Add ruby-acl, Ruby module to provide Access Control List checks.
This commit is contained in:
parent
793093fca0
commit
544c969b59
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=32395
@ -84,6 +84,7 @@
|
|||||||
SUBDIR += radiusniff
|
SUBDIR += radiusniff
|
||||||
SUBDIR += rid
|
SUBDIR += rid
|
||||||
SUBDIR += rsaref
|
SUBDIR += rsaref
|
||||||
|
SUBDIR += ruby-acl
|
||||||
SUBDIR += ruby-tcpwrap
|
SUBDIR += ruby-tcpwrap
|
||||||
SUBDIR += saint
|
SUBDIR += saint
|
||||||
SUBDIR += seahorse
|
SUBDIR += seahorse
|
||||||
|
48
security/ruby-acl/Makefile
Normal file
48
security/ruby-acl/Makefile
Normal 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>
|
1
security/ruby-acl/distinfo
Normal file
1
security/ruby-acl/distinfo
Normal file
@ -0,0 +1 @@
|
|||||||
|
MD5 (ruby/acl-1.0.tar.gz) = 068aec424ca77b2acaf6c07210fde52f
|
1
security/ruby-acl/pkg-comment
Normal file
1
security/ruby-acl/pkg-comment
Normal file
@ -0,0 +1 @@
|
|||||||
|
Ruby module to provide Access Control List checks
|
17
security/ruby-acl/pkg-descr
Normal file
17
security/ruby-acl/pkg-descr
Normal 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
|
11
security/ruby-acl/pkg-plist
Normal file
11
security/ruby-acl/pkg-plist
Normal 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
|
Loading…
Reference in New Issue
Block a user