From ecf595717796995cab38a07093dc9597d55d0ea6 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 25 Mar 2024 13:01:09 +0000 Subject: gentoo auto-resync : 25:03:2024 - 13:01:08 --- sys-apps/syd/syd-3.15.6.ebuild | 248 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 248 insertions(+) create mode 100644 sys-apps/syd/syd-3.15.6.ebuild (limited to 'sys-apps/syd/syd-3.15.6.ebuild') diff --git a/sys-apps/syd/syd-3.15.6.ebuild b/sys-apps/syd/syd-3.15.6.ebuild new file mode 100644 index 000000000000..030c60da9ae8 --- /dev/null +++ b/sys-apps/syd/syd-3.15.6.ebuild @@ -0,0 +1,248 @@ +# Copyright 2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +# Autogenerated by pycargoebuild 0.13.1 + +EAPI=8 + +RESTRICT="test" # fails with sandbox + +CRATES=" + addr2line@0.21.0 + adler@1.0.2 + aho-corasick@1.1.2 + anes@0.1.6 + anstyle@1.0.6 + anyhow@1.0.80 + argv@0.1.11 + autocfg@1.1.0 + backtrace@0.3.69 + bitflags@1.3.2 + bitflags@2.4.2 + bstr@1.9.1 + byteorder@1.5.0 + cast@0.3.0 + cc@1.0.90 + cfg-if@1.0.0 + ciborium-io@0.2.2 + ciborium-ll@0.2.2 + ciborium@0.2.2 + clap@4.5.2 + clap_builder@4.5.2 + clap_lex@0.7.0 + const-hex@1.11.2 + cpufeatures@0.2.12 + criterion-plot@0.5.0 + criterion@0.5.1 + crossbeam-channel@0.5.12 + crossbeam-utils@0.8.19 + crunchy@0.2.2 + cty@0.2.2 + darling@0.20.8 + darling_core@0.20.8 + darling_macro@0.20.8 + derive_builder@0.20.0 + derive_builder_core@0.20.0 + derive_builder_macro@0.20.0 + dirs-sys@0.4.1 + dirs@5.0.1 + either@1.10.0 + env_filter@0.1.0 + env_logger@0.11.3 + equivalent@1.0.1 + errno@0.3.8 + fastrand@2.0.1 + fixedbitset@0.4.2 + fnv@1.0.7 + futures-channel@0.3.30 + futures-core@0.3.30 + futures-executor@0.3.30 + futures-task@0.3.30 + futures-util@0.3.30 + getargs@0.5.0 + getrandom@0.2.12 + getset@0.1.2 + gimli@0.28.1 + globset@0.4.14 + half@2.4.0 + hashbrown@0.14.3 + heck@0.4.1 + hermit-abi@0.3.9 + hex@0.4.3 + ident_case@1.0.1 + indexmap@2.2.5 + io-lifetimes@1.0.11 + io-uring@0.6.3 + ipnetwork@0.20.0 + is-terminal@0.4.12 + itertools@0.10.5 + itoa@1.0.10 + lazy_static@1.4.0 + libc@0.2.153 + libloading@0.8.3 + libm@0.2.8 + libredox@0.0.1 + libseccomp-sys@0.2.1 + libseccomp@0.3.0 + linux-raw-sys@0.1.4 + linux-raw-sys@0.4.13 + lock_api@0.4.11 + log@0.4.21 + md5@0.7.0 + memchr@2.7.1 + memoffset@0.7.1 + mimalloc2-rust-sys@2.1.2-source + mimalloc2-rust@0.3.0 + miniz_oxide@0.7.2 + nix@0.26.4 + nonempty@0.10.0 + num-traits@0.2.18 + num_cpus@1.16.0 + object@0.32.2 + oci-spec@0.6.5 + once_cell@1.19.0 + oorandom@11.1.3 + openat2@0.1.2 + option-ext@0.2.0 + parking_lot@0.12.1 + parking_lot_core@0.9.9 + parse-size@1.0.0 + pentacle@1.0.0 + petgraph@0.6.4 + pin-project-lite@0.2.13 + pin-utils@0.1.0 + pkg-config@0.3.30 + ppv-lite86@0.2.17 + proc-macro-error-attr@1.0.4 + proc-macro-error@1.0.4 + proc-macro2@1.0.78 + procfs@0.15.1 + proptest@1.4.0 + quote@1.0.35 + rand@0.8.5 + rand_chacha@0.3.1 + rand_core@0.6.4 + rand_xorshift@0.3.0 + redox_syscall@0.4.1 + redox_users@0.4.4 + regex-automata@0.4.6 + regex-syntax@0.8.2 + regex@1.10.3 + rs_hasher_ctx@0.1.3 + rs_internal_hasher@0.1.3 + rs_internal_state@0.1.3 + rs_n_bit_words@0.1.3 + rs_sha1@0.1.3 + rs_sha3_256@0.1.2 + rs_sha3_384@0.1.2 + rs_sha3_512@0.1.2 + rustc-demangle@0.1.23 + rustix@0.36.17 + rustix@0.38.31 + rustversion@1.0.14 + rusty_pool@0.7.0 + ryu@1.0.17 + same-file@1.0.6 + scopeguard@1.2.0 + sendfd@0.4.3 + serde@1.0.197 + serde_derive@1.0.197 + serde_json@1.0.114 + shellexpand@3.1.0 + slab@0.4.9 + smallvec@1.13.1 + strsim@0.10.0 + strum@0.26.1 + strum_macros@0.26.1 + syn@1.0.109 + syn@2.0.52 + tempfile@3.10.1 + thiserror-impl@1.0.57 + thiserror@1.0.57 + thread-id@4.2.1 + tick_counter@0.4.5 + tinytemplate@1.2.1 + unarray@0.1.4 + unicode-ident@1.0.12 + version_check@0.9.4 + walkdir@2.5.0 + wasi@0.11.0+wasi-snapshot-preview1 + winapi-i686-pc-windows-gnu@0.4.0 + winapi-util@0.1.6 + winapi-x86_64-pc-windows-gnu@0.4.0 + winapi@0.3.9 + windows-sys@0.45.0 + windows-sys@0.48.0 + windows-sys@0.52.0 + windows-targets@0.42.2 + windows-targets@0.48.5 + windows-targets@0.52.4 + windows_aarch64_gnullvm@0.42.2 + windows_aarch64_gnullvm@0.48.5 + windows_aarch64_gnullvm@0.52.4 + windows_aarch64_msvc@0.42.2 + windows_aarch64_msvc@0.48.5 + windows_aarch64_msvc@0.52.4 + windows_i686_gnu@0.42.2 + windows_i686_gnu@0.48.5 + windows_i686_gnu@0.52.4 + windows_i686_msvc@0.42.2 + windows_i686_msvc@0.48.5 + windows_i686_msvc@0.52.4 + windows_x86_64_gnu@0.42.2 + windows_x86_64_gnu@0.48.5 + windows_x86_64_gnu@0.52.4 + windows_x86_64_gnullvm@0.42.2 + windows_x86_64_gnullvm@0.48.5 + windows_x86_64_gnullvm@0.52.4 + windows_x86_64_msvc@0.42.2 + windows_x86_64_msvc@0.48.5 + windows_x86_64_msvc@0.52.4 +" + +inherit cargo + +DESCRIPTION="seccomp and landlock based application sandbox with support for namespaces" +HOMEPAGE="https://sydbox.exherbolinux.org" +SRC_URI="https://git.sr.ht/~alip/syd/archive/v${PV}.tar.gz -> ${P}.tar.gz + ${CARGO_CRATE_URIS} +" + +IUSE="+static" + +LICENSE="GPL-3+" +# Dependent crate licenses +LICENSE+=" Apache-2.0 MIT Unicode-DFS-2016" + +SLOT="0" +KEYWORDS="~amd64" + +DEPEND="static? ( sys-libs/libseccomp[static-libs] ) + sys-libs/libseccomp" +RDEPEND="${DEPEND}" + +S="${WORKDIR}/syd-v${PV}" + +src_compile() { + if use static; then + export LIBSECCOMP_LINK_TYPE="static" + export LIBSECCOMP_LIB_PATH=$(pkgconf --variable=libdir libseccomp) + export RUSTFLAGS+="-Clink-args=-static -Clink-args=-no-pie -Clink-args=-Wl,-Bstatic -Ctarget-feature=+crt-static" + myfeatures=( "static" ) + fi + cargo_src_compile +} + +src_install () { + cargo_src_install + dodoc README.md + insinto /usr/libexec + doins src/esyd.sh + + insinto /etc + newins data/user.syd-3 user.syd-3.sample +} + +src_test() { + RUSTFLAGS="" cargo_src_test +} -- cgit v1.2.3