From 544c969b5944a6a931242fc8014046b9a88b19e7 Mon Sep 17 00:00:00 2001 From: Akinori MUSHA Date: Thu, 7 Sep 2000 15:38:41 +0000 Subject: Add ruby-acl, Ruby module to provide Access Control List checks. --- security/Makefile | 1 + security/ruby-acl/Makefile | 48 +++++++++++++++++++++++++++++++++++++++++++ security/ruby-acl/distinfo | 1 + security/ruby-acl/pkg-comment | 1 + security/ruby-acl/pkg-descr | 17 +++++++++++++++ security/ruby-acl/pkg-plist | 11 ++++++++++ 6 files changed, 79 insertions(+) create mode 100644 security/ruby-acl/Makefile create mode 100644 security/ruby-acl/distinfo create mode 100644 security/ruby-acl/pkg-comment create mode 100644 security/ruby-acl/pkg-descr create mode 100644 security/ruby-acl/pkg-plist (limited to 'security') 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 +# +# $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 +.include "${PORTSDIR}/Mk/bsd.ruby.mk" +.include 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 +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 -- cgit v1.2.3