From 085e9dd70fa01486d9bcb4a09b1ede398eb296a8 Mon Sep 17 00:00:00 2001 From: Jason Elswick Date: Tue, 17 Mar 2026 17:05:14 -0500 Subject: [PATCH 1/4] New package: bpf-linker-0.10.2 --- srcpkgs/bpf-linker/template | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 srcpkgs/bpf-linker/template diff --git a/srcpkgs/bpf-linker/template b/srcpkgs/bpf-linker/template new file mode 100644 index 00000000000000..39e6a1c305b520 --- /dev/null +++ b/srcpkgs/bpf-linker/template @@ -0,0 +1,16 @@ +# Template file for 'bpf-linker' +pkgname=bpf-linker +version=0.10.2 +revision=1 +build_style=cargo +hostmakedepends="llvm21 clang21" +short_desc="Simple BPF static linker" +maintainer="Jason Elswick " +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=c4e99d548b6a0d90f6ef35acb348cf4b8944ff4ba62b2795aa688b3178d82141 + +post_install() { + vlicense LICENSE-MIT +} From 2adc0568938a829167adff790b0150d54e553788 Mon Sep 17 00:00:00 2001 From: Jason Elswick Date: Tue, 24 Mar 2026 10:24:54 -0500 Subject: [PATCH 2/4] New package: python3-mitmproxy-linux-0.12.9. --- srcpkgs/python3-mitmproxy-linux/template | 32 ++++++++++++++++++++++++ 1 file changed, 32 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..48a8c9a5a1b14b --- /dev/null +++ b/srcpkgs/python3-mitmproxy-linux/template @@ -0,0 +1,32 @@ +# Template file for 'python3-mitmproxy-linux' +pkgname=python3-mitmproxy-linux +version=0.12.9 +revision=1 +build_style=python3-pep517 +make_install_target="target/wheels/mitmproxy_linux-${version}-py3-none-manylinux_2_34_x86_64.whl" +hostmakedepends="maturin cargo git rustup bpf-linker rust-src" +makedepends="rust-std" +short_desc="Python bindings for mitmproxy's Rust code" +maintainer="Jason Elswick " +license="MIT" +homepage="https://github.com/mitmproxy/mitmproxy_rs" +changelog="https://github.com/mitmproxy/mitmproxy_rs/raw/main/CHANGELOG.md" +distfiles="https://github.com/mitmproxy/mitmproxy_rs/archive/refs/tags/v${version}.tar.gz" +checksum=fc20e6f576ab6e5726754555dc96f7753e3580de233f4f911cfbf224bf6dd790 +replaces="python3-mitmproxy_wireguard>=0" + +do_build() { + export RUSTUP_TOOLCHAIN=nightly + rustup-init -y --default-host "${XBPS_TARGET_MACHINE}-unknown-linux-gnu" + source /tmp/.cargo/env + rustup component add rust-src --toolchain "nightly-${XBPS_TARGET_MACHINE}-unknown-linux-gnu" + + pushd mitmproxy-linux + RUSTC_BOOTSTRAP=1 maturin build --release --strip + maturin build --release --strip + popd +} + +post_install() { + vlicense ${wrksrc}/LICENSE +} From 1ea9b02327b7a3ad8e509461d39c8bf1a91843b7 Mon Sep 17 00:00:00 2001 From: Jason Elswick Date: Tue, 24 Mar 2026 10:25:11 -0500 Subject: [PATCH 3/4] python3-mitmproxy-rs: update to 0.12.9. --- srcpkgs/python3-mitmproxy-rs/template | 31 ++++++++++++++++++--------- 1 file changed, 21 insertions(+), 10 deletions(-) diff --git a/srcpkgs/python3-mitmproxy-rs/template b/srcpkgs/python3-mitmproxy-rs/template index 0b6726e6b07f63..50c9cab3150b7b 100644 --- a/srcpkgs/python3-mitmproxy-rs/template +++ b/srcpkgs/python3-mitmproxy-rs/template @@ -1,20 +1,31 @@ # Template file for 'python3-mitmproxy-rs' pkgname=python3-mitmproxy-rs -version=0.11.1 -revision=2 +version=0.12.9 +revision=1 build_style=python3-pep517 -build_helper="rust" -hostmakedepends="maturin cargo" -makedepends="rust-std python3" -short_desc="Rust bits in mitmproxy" -maintainer="Orphaned " +make_install_target="target/wheels/mitmproxy_rs-${version}-cp312-abi3-manylinux_2_39_x86_64.whl" +hostmakedepends="maturin cargo git rustup bpf-linker rust-src" +depends="python3-mitmproxy-linux" +short_desc="Python bindings for mitmproxy's Rust code" +maintainer="Jason Elswick " 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 +distfiles="https://github.com/mitmproxy/mitmproxy_rs/archive/refs/tags/v${version}.tar.gz" +checksum=fc20e6f576ab6e5726754555dc96f7753e3580de233f4f911cfbf224bf6dd790 replaces="python3-mitmproxy_wireguard>=0" +do_build() { + export RUSTUP_TOOLCHAIN=nightly + rustup-init -y --default-host "${XBPS_TARGET_MACHINE}-unknown-linux-gnu" + source /tmp/.cargo/env + rustup component add rust-src --toolchain "nightly-${XBPS_TARGET_MACHINE}-unknown-linux-gnu" + + pushd mitmproxy-rs + maturin build --release --strip + popd +} + post_install() { - vlicense LICENSE + vlicense ${wrksrc}/LICENSE } From ff671cb740a374914cc52e04112256a9b26ec641 Mon Sep 17 00:00:00 2001 From: Jason Elswick Date: Tue, 24 Mar 2026 10:25:54 -0500 Subject: [PATCH 4/4] mitmproxy: update to 0.12.9. --- srcpkgs/mitmproxy/template | 41 +++++++++++++++++--------------------- 1 file changed, 18 insertions(+), 23 deletions(-) diff --git a/srcpkgs/mitmproxy/template b/srcpkgs/mitmproxy/template index d36bce98b584e0..d7e2878843b2c2 100644 --- a/srcpkgs/mitmproxy/template +++ b/srcpkgs/mitmproxy/template @@ -1,36 +1,31 @@ # Template file for 'mitmproxy' pkgname=mitmproxy -version=11.1.3 -revision=2 +version=12.2.1 +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-kaitaistruct python3-ldap3 python3-mitmproxy-rs python3-msgpack python3-openssl - python3-parsing python3-passlib 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" +depends="python3-aioquic python3-Brotli python3-Flask python3-argon2 python3-asgiref python3-certifi python3-cryptography python3-h11 python3-h2 python3-hyperframe python3-kaitaistruct python3-ldap3 python3-mitmproxy-rs python3-msgpack python3-openssl python3-parsing python3-publicsuffix2 python3-pyperclip python3-ruamel.yaml python3-sortedcontainers python3-tornado python3-urwid python3-wsproto python3-zstandard python3-bcrypt python3-mitmproxy-rs" +checkdepends="${depends} python3-hypothesis python3-parver python3-pytest-asyncio python3-pytest-cov python3-pytest-timeout python3-requests" short_desc="Interactive TLS-capable intercepting HTTP proxy" -maintainer="Orphaned " +maintainer="Jason Elswick " 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=73a131a533a163ac4d9da7695d0bf0c19422c2b47757c39da4833257732fdb90 -_skip="(test_get_version)" # This test fails without a git repository -_skip+="or(test_wireguard)" # Tries to execute a helper binary compiled for glibc - -if [ "${XBPS_TARGET_MACHINE%-musl}" = 'i686' ]; then - _skip+="or(test_refresh)" -fi - -if [ "${XBPS_BUILD_ENVIRONMENT}" = 'void-packages-ci' ]; then - _skip+="or(test_tun_mode)" -fi - -make_check_args="-k not($_skip)" +#_skip="(test_get_version)" # This test fails without a git repository +#_skip+="or(test_wireguard)" # Tries to execute a helper binary compiled for glibc +# +#if [ "${XBPS_TARGET_MACHINE%-musl}" = 'i686' ]; then +# _skip+="or(test_refresh)" +#fi +# +#if [ "${XBPS_BUILD_ENVIRONMENT}" = 'void-packages-ci' ]; then +# _skip+="or(test_tun_mode)" +#fi +# +#make_check_args="-k not($_skip)" post_install() { vlicense LICENSE