aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPo-Chuan Hsieh <sunpoet@FreeBSD.org>2022-10-03 16:56:42 +0000
committerPo-Chuan Hsieh <sunpoet@FreeBSD.org>2022-10-03 17:10:14 +0000
commit615af6e0c7cc35128fb2d8c91ffd5998df48da44 (patch)
tree93457f2b7cd2852e5458dcc0396568e2c17228c2
parentfd6652374d9fc1689675ada51c0438af7fd65832 (diff)
www/rubygem-rack-protection2: Add rubygem-rack-protection2 2.2.2 (copied from rubygem-rack-protection)
- Update version requirement of RUN_DEPENDS - Add PORTSCOUT
-rw-r--r--www/Makefile1
-rw-r--r--www/rubygem-rack-protection2/Makefile23
-rw-r--r--www/rubygem-rack-protection2/distinfo3
-rw-r--r--www/rubygem-rack-protection2/pkg-descr1
4 files changed, 28 insertions, 0 deletions
diff --git a/www/Makefile b/www/Makefile
index 50d7df56bd2a..63d8794f892d 100644
--- a/www/Makefile
+++ b/www/Makefile
@@ -2061,6 +2061,7 @@
SUBDIR += rubygem-rack-openid
SUBDIR += rubygem-rack-protection
SUBDIR += rubygem-rack-protection1
+ SUBDIR += rubygem-rack-protection2
SUBDIR += rubygem-rack-proxy
SUBDIR += rubygem-rack-ssl
SUBDIR += rubygem-rack-test
diff --git a/www/rubygem-rack-protection2/Makefile b/www/rubygem-rack-protection2/Makefile
new file mode 100644
index 000000000000..6d69d78e514f
--- /dev/null
+++ b/www/rubygem-rack-protection2/Makefile
@@ -0,0 +1,23 @@
+PORTNAME= rack-protection
+PORTVERSION= 2.2.2
+CATEGORIES= www rubygems
+MASTER_SITES= RG
+PKGNAMESUFFIX= 2
+
+MAINTAINER= sunpoet@FreeBSD.org
+COMMENT= Collection of Rack middleware to protect against opportunistic attack
+WWW= https://github.com/sinatra/sinatra/tree/master/rack-protection
+
+LICENSE= MIT
+LICENSE_FILE= ${WRKSRC}/License
+
+RUN_DEPENDS= rubygem-rack>=0,3:www/rubygem-rack
+
+USES= gem
+USE_RUBY= yes
+
+NO_ARCH= yes
+
+PORTSCOUT= limit:^2\.
+
+.include <bsd.port.mk>
diff --git a/www/rubygem-rack-protection2/distinfo b/www/rubygem-rack-protection2/distinfo
new file mode 100644
index 000000000000..addce9d809ce
--- /dev/null
+++ b/www/rubygem-rack-protection2/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1659161335
+SHA256 (rubygem/rack-protection-2.2.2.gem) = fd41414dbabbec274af0bdb1f72a48504449de4d979782c9af38cbb5dfff3299
+SIZE (rubygem/rack-protection-2.2.2.gem) = 17408
diff --git a/www/rubygem-rack-protection2/pkg-descr b/www/rubygem-rack-protection2/pkg-descr
new file mode 100644
index 000000000000..a319a7765de0
--- /dev/null
+++ b/www/rubygem-rack-protection2/pkg-descr
@@ -0,0 +1 @@
+Collection of Rack middleware to protect you against common, opportunistic attack.