Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions srcpkgs/bpf-linker/template
Original file line number Diff line number Diff line change
@@ -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 <jason@jasondavid.us>"
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
}
41 changes: 18 additions & 23 deletions srcpkgs/mitmproxy/template
Original file line number Diff line number Diff line change
@@ -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 <orphan@voidlinux.org>"
maintainer="Jason Elswick <jason@jasondavid.us>"
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
Expand Down
32 changes: 32 additions & 0 deletions srcpkgs/python3-mitmproxy-linux/template
Original file line number Diff line number Diff line change
@@ -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 <jason@jasondavid.us>"
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
}
31 changes: 21 additions & 10 deletions srcpkgs/python3-mitmproxy-rs/template
Original file line number Diff line number Diff line change
@@ -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 <orphan@voidlinux.org>"
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 <jason@jasondavid.us>"
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
}
Loading