From c4d4d544a37efc45bd5482e62e1fcdbe7d5993d3 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Wed, 1 Jan 2025 06:30:58 +0000 Subject: gentoo auto-resync : 01:01:2025 - 06:30:57 --- net-proxy/mitmproxy-rs/Manifest | 6 +++ net-proxy/mitmproxy-rs/metadata.xml | 12 +++++ net-proxy/mitmproxy-rs/mitmproxy-rs-0.11.1.ebuild | 54 +++++++++++++++++++++++ 3 files changed, 72 insertions(+) create mode 100644 net-proxy/mitmproxy-rs/Manifest create mode 100644 net-proxy/mitmproxy-rs/metadata.xml create mode 100644 net-proxy/mitmproxy-rs/mitmproxy-rs-0.11.1.ebuild (limited to 'net-proxy/mitmproxy-rs') diff --git a/net-proxy/mitmproxy-rs/Manifest b/net-proxy/mitmproxy-rs/Manifest new file mode 100644 index 000000000000..c570bfac6f66 --- /dev/null +++ b/net-proxy/mitmproxy-rs/Manifest @@ -0,0 +1,6 @@ +DIST boringtun-e3252d9c4f4c8fc628995330f45369effd4660a1.gh.tar.gz 219190 BLAKE2B d20cb9619cee7d2f8db118deb14c13ddc1ec1574902f1fa24d2cebc5d2838f95ab3fb252413616d8af4d4d362b2031fdd447021bde4baf554cb8c7eb68cee77b SHA512 3dd2bdcc2e94714b448df72eab54bfddb9e436a4799fe0b266777b3bac5debdeb4495f31495736c98f86725921758ccbdd0c25a2404e4a4472dd8c6d14771b7c +DIST mitmproxy-rs-0.11.1-crates.tar.xz 40875272 BLAKE2B d033617908ac719962483b13d4f18a4470cdcaaf953246e7b63a6cc0fb78bdb7459e7fb81b9bff520b2f30edc7720df435a42a1da9efe8a893954c8afea042e5 SHA512 639319cf7163832b7f8aa44733ed50e8d429a73bd3458c0a40e4e86b4a2c03567f40cf9f1df045f7c0d880a63578132efe2791934e43427b57abd44e4e7f52e6 +DIST mitmproxy_rs-0.11.1.tar.gz 1184746 BLAKE2B 6e4b7f1c50d45821664e7c448398e5497b33310b0ecc268fa2ed5d4559a8a51f47e76366d939edda9b9923f2aaeb3205646bbc995ba45b068600926a9a6d1d6a SHA512 c72e8c36bc7de6a34cc99eb0cbc1cc3deb6c51d994e9e56acbb02803846fd87f6b671889b1b8c019ac7e84ecdf8939cda5bc62f5f5bd1dacdb53f75c9f1fb1c4 +DIST smoltcp-ef67e7b46cabf49783053cbf68d8671ed97ff8d4.gh.tar.gz 334018 BLAKE2B 48c906c3c37ba691fee9889ce526cf5d4426b087fcf284eaecb934a349d6eb3da971dd2de172f3a29bfcd05f5a5449de015342feb0add23ac490e9a9f8b6fce1 SHA512 72020f063215ff5cede1fac6d9f17251f3dfa684b1f7a1c27700a629221e928859d02d099e1382ae82e66165dc83ea54baa3e907109d8cd58b90c93b58b71d45 +EBUILD mitmproxy-rs-0.11.1.ebuild 1293 BLAKE2B 3f658c3de1e03db0b59cf7dc869696fa5a44cb24e457f06375d8395f669a450a1e58db0fbb1af6f1aec388909eef1ea3f98cbdb416e0a67449d636f3cad6ee6b SHA512 a9a0be488a926191242b06760a7eb445ce2f2dc11fc5091dd59102539e24d1f7b67cf9d47d67fa27b1c3736d9f19a325cb9dcaa169e221006981651188c46898 +MISC metadata.xml 385 BLAKE2B 46e91df3c3f0659cc1b690d678dd5a3ae37f69d6b65f6dd236200ba52896796e34026f2c0bb4b3b6b23610147a7eb7ef7246bc7a072aa3ec739bbd892a0922ad SHA512 2fd73480cc6a3fcc681c176e48298eb930815e1cb2631ddb06fc4783fe950502c14638e158796284206d1008f97d0c52a152c4fdb5029af392917e5df5bafb78 diff --git a/net-proxy/mitmproxy-rs/metadata.xml b/net-proxy/mitmproxy-rs/metadata.xml new file mode 100644 index 000000000000..2f0242522cf8 --- /dev/null +++ b/net-proxy/mitmproxy-rs/metadata.xml @@ -0,0 +1,12 @@ + + + + + mgorny@gentoo.org + Michał Górny + + + mitmproxy/mitmproxy_rs + mitmproxy-rs + + diff --git a/net-proxy/mitmproxy-rs/mitmproxy-rs-0.11.1.ebuild b/net-proxy/mitmproxy-rs/mitmproxy-rs-0.11.1.ebuild new file mode 100644 index 000000000000..9f84fe051d70 --- /dev/null +++ b/net-proxy/mitmproxy-rs/mitmproxy-rs-0.11.1.ebuild @@ -0,0 +1,54 @@ +# Copyright 2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +CRATES=" +" + +declare -A GIT_CRATES=( + [boringtun]='https://github.com/cloudflare/boringtun;e3252d9c4f4c8fc628995330f45369effd4660a1;boringtun-%commit%/boringtun' + [smoltcp]='https://github.com/smoltcp-rs/smoltcp;ef67e7b46cabf49783053cbf68d8671ed97ff8d4;smoltcp-%commit%' +) + +DISTUTILS_EXT=1 +DISTUTILS_USE_PEP517=maturin +PYTHON_COMPAT=( python3_{10..13} ) + +inherit cargo distutils-r1 pypi + +DESCRIPTION="mitmproxy's Rust bits" +HOMEPAGE=" + https://github.com/mitmproxy/mitmproxy_rs/ + https://pypi.org/project/mitmproxy-rs/ +" +SRC_URI+=" + ${CARGO_CRATE_URIS} +" +if [[ ${PKGBUMPING} != ${PVR} ]]; then + SRC_URI+=" + https://dev.gentoo.org/~mgorny/dist/${P}-crates.tar.xz + " +fi + +LICENSE="MIT" +# Dependent crate licenses +LICENSE+=" + 0BSD Apache-2.0 Apache-2.0-with-LLVM-exceptions BSD-2 BSD ISC + LGPL-3+ MIT Unicode-DFS-2016 WTFPL-2 +" +SLOT="0" +KEYWORDS="~amd64" + +src_prepare() { + distutils-r1_src_prepare + + # replace upstream crate substitution with our crate substitution, sigh + sed -i -e '/git =/d' Cargo.toml || die + sed -i -e '/\[patch\./d' -e '/boringtun/i[patch.crates-io]' \ + "${CARGO_HOME}/config.toml" || die +} + +python_test() { + cargo_src_test --manifest-path mitmproxy-rs/Cargo.toml +} -- cgit v1.2.3