diff --git a/dev-util/cargo-audit/Manifest b/dev-util/cargo-audit/Manifest index ab4c22d63957..c67e7f32b65e 100644 --- a/dev-util/cargo-audit/Manifest +++ b/dev-util/cargo-audit/Manifest @@ -1,4 +1,6 @@ DIST cargo-audit-0.21.1-crates.tar.xz 25023216 BLAKE2B 191a4c733755c408d212530754298fbdf4c6fc87b3776361fe36570967bb39711f64251249b55b8a334b6106279e9a6c765d24daea414dc891bf140ad5f71336 SHA512 103f1dae07a994b6ca373d50a8b7a6787ceea638875ad33f6b11aabb69be35b9f5a5b9b7c8f6a155ab8572caa0a981769e30325ad958ffee09e63bb2fa8bfb7f DIST cargo-audit-0.21.1.tar.gz 1070976 BLAKE2B 2349195d099cdfa235df7ba081a4d8ce22f95c0b57b5236bda00349f73f3ced7ac03c8178e21e959a9512694cb735847f4f9d758166adc22cabbbc6a40c81f2e SHA512 7c18a3e9d243b60cb41980de60b5c446d45fad4a0240f06cd88d6d809ad606fd603af06c8cebc02d4b6e502412112318aea3ff2ae839907d5ba3bd9af6454d36 DIST cargo-audit-0.21.2.tar.gz 1071525 BLAKE2B 258275e71b101f603f7770d2fdbe8b467e99f0c8dacd527bdd0de91785ee403b0775b48002579b35b8309331d0f0aa7885cd78aad5579915d119f131b5fe9c36 SHA512 2e7dd4b44d4f9542606d353e1fdbddc3ff7a8a8da75b6731d8fa4b4bd1dfbe86040894cc4ee76061a326fd018bff1c6aaf42c0782ac6d24692f2019be37bd1c2 +DIST cargo-audit-0.22.0.tar.gz 1119344 BLAKE2B 5f82c8447a65e12ebbb02786d8991f80d160d3bad57880deb66a9ec2f861cfbeb08d67bb94a7fc7c9a011572d839b4ee182cca7a72ac9a890608786b9164cccd SHA512 9d0190b33095699f30f83d12b1d3fb41698830c977ba5f130541c7da975af0b5b30ed9d8e50d526930a06f6274a3df2c0da3af5a0cd14bffbaf4b30f8ee7e4ad DIST rustsec-cargo-audit-v0.21.2-crates.tar.xz 25115408 BLAKE2B 50dad43e88e74068439c53cf8d620e19086a81eff06d92d94627c9c997804049c68ce6285ac0c0af4bd7e98bac60bee0345036dc9c4a160c8bafae5ed6f30d25 SHA512 db8349b84e82d5db6a745566287f4978fa131f48f7df06b0f64da59560f2c1497189df0ca1e07fc04238de778dcfedffc359437033cecd3cf6a8f9e8ed6582f3 +DIST rustsec-cargo-audit-v0.22.0-crates.tar.xz 27791924 BLAKE2B 269ef04c6747711a45725a42655772cbaed12751879b9bee42fed8b33976b38ca456cee202a918ea2237bd98d271d8c395955478b01fd887404b9199e70d2378 SHA512 7fc86d4245999816e5750981f18a9e343154b961f4703c335be2a2a9594c2aeeb76d915011b4eefdd0f5db989fb2e90090430a128dd7ba9d84fdd1122ad47cf8 diff --git a/dev-util/cargo-audit/cargo-audit-0.22.0.ebuild b/dev-util/cargo-audit/cargo-audit-0.22.0.ebuild new file mode 100644 index 000000000000..7fead2231ea7 --- /dev/null +++ b/dev-util/cargo-audit/cargo-audit-0.22.0.ebuild @@ -0,0 +1,55 @@ +# Copyright 2024-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +CRATES=" " +RUST_MIN_VER="1.81.0" +inherit cargo + +DESCRIPTION="Audit Cargo.lock for crates with security vulnerabilities" +HOMEPAGE="https://rustsec.org https://github.com/rustsec/rustsec" +SRC_URI="https://github.com/rustsec/rustsec/archive/refs/tags/${PN}/v${PV}.tar.gz -> ${P}.tar.gz" +SRC_URI+=" https://github.com/gentoo-crate-dist/rustsec/releases/download/${PN}%2Fv${PV}/rustsec-${PN}-v${PV}-crates.tar.xz" +S=${WORKDIR}/rustsec-${PN}-v${PV} + +LICENSE="|| ( Apache-2.0 MIT )" +# Dependent crate licenses +LICENSE+=" + Apache-2.0 Apache-2.0-with-LLVM-exceptions BSD-2 BSD ISC MIT MPL-2.0 + Unicode-3.0 Unicode-DFS-2016 +" +SLOT="0" +KEYWORDS="~amd64 ~ppc64" +IUSE="fix" + +# requires checkout of vuln db/network +PROPERTIES="test_network" +RESTRICT="test" + +RDEPEND="dev-libs/openssl:=" +DEPEND="${RDEPEND}" + +QA_FLAGS_IGNORED="usr/bin/${PN}" + +src_configure() { + local myfeatures=( + $(usev fix) + ) + + cargo_src_configure +} + +src_compile() { + # normally we can pass --bin cargo-audit + # to build single workspace member, but we need to cd + # for tests to be discovered properly + cd cargo-audit || die + cargo_src_compile +} + +src_install() { + cargo_src_install --path cargo-audit + local DOCS=( cargo-audit/{README.md,audit.toml.example} ) + einstalldocs +}