git: dd5cfb85816c - main - www/mitmproxy: Remove port

From: Daniel Engberg <diizzy_at_FreeBSD.org>
Date: Sun, 02 Nov 2025 09:00:45 UTC
The branch main has been updated by diizzy:

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

commit dd5cfb85816c391176bbb6d58d2c84169a8c259f
Author:     Daniel Engberg <diizzy@FreeBSD.org>
AuthorDate: 2025-11-01 23:22:57 +0000
Commit:     Daniel Engberg <diizzy@FreeBSD.org>
CommitDate: 2025-11-02 08:50:26 +0000

    www/mitmproxy: Remove port
    
    Marked broken in 2022 and no patches submitted unbreak and/or
    update port to a recent version
---
 MOVED                                              |  1 +
 www/Makefile                                       |  1 -
 www/mitmproxy/Makefile                             | 59 ----------------------
 www/mitmproxy/distinfo                             |  3 --
 www/mitmproxy/files/patch-setup.py                 | 37 --------------
 .../patch-test__mitmproxy__addons__test_view.py    | 11 ----
 .../patch-test__mitmproxy__platform__test_pf.py    | 19 -------
 .../files/patch-test__mitmproxy__test_version.py   | 24 ---------
 .../patch-test__mitmproxy__utils__test_emoji.py    | 11 ----
 www/mitmproxy/pkg-descr                            |  6 ---
 10 files changed, 1 insertion(+), 171 deletions(-)

diff --git a/MOVED b/MOVED
index 6eff7eacfbff..04a5f4647dda 100644
--- a/MOVED
+++ b/MOVED
@@ -4855,3 +4855,4 @@ databases/foundationdb71-server||2025-11-01|Remove broken port
 databases/foundationdb73-client||2025-11-01|Remove broken port
 databases/foundationdb73-server||2025-11-01|Remove broken port
 databases/erlfdb||2025-11-01|Depends on removed port databases/foundationdb71-client
+www/mitmproxy||2025-11-02|Remove broken port
diff --git a/www/Makefile b/www/Makefile
index 5eb580c937ab..c50f67c71a5f 100644
--- a/www/Makefile
+++ b/www/Makefile
@@ -400,7 +400,6 @@
     SUBDIR += minio-client
     SUBDIR += miniserve
     SUBDIR += mirrorselect
-    SUBDIR += mitmproxy
     SUBDIR += mknmz-wwwoffle
     SUBDIR += mod_asn
     SUBDIR += mod_auth_cas
diff --git a/www/mitmproxy/Makefile b/www/mitmproxy/Makefile
deleted file mode 100644
index e557691dda61..000000000000
--- a/www/mitmproxy/Makefile
+++ /dev/null
@@ -1,59 +0,0 @@
-PORTNAME=	mitmproxy
-PORTVERSION=	7.0.4
-DISTVERSIONPREFIX=	v
-PORTREVISION=	3
-CATEGORIES=	www python
-
-MAINTAINER=	gaod@hychen.org
-COMMENT=	SSL-capable man-in-the-middle proxy
-WWW=		https://mitmproxy.org/
-
-LICENSE=	MIT
-LICENSE_FILE=	${WRKSRC}/LICENSE
-
-BROKEN=		incorrect depends: depends on package: py38-asgiref>=3.2.10<3.5, py38-wsproto>=1.0.0<1.1
-
-RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}asgiref>=3.2.10<3.5:www/py-asgiref@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}blinker>=1.4<1.5:devel/py-blinker@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}brotli>=1.0<1.1:archivers/py-brotli@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}certifi>=2019.9.11:security/py-certifi@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}click>=7.0<8.1:devel/py-click@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}flask>=1.1.1<2.1:www/py-flask@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}h11>=0.11<0.13:net/py-h11@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}h2>=4.0<5:www/py-h2@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}hyperframe>=6.0<7:www/py-hyperframe@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}kaitaistruct>=0.7<0.10:devel/py-kaitaistruct@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}ldap3>=2.8<2.10:net/py-ldap3@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}markupsafe>=2.0.0:textproc/py-markupsafe@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}msgpack>=1.0.0<1.1.0:devel/py-msgpack@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}openssl>=20.0<20.1:security/py-openssl@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}passlib>=1.6.5<1.8:security/py-passlib@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}protobuf>=3.14<3.19:devel/py-protobuf@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}publicsuffix2>=2.20190812<3:dns/py-publicsuffix2@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}pyparsing>=2.4.2<2.5:devel/py-pyparsing@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}pyperclip>=1.6.0<1.9:devel/py-pyperclip@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}ruamel.yaml>=0.16<0.17.17:devel/py-ruamel.yaml@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}sortedcontainers>=2.3<2.5:devel/py-sortedcontainers@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}sqlite3>0:databases/py-sqlite3@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}tornado>=4.3<7:www/py-tornado@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}urwid>=2.1.1<2.2:devel/py-urwid@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}wsproto>=1.0.0<1.1:net/py-wsproto@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}zstandard>=0.11<0.16:archivers/py-zstandard@${PY_FLAVOR}
-TEST_DEPENDS=	${PYTHON_PKGNAMEPREFIX}hypothesis>0:devel/py-hypothesis@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}parver>0:devel/py-parver@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}pytest-asyncio>0:devel/py-pytest-asyncio@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}pytest-cov>0:devel/py-pytest-cov@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}pytest-timeout>0:devel/py-pytest-timeout@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}pytest-xdist>0:devel/py-pytest-xdist@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}pytest>0:devel/py-pytest@${PY_FLAVOR}
-
-USES=		cpe python
-USE_GITHUB=	yes
-USE_PYTHON=	autoplist cryptography distutils noflavors
-
-NO_ARCH=	yes
-
-do-test:
-	@cd ${TEST_WRKSRC} && ${SETENV} ${TEST_ENV} ${PYTHON_CMD} -m pytest -rs -v
-
-.include <bsd.port.mk>
diff --git a/www/mitmproxy/distinfo b/www/mitmproxy/distinfo
deleted file mode 100644
index 05b98893904b..000000000000
--- a/www/mitmproxy/distinfo
+++ /dev/null
@@ -1,3 +0,0 @@
-TIMESTAMP = 1644773860
-SHA256 (mitmproxy-mitmproxy-v7.0.4_GH0.tar.gz) = 8728d18c69053f0043acebcdabf46f2eeea51f0f0b60c528e1d356cf48ed2ca2
-SIZE (mitmproxy-mitmproxy-v7.0.4_GH0.tar.gz) = 27312748
diff --git a/www/mitmproxy/files/patch-setup.py b/www/mitmproxy/files/patch-setup.py
deleted file mode 100644
index 96342f41ae46..000000000000
--- a/www/mitmproxy/files/patch-setup.py
+++ /dev/null
@@ -1,37 +0,0 @@
---- setup.py.orig	2021-09-28 16:43:29 UTC
-+++ setup.py
-@@ -67,14 +67,14 @@ setup(
-     # https://packaging.python.org/en/latest/requirements/#install-requires
-     # It is not considered best practice to use install_requires to pin dependencies to specific versions.
-     install_requires=[
--        "asgiref>=3.2.10,<3.5",
-+        "asgiref>=3.2.10,<3.6",
-         "blinker>=1.4, <1.5",
-         "Brotli>=1.0,<1.1",
-         "certifi>=2019.9.11",  # no semver here - this should always be on the last release!
-         "click>=7.0,<8.1",
-         "cryptography>=3.3,<3.5",
-         "flask>=1.1.1,<2.1",
--        "h11>=0.11,<0.13",
-+        "h11>=0.11,<0.14",
-         "h2>=4.0,<5",
-         "hyperframe>=6.0,<7",
-         "kaitaistruct>=0.7,<0.10",
-@@ -83,7 +83,7 @@ setup(
-         "passlib>=1.6.5, <1.8",
-         "protobuf>=3.14,<3.19",
-         "pyOpenSSL>=20.0,<20.1",
--        "pyparsing>=2.4.2,<2.5",
-+        "pyparsing>=2.4.2,<3.1",
-         "pyperclip>=1.6.0,<1.9",
-         "ruamel.yaml>=0.16,<0.17.17",
-         "sortedcontainers>=2.3,<2.5",
-@@ -91,7 +91,7 @@ setup(
-         "urwid>=2.1.1,<2.2",
-         "wsproto>=1.0,<1.1",
-         "publicsuffix2>=2.20190812,<3",
--        "zstandard>=0.11,<0.16",
-+        "zstandard>=0.11,<0.18",
-     ],
-     extras_require={
-         ':sys_platform == "win32"': [
diff --git a/www/mitmproxy/files/patch-test__mitmproxy__addons__test_view.py b/www/mitmproxy/files/patch-test__mitmproxy__addons__test_view.py
deleted file mode 100644
index 9225a20c0e00..000000000000
--- a/www/mitmproxy/files/patch-test__mitmproxy__addons__test_view.py
+++ /dev/null
@@ -1,11 +0,0 @@
---- test/mitmproxy/addons/test_view.py.orig	2021-09-28 16:43:29 UTC
-+++ test/mitmproxy/addons/test_view.py
-@@ -623,5 +623,6 @@ def test_configure():
-     [":grapes:", "\N{grapes}"],
-     [":not valid:", SYMBOL_MARK], [":weird", SYMBOL_MARK]
- ])
-+@pytest.mark.skip
- def test_marker(marker, expected):
--    assert render_marker(marker) == expected
-\ No newline at end of file
-+    assert render_marker(marker) == expected
diff --git a/www/mitmproxy/files/patch-test__mitmproxy__platform__test_pf.py b/www/mitmproxy/files/patch-test__mitmproxy__platform__test_pf.py
deleted file mode 100644
index 22ade66ad42e..000000000000
--- a/www/mitmproxy/files/patch-test__mitmproxy__platform__test_pf.py
+++ /dev/null
@@ -1,19 +0,0 @@
---- test/mitmproxy/platform/test_pf.py.orig	2021-09-28 16:43:29 UTC
-+++ test/mitmproxy/platform/test_pf.py
-@@ -2,14 +2,11 @@ import sys
- import pytest
- from mitmproxy.platform import pf
- 
--
-+@pytest.mark.skip
- class TestLookup:
- 
-     def test_simple(self, tdata):
--        if sys.platform == "freebsd10":
--            p = tdata.path("mitmproxy/data/pf02")
--        else:
--            p = tdata.path("mitmproxy/data/pf01")
-+        p = tdata.path("mitmproxy/data/pf01")
-         with open(p, "rb") as f:
-             d = f.read()
- 
diff --git a/www/mitmproxy/files/patch-test__mitmproxy__test_version.py b/www/mitmproxy/files/patch-test__mitmproxy__test_version.py
deleted file mode 100644
index 153ff273fb73..000000000000
--- a/www/mitmproxy/files/patch-test__mitmproxy__test_version.py
+++ /dev/null
@@ -1,24 +0,0 @@
---- test/mitmproxy/test_version.py.orig	2021-09-28 16:43:29 UTC
-+++ test/mitmproxy/test_version.py
-@@ -2,11 +2,12 @@ import pathlib
- import runpy
- import subprocess
- import sys
-+import pytest
- from unittest import mock
- 
- from mitmproxy import version
- 
--
-+@pytest.mark.skip
- def test_version(capsys):
-     here = pathlib.Path(__file__).absolute().parent
-     version_file = here / ".." / ".." / "mitmproxy" / "version.py"
-@@ -16,6 +17,7 @@ def test_version(capsys):
-     assert stdout.strip() == version.VERSION
- 
- 
-+@pytest.mark.skip
- def test_get_version():
-     version.VERSION = "3.0.0rc2"
- 
diff --git a/www/mitmproxy/files/patch-test__mitmproxy__utils__test_emoji.py b/www/mitmproxy/files/patch-test__mitmproxy__utils__test_emoji.py
deleted file mode 100644
index ab70a4957b60..000000000000
--- a/www/mitmproxy/files/patch-test__mitmproxy__utils__test_emoji.py
+++ /dev/null
@@ -1,11 +0,0 @@
---- test/mitmproxy/utils/test_emoji.py.orig	2021-09-28 16:43:29 UTC
-+++ test/mitmproxy/utils/test_emoji.py
-@@ -1,6 +1,7 @@
-+import pytest
- from mitmproxy.utils import emoji
- from mitmproxy.tools.console.common import SYMBOL_MARK
- 
--
-+@pytest.mark.xfail
- def test_emoji():
-     assert emoji.emoji[":default:"] == SYMBOL_MARK
diff --git a/www/mitmproxy/pkg-descr b/www/mitmproxy/pkg-descr
deleted file mode 100644
index 65b142c2d7b1..000000000000
--- a/www/mitmproxy/pkg-descr
+++ /dev/null
@@ -1,6 +0,0 @@
-'mitmproxy' is an SSL-capable man-in-the-middle HTTP proxy. It provides a
-console interface that allows traffic flows to be inspected and edited on the
-fly.
-
-'mitmdump' is the command-line version of mitmproxy, with the same
-functionality but without the frills. Think tcpdump for HTTP.