Complete rewrite of secubox-app-mitmproxy to use native OpenWrt packages instead of pip runtime installation. New packages created: - mitmproxy (10.0.0) - Native build from GitHub source - python3-mitmproxy-rs (0.5.2) - Rust extension with PyO3 - python3-h11 (0.14.0) - HTTP/1.1 protocol - python3-h2 (4.1.0) - HTTP/2 protocol - python3-hyperframe (6.0.1) - HTTP/2 framing - python3-hpack (4.0.0) - HPACK compression - python3-wsproto (1.2.0) - WebSocket protocol - python3-aioquic (1.0.0) - QUIC/HTTP3 support - python3-pylsqpack (0.3.18) - QPACK encoder - python3-kaitaistruct (0.10) - Binary parsing - python3-publicsuffix2 (2.20191221) - Domain parsing - python3-ldap3 (2.9.1) - LDAP support Changes to secubox-app-mitmproxy: - Removed pip dependency, now uses native +mitmproxy package - Removed wrapper scripts (native binaries from mitmproxy package) - Fixed iptables cleanup to use configured port - Bumped version to 2.0.0 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
47 lines
1.2 KiB
Makefile
47 lines
1.2 KiB
Makefile
#
|
|
# Copyright (C) 2025 CyberMind.fr (SecuBox)
|
|
#
|
|
# This is free software, licensed under the MIT License.
|
|
#
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
PKG_NAME:=python3-mitmproxy-rs
|
|
PKG_VERSION:=0.5.2
|
|
PKG_RELEASE:=1
|
|
|
|
PYPI_NAME:=mitmproxy_rs
|
|
PKG_HASH:=7583bea1ff5ea8e96c5cf12127e1698c52725f1dfdac6802891a4675b7287ba5
|
|
|
|
PKG_LICENSE:=MIT
|
|
PKG_LICENSE_FILES:=LICENSE
|
|
PKG_MAINTAINER:=CyberMind <contact@cybermind.fr>
|
|
|
|
PKG_BUILD_DEPENDS:=python-maturin/host
|
|
|
|
include $(TOPDIR)/feeds/packages/lang/python/pypi.mk
|
|
include $(INCLUDE_DIR)/package.mk
|
|
include $(TOPDIR)/feeds/packages/lang/python/python3-package.mk
|
|
|
|
define Package/python3-mitmproxy-rs
|
|
SECTION:=lang
|
|
CATEGORY:=Languages
|
|
SUBMENU:=Python
|
|
TITLE:=Rust components for mitmproxy
|
|
URL:=https://github.com/mitmproxy/mitmproxy_rs
|
|
DEPENDS:= \
|
|
+python3-light \
|
|
+python3-asyncio \
|
|
$(RUST_ARCH_DEPENDS)
|
|
endef
|
|
|
|
define Package/python3-mitmproxy-rs/description
|
|
The mitmproxy_rs package contains mitmproxy's Rust components,
|
|
including WireGuard Mode and Local Redirect Mode support.
|
|
Built with PyO3 for Python bindings.
|
|
endef
|
|
|
|
$(eval $(call Py3Package,python3-mitmproxy-rs))
|
|
$(eval $(call BuildPackage,python3-mitmproxy-rs))
|
|
$(eval $(call BuildPackage,python3-mitmproxy-rs-src))
|