aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDries Michiels <driesm@FreeBSD.org>2023-11-18 10:59:20 +0000
committerDries Michiels <driesm@FreeBSD.org>2023-11-18 11:03:57 +0000
commit493ad975e9bb794dd1a4ef0ce45375bd691e5b7d (patch)
tree7b2e8c62de713a5a1483f473da8c27bb79a2cc9e
parent741f1d5fc30c148b9c773b909846163d08690e8c (diff)
www/py-advocate: add new port
An SSRF-preventing wrapper around Python's requests library.
-rw-r--r--www/Makefile1
-rw-r--r--www/py-advocate/Makefile19
-rw-r--r--www/py-advocate/distinfo3
-rw-r--r--www/py-advocate/pkg-descr3
4 files changed, 26 insertions, 0 deletions
diff --git a/www/Makefile b/www/Makefile
index 54f309fce63d..437a80bea771 100644
--- a/www/Makefile
+++ b/www/Makefile
@@ -1444,6 +1444,7 @@
SUBDIR += py-WebError
SUBDIR += py-WebFlash
SUBDIR += py-adblock
+ SUBDIR += py-advocate
SUBDIR += py-aioh2
SUBDIR += py-aiohttp
SUBDIR += py-aiohttp-jinja2
diff --git a/www/py-advocate/Makefile b/www/py-advocate/Makefile
new file mode 100644
index 000000000000..350c4992b32e
--- /dev/null
+++ b/www/py-advocate/Makefile
@@ -0,0 +1,19 @@
+PORTNAME= advocate
+DISTVERSION= 1.0.0
+CATEGORIES= www security
+MASTER_SITES= PYPI
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= driesm@FreeBSD.org
+COMMENT= Wrapper around requests library for safely making HTTP requests
+WWW= https://github.com/JordanMilne/Advocate
+
+LICENSE= APACHE20
+
+USES= python
+USE_PYTHON= autoplist concurrent distutils
+
+NO_ARCH= yes
+NO_BUILD= yes
+
+.include <bsd.port.mk>
diff --git a/www/py-advocate/distinfo b/www/py-advocate/distinfo
new file mode 100644
index 000000000000..6f8e2c8f09ab
--- /dev/null
+++ b/www/py-advocate/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1700304953
+SHA256 (advocate-1.0.0.tar.gz) = 1bf1170e41334279996580329c594e017540ab0eaf7a152323e743f0a85a353d
+SIZE (advocate-1.0.0.tar.gz) = 39981
diff --git a/www/py-advocate/pkg-descr b/www/py-advocate/pkg-descr
new file mode 100644
index 000000000000..29dee341d7ed
--- /dev/null
+++ b/www/py-advocate/pkg-descr
@@ -0,0 +1,3 @@
+Advocate is a set of tools based around the requests library for
+safely making HTTP requests on behalf of a third party. Specifically,
+it aims to prevent common techniques that enable SSRF attacks.