From 56e2b96b36233cbd9d7ceaca7a839c265d439a24 Mon Sep 17 00:00:00 2001 From: John Mitrich Date: Wed, 29 Jul 2026 18:02:11 +0300 Subject: [PATCH 1/5] New package: python3-mitmproxy-linux-0.12.11 --- srcpkgs/python3-mitmproxy-linux/template | 39 ++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 srcpkgs/python3-mitmproxy-linux/template diff --git a/srcpkgs/python3-mitmproxy-linux/template b/srcpkgs/python3-mitmproxy-linux/template new file mode 100644 index 00000000000000..2787f2333fb8e8 --- /dev/null +++ b/srcpkgs/python3-mitmproxy-linux/template @@ -0,0 +1,39 @@ +# Template file for 'python3-mitmproxy-linux' +pkgname=python3-mitmproxy-linux +version=0.12.11 +revision=1 +archs="x86_64 aarch64" +build_style=fetch +hostmakedepends="python3-packaging-bootstrap unzip" +makedepends="python3" +short_desc="Linux native binary for mitmproxy" +maintainer="Orphaned " +license="MIT" +homepage="https://github.com/mitmproxy/mitmproxy_rs" +# Prebuilt manylinux wheel; building from source requires the bpfel-unknown-none +# Rust target (eBPF) which is unavailable in stable Rust without -Zbuild-std. +_pypi_base="https://files.pythonhosted.org/packages" + +if [ "$XBPS_TARGET_MACHINE" = "x86_64" ]; then + _distfile="${_pypi_base}/53/db/1a4295e7fc6d6d975ce93a49107514bd2e13873a39c643c75109391fd336/mitmproxy_linux-${version}-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl" + _checksum=0e5670a6b82546ebc0f947d79adfcb3c001ba3136a10ce848a2f4e2f336611c4 +elif [ "$XBPS_TARGET_MACHINE" = "aarch64" ]; then + _distfile="${_pypi_base}/f0/2a/ad2ae5e4c6383175c89fbc1c24c9e084a2f5b9325951e91cc3eb4b2e1649/mitmproxy_linux-${version}-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl" + _checksum=3de4f96c11565cca2d051655f8ca23f8f24f4b3220e9ca3b0ad81007f293e9da +fi + +license_checksum=fb21d4527ce8b8bb01ece568a4b446cb3b547ae61e24764adb2be9a3d18bb5c7 + +distfiles="${_distfile} + https://raw.githubusercontent.com/mitmproxy/mitmproxy_rs/v${version}/LICENSE" +checksum="${_checksum} + ${license_checksum}" + +_wheel="${_distfile##*/}" + +do_install() { + mkdir -p "${DESTDIR}/${py3_sitelib}" + unzip -oq "${XBPS_SRCDISTDIR}/${pkgname}-${version}/${_wheel}" -d "${DESTDIR}/${py3_sitelib}" + rm -f "${DESTDIR}/${py3_sitelib}/mitmproxy_linux-${version}.dist-info/RECORD" + vlicense LICENSE +} From a173dac9d3885477fce4aa9e0dcf81c1c50c70b4 Mon Sep 17 00:00:00 2001 From: John Mitrich Date: Wed, 29 Jul 2026 18:02:22 +0300 Subject: [PATCH 2/5] python3-bcrypt: update to 5.0.0. --- srcpkgs/python3-bcrypt/template | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/srcpkgs/python3-bcrypt/template b/srcpkgs/python3-bcrypt/template index 3cebc6388846ee..69a1840faebcee 100644 --- a/srcpkgs/python3-bcrypt/template +++ b/srcpkgs/python3-bcrypt/template @@ -1,7 +1,7 @@ # Template file for 'python3-bcrypt' pkgname=python3-bcrypt -version=4.1.2 -revision=3 +version=5.0.0 +revision=1 build_style=python3-pep517 build_helper="rust" hostmakedepends="python3-setuptools-rust python3-wheel python3-cffi cargo" @@ -14,4 +14,4 @@ license="Apache-2.0" homepage="https://github.com/pyca/bcrypt" changelog="https://github.com/pyca/bcrypt/blob/main/README.rst#changelog" distfiles="${PYPI_SITE}/b/bcrypt/bcrypt-${version}.tar.gz" -checksum=33313a1200a3ae90b75587ceac502b048b840fc69e7f7a0905b5f87fac7a1258 +checksum=f748f7c2d6fd375cc93d3fba7ef4a9e3a092421b8dbf34d8d4dc06be9492dfdd From 7cc008f36c1a43ae31b66c574e846454c44ce01d Mon Sep 17 00:00:00 2001 From: John Mitrich Date: Wed, 29 Jul 2026 18:02:31 +0300 Subject: [PATCH 3/5] python3-mitmproxy-rs: update to 0.12.11. --- srcpkgs/python3-mitmproxy-rs/template | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/srcpkgs/python3-mitmproxy-rs/template b/srcpkgs/python3-mitmproxy-rs/template index 0b6726e6b07f63..587dd09b241ee5 100644 --- a/srcpkgs/python3-mitmproxy-rs/template +++ b/srcpkgs/python3-mitmproxy-rs/template @@ -1,18 +1,19 @@ # Template file for 'python3-mitmproxy-rs' pkgname=python3-mitmproxy-rs -version=0.11.1 -revision=2 +version=0.12.11 +revision=1 build_style=python3-pep517 build_helper="rust" hostmakedepends="maturin cargo" makedepends="rust-std python3" +depends="python3-mitmproxy-linux" short_desc="Rust bits in mitmproxy" maintainer="Orphaned " license="MIT" homepage="https://github.com/mitmproxy/mitmproxy_rs" changelog="https://github.com/mitmproxy/mitmproxy_rs/raw/main/CHANGELOG.md" distfiles="${PYPI_SITE}/m/mitmproxy_rs/mitmproxy_rs-${version}.tar.gz" -checksum=a77c022bc0563f9d56fa0809a27013ed2fb5d3145c599098cb1175e7326e7829 +checksum=6f5ecf3dd3c21e56191b84fc90364dc4d1dc95c660beedab4c816a0119ecb785 replaces="python3-mitmproxy_wireguard>=0" post_install() { From dc9cad3b8192985e88a71575b53687db77094579 Mon Sep 17 00:00:00 2001 From: John Mitrich Date: Wed, 29 Jul 2026 18:02:47 +0300 Subject: [PATCH 4/5] mitmproxy: update to 12.2.3. --- srcpkgs/mitmproxy/template | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/srcpkgs/mitmproxy/template b/srcpkgs/mitmproxy/template index d36bce98b584e0..4dfcf6bc1f7a80 100644 --- a/srcpkgs/mitmproxy/template +++ b/srcpkgs/mitmproxy/template @@ -1,13 +1,13 @@ # Template file for 'mitmproxy' pkgname=mitmproxy -version=11.1.3 -revision=2 +version=12.2.3 +revision=1 build_style=python3-pep517 hostmakedepends="python3-setuptools" depends="python3-aioquic python3-Brotli python3-Flask python3-argon2 python3-asgiref - python3-certifi python3-cryptography python3-h11 python3-h2 python3-hyperframe + python3-bcrypt python3-certifi python3-cryptography python3-h11 python3-h2 python3-hyperframe python3-kaitaistruct python3-ldap3 python3-mitmproxy-rs python3-msgpack python3-openssl - python3-parsing python3-passlib python3-publicsuffix2 python3-pyperclip python3-ruamel.yaml + python3-parsing python3-publicsuffix2 python3-pyperclip python3-ruamel.yaml python3-sortedcontainers python3-tornado python3-urwid python3-wsproto python3-zstandard" checkdepends="${depends} python3-hypothesis python3-parver python3-pytest-asyncio python3-pytest-cov python3-pytest-timeout python3-requests" @@ -17,7 +17,7 @@ license="MIT" homepage="https://mitmproxy.org" changelog="https://raw.githubusercontent.com/mitmproxy/mitmproxy/main/CHANGELOG.md" distfiles="https://github.com/mitmproxy/mitmproxy/archive/refs/tags/v${version}.tar.gz" -checksum=bb4f6fc8e9ac64b4c725811983e3e3ff6b2b18b2a992d80d816811709e9efde5 +checksum=39073f414cdb9a0bf438b875da0e79bb306bcb7d1331b580763886f509f78c1b _skip="(test_get_version)" # This test fails without a git repository _skip+="or(test_wireguard)" # Tries to execute a helper binary compiled for glibc From cf609aa6d9a956d1499d61fc0fee2db396302a2e Mon Sep 17 00:00:00 2001 From: John Mitrich Date: Wed, 29 Jul 2026 23:59:07 +0300 Subject: [PATCH 5/5] New package: rust-bpf-linker-0.10.4 --- .../patches/use-stable-rust.patch | 9 +++++ srcpkgs/python3-mitmproxy-linux/template | 38 ++++++------------- srcpkgs/python3-mitmproxy-rs/template | 4 +- srcpkgs/rust-bpf-linker/template | 22 +++++++++++ 4 files changed, 44 insertions(+), 29 deletions(-) create mode 100644 srcpkgs/python3-mitmproxy-linux/patches/use-stable-rust.patch create mode 100644 srcpkgs/rust-bpf-linker/template diff --git a/srcpkgs/python3-mitmproxy-linux/patches/use-stable-rust.patch b/srcpkgs/python3-mitmproxy-linux/patches/use-stable-rust.patch new file mode 100644 index 00000000000000..ebf4643da47141 --- /dev/null +++ b/srcpkgs/python3-mitmproxy-linux/patches/use-stable-rust.patch @@ -0,0 +1,9 @@ +--- a/mitmproxy-linux/build.rs ++++ b/mitmproxy-linux/build.rs +@@ -31,5 +31,5 @@ fn main() -> anyhow::Result<()> { + .as_str(), + ..Default::default() + }; +- aya_build::build_ebpf([ebpf_package], Toolchain::default()) ++ aya_build::build_ebpf([ebpf_package], Toolchain::Custom("stable")) + } diff --git a/srcpkgs/python3-mitmproxy-linux/template b/srcpkgs/python3-mitmproxy-linux/template index 2787f2333fb8e8..671e06859df2ca 100644 --- a/srcpkgs/python3-mitmproxy-linux/template +++ b/srcpkgs/python3-mitmproxy-linux/template @@ -2,38 +2,22 @@ pkgname=python3-mitmproxy-linux version=0.12.11 revision=1 -archs="x86_64 aarch64" -build_style=fetch -hostmakedepends="python3-packaging-bootstrap unzip" -makedepends="python3" +build_style=python3-pep517 +build_helper="rust" +hostmakedepends="maturin cargo rust-bpf-linker llvm22-devel rust-src" +makedepends="rust-std python3-devel" +depends="python3" short_desc="Linux native binary for mitmproxy" maintainer="Orphaned " license="MIT" homepage="https://github.com/mitmproxy/mitmproxy_rs" -# Prebuilt manylinux wheel; building from source requires the bpfel-unknown-none -# Rust target (eBPF) which is unavailable in stable Rust without -Zbuild-std. -_pypi_base="https://files.pythonhosted.org/packages" +changelog="https://github.com/mitmproxy/mitmproxy_rs/raw/main/CHANGELOG.md" +distfiles="${PYPI_SITE}/m/mitmproxy_linux/mitmproxy_linux-${version}.tar.gz" +checksum=3155d4aa6b3e038f97b39ed5aa7b1fc89e5b7d25d119a19581aa472dc606ae5c -if [ "$XBPS_TARGET_MACHINE" = "x86_64" ]; then - _distfile="${_pypi_base}/53/db/1a4295e7fc6d6d975ce93a49107514bd2e13873a39c643c75109391fd336/mitmproxy_linux-${version}-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl" - _checksum=0e5670a6b82546ebc0f947d79adfcb3c001ba3136a10ce848a2f4e2f336611c4 -elif [ "$XBPS_TARGET_MACHINE" = "aarch64" ]; then - _distfile="${_pypi_base}/f0/2a/ad2ae5e4c6383175c89fbc1c24c9e084a2f5b9325951e91cc3eb4b2e1649/mitmproxy_linux-${version}-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl" - _checksum=3de4f96c11565cca2d051655f8ca23f8f24f4b3220e9ca3b0ad81007f293e9da -fi +export LLVM_SYS_221_PREFIX=/usr/lib/llvm/22 +export RUSTC_BOOTSTRAP=1 -license_checksum=fb21d4527ce8b8bb01ece568a4b446cb3b547ae61e24764adb2be9a3d18bb5c7 - -distfiles="${_distfile} - https://raw.githubusercontent.com/mitmproxy/mitmproxy_rs/v${version}/LICENSE" -checksum="${_checksum} - ${license_checksum}" - -_wheel="${_distfile##*/}" - -do_install() { - mkdir -p "${DESTDIR}/${py3_sitelib}" - unzip -oq "${XBPS_SRCDISTDIR}/${pkgname}-${version}/${_wheel}" -d "${DESTDIR}/${py3_sitelib}" - rm -f "${DESTDIR}/${py3_sitelib}/mitmproxy_linux-${version}.dist-info/RECORD" +post_install() { vlicense LICENSE } diff --git a/srcpkgs/python3-mitmproxy-rs/template b/srcpkgs/python3-mitmproxy-rs/template index 587dd09b241ee5..d3e484d1f63ba9 100644 --- a/srcpkgs/python3-mitmproxy-rs/template +++ b/srcpkgs/python3-mitmproxy-rs/template @@ -5,8 +5,8 @@ revision=1 build_style=python3-pep517 build_helper="rust" hostmakedepends="maturin cargo" -makedepends="rust-std python3" -depends="python3-mitmproxy-linux" +makedepends="rust-std python3-devel" +depends="python3 python3-mitmproxy-linux" short_desc="Rust bits in mitmproxy" maintainer="Orphaned " license="MIT" diff --git a/srcpkgs/rust-bpf-linker/template b/srcpkgs/rust-bpf-linker/template new file mode 100644 index 00000000000000..77b07d3ac54e89 --- /dev/null +++ b/srcpkgs/rust-bpf-linker/template @@ -0,0 +1,22 @@ +# Template file for 'rust-bpf-linker' +pkgname=rust-bpf-linker +version=0.10.4 +revision=1 +build_style=cargo +hostmakedepends="cargo llvm22-devel" +makedepends="rust-std" +short_desc="BPF static linker" +maintainer="Orphaned " +license="MIT, Apache-2.0" +homepage="https://github.com/aya-rs/bpf-linker" +distfiles="https://github.com/aya-rs/bpf-linker/archive/refs/tags/v${version}.tar.gz" +checksum=32a5c6b3081386e7dca8765d2c7d23f9f7feed459ad135c914d8bab686168b3d +# tests require BPF sysroot and nightly Rust +make_check=no + +export LLVM_SYS_221_PREFIX=/usr/lib/llvm/22 + +post_install() { + vlicense LICENSE-MIT + vlicense LICENSE-APACHE +}