From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-commits+bounces-1599908-garchives=archives.gentoo.org@lists.gentoo.org>
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 2DE5415808B
	for <garchives@archives.gentoo.org>; Tue, 13 Feb 2024 07:58:37 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id 5B9DAE29C1;
	Tue, 13 Feb 2024 07:58:36 +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))
	(No client certificate requested)
	by pigeon.gentoo.org (Postfix) with ESMTPS id 32A93E29C1
	for <gentoo-commits@lists.gentoo.org>; Tue, 13 Feb 2024 07:58:36 +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))
	(No client certificate requested)
	by smtp.gentoo.org (Postfix) with ESMTPS id 2DBF2343022
	for <gentoo-commits@lists.gentoo.org>; Tue, 13 Feb 2024 07:58:35 +0000 (UTC)
Received: from localhost.localdomain (localhost [IPv6:::1])
	by oystercatcher.gentoo.org (Postfix) with ESMTP id 74FEBCB1
	for <gentoo-commits@lists.gentoo.org>; Tue, 13 Feb 2024 07:58:33 +0000 (UTC)
From: "Patrick Lauer" <patrick@gentoo.org>
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" <patrick@gentoo.org>
Message-ID: <1707811090.231aa80d89b68ff2a08b1442928293a19fb81d9e.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.12.4.ebuild
X-VCS-Directories: sys-apps/syd/
X-VCS-Committer: patrick
X-VCS-Committer-Name: Patrick Lauer
X-VCS-Revision: 231aa80d89b68ff2a08b1442928293a19fb81d9e
X-VCS-Branch: master
Date: Tue, 13 Feb 2024 07:58:33 +0000 (UTC)
Precedence: bulk
List-Post: <mailto:gentoo-commits@lists.gentoo.org>
List-Help: <mailto:gentoo-commits+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org>
X-BeenThere: gentoo-commits@lists.gentoo.org
X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply
X-Archives-Salt: 8e771bc7-b067-4363-ad75-a988fad62ac1
X-Archives-Hash: b0ea14ef5237d08c93c486d921473d6b

commit:     231aa80d89b68ff2a08b1442928293a19fb81d9e
Author:     Patrick Lauer <patrick <AT> gentoo <DOT> org>
AuthorDate: Tue Feb 13 07:58:10 2024 +0000
Commit:     Patrick Lauer <patrick <AT> gentoo <DOT> org>
CommitDate: Tue Feb 13 07:58:10 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=231aa80d

sys-apps/syd: add 3.12.4

Signed-off-by: Patrick Lauer <patrick <AT> gentoo.org>

 sys-apps/syd/Manifest          |   1 +
 sys-apps/syd/syd-3.12.4.ebuild | 184 +++++++++++++++++++++++++++++++++++++++++
 2 files changed, 185 insertions(+)

diff --git a/sys-apps/syd/Manifest b/sys-apps/syd/Manifest
index 8db84354f409..60c66fd41fe0 100644
--- a/sys-apps/syd/Manifest
+++ b/sys-apps/syd/Manifest
@@ -102,6 +102,7 @@ DIST strum_macros-0.26.1.crate 25326 BLAKE2B 2f52389676e1581abf42995a54d7725b0ec
 DIST syd-3.11.3.tar.gz 455191 BLAKE2B 2a0a169908985e331fe37d0a8c3dfffc7fde7aa45fc2b7fbf49dbb8598747ab18a3efc7bb0a63a0b6b382d7d14cb8dded29c8ba5197e2a050721996e5a9f6256 SHA512 723f0bc2be6f28f05c595747a684cd6ba6d36a1bf8914141f90a7e5f6243978117105b75658c4f53623ef9f886217829c6e2620651dc08080cf9982a23db3053
 DIST syd-3.11.4.tar.gz 455378 BLAKE2B 502658bbe96cf0b65591c258bba274c4228202437193bc7a24d4905bdbeb3d323223efc64989cc0e210087f74adb736f76e23a0a547bffe0a8768e22978a197f SHA512 339a3bb987919f80c803059ae4b166eae2555052d65f49c64515906f2a9729bcc819765c43d99b162b75413e2565e5b99ab7632664b7a8119adf6713a96d27b6
 DIST syd-3.12.3.tar.gz 458158 BLAKE2B ea3dfe3773469f2e7235d03398a83014f9e1a871e40a40da8efd1984b307d96b55481bcf52843ce78993d09a6d8f39ffd27b66578a0d0b45c6947f68e0bfd8b8 SHA512 0fe1028264e3631887b263fdaddaf7b06ac4d83284de224af326f28241496fe679d6b7398d82faccc6f204225ef909e846597e4712ef180e5cdffe85782b40f7
+DIST syd-3.12.4.tar.gz 458042 BLAKE2B 719b46a9d44e5955886032b120b4f50a7feefe3e3066dc25330ce19d78fed3554b72d20dcddda307abaf3e934ce4b9e038f57127ef657ddc894fcb0ccb410240 SHA512 086d7f9492d0985675789e305794733b51e7021bd9dc4bc1cecc472956ccb7f964917aa4336baca694f3e9e229011043e56caa56b904ba10d3864d20931efbd7
 DIST syn-2.0.48.crate 250566 BLAKE2B e46b0863af76c3116c84d01b654a9820b7edc51f75c9c5301a7967d12284f78da602409f34fc40524728350dc6b998a4d738f08b8868f95236b3e5d24c460580 SHA512 926c0ad55cc743df20f9166b6d71fd44421aeb1f073fd86b6ddb53e13cd508b539c0360ce64b07b65597bb14639c8f33acf7e60951e1e9128624517aa3aee325
 DIST tempfile-3.10.0.crate 33376 BLAKE2B 303e3bbc2492fd965c5e5ca02229868e94de1b1286175a07b3f9767a174c5a83bb6f6ab59d582f963f9cc4f92362be6a8e898e140397e4314bc18bd8d4e13249 SHA512 0f9bb6420105badfaf7e59f9679b53c6e3f875208ad8b08b9bf38cf67a1512742f1e3dc586136ec9cb760d127da6be69e9f9ed55f18722edf1af3a452e7d93fa
 DIST tempfile-3.9.0.crate 32182 BLAKE2B 4e802990988aff3ab5173bd96dbd906651a8df46b2619e6a500a3b9e7f4a3cd01dc7ee977791343f7875afdc4793a845000bb363d8c1a6599aeb6b1efcce5d56 SHA512 04e06c966bfa7a1567e7185ebd5c2876b96e46e36af14931bf0eba63795cd20d1c3427b6709a4cab2a68b8d289fdabd5537a50e5407a76e3a9fa0dcc7d3ce6d7

diff --git a/sys-apps/syd/syd-3.12.4.ebuild b/sys-apps/syd/syd-3.12.4.ebuild
new file mode 100644
index 000000000000..9a74b83fceea
--- /dev/null
+++ b/sys-apps/syd/syd-3.12.4.ebuild
@@ -0,0 +1,184 @@
+# 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.6
+	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.2
+	ciborium-ll@0.2.2
+	ciborium@0.2.2
+	clap@4.5.0
+	clap_builder@4.5.0
+	clap_lex@0.7.0
+	criterion-plot@0.5.0
+	criterion@0.5.1
+	crossbeam-channel@0.5.11
+	crossbeam-utils@0.8.19
+	crunchy@0.2.2
+	either@1.10.0
+	env_filter@0.1.0
+	env_logger@0.11.1
+	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@2.3.1
+	heck@0.4.1
+	hermit-abi@0.3.5
+	hex@0.4.3
+	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
+	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.18
+	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.5
+	regex-syntax@0.8.2
+	regex@1.10.3
+	rustix@0.36.17
+	rustix@0.38.31
+	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.196
+	serde_derive@1.0.196
+	serde_json@1.0.113
+	slab@0.4.9
+	smallvec@1.13.1
+	strum@0.26.1
+	strum_macros@0.26.1
+	syn@2.0.48
+	tempfile@3.10.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
+}