From be94ae04eee564451203d45977c2ef7c7ace1580 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sun, 10 Nov 2024 03:03:09 +0000 Subject: gentoo auto-resync : 10:11:2024 - 03:03:09 --- app-forensics/Manifest.gz | Bin 4552 -> 4554 bytes app-forensics/yara-x/Manifest | 6 +- app-forensics/yara-x/yara-x-0.5.0-r1.ebuild | 584 +++++++++++++++++++++++++++ app-forensics/yara-x/yara-x-0.5.0.ebuild | 584 --------------------------- app-forensics/yara-x/yara-x-0.6.0-r1.ebuild | 597 ++++++++++++++++++++++++++++ app-forensics/yara-x/yara-x-0.6.0.ebuild | 595 --------------------------- app-forensics/yara-x/yara-x-0.7.0-r1.ebuild | 590 +++++++++++++++++++++++++++ app-forensics/yara-x/yara-x-0.7.0.ebuild | 588 --------------------------- 8 files changed, 1774 insertions(+), 1770 deletions(-) create mode 100644 app-forensics/yara-x/yara-x-0.5.0-r1.ebuild delete mode 100644 app-forensics/yara-x/yara-x-0.5.0.ebuild create mode 100644 app-forensics/yara-x/yara-x-0.6.0-r1.ebuild delete mode 100644 app-forensics/yara-x/yara-x-0.6.0.ebuild create mode 100644 app-forensics/yara-x/yara-x-0.7.0-r1.ebuild delete mode 100644 app-forensics/yara-x/yara-x-0.7.0.ebuild (limited to 'app-forensics') diff --git a/app-forensics/Manifest.gz b/app-forensics/Manifest.gz index b917aa6981d7..19ddc64fa185 100644 Binary files a/app-forensics/Manifest.gz and b/app-forensics/Manifest.gz differ diff --git a/app-forensics/yara-x/Manifest b/app-forensics/yara-x/Manifest index 858abff1df80..ca847a0a114d 100644 --- a/app-forensics/yara-x/Manifest +++ b/app-forensics/yara-x/Manifest @@ -678,7 +678,7 @@ DIST zstd-safe-7.2.1.crate 21122 BLAKE2B 49df1ae857449393e6a09293b8963702fecb375 DIST zstd-sys-2.0.11+zstd.1.5.6.crate 749078 BLAKE2B 6be19b2ea22e557a6b38bdb37c97817eb0a112fe9ad3626e822485a96f04087a79726b872d819ac05517dde56fb5eadd8f1e6885d356526c34635547bfe762d3 SHA512 37081282feffee1e78ddd8992ad5d8b2179ed7ec1be340d0cef0ce0aeea4aaa57850050f4b896d02875f0dec04ac1c20d9aa392f01b12e49ed885f4b8929f48d DIST zstd-sys-2.0.12+zstd.1.5.6.crate 749063 BLAKE2B 90a9edfa5abfe5ad0557fc15c702edcb059a45e6593f29e0233be514fc3be8797318fc7e844964e982142156daf58e9b15fc0416e1551b8c918cc7447ac9b887 SHA512 6bd8baf5777a766d7e9f730af1a4dec1ad34a90ddfe52398faf7d8d7928aa4461cd659c9cb535fdef5ef7cbc9b4474673c36f5b6a156aa095d34364867728229 DIST zstd-sys-2.0.13+zstd.1.5.6.crate 749090 BLAKE2B b5714217ca68255d0881adcaf282a6309de322c481fe4cf8c10d9b68748008a9ca0287e8323f5a118d3b052b7dfb257182555718599da843e09068a1e8df8c5f SHA512 c1f0176ebd0914879d0060796776c7fe376293ce9bc9f8f07ee3b809932a75aa033881d59a1bc99b6cd9af85b8e225fc09bcfc96013e556d7c11f155b759ecbf -EBUILD yara-x-0.5.0.ebuild 10948 BLAKE2B b030655273aa978d123986846cd72844836920dcb85020c6a49f78f9090170dd3e6275bee357160755197bbc4a9462309844a54802c1d66956cdf58d30c6842c SHA512 c7c4248e5a3b061e6ecade79334643ea97299ff3c6002a3189aff53ecf572b9df447a05766af306f2f0592d5f9b1caa84d867b1e48818597b5caa32ce9bb60ca -EBUILD yara-x-0.6.0.ebuild 11219 BLAKE2B 5835bda571256e280034da0359c008ca67d6bb36111530d4ae3062577b9b6ae949318b04c5e20d24e834695dd1738f8571bbfd146d3089770b75a941ea0ab808 SHA512 0d896fa2d755c26460b63fa63a9665eb2e3fa5620e06738eaa0f57830769793ece379fa0133132e801dc4b6adbfdf59f3cec77a03116dd68623586c87a0d11e6 -EBUILD yara-x-0.7.0.ebuild 11108 BLAKE2B 0698bc5102284c39cbbaa56ea4898f3f28d09bc5cc1d3ea261eac046d92e911efc276139541244cf5bbdfa20c2ad8d0c6d963f5d66f2c46b0c654e111bf1f0c5 SHA512 ddc59692ee0368bf91c383d4f45fea38d061b78e24df21e174e14671147c2a35418e763ce5f9a47f1270cd97997decb5f3160b00e7aedc038e061ef03ee7fe87 +EBUILD yara-x-0.5.0-r1.ebuild 10948 BLAKE2B b030655273aa978d123986846cd72844836920dcb85020c6a49f78f9090170dd3e6275bee357160755197bbc4a9462309844a54802c1d66956cdf58d30c6842c SHA512 c7c4248e5a3b061e6ecade79334643ea97299ff3c6002a3189aff53ecf572b9df447a05766af306f2f0592d5f9b1caa84d867b1e48818597b5caa32ce9bb60ca +EBUILD yara-x-0.6.0-r1.ebuild 11236 BLAKE2B 06567946f7a9afa8320d0cabe083a455d0962a6b9ed41ec42555bbeb955f267a4f144fdd1dc14753aaedf649ef7652602b54caa9626911e9422ad86b760b552e SHA512 a53c1c0c593c2945e2f3728486dbe62872bca7a7b3be66a38fd15ebf28ef51e7e3eb650f0f21721bca19b1353a4894b7cc1c14b15afad04572f2ec7f32e4dd63 +EBUILD yara-x-0.7.0-r1.ebuild 11125 BLAKE2B be456c9fa581079e0aad141cbbd78a30f5139469b68188cb0cfc6b6094e6fbc25a92d0f9375e12ca86196cbfc1c5b66cd5d7656aefbe70b18219c9c150627d1f SHA512 e20b4bc1bb1674afaee69126faac0f1201cc43b98202e0108e6f9871296c65a2197daa2c11d9ad2112adf13fb0fdabb18b605aeacd8230ea7bc02aeb017f1eba MISC metadata.xml 871 BLAKE2B 5bd7832c42db605bc7cf66b599e1859102bbfe7c5e2cbc8d02e4edbf7953b8a3bbc50fca5e7e5f996157d7c2e75c534e042d7cebe24b0af802083cfb76223412 SHA512 cf9de10e422e2209c22563de312318411455350a3932720b617548ab5e9b8e003079c7a7d2d6f3f17f8df9c661dd9c42252e6f5a2e4ba974ee11b64c2d8529fb diff --git a/app-forensics/yara-x/yara-x-0.5.0-r1.ebuild b/app-forensics/yara-x/yara-x-0.5.0-r1.ebuild new file mode 100644 index 000000000000..d658ac1b9717 --- /dev/null +++ b/app-forensics/yara-x/yara-x-0.5.0-r1.ebuild @@ -0,0 +1,584 @@ +# Copyright 2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_EXT=1 +DISTUTILS_USE_PEP517=maturin +DISTUTILS_OPTIONAL=1 +PYTHON_COMPAT=( python3_{10..12} ) + +CRATES=" + addr2line@0.21.0 + addr2line@0.22.0 + adler@1.0.2 + aes@0.8.4 + ahash@0.8.11 + aho-corasick@1.1.3 + alloc-no-stdlib@2.0.4 + alloc-stdlib@0.2.2 + android-tzdata@0.1.1 + android_system_properties@0.1.5 + annotate-snippets@0.11.4 + anstream@0.6.14 + anstyle-parse@0.2.4 + anstyle-query@1.1.0 + anstyle-wincon@3.0.3 + anstyle@1.0.7 + anyhow@1.0.86 + arbitrary@1.3.2 + array-bytes@6.2.3 + arrayvec@0.7.4 + ascii_tree@0.1.1 + asn1-rs-derive@0.5.0 + asn1-rs-impl@0.2.0 + asn1-rs@0.6.1 + async-trait@0.1.80 + atty@0.2.14 + autocfg@1.3.0 + backtrace@0.3.73 + base16ct@0.2.0 + base64@0.13.1 + base64@0.21.7 + base64@0.22.1 + base64ct@1.6.0 + bincode@1.3.3 + bitflags@1.3.2 + bitflags@2.5.0 + bitmask@0.5.0 + bitvec@1.0.1 + block-buffer@0.10.4 + block-buffer@0.9.0 + brotli-decompressor@2.5.1 + brotli@3.5.0 + bstr@0.2.17 + bstr@1.9.1 + bumpalo@3.16.0 + bytecount@0.6.8 + bytemuck@1.16.1 + byteorder@1.5.0 + bytes@1.6.0 + bzip2-sys@0.1.11+1.0.8 + bzip2@0.4.4 + camino@1.1.7 + cargo-platform@0.1.8 + cargo_metadata@0.14.2 + castaway@0.2.2 + cbindgen@0.26.0 + cc@1.0.99 + cfg-if@1.0.0 + chardetng@0.1.17 + chrono@0.4.38 + cipher@0.4.4 + clap@3.2.25 + clap@4.5.8 + clap_builder@4.5.8 + clap_complete@4.5.7 + clap_derive@4.5.8 + clap_lex@0.2.4 + clap_lex@0.7.1 + colorchoice@1.0.1 + colored_json@4.1.0 + compact_str@0.7.1 + console@0.15.8 + const-oid@0.9.6 + const-random-macro@0.1.16 + const-random@0.1.18 + constant_time_eq@0.3.0 + convert_case@0.6.0 + core-foundation-sys@0.8.6 + cpp_demangle@0.4.3 + cpufeatures@0.2.12 + cranelift-bforest@0.106.2 + cranelift-codegen-meta@0.106.2 + cranelift-codegen-shared@0.106.2 + cranelift-codegen@0.106.2 + cranelift-control@0.106.2 + cranelift-entity@0.106.2 + cranelift-frontend@0.106.2 + cranelift-isle@0.106.2 + cranelift-native@0.106.2 + cranelift-wasm@0.106.2 + crc-catalog@2.4.0 + crc32fast@1.4.2 + crc@3.2.1 + crossbeam-channel@0.5.13 + crossbeam-deque@0.8.5 + crossbeam-epoch@0.9.18 + crossbeam-queue@0.3.11 + crossbeam-utils@0.8.20 + crossbeam@0.8.4 + crossterm@0.23.2 + crossterm@0.27.0 + crossterm_winapi@0.9.1 + crunchy@0.2.2 + crypto-bigint@0.5.5 + crypto-common@0.1.6 + csscolorparser@0.6.2 + darling@0.14.4 + darling_core@0.14.4 + darling_macro@0.14.4 + data-encoding@2.6.0 + debugid@0.8.0 + deflate64@0.1.8 + deltae@0.3.2 + der-parser@9.0.0 + der@0.7.9 + deranged@0.3.11 + derive_arbitrary@1.3.2 + diff@0.1.13 + digest@0.10.7 + digest@0.9.0 + directories-next@2.0.0 + dirs-sys-next@0.1.2 + dirs-sys@0.3.7 + dirs@4.0.0 + displaydoc@0.2.4 + dsa@0.6.3 + ecdsa@0.16.9 + either@1.12.0 + elliptic-curve@0.13.8 + enable-ansi-support@0.2.1 + encode_unicode@0.3.6 + encoding_rs@0.8.34 + enum_dispatch@0.3.13 + env_filter@0.1.0 + env_logger@0.11.3 + equivalent@1.0.1 + errno@0.3.9 + error-chain@0.12.4 + fallible-iterator@0.2.0 + fallible-iterator@0.3.0 + fastrand@2.1.0 + ff@0.13.0 + filedescriptor@0.8.2 + findshlibs@0.10.2 + finl_unicode@1.2.0 + fixedbitset@0.4.2 + flate2@1.0.30 + fmmap@0.3.3 + fnv@1.0.7 + fraction@0.14.0 + fs4@0.6.6 + funty@2.0.0 + fxhash@0.2.1 + fxprof-processed-profile@0.6.0 + generic-array@0.14.7 + getrandom@0.2.15 + gimli@0.26.2 + gimli@0.28.1 + gimli@0.29.0 + glob@0.3.1 + globset@0.4.14 + globwalk@0.9.1 + goldenfile@1.7.1 + group@0.13.0 + hashbrown@0.12.3 + hashbrown@0.13.2 + hashbrown@0.14.5 + heck@0.3.3 + heck@0.4.1 + heck@0.5.0 + hermit-abi@0.1.19 + hermit-abi@0.3.9 + hex@0.4.3 + hkdf@0.12.4 + hmac@0.12.1 + home@0.5.9 + humantime@2.1.0 + iana-time-zone-haiku@0.1.2 + iana-time-zone@0.1.60 + id-arena@2.2.1 + ident_case@1.0.1 + ignore@0.4.22 + ihex@3.0.0 + include_dir@0.7.4 + include_dir_macros@0.7.4 + indenter@0.3.3 + indexmap@1.9.3 + indexmap@2.2.6 + indoc@2.0.5 + inferno@0.11.19 + inout@0.1.3 + intaglio@1.9.1 + is-terminal@0.4.12 + is_terminal_polyfill@1.70.0 + itertools@0.10.5 + itertools@0.12.1 + itertools@0.13.0 + itoa@1.0.11 + ittapi-sys@0.4.0 + ittapi@0.4.0 + jobserver@0.1.31 + js-sys@0.3.69 + lab@0.11.0 + lazy_static@1.4.0 + leb128@0.2.5 + libc@0.2.155 + libm@0.2.8 + libredox@0.1.3 + lingua-english-language-model@1.1.0 + lingua-french-language-model@1.1.0 + lingua-german-language-model@1.1.0 + lingua-spanish-language-model@1.1.0 + lingua@1.6.2 + linked-hash-map@0.5.6 + linkme-impl@0.3.27 + linkme@0.3.27 + linux-raw-sys@0.4.14 + lock_api@0.4.12 + lockfree-object-pool@0.1.6 + log@0.4.22 + lzma-rs@0.3.0 + mach@0.3.2 + magic-sys@0.3.0 + magic@0.16.2 + maplit@1.0.2 + md-5@0.10.6 + md2@0.10.2 + memchr@2.7.4 + memfd@0.6.4 + memmap2@0.9.4 + memmapix@0.7.6 + memmem@0.1.1 + memoffset@0.6.5 + memoffset@0.9.1 + memx@0.1.32 + minimal-lexical@0.2.1 + miniz_oxide@0.7.4 + mio@0.8.11 + nix@0.24.3 + nix@0.26.4 + nom@5.1.3 + nom@7.1.3 + num-bigint-dig@0.8.4 + num-bigint@0.4.5 + num-complex@0.4.6 + num-conv@0.1.0 + num-derive@0.3.3 + num-derive@0.4.2 + num-format@0.4.4 + num-integer@0.1.46 + num-iter@0.1.45 + num-rational@0.4.2 + num-traits@0.2.19 + num@0.4.3 + object@0.32.2 + object@0.36.0 + oid-registry@0.7.0 + once_cell@1.19.0 + opaque-debug@0.3.1 + ordered-float@3.9.2 + ordered-float@4.2.0 + os_str_bytes@6.6.1 + p256@0.13.2 + p384@0.13.0 + parking_lot@0.12.3 + parking_lot_core@0.9.10 + parse-display-derive@0.8.2 + parse-display@0.8.2 + paste@1.0.15 + pbkdf2@0.12.2 + pem-rfc7468@0.7.0 + pest@2.7.10 + pest_derive@2.7.10 + pest_generator@2.7.10 + pest_meta@2.7.10 + phf@0.10.1 + phf@0.11.2 + phf_codegen@0.11.2 + phf_generator@0.11.2 + phf_macros@0.11.2 + phf_shared@0.10.0 + phf_shared@0.11.2 + pkcs1@0.7.5 + pkcs8@0.10.2 + pkg-config@0.3.30 + portable-atomic@1.6.0 + powerfmt@0.2.0 + pprof@0.13.0 + ppv-lite86@0.2.17 + pretty_assertions@1.4.0 + primeorder@0.13.6 + proc-macro2@1.0.85 + protobuf-codegen@3.5.0 + protobuf-json-mapping@3.5.0 + protobuf-parse@3.5.0 + protobuf-support@3.5.0 + protobuf@3.5.0 + psm@0.1.21 + pulldown-cmark@0.9.6 + pyo3-build-config@0.21.2 + pyo3-ffi@0.21.2 + pyo3-file@0.8.1 + pyo3-macros-backend@0.21.2 + pyo3-macros@0.21.2 + pyo3@0.21.2 + quick-xml@0.26.0 + quote@1.0.36 + radium@0.7.0 + rand@0.8.5 + rand_chacha@0.3.1 + rand_core@0.6.4 + rayon-core@1.12.1 + rayon@1.10.0 + redox_syscall@0.5.2 + redox_users@0.4.5 + regalloc2@0.9.3 + regex-automata@0.1.10 + regex-automata@0.4.7 + regex-syntax@0.7.5 + regex-syntax@0.8.4 + regex@1.10.5 + rfc6979@0.4.0 + rgb@0.8.37 + ring@0.17.8 + roxmltree@0.20.0 + rsa@0.9.6 + rustc-demangle@0.1.24 + rustc-hash@1.1.0 + rustc-hash@2.0.0 + rusticata-macros@4.1.0 + rustix@0.38.34 + rustversion@1.0.17 + ryu@1.0.18 + same-file@1.0.6 + scopeguard@1.2.0 + sec1@0.7.3 + semver-parser@0.10.2 + semver@0.11.0 + semver@1.0.23 + serde-wasm-bindgen@0.6.5 + serde@1.0.203 + serde_derive@1.0.203 + serde_json@1.0.117 + serde_spanned@0.6.6 + sha1@0.10.6 + sha2@0.10.8 + sha2@0.9.9 + signal-hook-mio@0.2.3 + signal-hook-registry@1.4.2 + signal-hook@0.1.17 + signal-hook@0.3.17 + signature@2.2.0 + simd-adler32@0.3.7 + similar-asserts@1.5.0 + similar@2.5.0 + siphasher@0.3.11 + skeptic@0.13.7 + slice-group-by@0.3.1 + smallvec@1.13.2 + spin@0.5.2 + spin@0.9.8 + spki@0.7.3 + sptr@0.3.2 + stable_deref_trait@1.2.0 + static_assertions@1.1.0 + str_stack@0.1.0 + strsim@0.10.0 + strsim@0.11.1 + structmeta-derive@0.2.0 + structmeta@0.2.0 + strum@0.25.0 + strum_macros@0.25.3 + subtle@2.5.0 + superconsole@0.2.0 + symbolic-common@12.9.2 + symbolic-demangle@12.9.2 + syn@1.0.109 + syn@2.0.66 + synstructure@0.13.1 + tap@1.0.1 + target-lexicon@0.12.14 + tempfile@3.10.1 + termcolor@1.4.1 + terminfo@0.7.5 + termios@0.3.3 + termwiz@0.18.0 + textwrap@0.16.1 + thiserror-impl@1.0.61 + thiserror@1.0.61 + time-core@0.1.2 + time-macros@0.2.18 + time@0.3.36 + tiny-keccak@2.0.2 + tlsh-fixed@0.1.1 + toml@0.5.11 + toml@0.8.14 + toml_datetime@0.6.6 + toml_edit@0.22.14 + typenum@1.17.0 + ucd-trie@0.1.6 + unicase@2.7.0 + unicode-ident@1.0.12 + unicode-segmentation@1.11.0 + unicode-width@0.1.13 + unicode-xid@0.2.4 + unindent@0.2.3 + untrusted@0.9.0 + utf8parse@0.2.2 + uuid@1.8.0 + vcpkg@0.2.15 + version_check@0.9.4 + vtparse@0.6.2 + walkdir@2.5.0 + walrus-macro@0.19.0 + walrus@0.20.3 + wasi@0.11.0+wasi-snapshot-preview1 + wasm-bindgen-backend@0.2.92 + wasm-bindgen-macro-support@0.2.92 + wasm-bindgen-macro@0.2.92 + wasm-bindgen-shared@0.2.92 + wasm-bindgen@0.2.92 + wasm-encoder@0.201.0 + wasm-encoder@0.29.0 + wasmparser@0.201.0 + wasmparser@0.80.2 + wasmprinter@0.201.0 + wasmtime-asm-macros@19.0.2 + wasmtime-cache@19.0.2 + wasmtime-component-macro@19.0.2 + wasmtime-component-util@19.0.2 + wasmtime-cranelift-shared@19.0.2 + wasmtime-cranelift@19.0.2 + wasmtime-environ@19.0.2 + wasmtime-fiber@19.0.2 + wasmtime-jit-debug@19.0.2 + wasmtime-jit-icache-coherence@19.0.2 + wasmtime-runtime@19.0.2 + wasmtime-slab@19.0.2 + wasmtime-types@19.0.2 + wasmtime-versioned-export-macros@19.0.2 + wasmtime-winch@19.0.2 + wasmtime-wit-bindgen@19.0.2 + wasmtime-wmemcheck@19.0.2 + wasmtime@19.0.2 + wast@201.0.0 + wat@1.201.0 + wezterm-bidi@0.2.3 + wezterm-color-types@0.2.0 + wezterm-dynamic-derive@0.1.0 + wezterm-dynamic@0.1.0 + wezterm-dynamic@0.2.0 + which@4.4.2 + wild@2.2.1 + winapi-i686-pc-windows-gnu@0.4.0 + winapi-util@0.1.8 + winapi-x86_64-pc-windows-gnu@0.4.0 + winapi@0.3.9 + winch-codegen@0.17.2 + windows-core@0.52.0 + windows-sys@0.42.0 + windows-sys@0.48.0 + windows-sys@0.52.0 + windows-targets@0.48.5 + windows-targets@0.52.5 + windows_aarch64_gnullvm@0.42.2 + windows_aarch64_gnullvm@0.48.5 + windows_aarch64_gnullvm@0.52.5 + windows_aarch64_msvc@0.42.2 + windows_aarch64_msvc@0.48.5 + windows_aarch64_msvc@0.52.5 + windows_i686_gnu@0.42.2 + windows_i686_gnu@0.48.5 + windows_i686_gnu@0.52.5 + windows_i686_gnullvm@0.52.5 + windows_i686_msvc@0.42.2 + windows_i686_msvc@0.48.5 + windows_i686_msvc@0.52.5 + windows_x86_64_gnu@0.42.2 + windows_x86_64_gnu@0.48.5 + windows_x86_64_gnu@0.52.5 + windows_x86_64_gnullvm@0.42.2 + windows_x86_64_gnullvm@0.48.5 + windows_x86_64_gnullvm@0.52.5 + windows_x86_64_msvc@0.42.2 + windows_x86_64_msvc@0.48.5 + windows_x86_64_msvc@0.52.5 + winnow@0.6.13 + wit-parser@0.201.0 + wyz@0.5.1 + x509-parser@0.16.0 + yaml-rust@0.4.5 + yansi@0.5.1 + yansi@1.0.1 + zerocopy-derive@0.7.34 + zerocopy@0.7.34 + zeroize@1.8.1 + zeroize_derive@1.4.2 + zip@2.1.3 + zopfli@0.8.1 + zstd-safe@7.1.0 + zstd-sys@2.0.11+zstd.1.5.6 + zstd@0.13.1 +" + +inherit cargo distutils-r1 + +DESCRIPTION="A malware identification and classification tool" +HOMEPAGE="https://virustotal.github.io/yara-x/" +SRC_URI=" + https://github.com/VirusTotal/yara-x/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz + ${CARGO_CRATE_URIS} +" + +LICENSE="BSD" +# Dependent crate licenses +LICENSE+=" + Apache-2.0 Apache-2.0-with-LLVM-exceptions BSD-2 BSD Boost-1.0 + CC0-1.0 CDDL EPL-2.0 ISC MIT MPL-2.0 Unicode-DFS-2016 WTFPL-2 +" + +SLOT="0" +KEYWORDS="amd64 ~x86" +IUSE="python" +REQUIRED_USE=" + python? ( ${PYTHON_REQUIRED_USE} ) +" + +RDEPEND=" + python? ( ${PYTHON_DEPS} ) +" +BDEPEND=" + python? ( + ${PYTHON_DEPS} + ${DISTUTILS_DEPS} + ) +" + +wrap_python() { + local phase=$1 + shift + + if use python; then + pushd py >/dev/null || die + distutils-r1_${phase} "$@" + popd >/dev/null || die + fi +} + +src_prepare() { + default + wrap_python ${FUNCNAME} +} + +src_compile() { + cargo_src_compile --workspace + wrap_python ${FUNCNAME} +} + +python_test() { + epytest +} + +src_test() { + cargo_src_test + wrap_python ${FUNCNAME} +} + +src_install() { + dobin "$(cargo_target_dir)"/yr + dolib.so "$(cargo_target_dir)"/*.so + + wrap_python ${FUNCNAME} +} diff --git a/app-forensics/yara-x/yara-x-0.5.0.ebuild b/app-forensics/yara-x/yara-x-0.5.0.ebuild deleted file mode 100644 index d658ac1b9717..000000000000 --- a/app-forensics/yara-x/yara-x-0.5.0.ebuild +++ /dev/null @@ -1,584 +0,0 @@ -# Copyright 2024 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -DISTUTILS_EXT=1 -DISTUTILS_USE_PEP517=maturin -DISTUTILS_OPTIONAL=1 -PYTHON_COMPAT=( python3_{10..12} ) - -CRATES=" - addr2line@0.21.0 - addr2line@0.22.0 - adler@1.0.2 - aes@0.8.4 - ahash@0.8.11 - aho-corasick@1.1.3 - alloc-no-stdlib@2.0.4 - alloc-stdlib@0.2.2 - android-tzdata@0.1.1 - android_system_properties@0.1.5 - annotate-snippets@0.11.4 - anstream@0.6.14 - anstyle-parse@0.2.4 - anstyle-query@1.1.0 - anstyle-wincon@3.0.3 - anstyle@1.0.7 - anyhow@1.0.86 - arbitrary@1.3.2 - array-bytes@6.2.3 - arrayvec@0.7.4 - ascii_tree@0.1.1 - asn1-rs-derive@0.5.0 - asn1-rs-impl@0.2.0 - asn1-rs@0.6.1 - async-trait@0.1.80 - atty@0.2.14 - autocfg@1.3.0 - backtrace@0.3.73 - base16ct@0.2.0 - base64@0.13.1 - base64@0.21.7 - base64@0.22.1 - base64ct@1.6.0 - bincode@1.3.3 - bitflags@1.3.2 - bitflags@2.5.0 - bitmask@0.5.0 - bitvec@1.0.1 - block-buffer@0.10.4 - block-buffer@0.9.0 - brotli-decompressor@2.5.1 - brotli@3.5.0 - bstr@0.2.17 - bstr@1.9.1 - bumpalo@3.16.0 - bytecount@0.6.8 - bytemuck@1.16.1 - byteorder@1.5.0 - bytes@1.6.0 - bzip2-sys@0.1.11+1.0.8 - bzip2@0.4.4 - camino@1.1.7 - cargo-platform@0.1.8 - cargo_metadata@0.14.2 - castaway@0.2.2 - cbindgen@0.26.0 - cc@1.0.99 - cfg-if@1.0.0 - chardetng@0.1.17 - chrono@0.4.38 - cipher@0.4.4 - clap@3.2.25 - clap@4.5.8 - clap_builder@4.5.8 - clap_complete@4.5.7 - clap_derive@4.5.8 - clap_lex@0.2.4 - clap_lex@0.7.1 - colorchoice@1.0.1 - colored_json@4.1.0 - compact_str@0.7.1 - console@0.15.8 - const-oid@0.9.6 - const-random-macro@0.1.16 - const-random@0.1.18 - constant_time_eq@0.3.0 - convert_case@0.6.0 - core-foundation-sys@0.8.6 - cpp_demangle@0.4.3 - cpufeatures@0.2.12 - cranelift-bforest@0.106.2 - cranelift-codegen-meta@0.106.2 - cranelift-codegen-shared@0.106.2 - cranelift-codegen@0.106.2 - cranelift-control@0.106.2 - cranelift-entity@0.106.2 - cranelift-frontend@0.106.2 - cranelift-isle@0.106.2 - cranelift-native@0.106.2 - cranelift-wasm@0.106.2 - crc-catalog@2.4.0 - crc32fast@1.4.2 - crc@3.2.1 - crossbeam-channel@0.5.13 - crossbeam-deque@0.8.5 - crossbeam-epoch@0.9.18 - crossbeam-queue@0.3.11 - crossbeam-utils@0.8.20 - crossbeam@0.8.4 - crossterm@0.23.2 - crossterm@0.27.0 - crossterm_winapi@0.9.1 - crunchy@0.2.2 - crypto-bigint@0.5.5 - crypto-common@0.1.6 - csscolorparser@0.6.2 - darling@0.14.4 - darling_core@0.14.4 - darling_macro@0.14.4 - data-encoding@2.6.0 - debugid@0.8.0 - deflate64@0.1.8 - deltae@0.3.2 - der-parser@9.0.0 - der@0.7.9 - deranged@0.3.11 - derive_arbitrary@1.3.2 - diff@0.1.13 - digest@0.10.7 - digest@0.9.0 - directories-next@2.0.0 - dirs-sys-next@0.1.2 - dirs-sys@0.3.7 - dirs@4.0.0 - displaydoc@0.2.4 - dsa@0.6.3 - ecdsa@0.16.9 - either@1.12.0 - elliptic-curve@0.13.8 - enable-ansi-support@0.2.1 - encode_unicode@0.3.6 - encoding_rs@0.8.34 - enum_dispatch@0.3.13 - env_filter@0.1.0 - env_logger@0.11.3 - equivalent@1.0.1 - errno@0.3.9 - error-chain@0.12.4 - fallible-iterator@0.2.0 - fallible-iterator@0.3.0 - fastrand@2.1.0 - ff@0.13.0 - filedescriptor@0.8.2 - findshlibs@0.10.2 - finl_unicode@1.2.0 - fixedbitset@0.4.2 - flate2@1.0.30 - fmmap@0.3.3 - fnv@1.0.7 - fraction@0.14.0 - fs4@0.6.6 - funty@2.0.0 - fxhash@0.2.1 - fxprof-processed-profile@0.6.0 - generic-array@0.14.7 - getrandom@0.2.15 - gimli@0.26.2 - gimli@0.28.1 - gimli@0.29.0 - glob@0.3.1 - globset@0.4.14 - globwalk@0.9.1 - goldenfile@1.7.1 - group@0.13.0 - hashbrown@0.12.3 - hashbrown@0.13.2 - hashbrown@0.14.5 - heck@0.3.3 - heck@0.4.1 - heck@0.5.0 - hermit-abi@0.1.19 - hermit-abi@0.3.9 - hex@0.4.3 - hkdf@0.12.4 - hmac@0.12.1 - home@0.5.9 - humantime@2.1.0 - iana-time-zone-haiku@0.1.2 - iana-time-zone@0.1.60 - id-arena@2.2.1 - ident_case@1.0.1 - ignore@0.4.22 - ihex@3.0.0 - include_dir@0.7.4 - include_dir_macros@0.7.4 - indenter@0.3.3 - indexmap@1.9.3 - indexmap@2.2.6 - indoc@2.0.5 - inferno@0.11.19 - inout@0.1.3 - intaglio@1.9.1 - is-terminal@0.4.12 - is_terminal_polyfill@1.70.0 - itertools@0.10.5 - itertools@0.12.1 - itertools@0.13.0 - itoa@1.0.11 - ittapi-sys@0.4.0 - ittapi@0.4.0 - jobserver@0.1.31 - js-sys@0.3.69 - lab@0.11.0 - lazy_static@1.4.0 - leb128@0.2.5 - libc@0.2.155 - libm@0.2.8 - libredox@0.1.3 - lingua-english-language-model@1.1.0 - lingua-french-language-model@1.1.0 - lingua-german-language-model@1.1.0 - lingua-spanish-language-model@1.1.0 - lingua@1.6.2 - linked-hash-map@0.5.6 - linkme-impl@0.3.27 - linkme@0.3.27 - linux-raw-sys@0.4.14 - lock_api@0.4.12 - lockfree-object-pool@0.1.6 - log@0.4.22 - lzma-rs@0.3.0 - mach@0.3.2 - magic-sys@0.3.0 - magic@0.16.2 - maplit@1.0.2 - md-5@0.10.6 - md2@0.10.2 - memchr@2.7.4 - memfd@0.6.4 - memmap2@0.9.4 - memmapix@0.7.6 - memmem@0.1.1 - memoffset@0.6.5 - memoffset@0.9.1 - memx@0.1.32 - minimal-lexical@0.2.1 - miniz_oxide@0.7.4 - mio@0.8.11 - nix@0.24.3 - nix@0.26.4 - nom@5.1.3 - nom@7.1.3 - num-bigint-dig@0.8.4 - num-bigint@0.4.5 - num-complex@0.4.6 - num-conv@0.1.0 - num-derive@0.3.3 - num-derive@0.4.2 - num-format@0.4.4 - num-integer@0.1.46 - num-iter@0.1.45 - num-rational@0.4.2 - num-traits@0.2.19 - num@0.4.3 - object@0.32.2 - object@0.36.0 - oid-registry@0.7.0 - once_cell@1.19.0 - opaque-debug@0.3.1 - ordered-float@3.9.2 - ordered-float@4.2.0 - os_str_bytes@6.6.1 - p256@0.13.2 - p384@0.13.0 - parking_lot@0.12.3 - parking_lot_core@0.9.10 - parse-display-derive@0.8.2 - parse-display@0.8.2 - paste@1.0.15 - pbkdf2@0.12.2 - pem-rfc7468@0.7.0 - pest@2.7.10 - pest_derive@2.7.10 - pest_generator@2.7.10 - pest_meta@2.7.10 - phf@0.10.1 - phf@0.11.2 - phf_codegen@0.11.2 - phf_generator@0.11.2 - phf_macros@0.11.2 - phf_shared@0.10.0 - phf_shared@0.11.2 - pkcs1@0.7.5 - pkcs8@0.10.2 - pkg-config@0.3.30 - portable-atomic@1.6.0 - powerfmt@0.2.0 - pprof@0.13.0 - ppv-lite86@0.2.17 - pretty_assertions@1.4.0 - primeorder@0.13.6 - proc-macro2@1.0.85 - protobuf-codegen@3.5.0 - protobuf-json-mapping@3.5.0 - protobuf-parse@3.5.0 - protobuf-support@3.5.0 - protobuf@3.5.0 - psm@0.1.21 - pulldown-cmark@0.9.6 - pyo3-build-config@0.21.2 - pyo3-ffi@0.21.2 - pyo3-file@0.8.1 - pyo3-macros-backend@0.21.2 - pyo3-macros@0.21.2 - pyo3@0.21.2 - quick-xml@0.26.0 - quote@1.0.36 - radium@0.7.0 - rand@0.8.5 - rand_chacha@0.3.1 - rand_core@0.6.4 - rayon-core@1.12.1 - rayon@1.10.0 - redox_syscall@0.5.2 - redox_users@0.4.5 - regalloc2@0.9.3 - regex-automata@0.1.10 - regex-automata@0.4.7 - regex-syntax@0.7.5 - regex-syntax@0.8.4 - regex@1.10.5 - rfc6979@0.4.0 - rgb@0.8.37 - ring@0.17.8 - roxmltree@0.20.0 - rsa@0.9.6 - rustc-demangle@0.1.24 - rustc-hash@1.1.0 - rustc-hash@2.0.0 - rusticata-macros@4.1.0 - rustix@0.38.34 - rustversion@1.0.17 - ryu@1.0.18 - same-file@1.0.6 - scopeguard@1.2.0 - sec1@0.7.3 - semver-parser@0.10.2 - semver@0.11.0 - semver@1.0.23 - serde-wasm-bindgen@0.6.5 - serde@1.0.203 - serde_derive@1.0.203 - serde_json@1.0.117 - serde_spanned@0.6.6 - sha1@0.10.6 - sha2@0.10.8 - sha2@0.9.9 - signal-hook-mio@0.2.3 - signal-hook-registry@1.4.2 - signal-hook@0.1.17 - signal-hook@0.3.17 - signature@2.2.0 - simd-adler32@0.3.7 - similar-asserts@1.5.0 - similar@2.5.0 - siphasher@0.3.11 - skeptic@0.13.7 - slice-group-by@0.3.1 - smallvec@1.13.2 - spin@0.5.2 - spin@0.9.8 - spki@0.7.3 - sptr@0.3.2 - stable_deref_trait@1.2.0 - static_assertions@1.1.0 - str_stack@0.1.0 - strsim@0.10.0 - strsim@0.11.1 - structmeta-derive@0.2.0 - structmeta@0.2.0 - strum@0.25.0 - strum_macros@0.25.3 - subtle@2.5.0 - superconsole@0.2.0 - symbolic-common@12.9.2 - symbolic-demangle@12.9.2 - syn@1.0.109 - syn@2.0.66 - synstructure@0.13.1 - tap@1.0.1 - target-lexicon@0.12.14 - tempfile@3.10.1 - termcolor@1.4.1 - terminfo@0.7.5 - termios@0.3.3 - termwiz@0.18.0 - textwrap@0.16.1 - thiserror-impl@1.0.61 - thiserror@1.0.61 - time-core@0.1.2 - time-macros@0.2.18 - time@0.3.36 - tiny-keccak@2.0.2 - tlsh-fixed@0.1.1 - toml@0.5.11 - toml@0.8.14 - toml_datetime@0.6.6 - toml_edit@0.22.14 - typenum@1.17.0 - ucd-trie@0.1.6 - unicase@2.7.0 - unicode-ident@1.0.12 - unicode-segmentation@1.11.0 - unicode-width@0.1.13 - unicode-xid@0.2.4 - unindent@0.2.3 - untrusted@0.9.0 - utf8parse@0.2.2 - uuid@1.8.0 - vcpkg@0.2.15 - version_check@0.9.4 - vtparse@0.6.2 - walkdir@2.5.0 - walrus-macro@0.19.0 - walrus@0.20.3 - wasi@0.11.0+wasi-snapshot-preview1 - wasm-bindgen-backend@0.2.92 - wasm-bindgen-macro-support@0.2.92 - wasm-bindgen-macro@0.2.92 - wasm-bindgen-shared@0.2.92 - wasm-bindgen@0.2.92 - wasm-encoder@0.201.0 - wasm-encoder@0.29.0 - wasmparser@0.201.0 - wasmparser@0.80.2 - wasmprinter@0.201.0 - wasmtime-asm-macros@19.0.2 - wasmtime-cache@19.0.2 - wasmtime-component-macro@19.0.2 - wasmtime-component-util@19.0.2 - wasmtime-cranelift-shared@19.0.2 - wasmtime-cranelift@19.0.2 - wasmtime-environ@19.0.2 - wasmtime-fiber@19.0.2 - wasmtime-jit-debug@19.0.2 - wasmtime-jit-icache-coherence@19.0.2 - wasmtime-runtime@19.0.2 - wasmtime-slab@19.0.2 - wasmtime-types@19.0.2 - wasmtime-versioned-export-macros@19.0.2 - wasmtime-winch@19.0.2 - wasmtime-wit-bindgen@19.0.2 - wasmtime-wmemcheck@19.0.2 - wasmtime@19.0.2 - wast@201.0.0 - wat@1.201.0 - wezterm-bidi@0.2.3 - wezterm-color-types@0.2.0 - wezterm-dynamic-derive@0.1.0 - wezterm-dynamic@0.1.0 - wezterm-dynamic@0.2.0 - which@4.4.2 - wild@2.2.1 - winapi-i686-pc-windows-gnu@0.4.0 - winapi-util@0.1.8 - winapi-x86_64-pc-windows-gnu@0.4.0 - winapi@0.3.9 - winch-codegen@0.17.2 - windows-core@0.52.0 - windows-sys@0.42.0 - windows-sys@0.48.0 - windows-sys@0.52.0 - windows-targets@0.48.5 - windows-targets@0.52.5 - windows_aarch64_gnullvm@0.42.2 - windows_aarch64_gnullvm@0.48.5 - windows_aarch64_gnullvm@0.52.5 - windows_aarch64_msvc@0.42.2 - windows_aarch64_msvc@0.48.5 - windows_aarch64_msvc@0.52.5 - windows_i686_gnu@0.42.2 - windows_i686_gnu@0.48.5 - windows_i686_gnu@0.52.5 - windows_i686_gnullvm@0.52.5 - windows_i686_msvc@0.42.2 - windows_i686_msvc@0.48.5 - windows_i686_msvc@0.52.5 - windows_x86_64_gnu@0.42.2 - windows_x86_64_gnu@0.48.5 - windows_x86_64_gnu@0.52.5 - windows_x86_64_gnullvm@0.42.2 - windows_x86_64_gnullvm@0.48.5 - windows_x86_64_gnullvm@0.52.5 - windows_x86_64_msvc@0.42.2 - windows_x86_64_msvc@0.48.5 - windows_x86_64_msvc@0.52.5 - winnow@0.6.13 - wit-parser@0.201.0 - wyz@0.5.1 - x509-parser@0.16.0 - yaml-rust@0.4.5 - yansi@0.5.1 - yansi@1.0.1 - zerocopy-derive@0.7.34 - zerocopy@0.7.34 - zeroize@1.8.1 - zeroize_derive@1.4.2 - zip@2.1.3 - zopfli@0.8.1 - zstd-safe@7.1.0 - zstd-sys@2.0.11+zstd.1.5.6 - zstd@0.13.1 -" - -inherit cargo distutils-r1 - -DESCRIPTION="A malware identification and classification tool" -HOMEPAGE="https://virustotal.github.io/yara-x/" -SRC_URI=" - https://github.com/VirusTotal/yara-x/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz - ${CARGO_CRATE_URIS} -" - -LICENSE="BSD" -# Dependent crate licenses -LICENSE+=" - Apache-2.0 Apache-2.0-with-LLVM-exceptions BSD-2 BSD Boost-1.0 - CC0-1.0 CDDL EPL-2.0 ISC MIT MPL-2.0 Unicode-DFS-2016 WTFPL-2 -" - -SLOT="0" -KEYWORDS="amd64 ~x86" -IUSE="python" -REQUIRED_USE=" - python? ( ${PYTHON_REQUIRED_USE} ) -" - -RDEPEND=" - python? ( ${PYTHON_DEPS} ) -" -BDEPEND=" - python? ( - ${PYTHON_DEPS} - ${DISTUTILS_DEPS} - ) -" - -wrap_python() { - local phase=$1 - shift - - if use python; then - pushd py >/dev/null || die - distutils-r1_${phase} "$@" - popd >/dev/null || die - fi -} - -src_prepare() { - default - wrap_python ${FUNCNAME} -} - -src_compile() { - cargo_src_compile --workspace - wrap_python ${FUNCNAME} -} - -python_test() { - epytest -} - -src_test() { - cargo_src_test - wrap_python ${FUNCNAME} -} - -src_install() { - dobin "$(cargo_target_dir)"/yr - dolib.so "$(cargo_target_dir)"/*.so - - wrap_python ${FUNCNAME} -} diff --git a/app-forensics/yara-x/yara-x-0.6.0-r1.ebuild b/app-forensics/yara-x/yara-x-0.6.0-r1.ebuild new file mode 100644 index 000000000000..e0081b8043e6 --- /dev/null +++ b/app-forensics/yara-x/yara-x-0.6.0-r1.ebuild @@ -0,0 +1,597 @@ +# Copyright 2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +# Autogenerated by pycargoebuild 0.13.3 + +EAPI=8 + +DISTUTILS_EXT=1 +DISTUTILS_USE_PEP517=maturin +DISTUTILS_OPTIONAL=1 +PYTHON_COMPAT=( python3_{10..13} ) + +CRATES=" + addr2line@0.21.0 + addr2line@0.22.0 + adler@1.0.2 + aes@0.8.4 + ahash@0.8.11 + aho-corasick@1.1.3 + alloc-no-stdlib@2.0.4 + alloc-stdlib@0.2.2 + android-tzdata@0.1.1 + android_system_properties@0.1.5 + annotate-snippets@0.11.4 + anstream@0.6.15 + anstyle-parse@0.2.5 + anstyle-query@1.1.1 + anstyle-wincon@3.0.4 + anstyle@1.0.8 + anyhow@1.0.86 + arbitrary@1.3.2 + array-bytes@6.2.3 + arrayvec@0.7.4 + ascii_tree@0.1.1 + asn1-rs-derive@0.5.0 + asn1-rs-impl@0.2.0 + asn1-rs@0.6.1 + async-trait@0.1.81 + atty@0.2.14 + autocfg@1.3.0 + backtrace@0.3.73 + base16ct@0.2.0 + base64@0.13.1 + base64@0.21.7 + base64@0.22.1 + base64ct@1.6.0 + beef@0.5.2 + bincode@1.3.3 + bitflags@1.3.2 + bitflags@2.6.0 + bitmask@0.5.0 + bitvec@1.0.1 + block-buffer@0.10.4 + block-buffer@0.9.0 + brotli-decompressor@2.5.1 + brotli@3.5.0 + bstr@1.10.0 + bumpalo@3.16.0 + bytecount@0.6.8 + bytemuck@1.16.1 + byteorder@1.5.0 + bytes@1.6.1 + bzip2-sys@0.1.11+1.0.8 + bzip2@0.4.4 + camino@1.1.7 + cargo-platform@0.1.8 + cargo_metadata@0.14.2 + castaway@0.2.3 + cbindgen@0.26.0 + cc@1.1.6 + cfg-if@1.0.0 + chardetng@0.1.17 + chrono@0.4.38 + cipher@0.4.4 + clap@3.2.25 + clap@4.5.11 + clap_builder@4.5.11 + clap_complete@4.5.11 + clap_derive@4.5.11 + clap_lex@0.2.4 + clap_lex@0.7.2 + cobs@0.2.3 + colorchoice@1.0.2 + colored_json@4.1.0 + compact_str@0.7.1 + console@0.15.8 + const-oid@0.9.6 + const-random-macro@0.1.16 + const-random@0.1.18 + constant_time_eq@0.3.0 + convert_case@0.6.0 + core-foundation-sys@0.8.6 + countme@3.0.1 + cpp_demangle@0.4.3 + cpufeatures@0.2.12 + cranelift-bforest@0.109.0 + cranelift-codegen-meta@0.109.0 + cranelift-codegen-shared@0.109.0 + cranelift-codegen@0.109.0 + cranelift-control@0.109.0 + cranelift-entity@0.109.0 + cranelift-frontend@0.109.0 + cranelift-isle@0.109.0 + cranelift-native@0.109.0 + cranelift-wasm@0.109.0 + crc-catalog@2.4.0 + crc32fast@1.4.2 + crc@3.2.1 + crossbeam-channel@0.5.13 + crossbeam-deque@0.8.5 + crossbeam-epoch@0.9.18 + crossbeam-queue@0.3.11 + crossbeam-utils@0.8.20 + crossbeam@0.8.4 + crossterm@0.23.2 + crossterm@0.27.0 + crossterm_winapi@0.9.1 + crunchy@0.2.2 + crypto-bigint@0.5.5 + crypto-common@0.1.6 + csscolorparser@0.6.2 + darling@0.14.4 + darling_core@0.14.4 + darling_macro@0.14.4 + data-encoding@2.6.0 + debugid@0.8.0 + deflate64@0.1.9 + deltae@0.3.2 + der-parser@9.0.0 + der@0.7.9 + deranged@0.3.11 + derive_arbitrary@1.3.2 + diff@0.1.13 + digest@0.10.7 + digest@0.9.0 + directories-next@2.0.0 + dirs-sys-next@0.1.2 + dirs-sys@0.3.7 + dirs@4.0.0 + displaydoc@0.2.5 + dsa@0.6.3 + ecdsa@0.16.9 + either@1.13.0 + elliptic-curve@0.13.8 + embedded-io@0.4.0 + enable-ansi-support@0.2.1 + encode_unicode@0.3.6 + encoding_rs@0.8.34 + enum_dispatch@0.3.13 + env_filter@0.1.2 + env_logger@0.11.5 + equivalent@1.0.1 + errno@0.3.9 + error-chain@0.12.4 + fallible-iterator@0.2.0 + fallible-iterator@0.3.0 + fastrand@2.1.0 + ff@0.13.0 + filedescriptor@0.8.2 + findshlibs@0.10.2 + finl_unicode@1.2.0 + fixedbitset@0.4.2 + flate2@1.0.30 + fmmap@0.3.3 + fnv@1.0.7 + fraction@0.14.0 + fs4@0.6.6 + funty@2.0.0 + fxhash@0.2.1 + fxprof-processed-profile@0.6.0 + generic-array@0.14.7 + getrandom@0.2.15 + gimli@0.26.2 + gimli@0.28.1 + gimli@0.29.0 + glob@0.3.1 + globset@0.4.14 + globwalk@0.9.1 + goldenfile@1.7.1 + group@0.13.0 + hashbrown@0.12.3 + hashbrown@0.13.2 + hashbrown@0.14.5 + heck@0.3.3 + heck@0.4.1 + heck@0.5.0 + hermit-abi@0.1.19 + hermit-abi@0.3.9 + hex@0.4.3 + hkdf@0.12.4 + hmac@0.12.1 + home@0.5.9 + humantime@2.1.0 + iana-time-zone-haiku@0.1.2 + iana-time-zone@0.1.60 + id-arena@2.2.1 + ident_case@1.0.1 + ignore@0.4.22 + ihex@3.0.0 + include_dir@0.7.4 + include_dir_macros@0.7.4 + indexmap@1.9.3 + indexmap@2.2.6 + indoc@2.0.5 + inferno@0.11.20 + inout@0.1.3 + intaglio@1.9.1 + is-terminal@0.4.12 + is_terminal_polyfill@1.70.1 + itertools@0.10.5 + itertools@0.12.1 + itertools@0.13.0 + itoa@1.0.11 + ittapi-sys@0.4.0 + ittapi@0.4.0 + jobserver@0.1.32 + js-sys@0.3.69 + lab@0.11.0 + lazy_static@1.5.0 + leb128@0.2.5 + libc@0.2.155 + libm@0.2.8 + libredox@0.1.3 + lingua-english-language-model@1.1.0 + lingua-french-language-model@1.1.0 + lingua-german-language-model@1.1.0 + lingua-spanish-language-model@1.1.0 + lingua@1.6.2 + linkme-impl@0.3.27 + linkme@0.3.27 + linux-raw-sys@0.4.14 + lock_api@0.4.12 + lockfree-object-pool@0.1.6 + log@0.4.22 + logos-codegen@0.14.0 + logos-derive@0.14.0 + logos@0.14.0 + lzma-rs@0.3.0 + mach2@0.4.2 + magic-sys@0.3.0 + magic@0.16.2 + maplit@1.0.2 + md-5@0.10.6 + md2@0.10.2 + memchr@2.7.4 + memfd@0.6.4 + memmap2@0.9.4 + memmapix@0.7.6 + memmem@0.1.1 + memoffset@0.6.5 + memoffset@0.9.1 + memx@0.1.32 + minimal-lexical@0.2.1 + miniz_oxide@0.7.4 + mio@0.8.11 + nix@0.24.3 + nix@0.26.4 + nom@5.1.3 + nom@7.1.3 + num-bigint-dig@0.8.4 + num-bigint@0.4.6 + num-complex@0.4.6 + num-conv@0.1.0 + num-derive@0.3.3 + num-derive@0.4.2 + num-format@0.4.4 + num-integer@0.1.46 + num-iter@0.1.45 + num-rational@0.4.2 + num-traits@0.2.19 + num@0.4.3 + object@0.36.2 + oid-registry@0.7.0 + once_cell@1.19.0 + opaque-debug@0.3.1 + ordered-float@3.9.2 + ordered-float@4.2.1 + os_str_bytes@6.6.1 + p256@0.13.2 + p384@0.13.0 + parking_lot@0.12.3 + parking_lot_core@0.9.10 + parse-display-derive@0.8.2 + parse-display@0.8.2 + paste@1.0.15 + pbkdf2@0.12.2 + pem-rfc7468@0.7.0 + pest@2.7.11 + pest_derive@2.7.11 + pest_generator@2.7.11 + pest_meta@2.7.11 + phf@0.10.1 + phf@0.11.2 + phf_codegen@0.11.2 + phf_generator@0.11.2 + phf_macros@0.11.2 + phf_shared@0.10.0 + phf_shared@0.11.2 + pkcs1@0.7.5 + pkcs8@0.10.2 + pkg-config@0.3.30 + portable-atomic@1.7.0 + postcard@1.0.8 + powerfmt@0.2.0 + pprof@0.13.0 + ppv-lite86@0.2.17 + pretty_assertions@1.4.0 + primeorder@0.13.6 + proc-macro2@1.0.86 + protobuf-codegen@3.5.0 + protobuf-json-mapping@3.5.0 + protobuf-parse@3.5.0 + protobuf-support@3.5.0 + protobuf@3.5.0 + psm@0.1.21 + pulldown-cmark@0.9.6 + pyo3-build-config@0.21.2 + pyo3-ffi@0.21.2 + pyo3-file@0.8.1 + pyo3-macros-backend@0.21.2 + pyo3-macros@0.21.2 + pyo3@0.21.2 + quick-xml@0.26.0 + quote@1.0.36 + radium@0.7.0 + rand@0.8.5 + rand_chacha@0.3.1 + rand_core@0.6.4 + rayon-core@1.12.1 + rayon@1.10.0 + redox_syscall@0.5.3 + redox_users@0.4.5 + regalloc2@0.9.3 + regex-automata@0.4.7 + regex-syntax@0.7.5 + regex-syntax@0.8.4 + regex@1.10.5 + rfc6979@0.4.0 + rgb@0.8.45 + ring@0.17.8 + rowan@0.15.15 + roxmltree@0.20.0 + rsa@0.9.6 + rustc-demangle@0.1.24 + rustc-hash@1.1.0 + rustc-hash@2.0.0 + rusticata-macros@4.1.0 + rustix@0.38.34 + rustversion@1.0.17 + ryu@1.0.18 + same-file@1.0.6 + scopeguard@1.2.0 + sec1@0.7.3 + semver-parser@0.10.2 + semver@0.11.0 + semver@1.0.23 + serde-wasm-bindgen@0.6.5 + serde@1.0.204 + serde_derive@1.0.204 + serde_json@1.0.120 + serde_spanned@0.6.7 + sha1@0.10.6 + sha2@0.10.8 + sha2@0.9.9 + signal-hook-mio@0.2.3 + signal-hook-registry@1.4.2 + signal-hook@0.1.17 + signal-hook@0.3.17 + signature@2.2.0 + simd-adler32@0.3.7 + similar-asserts@1.5.0 + similar@2.6.0 + siphasher@0.3.11 + skeptic@0.13.7 + slice-group-by@0.3.1 + smallvec@1.13.2 + spin@0.9.8 + spki@0.7.3 + sptr@0.3.2 + stable_deref_trait@1.2.0 + static_assertions@1.1.0 + str_stack@0.1.0 + strsim@0.10.0 + strsim@0.11.1 + structmeta-derive@0.2.0 + structmeta@0.2.0 + strum@0.25.0 + strum_macros@0.25.3 + subtle@2.6.1 + superconsole@0.2.0 + symbolic-common@12.10.0 + symbolic-demangle@12.10.0 + syn@1.0.109 + syn@2.0.72 + synstructure@0.13.1 + tap@1.0.1 + target-lexicon@0.12.15 + tempfile@3.10.1 + termcolor@1.4.1 + terminfo@0.7.5 + termios@0.3.3 + termwiz@0.18.0 + text-size@1.1.1 + textwrap@0.16.1 + thiserror-impl@1.0.63 + thiserror@1.0.63 + time-core@0.1.2 + time-macros@0.2.18 + time@0.3.36 + tiny-keccak@2.0.2 + tlsh-fixed@0.1.1 + toml@0.5.11 + toml@0.8.16 + toml_datetime@0.6.7 + toml_edit@0.22.17 + typenum@1.17.0 + ucd-trie@0.1.6 + unicase@2.7.0 + unicode-ident@1.0.12 + unicode-segmentation@1.11.0 + unicode-width@0.1.13 + unicode-xid@0.2.4 + unindent@0.2.3 + untrusted@0.9.0 + utf8parse@0.2.2 + uuid@1.10.0 + vcpkg@0.2.15 + version_check@0.9.5 + vtparse@0.6.2 + walkdir@2.5.0 + walrus-macro@0.19.0 + walrus@0.21.1 + wasi@0.11.0+wasi-snapshot-preview1 + wasm-bindgen-backend@0.2.92 + wasm-bindgen-macro-support@0.2.92 + wasm-bindgen-macro@0.2.92 + wasm-bindgen-shared@0.2.92 + wasm-bindgen@0.2.92 + wasm-encoder@0.209.1 + wasm-encoder@0.212.0 + wasm-encoder@0.214.0 + wasmparser@0.209.1 + wasmparser@0.212.0 + wasmprinter@0.209.1 + wasmtime-asm-macros@22.0.0 + wasmtime-cache@22.0.0 + wasmtime-component-macro@22.0.0 + wasmtime-component-util@22.0.0 + wasmtime-cranelift@22.0.0 + wasmtime-environ@22.0.0 + wasmtime-fiber@22.0.0 + wasmtime-jit-debug@22.0.0 + wasmtime-jit-icache-coherence@22.0.0 + wasmtime-slab@22.0.0 + wasmtime-types@22.0.0 + wasmtime-versioned-export-macros@22.0.0 + wasmtime-winch@22.0.0 + wasmtime-wit-bindgen@22.0.0 + wasmtime@22.0.0 + wast@214.0.0 + wat@1.214.0 + wezterm-bidi@0.2.3 + wezterm-color-types@0.2.0 + wezterm-dynamic-derive@0.1.0 + wezterm-dynamic@0.1.0 + wezterm-dynamic@0.2.0 + which@4.4.2 + wild@2.2.1 + winapi-i686-pc-windows-gnu@0.4.0 + winapi-util@0.1.8 + winapi-x86_64-pc-windows-gnu@0.4.0 + winapi@0.3.9 + winch-codegen@0.20.0 + windows-core@0.52.0 + windows-sys@0.42.0 + windows-sys@0.48.0 + windows-sys@0.52.0 + windows-targets@0.48.5 + windows-targets@0.52.6 + windows_aarch64_gnullvm@0.42.2 + windows_aarch64_gnullvm@0.48.5 + windows_aarch64_gnullvm@0.52.6 + windows_aarch64_msvc@0.42.2 + windows_aarch64_msvc@0.48.5 + windows_aarch64_msvc@0.52.6 + windows_i686_gnu@0.42.2 + windows_i686_gnu@0.48.5 + windows_i686_gnu@0.52.6 + windows_i686_gnullvm@0.52.6 + windows_i686_msvc@0.42.2 + windows_i686_msvc@0.48.5 + windows_i686_msvc@0.52.6 + windows_x86_64_gnu@0.42.2 + windows_x86_64_gnu@0.48.5 + windows_x86_64_gnu@0.52.6 + windows_x86_64_gnullvm@0.42.2 + windows_x86_64_gnullvm@0.48.5 + windows_x86_64_gnullvm@0.52.6 + windows_x86_64_msvc@0.42.2 + windows_x86_64_msvc@0.48.5 + windows_x86_64_msvc@0.52.6 + winnow@0.6.16 + wit-parser@0.209.1 + wyz@0.5.1 + x509-parser@0.16.0 + yansi@0.5.1 + yansi@1.0.1 + zerocopy-derive@0.7.35 + zerocopy@0.7.35 + zeroize@1.8.1 + zeroize_derive@1.4.2 + zip@2.1.5 + zopfli@0.8.1 + zstd-safe@7.2.0 + zstd-sys@2.0.12+zstd.1.5.6 + zstd@0.13.2 +" + +inherit cargo distutils-r1 + +DESCRIPTION="A malware identification and classification tool" +HOMEPAGE="https://virustotal.github.io/yara-x/" +SRC_URI=" + https://github.com/VirusTotal/yara-x/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz + ${CARGO_CRATE_URIS} +" + +LICENSE="BSD" +# Dependent crate licenses +LICENSE+=" + Apache-2.0 Apache-2.0-with-LLVM-exceptions BSD Boost-1.0 CC0-1.0 + CDDL EPL-2.0 ISC MIT MPL-2.0 Unicode-DFS-2016 WTFPL-2 +" + +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="python" +REQUIRED_USE=" + python? ( ${PYTHON_REQUIRED_USE} ) +" + +RDEPEND=" + python? ( ${PYTHON_DEPS} ) +" +BDEPEND=" + python? ( + ${PYTHON_DEPS} + ${DISTUTILS_DEPS} + ) +" + +wrap_python() { + local phase=$1 + shift + + if use python; then + pushd py >/dev/null || die + distutils-r1_${phase} "$@" + popd >/dev/null || die + fi +} + +# https://bugs.gentoo.org/933231, https://bugs.gentoo.org/933232 +QA_FLAGS_IGNORED="usr/bin/yr" + +pkg_setup() { + # https://bugs.gentoo.org/933233 + QA_SONAME="usr/$(get_libdir)/libyara_x.*\\.so usr/lib.*/py.*/site-packages/yara_x/yara_x.*\\.so" + + rust_pkg_setup +} + +src_prepare() { + default + wrap_python ${FUNCNAME} +} + +src_compile() { + cargo_src_compile --workspace + wrap_python ${FUNCNAME} +} + +python_test() { + epytest +} + +src_test() { + cargo_src_test + wrap_python ${FUNCNAME} +} + +src_install() { + dobin "$(cargo_target_dir)"/yr + dolib.so "$(cargo_target_dir)"/*.so + + wrap_python ${FUNCNAME} +} diff --git a/app-forensics/yara-x/yara-x-0.6.0.ebuild b/app-forensics/yara-x/yara-x-0.6.0.ebuild deleted file mode 100644 index bca3d88152a2..000000000000 --- a/app-forensics/yara-x/yara-x-0.6.0.ebuild +++ /dev/null @@ -1,595 +0,0 @@ -# Copyright 2024 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -# Autogenerated by pycargoebuild 0.13.3 - -EAPI=8 - -DISTUTILS_EXT=1 -DISTUTILS_USE_PEP517=maturin -DISTUTILS_OPTIONAL=1 -PYTHON_COMPAT=( python3_{10..13} ) - -CRATES=" - addr2line@0.21.0 - addr2line@0.22.0 - adler@1.0.2 - aes@0.8.4 - ahash@0.8.11 - aho-corasick@1.1.3 - alloc-no-stdlib@2.0.4 - alloc-stdlib@0.2.2 - android-tzdata@0.1.1 - android_system_properties@0.1.5 - annotate-snippets@0.11.4 - anstream@0.6.15 - anstyle-parse@0.2.5 - anstyle-query@1.1.1 - anstyle-wincon@3.0.4 - anstyle@1.0.8 - anyhow@1.0.86 - arbitrary@1.3.2 - array-bytes@6.2.3 - arrayvec@0.7.4 - ascii_tree@0.1.1 - asn1-rs-derive@0.5.0 - asn1-rs-impl@0.2.0 - asn1-rs@0.6.1 - async-trait@0.1.81 - atty@0.2.14 - autocfg@1.3.0 - backtrace@0.3.73 - base16ct@0.2.0 - base64@0.13.1 - base64@0.21.7 - base64@0.22.1 - base64ct@1.6.0 - beef@0.5.2 - bincode@1.3.3 - bitflags@1.3.2 - bitflags@2.6.0 - bitmask@0.5.0 - bitvec@1.0.1 - block-buffer@0.10.4 - block-buffer@0.9.0 - brotli-decompressor@2.5.1 - brotli@3.5.0 - bstr@1.10.0 - bumpalo@3.16.0 - bytecount@0.6.8 - bytemuck@1.16.1 - byteorder@1.5.0 - bytes@1.6.1 - bzip2-sys@0.1.11+1.0.8 - bzip2@0.4.4 - camino@1.1.7 - cargo-platform@0.1.8 - cargo_metadata@0.14.2 - castaway@0.2.3 - cbindgen@0.26.0 - cc@1.1.6 - cfg-if@1.0.0 - chardetng@0.1.17 - chrono@0.4.38 - cipher@0.4.4 - clap@3.2.25 - clap@4.5.11 - clap_builder@4.5.11 - clap_complete@4.5.11 - clap_derive@4.5.11 - clap_lex@0.2.4 - clap_lex@0.7.2 - cobs@0.2.3 - colorchoice@1.0.2 - colored_json@4.1.0 - compact_str@0.7.1 - console@0.15.8 - const-oid@0.9.6 - const-random-macro@0.1.16 - const-random@0.1.18 - constant_time_eq@0.3.0 - convert_case@0.6.0 - core-foundation-sys@0.8.6 - countme@3.0.1 - cpp_demangle@0.4.3 - cpufeatures@0.2.12 - cranelift-bforest@0.109.0 - cranelift-codegen-meta@0.109.0 - cranelift-codegen-shared@0.109.0 - cranelift-codegen@0.109.0 - cranelift-control@0.109.0 - cranelift-entity@0.109.0 - cranelift-frontend@0.109.0 - cranelift-isle@0.109.0 - cranelift-native@0.109.0 - cranelift-wasm@0.109.0 - crc-catalog@2.4.0 - crc32fast@1.4.2 - crc@3.2.1 - crossbeam-channel@0.5.13 - crossbeam-deque@0.8.5 - crossbeam-epoch@0.9.18 - crossbeam-queue@0.3.11 - crossbeam-utils@0.8.20 - crossbeam@0.8.4 - crossterm@0.23.2 - crossterm@0.27.0 - crossterm_winapi@0.9.1 - crunchy@0.2.2 - crypto-bigint@0.5.5 - crypto-common@0.1.6 - csscolorparser@0.6.2 - darling@0.14.4 - darling_core@0.14.4 - darling_macro@0.14.4 - data-encoding@2.6.0 - debugid@0.8.0 - deflate64@0.1.9 - deltae@0.3.2 - der-parser@9.0.0 - der@0.7.9 - deranged@0.3.11 - derive_arbitrary@1.3.2 - diff@0.1.13 - digest@0.10.7 - digest@0.9.0 - directories-next@2.0.0 - dirs-sys-next@0.1.2 - dirs-sys@0.3.7 - dirs@4.0.0 - displaydoc@0.2.5 - dsa@0.6.3 - ecdsa@0.16.9 - either@1.13.0 - elliptic-curve@0.13.8 - embedded-io@0.4.0 - enable-ansi-support@0.2.1 - encode_unicode@0.3.6 - encoding_rs@0.8.34 - enum_dispatch@0.3.13 - env_filter@0.1.2 - env_logger@0.11.5 - equivalent@1.0.1 - errno@0.3.9 - error-chain@0.12.4 - fallible-iterator@0.2.0 - fallible-iterator@0.3.0 - fastrand@2.1.0 - ff@0.13.0 - filedescriptor@0.8.2 - findshlibs@0.10.2 - finl_unicode@1.2.0 - fixedbitset@0.4.2 - flate2@1.0.30 - fmmap@0.3.3 - fnv@1.0.7 - fraction@0.14.0 - fs4@0.6.6 - funty@2.0.0 - fxhash@0.2.1 - fxprof-processed-profile@0.6.0 - generic-array@0.14.7 - getrandom@0.2.15 - gimli@0.26.2 - gimli@0.28.1 - gimli@0.29.0 - glob@0.3.1 - globset@0.4.14 - globwalk@0.9.1 - goldenfile@1.7.1 - group@0.13.0 - hashbrown@0.12.3 - hashbrown@0.13.2 - hashbrown@0.14.5 - heck@0.3.3 - heck@0.4.1 - heck@0.5.0 - hermit-abi@0.1.19 - hermit-abi@0.3.9 - hex@0.4.3 - hkdf@0.12.4 - hmac@0.12.1 - home@0.5.9 - humantime@2.1.0 - iana-time-zone-haiku@0.1.2 - iana-time-zone@0.1.60 - id-arena@2.2.1 - ident_case@1.0.1 - ignore@0.4.22 - ihex@3.0.0 - include_dir@0.7.4 - include_dir_macros@0.7.4 - indexmap@1.9.3 - indexmap@2.2.6 - indoc@2.0.5 - inferno@0.11.20 - inout@0.1.3 - intaglio@1.9.1 - is-terminal@0.4.12 - is_terminal_polyfill@1.70.1 - itertools@0.10.5 - itertools@0.12.1 - itertools@0.13.0 - itoa@1.0.11 - ittapi-sys@0.4.0 - ittapi@0.4.0 - jobserver@0.1.32 - js-sys@0.3.69 - lab@0.11.0 - lazy_static@1.5.0 - leb128@0.2.5 - libc@0.2.155 - libm@0.2.8 - libredox@0.1.3 - lingua-english-language-model@1.1.0 - lingua-french-language-model@1.1.0 - lingua-german-language-model@1.1.0 - lingua-spanish-language-model@1.1.0 - lingua@1.6.2 - linkme-impl@0.3.27 - linkme@0.3.27 - linux-raw-sys@0.4.14 - lock_api@0.4.12 - lockfree-object-pool@0.1.6 - log@0.4.22 - logos-codegen@0.14.0 - logos-derive@0.14.0 - logos@0.14.0 - lzma-rs@0.3.0 - mach2@0.4.2 - magic-sys@0.3.0 - magic@0.16.2 - maplit@1.0.2 - md-5@0.10.6 - md2@0.10.2 - memchr@2.7.4 - memfd@0.6.4 - memmap2@0.9.4 - memmapix@0.7.6 - memmem@0.1.1 - memoffset@0.6.5 - memoffset@0.9.1 - memx@0.1.32 - minimal-lexical@0.2.1 - miniz_oxide@0.7.4 - mio@0.8.11 - nix@0.24.3 - nix@0.26.4 - nom@5.1.3 - nom@7.1.3 - num-bigint-dig@0.8.4 - num-bigint@0.4.6 - num-complex@0.4.6 - num-conv@0.1.0 - num-derive@0.3.3 - num-derive@0.4.2 - num-format@0.4.4 - num-integer@0.1.46 - num-iter@0.1.45 - num-rational@0.4.2 - num-traits@0.2.19 - num@0.4.3 - object@0.36.2 - oid-registry@0.7.0 - once_cell@1.19.0 - opaque-debug@0.3.1 - ordered-float@3.9.2 - ordered-float@4.2.1 - os_str_bytes@6.6.1 - p256@0.13.2 - p384@0.13.0 - parking_lot@0.12.3 - parking_lot_core@0.9.10 - parse-display-derive@0.8.2 - parse-display@0.8.2 - paste@1.0.15 - pbkdf2@0.12.2 - pem-rfc7468@0.7.0 - pest@2.7.11 - pest_derive@2.7.11 - pest_generator@2.7.11 - pest_meta@2.7.11 - phf@0.10.1 - phf@0.11.2 - phf_codegen@0.11.2 - phf_generator@0.11.2 - phf_macros@0.11.2 - phf_shared@0.10.0 - phf_shared@0.11.2 - pkcs1@0.7.5 - pkcs8@0.10.2 - pkg-config@0.3.30 - portable-atomic@1.7.0 - postcard@1.0.8 - powerfmt@0.2.0 - pprof@0.13.0 - ppv-lite86@0.2.17 - pretty_assertions@1.4.0 - primeorder@0.13.6 - proc-macro2@1.0.86 - protobuf-codegen@3.5.0 - protobuf-json-mapping@3.5.0 - protobuf-parse@3.5.0 - protobuf-support@3.5.0 - protobuf@3.5.0 - psm@0.1.21 - pulldown-cmark@0.9.6 - pyo3-build-config@0.21.2 - pyo3-ffi@0.21.2 - pyo3-file@0.8.1 - pyo3-macros-backend@0.21.2 - pyo3-macros@0.21.2 - pyo3@0.21.2 - quick-xml@0.26.0 - quote@1.0.36 - radium@0.7.0 - rand@0.8.5 - rand_chacha@0.3.1 - rand_core@0.6.4 - rayon-core@1.12.1 - rayon@1.10.0 - redox_syscall@0.5.3 - redox_users@0.4.5 - regalloc2@0.9.3 - regex-automata@0.4.7 - regex-syntax@0.7.5 - regex-syntax@0.8.4 - regex@1.10.5 - rfc6979@0.4.0 - rgb@0.8.45 - ring@0.17.8 - rowan@0.15.15 - roxmltree@0.20.0 - rsa@0.9.6 - rustc-demangle@0.1.24 - rustc-hash@1.1.0 - rustc-hash@2.0.0 - rusticata-macros@4.1.0 - rustix@0.38.34 - rustversion@1.0.17 - ryu@1.0.18 - same-file@1.0.6 - scopeguard@1.2.0 - sec1@0.7.3 - semver-parser@0.10.2 - semver@0.11.0 - semver@1.0.23 - serde-wasm-bindgen@0.6.5 - serde@1.0.204 - serde_derive@1.0.204 - serde_json@1.0.120 - serde_spanned@0.6.7 - sha1@0.10.6 - sha2@0.10.8 - sha2@0.9.9 - signal-hook-mio@0.2.3 - signal-hook-registry@1.4.2 - signal-hook@0.1.17 - signal-hook@0.3.17 - signature@2.2.0 - simd-adler32@0.3.7 - similar-asserts@1.5.0 - similar@2.6.0 - siphasher@0.3.11 - skeptic@0.13.7 - slice-group-by@0.3.1 - smallvec@1.13.2 - spin@0.9.8 - spki@0.7.3 - sptr@0.3.2 - stable_deref_trait@1.2.0 - static_assertions@1.1.0 - str_stack@0.1.0 - strsim@0.10.0 - strsim@0.11.1 - structmeta-derive@0.2.0 - structmeta@0.2.0 - strum@0.25.0 - strum_macros@0.25.3 - subtle@2.6.1 - superconsole@0.2.0 - symbolic-common@12.10.0 - symbolic-demangle@12.10.0 - syn@1.0.109 - syn@2.0.72 - synstructure@0.13.1 - tap@1.0.1 - target-lexicon@0.12.15 - tempfile@3.10.1 - termcolor@1.4.1 - terminfo@0.7.5 - termios@0.3.3 - termwiz@0.18.0 - text-size@1.1.1 - textwrap@0.16.1 - thiserror-impl@1.0.63 - thiserror@1.0.63 - time-core@0.1.2 - time-macros@0.2.18 - time@0.3.36 - tiny-keccak@2.0.2 - tlsh-fixed@0.1.1 - toml@0.5.11 - toml@0.8.16 - toml_datetime@0.6.7 - toml_edit@0.22.17 - typenum@1.17.0 - ucd-trie@0.1.6 - unicase@2.7.0 - unicode-ident@1.0.12 - unicode-segmentation@1.11.0 - unicode-width@0.1.13 - unicode-xid@0.2.4 - unindent@0.2.3 - untrusted@0.9.0 - utf8parse@0.2.2 - uuid@1.10.0 - vcpkg@0.2.15 - version_check@0.9.5 - vtparse@0.6.2 - walkdir@2.5.0 - walrus-macro@0.19.0 - walrus@0.21.1 - wasi@0.11.0+wasi-snapshot-preview1 - wasm-bindgen-backend@0.2.92 - wasm-bindgen-macro-support@0.2.92 - wasm-bindgen-macro@0.2.92 - wasm-bindgen-shared@0.2.92 - wasm-bindgen@0.2.92 - wasm-encoder@0.209.1 - wasm-encoder@0.212.0 - wasm-encoder@0.214.0 - wasmparser@0.209.1 - wasmparser@0.212.0 - wasmprinter@0.209.1 - wasmtime-asm-macros@22.0.0 - wasmtime-cache@22.0.0 - wasmtime-component-macro@22.0.0 - wasmtime-component-util@22.0.0 - wasmtime-cranelift@22.0.0 - wasmtime-environ@22.0.0 - wasmtime-fiber@22.0.0 - wasmtime-jit-debug@22.0.0 - wasmtime-jit-icache-coherence@22.0.0 - wasmtime-slab@22.0.0 - wasmtime-types@22.0.0 - wasmtime-versioned-export-macros@22.0.0 - wasmtime-winch@22.0.0 - wasmtime-wit-bindgen@22.0.0 - wasmtime@22.0.0 - wast@214.0.0 - wat@1.214.0 - wezterm-bidi@0.2.3 - wezterm-color-types@0.2.0 - wezterm-dynamic-derive@0.1.0 - wezterm-dynamic@0.1.0 - wezterm-dynamic@0.2.0 - which@4.4.2 - wild@2.2.1 - winapi-i686-pc-windows-gnu@0.4.0 - winapi-util@0.1.8 - winapi-x86_64-pc-windows-gnu@0.4.0 - winapi@0.3.9 - winch-codegen@0.20.0 - windows-core@0.52.0 - windows-sys@0.42.0 - windows-sys@0.48.0 - windows-sys@0.52.0 - windows-targets@0.48.5 - windows-targets@0.52.6 - windows_aarch64_gnullvm@0.42.2 - windows_aarch64_gnullvm@0.48.5 - windows_aarch64_gnullvm@0.52.6 - windows_aarch64_msvc@0.42.2 - windows_aarch64_msvc@0.48.5 - windows_aarch64_msvc@0.52.6 - windows_i686_gnu@0.42.2 - windows_i686_gnu@0.48.5 - windows_i686_gnu@0.52.6 - windows_i686_gnullvm@0.52.6 - windows_i686_msvc@0.42.2 - windows_i686_msvc@0.48.5 - windows_i686_msvc@0.52.6 - windows_x86_64_gnu@0.42.2 - windows_x86_64_gnu@0.48.5 - windows_x86_64_gnu@0.52.6 - windows_x86_64_gnullvm@0.42.2 - windows_x86_64_gnullvm@0.48.5 - windows_x86_64_gnullvm@0.52.6 - windows_x86_64_msvc@0.42.2 - windows_x86_64_msvc@0.48.5 - windows_x86_64_msvc@0.52.6 - winnow@0.6.16 - wit-parser@0.209.1 - wyz@0.5.1 - x509-parser@0.16.0 - yansi@0.5.1 - yansi@1.0.1 - zerocopy-derive@0.7.35 - zerocopy@0.7.35 - zeroize@1.8.1 - zeroize_derive@1.4.2 - zip@2.1.5 - zopfli@0.8.1 - zstd-safe@7.2.0 - zstd-sys@2.0.12+zstd.1.5.6 - zstd@0.13.2 -" - -inherit cargo distutils-r1 - -DESCRIPTION="A malware identification and classification tool" -HOMEPAGE="https://virustotal.github.io/yara-x/" -SRC_URI=" - https://github.com/VirusTotal/yara-x/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz - ${CARGO_CRATE_URIS} -" - -LICENSE="BSD" -# Dependent crate licenses -LICENSE+=" - Apache-2.0 Apache-2.0-with-LLVM-exceptions BSD Boost-1.0 CC0-1.0 - CDDL EPL-2.0 ISC MIT MPL-2.0 Unicode-DFS-2016 WTFPL-2 -" - -SLOT="0" -KEYWORDS="~amd64 ~x86" -IUSE="python" -REQUIRED_USE=" - python? ( ${PYTHON_REQUIRED_USE} ) -" - -RDEPEND=" - python? ( ${PYTHON_DEPS} ) -" -BDEPEND=" - python? ( - ${PYTHON_DEPS} - ${DISTUTILS_DEPS} - ) -" - -wrap_python() { - local phase=$1 - shift - - if use python; then - pushd py >/dev/null || die - distutils-r1_${phase} "$@" - popd >/dev/null || die - fi -} - -# https://bugs.gentoo.org/933231, https://bugs.gentoo.org/933232 -QA_FLAGS_IGNORED="usr/bin/yr" - -pkg_setup() { - # https://bugs.gentoo.org/933233 - QA_SONAME="usr/$(get_libdir)/libyara_x.*\\.so usr/lib.*/py.*/site-packages/yara_x/yara_x.*\\.so" -} - -src_prepare() { - default - wrap_python ${FUNCNAME} -} - -src_compile() { - cargo_src_compile --workspace - wrap_python ${FUNCNAME} -} - -python_test() { - epytest -} - -src_test() { - cargo_src_test - wrap_python ${FUNCNAME} -} - -src_install() { - dobin "$(cargo_target_dir)"/yr - dolib.so "$(cargo_target_dir)"/*.so - - wrap_python ${FUNCNAME} -} diff --git a/app-forensics/yara-x/yara-x-0.7.0-r1.ebuild b/app-forensics/yara-x/yara-x-0.7.0-r1.ebuild new file mode 100644 index 000000000000..080e062c987d --- /dev/null +++ b/app-forensics/yara-x/yara-x-0.7.0-r1.ebuild @@ -0,0 +1,590 @@ +# Copyright 2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +# Autogenerated by pycargoebuild 0.13.3 + +EAPI=8 + +DISTUTILS_EXT=1 +DISTUTILS_USE_PEP517=maturin +DISTUTILS_OPTIONAL=1 +PYTHON_COMPAT=( python3_{10..13} ) + +CRATES=" + addr2line@0.21.0 + addr2line@0.22.0 + adler@1.0.2 + aes@0.8.4 + ahash@0.8.11 + aho-corasick@1.1.3 + alloc-no-stdlib@2.0.4 + alloc-stdlib@0.2.2 + android-tzdata@0.1.1 + android_system_properties@0.1.5 + annotate-snippets@0.11.4 + anstream@0.6.15 + anstyle-parse@0.2.5 + anstyle-query@1.1.1 + anstyle-wincon@3.0.4 + anstyle@1.0.8 + anyhow@1.0.86 + arbitrary@1.3.2 + array-bytes@6.2.3 + arrayvec@0.7.4 + ascii_tree@0.1.1 + asn1-rs-derive@0.5.1 + asn1-rs-impl@0.2.0 + asn1-rs@0.6.2 + async-trait@0.1.81 + autocfg@1.3.0 + backtrace@0.3.73 + base16ct@0.2.0 + base64@0.13.1 + base64@0.21.7 + base64@0.22.1 + base64ct@1.6.0 + beef@0.5.2 + bincode@1.3.3 + bitflags@1.3.2 + bitflags@2.6.0 + bitmask@0.5.0 + bitvec@1.0.1 + block-buffer@0.10.4 + block-buffer@0.9.0 + brotli-decompressor@2.5.1 + brotli@3.5.0 + bstr@1.10.0 + bumpalo@3.16.0 + bytecount@0.6.8 + bytemuck@1.17.0 + byteorder@1.5.0 + bytes@1.7.1 + bzip2-sys@0.1.11+1.0.8 + bzip2@0.4.4 + camino@1.1.8 + cargo-platform@0.1.8 + cargo_metadata@0.14.2 + castaway@0.2.3 + cbindgen@0.27.0 + cc@1.1.13 + cfg-if@1.0.0 + chardetng@0.1.17 + chrono@0.4.38 + cipher@0.4.4 + clap@4.5.16 + clap_builder@4.5.15 + clap_complete@4.5.16 + clap_derive@4.5.13 + clap_lex@0.7.2 + cobs@0.2.3 + colorchoice@1.0.2 + colored_json@4.1.0 + compact_str@0.7.1 + console@0.15.8 + const-oid@0.9.6 + const-random-macro@0.1.16 + const-random@0.1.18 + constant_time_eq@0.3.0 + core-foundation-sys@0.8.7 + countme@3.0.1 + cpp_demangle@0.4.3 + cpufeatures@0.2.13 + cranelift-bforest@0.109.0 + cranelift-codegen-meta@0.109.0 + cranelift-codegen-shared@0.109.0 + cranelift-codegen@0.109.0 + cranelift-control@0.109.0 + cranelift-entity@0.109.0 + cranelift-frontend@0.109.0 + cranelift-isle@0.109.0 + cranelift-native@0.109.0 + cranelift-wasm@0.109.0 + crc-catalog@2.4.0 + crc32fast@1.4.2 + crc@3.2.1 + crossbeam-channel@0.5.13 + crossbeam-deque@0.8.5 + crossbeam-epoch@0.9.18 + crossbeam-queue@0.3.11 + crossbeam-utils@0.8.20 + crossbeam@0.8.4 + crossterm@0.23.2 + crossterm@0.27.0 + crossterm_winapi@0.9.1 + crunchy@0.2.2 + crypto-bigint@0.5.5 + crypto-common@0.1.6 + csscolorparser@0.6.2 + darling@0.20.10 + darling_core@0.20.10 + darling_macro@0.20.10 + data-encoding@2.6.0 + debugid@0.8.0 + deflate64@0.1.9 + deltae@0.3.2 + der-parser@9.0.0 + der@0.7.9 + deranged@0.3.11 + derive_arbitrary@1.3.2 + diff@0.1.13 + digest@0.10.7 + digest@0.9.0 + directories-next@2.0.0 + dirs-sys-next@0.1.2 + dirs-sys@0.3.7 + dirs@4.0.0 + displaydoc@0.2.5 + dsa@0.6.3 + ecdsa@0.16.9 + either@1.13.0 + elliptic-curve@0.13.8 + embedded-io@0.4.0 + enable-ansi-support@0.2.1 + encode_unicode@0.3.6 + encoding_rs@0.8.34 + enum_dispatch@0.3.13 + env_filter@0.1.2 + env_logger@0.11.5 + equivalent@1.0.1 + errno@0.3.9 + error-chain@0.12.4 + fallible-iterator@0.2.0 + fallible-iterator@0.3.0 + fastrand@2.1.0 + ff@0.13.0 + filedescriptor@0.8.2 + findshlibs@0.10.2 + finl_unicode@1.2.0 + fixedbitset@0.4.2 + flate2@1.0.31 + fmmap@0.3.3 + fnv@1.0.7 + fraction@0.14.0 + fs4@0.6.6 + funty@2.0.0 + fxhash@0.2.1 + fxprof-processed-profile@0.6.0 + generic-array@0.14.7 + getrandom@0.2.15 + gimli@0.26.2 + gimli@0.28.1 + gimli@0.29.0 + glob@0.3.1 + globset@0.4.14 + globwalk@0.9.1 + goldenfile@1.7.1 + group@0.13.0 + hashbrown@0.12.3 + hashbrown@0.13.2 + hashbrown@0.14.5 + heck@0.3.3 + heck@0.4.1 + heck@0.5.0 + hermit-abi@0.4.0 + hex@0.4.3 + hkdf@0.12.4 + hmac@0.12.1 + home@0.5.9 + humantime@2.1.0 + iana-time-zone-haiku@0.1.2 + iana-time-zone@0.1.60 + id-arena@2.2.1 + ident_case@1.0.1 + ignore@0.4.22 + ihex@3.0.0 + include_dir@0.7.4 + include_dir_macros@0.7.4 + indexmap@1.9.3 + indexmap@2.4.0 + indoc@2.0.5 + inferno@0.11.21 + inout@0.1.3 + intaglio@1.9.1 + is-terminal@0.4.13 + is_terminal_polyfill@1.70.1 + itertools@0.10.5 + itertools@0.12.1 + itertools@0.13.0 + itoa@1.0.11 + ittapi-sys@0.4.0 + ittapi@0.4.0 + jobserver@0.1.32 + js-sys@0.3.70 + lab@0.11.0 + lazy_static@1.5.0 + leb128@0.2.5 + libc@0.2.156 + libm@0.2.8 + libredox@0.1.3 + lingua-english-language-model@1.1.0 + lingua-french-language-model@1.1.0 + lingua-german-language-model@1.1.0 + lingua-spanish-language-model@1.1.0 + lingua@1.6.2 + linkme-impl@0.3.28 + linkme@0.3.28 + linux-raw-sys@0.4.14 + lock_api@0.4.12 + lockfree-object-pool@0.1.6 + log@0.4.22 + logos-codegen@0.14.1 + logos-derive@0.14.1 + logos@0.14.1 + lzma-rs@0.3.0 + mach2@0.4.2 + magic-sys@0.3.0 + magic@0.16.2 + maplit@1.0.2 + md-5@0.10.6 + md2@0.10.2 + memchr@2.7.4 + memfd@0.6.4 + memmap2@0.9.4 + memmapix@0.7.6 + memmem@0.1.1 + memoffset@0.6.5 + memoffset@0.9.1 + memx@0.1.32 + minimal-lexical@0.2.1 + miniz_oxide@0.7.4 + mio@0.8.11 + nix@0.24.3 + nix@0.26.4 + nom@5.1.3 + nom@7.1.3 + num-bigint-dig@0.8.4 + num-bigint@0.4.6 + num-complex@0.4.6 + num-conv@0.1.0 + num-derive@0.3.3 + num-derive@0.4.2 + num-format@0.4.4 + num-integer@0.1.46 + num-iter@0.1.45 + num-rational@0.4.2 + num-traits@0.2.19 + num@0.4.3 + object@0.36.3 + oid-registry@0.7.0 + once_cell@1.19.0 + opaque-debug@0.3.1 + ordered-float@3.9.2 + ordered-float@4.2.2 + p256@0.13.2 + p384@0.13.0 + parking_lot@0.12.3 + parking_lot_core@0.9.10 + parse-display-derive@0.8.2 + parse-display@0.8.2 + paste@1.0.15 + pbkdf2@0.12.2 + pem-rfc7468@0.7.0 + pest@2.7.11 + pest_derive@2.7.11 + pest_generator@2.7.11 + pest_meta@2.7.11 + phf@0.10.1 + phf@0.11.2 + phf_codegen@0.11.2 + phf_generator@0.11.2 + phf_macros@0.11.2 + phf_shared@0.10.0 + phf_shared@0.11.2 + pkcs1@0.7.5 + pkcs8@0.10.2 + pkg-config@0.3.30 + portable-atomic@1.7.0 + postcard@1.0.8 + powerfmt@0.2.0 + pprof@0.13.0 + ppv-lite86@0.2.20 + pretty_assertions@1.4.0 + primeorder@0.13.6 + proc-macro2@1.0.86 + protobuf-codegen@3.5.0 + protobuf-json-mapping@3.5.0 + protobuf-parse@3.5.0 + protobuf-support@3.5.0 + protobuf@3.5.0 + psm@0.1.21 + pulldown-cmark@0.9.6 + pyo3-build-config@0.21.2 + pyo3-ffi@0.21.2 + pyo3-file@0.8.1 + pyo3-macros-backend@0.21.2 + pyo3-macros@0.21.2 + pyo3@0.21.2 + quick-xml@0.26.0 + quote@1.0.36 + radium@0.7.0 + rand@0.8.5 + rand_chacha@0.3.1 + rand_core@0.6.4 + rayon-core@1.12.1 + rayon@1.10.0 + redox_syscall@0.5.3 + redox_users@0.4.5 + regalloc2@0.9.3 + regex-automata@0.4.7 + regex-syntax@0.7.5 + regex-syntax@0.8.4 + regex@1.10.6 + rfc6979@0.4.0 + rgb@0.8.48 + ring@0.17.8 + rowan@0.15.15 + roxmltree@0.20.0 + rsa@0.9.6 + rustc-demangle@0.1.24 + rustc-hash@1.1.0 + rustc-hash@2.0.0 + rusticata-macros@4.1.0 + rustix@0.38.34 + rustversion@1.0.17 + ryu@1.0.18 + same-file@1.0.6 + scopeguard@1.2.0 + sec1@0.7.3 + semver-parser@0.10.2 + semver@0.11.0 + semver@1.0.23 + serde-wasm-bindgen@0.6.5 + serde@1.0.208 + serde_derive@1.0.208 + serde_json@1.0.125 + serde_spanned@0.6.7 + sha1@0.10.6 + sha2@0.10.8 + sha2@0.9.9 + shlex@1.3.0 + signal-hook-mio@0.2.4 + signal-hook-registry@1.4.2 + signal-hook@0.1.17 + signal-hook@0.3.17 + signature@2.2.0 + simd-adler32@0.3.7 + similar-asserts@1.5.0 + similar@2.6.0 + siphasher@0.3.11 + skeptic@0.13.7 + slice-group-by@0.3.1 + smallvec@1.13.2 + spin@0.9.8 + spki@0.7.3 + sptr@0.3.2 + stable_deref_trait@1.2.0 + static_assertions@1.1.0 + str_stack@0.1.0 + strsim@0.10.0 + strsim@0.11.1 + structmeta-derive@0.2.0 + structmeta@0.2.0 + strum@0.25.0 + strum_macros@0.25.3 + subtle@2.6.1 + superconsole@0.2.0 + symbolic-common@12.10.0 + symbolic-demangle@12.10.0 + syn@1.0.109 + syn@2.0.74 + synstructure@0.13.1 + tap@1.0.1 + target-lexicon@0.12.16 + tempfile@3.12.0 + terminfo@0.7.5 + termios@0.3.3 + termwiz@0.18.0 + text-size@1.1.1 + thiserror-impl@1.0.63 + thiserror@1.0.63 + time-core@0.1.2 + time-macros@0.2.18 + time@0.3.36 + tiny-keccak@2.0.2 + tlsh-fixed@0.1.1 + toml@0.8.19 + toml_datetime@0.6.8 + toml_edit@0.22.20 + typenum@1.17.0 + ucd-trie@0.1.6 + unicase@2.7.0 + unicode-ident@1.0.12 + unicode-segmentation@1.11.0 + unicode-width@0.1.13 + unicode-xid@0.2.4 + unindent@0.2.3 + untrusted@0.9.0 + utf8parse@0.2.2 + uuid@1.10.0 + vcpkg@0.2.15 + version_check@0.9.5 + vtparse@0.6.2 + walkdir@2.5.0 + walrus-macro@0.19.0 + walrus@0.21.1 + wasi@0.11.0+wasi-snapshot-preview1 + wasm-bindgen-backend@0.2.93 + wasm-bindgen-macro-support@0.2.93 + wasm-bindgen-macro@0.2.93 + wasm-bindgen-shared@0.2.93 + wasm-bindgen@0.2.93 + wasm-encoder@0.209.1 + wasm-encoder@0.212.0 + wasm-encoder@0.215.0 + wasmparser@0.209.1 + wasmparser@0.212.0 + wasmprinter@0.209.1 + wasmtime-asm-macros@22.0.0 + wasmtime-cache@22.0.0 + wasmtime-component-macro@22.0.0 + wasmtime-component-util@22.0.0 + wasmtime-cranelift@22.0.0 + wasmtime-environ@22.0.0 + wasmtime-fiber@22.0.0 + wasmtime-jit-debug@22.0.0 + wasmtime-jit-icache-coherence@22.0.0 + wasmtime-slab@22.0.0 + wasmtime-types@22.0.0 + wasmtime-versioned-export-macros@22.0.0 + wasmtime-winch@22.0.0 + wasmtime-wit-bindgen@22.0.0 + wasmtime@22.0.0 + wast@215.0.0 + wat@1.215.0 + wezterm-bidi@0.2.3 + wezterm-color-types@0.2.0 + wezterm-dynamic-derive@0.1.0 + wezterm-dynamic@0.1.0 + wezterm-dynamic@0.2.0 + which@4.4.2 + wild@2.2.1 + winapi-i686-pc-windows-gnu@0.4.0 + winapi-util@0.1.9 + winapi-x86_64-pc-windows-gnu@0.4.0 + winapi@0.3.9 + winch-codegen@0.20.0 + windows-core@0.52.0 + windows-sys@0.42.0 + windows-sys@0.48.0 + windows-sys@0.52.0 + windows-sys@0.59.0 + windows-targets@0.48.5 + windows-targets@0.52.6 + windows_aarch64_gnullvm@0.42.2 + windows_aarch64_gnullvm@0.48.5 + windows_aarch64_gnullvm@0.52.6 + windows_aarch64_msvc@0.42.2 + windows_aarch64_msvc@0.48.5 + windows_aarch64_msvc@0.52.6 + windows_i686_gnu@0.42.2 + windows_i686_gnu@0.48.5 + windows_i686_gnu@0.52.6 + windows_i686_gnullvm@0.52.6 + windows_i686_msvc@0.42.2 + windows_i686_msvc@0.48.5 + windows_i686_msvc@0.52.6 + windows_x86_64_gnu@0.42.2 + windows_x86_64_gnu@0.48.5 + windows_x86_64_gnu@0.52.6 + windows_x86_64_gnullvm@0.42.2 + windows_x86_64_gnullvm@0.48.5 + windows_x86_64_gnullvm@0.52.6 + windows_x86_64_msvc@0.42.2 + windows_x86_64_msvc@0.48.5 + windows_x86_64_msvc@0.52.6 + winnow@0.6.18 + wit-parser@0.209.1 + wyz@0.5.1 + x509-parser@0.16.0 + yansi@0.5.1 + yansi@1.0.1 + zerocopy-derive@0.7.35 + zerocopy@0.7.35 + zeroize@1.8.1 + zeroize_derive@1.4.2 + zip@2.1.6 + zopfli@0.8.1 + zstd-safe@7.2.1 + zstd-sys@2.0.13+zstd.1.5.6 + zstd@0.13.2 +" + +inherit cargo distutils-r1 + +DESCRIPTION="A malware identification and classification tool" +HOMEPAGE="https://virustotal.github.io/yara-x/" +SRC_URI=" + https://github.com/VirusTotal/yara-x/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz + ${CARGO_CRATE_URIS} +" + +LICENSE="BSD" +# Dependent crate licenses +LICENSE+=" + Apache-2.0 Apache-2.0-with-LLVM-exceptions BSD Boost-1.0 CC0-1.0 + CDDL EPL-2.0 ISC MIT MPL-2.0 Unicode-DFS-2016 WTFPL-2 +" + +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="python" +REQUIRED_USE=" + python? ( ${PYTHON_REQUIRED_USE} ) +" + +RDEPEND=" + python? ( ${PYTHON_DEPS} ) +" +BDEPEND=" + python? ( + ${PYTHON_DEPS} + ${DISTUTILS_DEPS} + ) +" + +wrap_python() { + local phase=$1 + shift + + if use python; then + pushd py >/dev/null || die + distutils-r1_${phase} "$@" + popd >/dev/null || die + fi +} + +# https://bugs.gentoo.org/933231, https://bugs.gentoo.org/933232 +QA_FLAGS_IGNORED="usr/bin/yr" + +pkg_setup() { + # https://bugs.gentoo.org/933233 + QA_SONAME="usr/$(get_libdir)/libyara_x.*\\.so usr/lib.*/py.*/site-packages/yara_x/yara_x.*\\.so" + + rust_pkg_setup +} + +src_prepare() { + default + wrap_python ${FUNCNAME} +} + +src_compile() { + cargo_src_compile --workspace + wrap_python ${FUNCNAME} +} + +python_test() { + epytest +} + +src_test() { + cargo_src_test + wrap_python ${FUNCNAME} +} + +src_install() { + dobin "$(cargo_target_dir)"/yr + dolib.so "$(cargo_target_dir)"/*.so + + wrap_python ${FUNCNAME} +} diff --git a/app-forensics/yara-x/yara-x-0.7.0.ebuild b/app-forensics/yara-x/yara-x-0.7.0.ebuild deleted file mode 100644 index 1f95cf49b85c..000000000000 --- a/app-forensics/yara-x/yara-x-0.7.0.ebuild +++ /dev/null @@ -1,588 +0,0 @@ -# Copyright 2024 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -# Autogenerated by pycargoebuild 0.13.3 - -EAPI=8 - -DISTUTILS_EXT=1 -DISTUTILS_USE_PEP517=maturin -DISTUTILS_OPTIONAL=1 -PYTHON_COMPAT=( python3_{10..13} ) - -CRATES=" - addr2line@0.21.0 - addr2line@0.22.0 - adler@1.0.2 - aes@0.8.4 - ahash@0.8.11 - aho-corasick@1.1.3 - alloc-no-stdlib@2.0.4 - alloc-stdlib@0.2.2 - android-tzdata@0.1.1 - android_system_properties@0.1.5 - annotate-snippets@0.11.4 - anstream@0.6.15 - anstyle-parse@0.2.5 - anstyle-query@1.1.1 - anstyle-wincon@3.0.4 - anstyle@1.0.8 - anyhow@1.0.86 - arbitrary@1.3.2 - array-bytes@6.2.3 - arrayvec@0.7.4 - ascii_tree@0.1.1 - asn1-rs-derive@0.5.1 - asn1-rs-impl@0.2.0 - asn1-rs@0.6.2 - async-trait@0.1.81 - autocfg@1.3.0 - backtrace@0.3.73 - base16ct@0.2.0 - base64@0.13.1 - base64@0.21.7 - base64@0.22.1 - base64ct@1.6.0 - beef@0.5.2 - bincode@1.3.3 - bitflags@1.3.2 - bitflags@2.6.0 - bitmask@0.5.0 - bitvec@1.0.1 - block-buffer@0.10.4 - block-buffer@0.9.0 - brotli-decompressor@2.5.1 - brotli@3.5.0 - bstr@1.10.0 - bumpalo@3.16.0 - bytecount@0.6.8 - bytemuck@1.17.0 - byteorder@1.5.0 - bytes@1.7.1 - bzip2-sys@0.1.11+1.0.8 - bzip2@0.4.4 - camino@1.1.8 - cargo-platform@0.1.8 - cargo_metadata@0.14.2 - castaway@0.2.3 - cbindgen@0.27.0 - cc@1.1.13 - cfg-if@1.0.0 - chardetng@0.1.17 - chrono@0.4.38 - cipher@0.4.4 - clap@4.5.16 - clap_builder@4.5.15 - clap_complete@4.5.16 - clap_derive@4.5.13 - clap_lex@0.7.2 - cobs@0.2.3 - colorchoice@1.0.2 - colored_json@4.1.0 - compact_str@0.7.1 - console@0.15.8 - const-oid@0.9.6 - const-random-macro@0.1.16 - const-random@0.1.18 - constant_time_eq@0.3.0 - core-foundation-sys@0.8.7 - countme@3.0.1 - cpp_demangle@0.4.3 - cpufeatures@0.2.13 - cranelift-bforest@0.109.0 - cranelift-codegen-meta@0.109.0 - cranelift-codegen-shared@0.109.0 - cranelift-codegen@0.109.0 - cranelift-control@0.109.0 - cranelift-entity@0.109.0 - cranelift-frontend@0.109.0 - cranelift-isle@0.109.0 - cranelift-native@0.109.0 - cranelift-wasm@0.109.0 - crc-catalog@2.4.0 - crc32fast@1.4.2 - crc@3.2.1 - crossbeam-channel@0.5.13 - crossbeam-deque@0.8.5 - crossbeam-epoch@0.9.18 - crossbeam-queue@0.3.11 - crossbeam-utils@0.8.20 - crossbeam@0.8.4 - crossterm@0.23.2 - crossterm@0.27.0 - crossterm_winapi@0.9.1 - crunchy@0.2.2 - crypto-bigint@0.5.5 - crypto-common@0.1.6 - csscolorparser@0.6.2 - darling@0.20.10 - darling_core@0.20.10 - darling_macro@0.20.10 - data-encoding@2.6.0 - debugid@0.8.0 - deflate64@0.1.9 - deltae@0.3.2 - der-parser@9.0.0 - der@0.7.9 - deranged@0.3.11 - derive_arbitrary@1.3.2 - diff@0.1.13 - digest@0.10.7 - digest@0.9.0 - directories-next@2.0.0 - dirs-sys-next@0.1.2 - dirs-sys@0.3.7 - dirs@4.0.0 - displaydoc@0.2.5 - dsa@0.6.3 - ecdsa@0.16.9 - either@1.13.0 - elliptic-curve@0.13.8 - embedded-io@0.4.0 - enable-ansi-support@0.2.1 - encode_unicode@0.3.6 - encoding_rs@0.8.34 - enum_dispatch@0.3.13 - env_filter@0.1.2 - env_logger@0.11.5 - equivalent@1.0.1 - errno@0.3.9 - error-chain@0.12.4 - fallible-iterator@0.2.0 - fallible-iterator@0.3.0 - fastrand@2.1.0 - ff@0.13.0 - filedescriptor@0.8.2 - findshlibs@0.10.2 - finl_unicode@1.2.0 - fixedbitset@0.4.2 - flate2@1.0.31 - fmmap@0.3.3 - fnv@1.0.7 - fraction@0.14.0 - fs4@0.6.6 - funty@2.0.0 - fxhash@0.2.1 - fxprof-processed-profile@0.6.0 - generic-array@0.14.7 - getrandom@0.2.15 - gimli@0.26.2 - gimli@0.28.1 - gimli@0.29.0 - glob@0.3.1 - globset@0.4.14 - globwalk@0.9.1 - goldenfile@1.7.1 - group@0.13.0 - hashbrown@0.12.3 - hashbrown@0.13.2 - hashbrown@0.14.5 - heck@0.3.3 - heck@0.4.1 - heck@0.5.0 - hermit-abi@0.4.0 - hex@0.4.3 - hkdf@0.12.4 - hmac@0.12.1 - home@0.5.9 - humantime@2.1.0 - iana-time-zone-haiku@0.1.2 - iana-time-zone@0.1.60 - id-arena@2.2.1 - ident_case@1.0.1 - ignore@0.4.22 - ihex@3.0.0 - include_dir@0.7.4 - include_dir_macros@0.7.4 - indexmap@1.9.3 - indexmap@2.4.0 - indoc@2.0.5 - inferno@0.11.21 - inout@0.1.3 - intaglio@1.9.1 - is-terminal@0.4.13 - is_terminal_polyfill@1.70.1 - itertools@0.10.5 - itertools@0.12.1 - itertools@0.13.0 - itoa@1.0.11 - ittapi-sys@0.4.0 - ittapi@0.4.0 - jobserver@0.1.32 - js-sys@0.3.70 - lab@0.11.0 - lazy_static@1.5.0 - leb128@0.2.5 - libc@0.2.156 - libm@0.2.8 - libredox@0.1.3 - lingua-english-language-model@1.1.0 - lingua-french-language-model@1.1.0 - lingua-german-language-model@1.1.0 - lingua-spanish-language-model@1.1.0 - lingua@1.6.2 - linkme-impl@0.3.28 - linkme@0.3.28 - linux-raw-sys@0.4.14 - lock_api@0.4.12 - lockfree-object-pool@0.1.6 - log@0.4.22 - logos-codegen@0.14.1 - logos-derive@0.14.1 - logos@0.14.1 - lzma-rs@0.3.0 - mach2@0.4.2 - magic-sys@0.3.0 - magic@0.16.2 - maplit@1.0.2 - md-5@0.10.6 - md2@0.10.2 - memchr@2.7.4 - memfd@0.6.4 - memmap2@0.9.4 - memmapix@0.7.6 - memmem@0.1.1 - memoffset@0.6.5 - memoffset@0.9.1 - memx@0.1.32 - minimal-lexical@0.2.1 - miniz_oxide@0.7.4 - mio@0.8.11 - nix@0.24.3 - nix@0.26.4 - nom@5.1.3 - nom@7.1.3 - num-bigint-dig@0.8.4 - num-bigint@0.4.6 - num-complex@0.4.6 - num-conv@0.1.0 - num-derive@0.3.3 - num-derive@0.4.2 - num-format@0.4.4 - num-integer@0.1.46 - num-iter@0.1.45 - num-rational@0.4.2 - num-traits@0.2.19 - num@0.4.3 - object@0.36.3 - oid-registry@0.7.0 - once_cell@1.19.0 - opaque-debug@0.3.1 - ordered-float@3.9.2 - ordered-float@4.2.2 - p256@0.13.2 - p384@0.13.0 - parking_lot@0.12.3 - parking_lot_core@0.9.10 - parse-display-derive@0.8.2 - parse-display@0.8.2 - paste@1.0.15 - pbkdf2@0.12.2 - pem-rfc7468@0.7.0 - pest@2.7.11 - pest_derive@2.7.11 - pest_generator@2.7.11 - pest_meta@2.7.11 - phf@0.10.1 - phf@0.11.2 - phf_codegen@0.11.2 - phf_generator@0.11.2 - phf_macros@0.11.2 - phf_shared@0.10.0 - phf_shared@0.11.2 - pkcs1@0.7.5 - pkcs8@0.10.2 - pkg-config@0.3.30 - portable-atomic@1.7.0 - postcard@1.0.8 - powerfmt@0.2.0 - pprof@0.13.0 - ppv-lite86@0.2.20 - pretty_assertions@1.4.0 - primeorder@0.13.6 - proc-macro2@1.0.86 - protobuf-codegen@3.5.0 - protobuf-json-mapping@3.5.0 - protobuf-parse@3.5.0 - protobuf-support@3.5.0 - protobuf@3.5.0 - psm@0.1.21 - pulldown-cmark@0.9.6 - pyo3-build-config@0.21.2 - pyo3-ffi@0.21.2 - pyo3-file@0.8.1 - pyo3-macros-backend@0.21.2 - pyo3-macros@0.21.2 - pyo3@0.21.2 - quick-xml@0.26.0 - quote@1.0.36 - radium@0.7.0 - rand@0.8.5 - rand_chacha@0.3.1 - rand_core@0.6.4 - rayon-core@1.12.1 - rayon@1.10.0 - redox_syscall@0.5.3 - redox_users@0.4.5 - regalloc2@0.9.3 - regex-automata@0.4.7 - regex-syntax@0.7.5 - regex-syntax@0.8.4 - regex@1.10.6 - rfc6979@0.4.0 - rgb@0.8.48 - ring@0.17.8 - rowan@0.15.15 - roxmltree@0.20.0 - rsa@0.9.6 - rustc-demangle@0.1.24 - rustc-hash@1.1.0 - rustc-hash@2.0.0 - rusticata-macros@4.1.0 - rustix@0.38.34 - rustversion@1.0.17 - ryu@1.0.18 - same-file@1.0.6 - scopeguard@1.2.0 - sec1@0.7.3 - semver-parser@0.10.2 - semver@0.11.0 - semver@1.0.23 - serde-wasm-bindgen@0.6.5 - serde@1.0.208 - serde_derive@1.0.208 - serde_json@1.0.125 - serde_spanned@0.6.7 - sha1@0.10.6 - sha2@0.10.8 - sha2@0.9.9 - shlex@1.3.0 - signal-hook-mio@0.2.4 - signal-hook-registry@1.4.2 - signal-hook@0.1.17 - signal-hook@0.3.17 - signature@2.2.0 - simd-adler32@0.3.7 - similar-asserts@1.5.0 - similar@2.6.0 - siphasher@0.3.11 - skeptic@0.13.7 - slice-group-by@0.3.1 - smallvec@1.13.2 - spin@0.9.8 - spki@0.7.3 - sptr@0.3.2 - stable_deref_trait@1.2.0 - static_assertions@1.1.0 - str_stack@0.1.0 - strsim@0.10.0 - strsim@0.11.1 - structmeta-derive@0.2.0 - structmeta@0.2.0 - strum@0.25.0 - strum_macros@0.25.3 - subtle@2.6.1 - superconsole@0.2.0 - symbolic-common@12.10.0 - symbolic-demangle@12.10.0 - syn@1.0.109 - syn@2.0.74 - synstructure@0.13.1 - tap@1.0.1 - target-lexicon@0.12.16 - tempfile@3.12.0 - terminfo@0.7.5 - termios@0.3.3 - termwiz@0.18.0 - text-size@1.1.1 - thiserror-impl@1.0.63 - thiserror@1.0.63 - time-core@0.1.2 - time-macros@0.2.18 - time@0.3.36 - tiny-keccak@2.0.2 - tlsh-fixed@0.1.1 - toml@0.8.19 - toml_datetime@0.6.8 - toml_edit@0.22.20 - typenum@1.17.0 - ucd-trie@0.1.6 - unicase@2.7.0 - unicode-ident@1.0.12 - unicode-segmentation@1.11.0 - unicode-width@0.1.13 - unicode-xid@0.2.4 - unindent@0.2.3 - untrusted@0.9.0 - utf8parse@0.2.2 - uuid@1.10.0 - vcpkg@0.2.15 - version_check@0.9.5 - vtparse@0.6.2 - walkdir@2.5.0 - walrus-macro@0.19.0 - walrus@0.21.1 - wasi@0.11.0+wasi-snapshot-preview1 - wasm-bindgen-backend@0.2.93 - wasm-bindgen-macro-support@0.2.93 - wasm-bindgen-macro@0.2.93 - wasm-bindgen-shared@0.2.93 - wasm-bindgen@0.2.93 - wasm-encoder@0.209.1 - wasm-encoder@0.212.0 - wasm-encoder@0.215.0 - wasmparser@0.209.1 - wasmparser@0.212.0 - wasmprinter@0.209.1 - wasmtime-asm-macros@22.0.0 - wasmtime-cache@22.0.0 - wasmtime-component-macro@22.0.0 - wasmtime-component-util@22.0.0 - wasmtime-cranelift@22.0.0 - wasmtime-environ@22.0.0 - wasmtime-fiber@22.0.0 - wasmtime-jit-debug@22.0.0 - wasmtime-jit-icache-coherence@22.0.0 - wasmtime-slab@22.0.0 - wasmtime-types@22.0.0 - wasmtime-versioned-export-macros@22.0.0 - wasmtime-winch@22.0.0 - wasmtime-wit-bindgen@22.0.0 - wasmtime@22.0.0 - wast@215.0.0 - wat@1.215.0 - wezterm-bidi@0.2.3 - wezterm-color-types@0.2.0 - wezterm-dynamic-derive@0.1.0 - wezterm-dynamic@0.1.0 - wezterm-dynamic@0.2.0 - which@4.4.2 - wild@2.2.1 - winapi-i686-pc-windows-gnu@0.4.0 - winapi-util@0.1.9 - winapi-x86_64-pc-windows-gnu@0.4.0 - winapi@0.3.9 - winch-codegen@0.20.0 - windows-core@0.52.0 - windows-sys@0.42.0 - windows-sys@0.48.0 - windows-sys@0.52.0 - windows-sys@0.59.0 - windows-targets@0.48.5 - windows-targets@0.52.6 - windows_aarch64_gnullvm@0.42.2 - windows_aarch64_gnullvm@0.48.5 - windows_aarch64_gnullvm@0.52.6 - windows_aarch64_msvc@0.42.2 - windows_aarch64_msvc@0.48.5 - windows_aarch64_msvc@0.52.6 - windows_i686_gnu@0.42.2 - windows_i686_gnu@0.48.5 - windows_i686_gnu@0.52.6 - windows_i686_gnullvm@0.52.6 - windows_i686_msvc@0.42.2 - windows_i686_msvc@0.48.5 - windows_i686_msvc@0.52.6 - windows_x86_64_gnu@0.42.2 - windows_x86_64_gnu@0.48.5 - windows_x86_64_gnu@0.52.6 - windows_x86_64_gnullvm@0.42.2 - windows_x86_64_gnullvm@0.48.5 - windows_x86_64_gnullvm@0.52.6 - windows_x86_64_msvc@0.42.2 - windows_x86_64_msvc@0.48.5 - windows_x86_64_msvc@0.52.6 - winnow@0.6.18 - wit-parser@0.209.1 - wyz@0.5.1 - x509-parser@0.16.0 - yansi@0.5.1 - yansi@1.0.1 - zerocopy-derive@0.7.35 - zerocopy@0.7.35 - zeroize@1.8.1 - zeroize_derive@1.4.2 - zip@2.1.6 - zopfli@0.8.1 - zstd-safe@7.2.1 - zstd-sys@2.0.13+zstd.1.5.6 - zstd@0.13.2 -" - -inherit cargo distutils-r1 - -DESCRIPTION="A malware identification and classification tool" -HOMEPAGE="https://virustotal.github.io/yara-x/" -SRC_URI=" - https://github.com/VirusTotal/yara-x/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz - ${CARGO_CRATE_URIS} -" - -LICENSE="BSD" -# Dependent crate licenses -LICENSE+=" - Apache-2.0 Apache-2.0-with-LLVM-exceptions BSD Boost-1.0 CC0-1.0 - CDDL EPL-2.0 ISC MIT MPL-2.0 Unicode-DFS-2016 WTFPL-2 -" - -SLOT="0" -KEYWORDS="~amd64 ~x86" -IUSE="python" -REQUIRED_USE=" - python? ( ${PYTHON_REQUIRED_USE} ) -" - -RDEPEND=" - python? ( ${PYTHON_DEPS} ) -" -BDEPEND=" - python? ( - ${PYTHON_DEPS} - ${DISTUTILS_DEPS} - ) -" - -wrap_python() { - local phase=$1 - shift - - if use python; then - pushd py >/dev/null || die - distutils-r1_${phase} "$@" - popd >/dev/null || die - fi -} - -# https://bugs.gentoo.org/933231, https://bugs.gentoo.org/933232 -QA_FLAGS_IGNORED="usr/bin/yr" - -pkg_setup() { - # https://bugs.gentoo.org/933233 - QA_SONAME="usr/$(get_libdir)/libyara_x.*\\.so usr/lib.*/py.*/site-packages/yara_x/yara_x.*\\.so" -} - -src_prepare() { - default - wrap_python ${FUNCNAME} -} - -src_compile() { - cargo_src_compile --workspace - wrap_python ${FUNCNAME} -} - -python_test() { - epytest -} - -src_test() { - cargo_src_test - wrap_python ${FUNCNAME} -} - -src_install() { - dobin "$(cargo_target_dir)"/yr - dolib.so "$(cargo_target_dir)"/*.so - - wrap_python ${FUNCNAME} -} -- cgit v1.2.3