git: 493ad975e9bb - main - www/py-advocate: add new port

From: Dries Michiels <driesm_at_FreeBSD.org>
Date: Sat, 18 Nov 2023 11:04:14 UTC
The branch main has been updated by driesm:

URL: https://cgit.FreeBSD.org/ports/commit/?id=493ad975e9bb794dd1a4ef0ce45375bd691e5b7d

commit 493ad975e9bb794dd1a4ef0ce45375bd691e5b7d
Author:     Dries Michiels <driesm@FreeBSD.org>
AuthorDate: 2023-11-18 10:59:20 +0000
Commit:     Dries Michiels <driesm@FreeBSD.org>
CommitDate: 2023-11-18 11:03:57 +0000

    www/py-advocate: add new port
    
    An SSRF-preventing wrapper around Python's requests library.
---
 www/Makefile              |  1 +
 www/py-advocate/Makefile  | 19 +++++++++++++++++++
 www/py-advocate/distinfo  |  3 +++
 www/py-advocate/pkg-descr |  3 +++
 4 files changed, 26 insertions(+)

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.