git: c1776f79b9e5 - main - net/py-tiny-proxy: Add new port

From: Emanuel Haupt <ehaupt_at_FreeBSD.org>
Date: Tue, 03 Oct 2023 11:22:28 UTC
The branch main has been updated by ehaupt:

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

commit c1776f79b9e515f6c68a14ed1fde11face7864b6
Author:     Emanuel Haupt <ehaupt@FreeBSD.org>
AuthorDate: 2023-10-03 11:17:46 +0000
Commit:     Emanuel Haupt <ehaupt@FreeBSD.org>
CommitDate: 2023-10-03 11:22:23 +0000

    net/py-tiny-proxy: Add new port
    
    Simple proxy (SOCKS4(a), SOCKS5(h), HTTP tunnel) server built with
    anyio. It is used for testing python-socks, aiohttp-socks and
    httpx-socks packages.
---
 net/Makefile                |  1 +
 net/py-tiny-proxy/Makefile  | 20 ++++++++++++++++++++
 net/py-tiny-proxy/distinfo  |  3 +++
 net/py-tiny-proxy/pkg-descr |  3 +++
 4 files changed, 27 insertions(+)

diff --git a/net/Makefile b/net/Makefile
index bbeec8bd60b9..d9df2ddb2829 100644
--- a/net/Makefile
+++ b/net/Makefile
@@ -1161,6 +1161,7 @@
     SUBDIR += py-suds
     SUBDIR += py-tacacs_plus
     SUBDIR += py-terminado
+    SUBDIR += py-tiny-proxy
     SUBDIR += py-tofu
     SUBDIR += py-transip
     SUBDIR += py-trio
diff --git a/net/py-tiny-proxy/Makefile b/net/py-tiny-proxy/Makefile
new file mode 100644
index 000000000000..f6c9bda48a0c
--- /dev/null
+++ b/net/py-tiny-proxy/Makefile
@@ -0,0 +1,20 @@
+PORTNAME=	tiny-proxy
+DISTVERSION=	0.2.0
+CATEGORIES=	net www python
+MASTER_SITES=	CHEESESHOP
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+DISTNAME=	${PORTNAME:S/-/_/}-${DISTVERSION}
+
+MAINTAINER=	ehaupt@FreeBSD.org
+COMMENT=	Proxy server with SOCKS4(a), SOCKS5(h), HTTP tunnel support
+WWW=		https://pypi.org/project/tiny-proxy/
+
+LICENSE=	APACHE20
+LICENSE_FILE=	${WRKSRC}/LICENSE.txt
+
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}anyio>=3.6.1:devel/py-anyio@${PY_FLAVOR}
+
+USES=		python
+USE_PYTHON=	autoplist distutils
+
+.include <bsd.port.mk>
diff --git a/net/py-tiny-proxy/distinfo b/net/py-tiny-proxy/distinfo
new file mode 100644
index 000000000000..79c7ca760faf
--- /dev/null
+++ b/net/py-tiny-proxy/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1696330741
+SHA256 (tiny_proxy-0.2.0.tar.gz) = 310f22e5d983c28a14398cbd4f656fedd0957aa94b5f4fc7b36baa764d739b33
+SIZE (tiny_proxy-0.2.0.tar.gz) = 12264
diff --git a/net/py-tiny-proxy/pkg-descr b/net/py-tiny-proxy/pkg-descr
new file mode 100644
index 000000000000..d3c28070e2d1
--- /dev/null
+++ b/net/py-tiny-proxy/pkg-descr
@@ -0,0 +1,3 @@
+Simple proxy (SOCKS4(a), SOCKS5(h), HTTP tunnel) server built with
+anyio. It is used for testing python-socks, aiohttp-socks and
+httpx-socks packages.