mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-10 06:57:08 -08:00
sys-apps/syd: add 3.59.0
Signed-off-by: Patrick Lauer <patrick@gentoo.org>
This commit is contained in:
@@ -2,3 +2,5 @@ DIST syd-3.57.0-crates.tar.xz 23060692 BLAKE2B 1fdc6e3c704a5baadb9e0c6d7484f560a
|
||||
DIST syd-3.57.0.tar.gz 20976212 BLAKE2B 86ac125f56977a19be20ab78a5e7bdce73a7bf3b1ebe67137263f3545ebdf523ffaa223b0c76030efb54d59ebabc5dbb18c2f0add76668407078a91bb3e93cec SHA512 087d022e7a3c4e46033c954520c07358ac457d498c42173d8e8ab3538ebeb70f3396752c9f8c06de18f3da3959ad451095b867fb82ec6ea6f4d65f27d19ef6f7
|
||||
DIST syd-3.58.0-crates.tar.xz 17024392 BLAKE2B c8590a1589012c3e25d20dce7a5af7518a944319c34ca1e089705abe1269c1cad45c698bb9c73d693d42ee2a0d134a75ea616a56fd08bd6fe32f242d9fbc5412 SHA512 f9721eaffda4c3293aaa968bbee41d2565b456ce3c5b05c2c75bb97bae5cfb8aca448d0a21a0234601ac42edd936a29dea7bc6d24a039f1b996561300858c2c2
|
||||
DIST syd-3.58.0.tar.gz 8152372 BLAKE2B ec8d691845ba1c1baa57a54ce210d3b83a909cbff4312e2b10f28d63bc853637306e6e59a5e994587e3c6f06d58346e9f572475f6fb9a699d74a415b9b8148f9 SHA512 c32bdac008bd2a17f3692a6c52e6f96453b268ac2e71f1748caf5f712a0ad84c4d624a6f9c021d7a1d88d35f3f481ed6d39e6b6c4fc55a58e31deb2b82ad45f0
|
||||
DIST syd-3.59.0-crates.tar.xz 16786804 BLAKE2B 365c9787943d302bceb713a25cc3dc9dfa947aa53b0165fe9c23766981715222e0c438630965e4f7ba62ad4b3360e72d043b1736b112ed0c640e992285f08f4b SHA512 dfa4602013b43b18f0baf90cffbefa8a7ac13fd17b3bcf06de65850fa84baeb386da7e6a3a2f03b9bce51f7dbd8f77ea66b834835ff1085e8062c4623b3b2fdf
|
||||
DIST syd-3.59.0.tar.gz 8437088 BLAKE2B 6ad185ea0931bd4bffb16085fff6723744e7dc2453e4ba5240ec2f08f08e1dfd4b98bc54e4489cbcc198310ce66b59d527269d8fbc46f5352eea9fdac5a9f49a SHA512 a4f86de7889339c6a92fff568b65a2873be9c8186615b2c37617afa4b5c2a8365fa5c0eb82c0a4895e13feaf812f753bc428c8217434dd2d99aa741d5c62c21d
|
||||
|
||||
@@ -0,0 +1,76 @@
|
||||
# Copyright 2024-2026 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
RESTRICT="test" # fails with sandbox
|
||||
|
||||
RUST_MIN_VER="1.88.0"
|
||||
|
||||
CRATES=""
|
||||
|
||||
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
|
||||
https://dev.gentoo.org/~patrick/syd-${PV}-crates.tar.xz
|
||||
"
|
||||
|
||||
IUSE="static"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
# Dependent crate licenses
|
||||
LICENSE+="
|
||||
0BSD Apache-2.0 BSD-2 BSD CC0-1.0 GPL-3+ ISC MIT MPL-2.0 Unicode-3.0
|
||||
WTFPL-2 ZLIB
|
||||
"
|
||||
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
|
||||
DEPEND="static? ( sys-libs/libseccomp[static-libs] )
|
||||
sys-libs/libseccomp
|
||||
app-text/scdoc"
|
||||
RDEPEND="sys-apps/pandora_box
|
||||
${DEPEND}"
|
||||
|
||||
S="${WORKDIR}/syd-v${PV}"
|
||||
|
||||
src_configure() {
|
||||
if use static; then
|
||||
export LIBSECCOMP_LINK_TYPE="static"
|
||||
export LIBSECCOMP_LIB_PATH=$(pkgconf --variable=libdir libseccomp)
|
||||
export RUSTFLAGS+="-Ctarget-feature=+crt-static"
|
||||
cargo_src_configure
|
||||
else
|
||||
local myfeatures=( "oci" )
|
||||
cargo_src_configure
|
||||
fi
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
cargo_src_compile
|
||||
emake man
|
||||
}
|
||||
|
||||
src_install () {
|
||||
cargo_src_install
|
||||
mkdir -p "${D}"/usr/share/man/man{1,2,5,7}
|
||||
emake install-man DESTDIR="${D}" PREFIX="/usr"
|
||||
dodoc README.md
|
||||
insinto /usr/libexec
|
||||
doins src/esyd.sh
|
||||
|
||||
insinto /etc
|
||||
newins data/user.syd-3 user.syd-3.sample
|
||||
|
||||
insinto /usr/share/vim/vimfiles/ftdetect
|
||||
doins vim/ftdetect/syd.vim
|
||||
insinto /usr/share/vim/vimfiles/syntax
|
||||
doins vim/syntax/syd-3.vim
|
||||
}
|
||||
|
||||
src_test() {
|
||||
RUSTFLAGS="" cargo_src_test
|
||||
}
|
||||
Reference in New Issue
Block a user