Date: Tue, 21 Nov 2017 22:16:42 +0000 (UTC) From: Adam Weinberger <adamw@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r454657 - in head/www: . rubygem-rack_csrf Message-ID: <201711212216.vALMGgSv007639@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: adamw Date: Tue Nov 21 22:16:42 2017 New Revision: 454657 URL: https://svnweb.freebsd.org/changeset/ports/454657 Log: Add www/rubygem-rack_csrf, an anti-CSRF Rack middleware. Roda's CSRF plugin uses this gem. WWW: https://github.com/baldowl/rack_csrf Added: head/www/rubygem-rack_csrf/ head/www/rubygem-rack_csrf/Makefile (contents, props changed) head/www/rubygem-rack_csrf/distinfo (contents, props changed) head/www/rubygem-rack_csrf/pkg-descr (contents, props changed) Modified: head/www/Makefile Modified: head/www/Makefile ============================================================================== --- head/www/Makefile Tue Nov 21 21:47:43 2017 (r454656) +++ head/www/Makefile Tue Nov 21 22:16:42 2017 (r454657) @@ -2095,6 +2095,7 @@ SUBDIR += rubygem-pusher-client SUBDIR += rubygem-rabbirack SUBDIR += rubygem-rack + SUBDIR += rubygem-rack_csrf SUBDIR += rubygem-rack-accept SUBDIR += rubygem-rack-attack SUBDIR += rubygem-rack-cache Added: head/www/rubygem-rack_csrf/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/www/rubygem-rack_csrf/Makefile Tue Nov 21 22:16:42 2017 (r454657) @@ -0,0 +1,22 @@ +# Created by: Adam Weinberger <adamw@FreeBSD.org> +# $FreeBSD$ + +PORTNAME= rack_csrf +PORTVERSION= 2.6.0 +CATEGORIES= www rubygems +MASTER_SITES= RG + +MAINTAINER= adamw@FreeBSD.org +COMMENT= Anti-CSRF Rack middleware + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE.rdoc + +RUN_DEPENDS= rubygem-rack>=1.1.0:www/rubygem-rack +TEST_DEPENDS= rubygem-rspec>0:devel/rubygem-rspec + +USES= gem +USE_RUBY= yes +NO_ARCH= yes + +.include <bsd.port.mk> Added: head/www/rubygem-rack_csrf/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/www/rubygem-rack_csrf/distinfo Tue Nov 21 22:16:42 2017 (r454657) @@ -0,0 +1,3 @@ +TIMESTAMP = 1511302383 +SHA256 (rubygem/rack_csrf-2.6.0.gem) = 17c57d898e2fb6577872b37ca66cbb44cefc2b98ff0e79001e2b6886f504416f +SIZE (rubygem/rack_csrf-2.6.0.gem) = 20992 Added: head/www/rubygem-rack_csrf/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/www/rubygem-rack_csrf/pkg-descr Tue Nov 21 22:16:42 2017 (r454657) @@ -0,0 +1,8 @@ +This is just a small Rack middleware whose only goal is to lessen the hazards +posed by CSRF attacks by trying to ensure that all requests of particular types +come from the right client, not from a mischievous impersonator. + +Rack::Csrf is not tailored to any particular web framework, so it can be used +with your preferred Rack-based framework. + +WWW: https://github.com/baldowl/rack_csrf
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201711212216.vALMGgSv007639>