From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 6D19415838C for ; Fri, 26 Jan 2024 06:00:49 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id A9381E29C6; Fri, 26 Jan 2024 06:00:48 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 80AA5E29C6 for ; Fri, 26 Jan 2024 06:00:48 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 74D3034340D for ; Fri, 26 Jan 2024 06:00:47 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id D77FC1082 for ; Fri, 26 Jan 2024 06:00:45 +0000 (UTC) From: "Patrick Lauer" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Patrick Lauer" Message-ID: <1706248816.a273cdd938fbcd1981e4fd89168abba845dbb4ee.patrick@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sys-apps/syd/ X-VCS-Repository: repo/gentoo X-VCS-Files: sys-apps/syd/Manifest sys-apps/syd/syd-3.11.0.ebuild X-VCS-Directories: sys-apps/syd/ X-VCS-Committer: patrick X-VCS-Committer-Name: Patrick Lauer X-VCS-Revision: a273cdd938fbcd1981e4fd89168abba845dbb4ee X-VCS-Branch: master Date: Fri, 26 Jan 2024 06:00:45 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: cd903a6d-f79e-4fe6-9848-e5d69924420d X-Archives-Hash: 29de9f1132f8dbd535efa81d22a5c8e0 commit: a273cdd938fbcd1981e4fd89168abba845dbb4ee Author: Patrick Lauer gentoo org> AuthorDate: Fri Jan 26 06:00:16 2024 +0000 Commit: Patrick Lauer gentoo org> CommitDate: Fri Jan 26 06:00:16 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a273cdd9 sys-apps/syd: add 3.11.0 Signed-off-by: Patrick Lauer gentoo.org> sys-apps/syd/Manifest | 1 + sys-apps/syd/syd-3.11.0.ebuild | 183 +++++++++++++++++++++++++++++++++++++++++ 2 files changed, 184 insertions(+) diff --git a/sys-apps/syd/Manifest b/sys-apps/syd/Manifest index b54203f7b66a..867aa8ec317b 100644 --- a/sys-apps/syd/Manifest +++ b/sys-apps/syd/Manifest @@ -117,6 +117,7 @@ DIST smallvec-1.13.1.crate 34952 BLAKE2B e0dcf1d26883564cd4f5d20a588562404e19307 DIST strum-0.25.0.crate 5539 BLAKE2B 9c031e5ce19e2ecaa63e63118197c740ae9295b8881f6280ad92847b99fca6fb08b0d395ab1b2a66e25c8374cd18866d8436540538e3c0f1f047fd2235971b40 SHA512 a3522df79547e94518f25a0e29248f67f1d7e2586a7a424d7d996cb6bfe5d98fcc4fc44da7ddcd4e35a1127b2816bee55107f30cb2a559f5b9bbb1346139544a DIST strum_macros-0.25.3.crate 22570 BLAKE2B 511af0d1f0f76df7ad1528c79987b6e09390bfb33e1c34078fb5450171aca7f169afb83fa2f2338a861ded6842c8535ea6e4cdb0d31f341edab0a06d7eeac16c SHA512 e6ebc00943d9f88104815a5bd6a302a391a06fb0ed5ff836e01d341150628684e00e5e2e5b3f6466ece92d376985246f818243a0d1d775cfa55d1c50c0ec0c62 DIST syd-3.10.0.tar.gz 432767 BLAKE2B 76567dbd5bedc2bbf4efbf8481a4be95a599ce12c400983d1c5dc460986ef9b225c0815e68f8560d8b749d9f0319b5736b850d1e90bba67a07303c8f054ca6df SHA512 7901ec25c8f5eda789d8347063da8c36881d58fdc15cb3937fa81c0a90d136c0942ca953511ca454d7ff434e259e537f5d80526b7e9ddd9de7aff08601ca30ea +DIST syd-3.11.0.tar.gz 433456 BLAKE2B 1ea4f604589da276cda66f558f1fb10969850cb5c350d9d04759d9465cdd220bb74ea493f79afbe501c343f6e5f0fc1660c227a217406e83712697a3a7e24636 SHA512 c19b62f05a062dd1f2fff0dbb564967cdb4b33179345193d73847ba9de25eab5400025410c03e62b46541f54eed5c964d66c763483f543c588f38603c1942d1b DIST syd-3.9.13.tar.gz 393296 BLAKE2B b0ebbcec52806ea61991cef8085967aefb0257bda6d494157f9f643e6d1613560b5dcdb9a300ebb6953ab0a4f43112651229475f8503f5410b6abf2d2245a030 SHA512 7c75b04c16e0872fca4da2fb9cf1dd7441c452b54130b766262f5c945d14d352d49d66bd8a70959ce8a8dd87f36b97aafced4d57559600f5a151c229dc020f1d DIST syn-2.0.41.crate 246016 BLAKE2B 9d389f2e2a0acb4c84c309456e8ffcc88c5d4d541535ed136832d7a6054dde45a598bb68e8a6f3062ca2a96e1ceae947d54b3aec9bad65b0c51d6733aa6c80db SHA512 6bbaf69ca783025dfb81ac3612ac60bfbed31b2d87792909b35c12892dadebdaff2ddf9463105e536b671dce5870610ab90fe29471284bbd3014dca8d6993f1a DIST syn-2.0.48.crate 250566 BLAKE2B e46b0863af76c3116c84d01b654a9820b7edc51f75c9c5301a7967d12284f78da602409f34fc40524728350dc6b998a4d738f08b8868f95236b3e5d24c460580 SHA512 926c0ad55cc743df20f9166b6d71fd44421aeb1f073fd86b6ddb53e13cd508b539c0360ce64b07b65597bb14639c8f33acf7e60951e1e9128624517aa3aee325 diff --git a/sys-apps/syd/syd-3.11.0.ebuild b/sys-apps/syd/syd-3.11.0.ebuild new file mode 100644 index 000000000000..9a40aceab244 --- /dev/null +++ b/sys-apps/syd/syd-3.11.0.ebuild @@ -0,0 +1,183 @@ +# 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=" + aho-corasick@1.1.2 + anes@0.1.6 + anstyle@1.0.4 + anyhow@1.0.79 + argv@0.1.11 + autocfg@1.1.0 + bitflags@1.3.2 + bitflags@2.4.2 + bstr@1.9.0 + byteorder@1.5.0 + cast@0.3.0 + cfg-if@1.0.0 + ciborium-io@0.2.1 + ciborium-ll@0.2.1 + ciborium@0.2.1 + clap@4.4.18 + clap_builder@4.4.18 + clap_lex@0.6.0 + criterion-plot@0.5.0 + criterion@0.5.1 + crossbeam-channel@0.5.11 + crossbeam-utils@0.8.19 + either@1.9.0 + env_filter@0.1.0 + env_logger@0.11.0 + errno@0.3.8 + fastrand@2.0.1 + 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 + globset@0.4.14 + half@1.8.2 + heck@0.4.1 + hermit-abi@0.3.4 + hex@0.4.3 + io-lifetimes@1.0.11 + io-uring@0.6.2 + ipnetwork@0.20.0 + is-terminal@0.4.10 + itertools@0.10.5 + itoa@1.0.10 + lazy_static@1.4.0 + libc@0.2.152 + 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.20 + memchr@2.7.1 + memoffset@0.7.1 + nix@0.26.4 + nonempty@0.9.0 + num-traits@0.2.17 + num_cpus@1.16.0 + once_cell@1.19.0 + oorandom@11.1.3 + openat2@0.1.2 + parking_lot@0.12.1 + parking_lot_core@0.9.9 + parse-size@1.0.0 + pin-project-lite@0.2.13 + pin-utils@0.1.0 + pkg-config@0.3.29 + proc-macro2@1.0.78 + procfs@0.15.1 + quote@1.0.35 + redox_syscall@0.4.1 + regex-automata@0.4.4 + regex-syntax@0.8.2 + regex@1.10.3 + rustix@0.36.17 + rustix@0.38.30 + rustversion@1.0.14 + rusty_pool@0.7.0 + ryu@1.0.16 + same-file@1.0.6 + scopeguard@1.2.0 + sendfd@0.4.3 + serde@1.0.195 + serde_derive@1.0.195 + serde_json@1.0.111 + slab@0.4.9 + smallvec@1.13.1 + strum@0.25.0 + strum_macros@0.25.3 + syn@2.0.48 + tempfile@3.9.0 + tinytemplate@1.2.1 + unicode-ident@1.0.12 + walkdir@2.4.0 + 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.0 + windows_aarch64_gnullvm@0.42.2 + windows_aarch64_gnullvm@0.48.5 + windows_aarch64_gnullvm@0.52.0 + windows_aarch64_msvc@0.42.2 + windows_aarch64_msvc@0.48.5 + windows_aarch64_msvc@0.52.0 + windows_i686_gnu@0.42.2 + windows_i686_gnu@0.48.5 + windows_i686_gnu@0.52.0 + windows_i686_msvc@0.42.2 + windows_i686_msvc@0.48.5 + windows_i686_msvc@0.52.0 + windows_x86_64_gnu@0.42.2 + windows_x86_64_gnu@0.48.5 + windows_x86_64_gnu@0.52.0 + windows_x86_64_gnullvm@0.42.2 + windows_x86_64_gnullvm@0.48.5 + windows_x86_64_gnullvm@0.52.0 + windows_x86_64_msvc@0.42.2 + windows_x86_64_msvc@0.48.5 + windows_x86_64_msvc@0.52.0 +" + +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 +}