mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-13 16:06:59 +02:00
app-containers/crun: Sync with Gentoo
It's from Gentoo commit 08db196e20b63ecb312935a74a2cbaeacbd55074.
This commit is contained in:
parent
907150d41f
commit
d77e9180d7
@ -1,5 +1,3 @@
|
|||||||
DIST crun-1.14.3.tar.xz 750456 BLAKE2B 5a63b5da2f85ff1a83d4589be224c5b7a1123b6d7714b90a63c1907b78d42392aff25ffe5d9a4127173ac47026d57e9c93a39f5ba4b07de7f9f3722c14e6d203 SHA512 d6645c519ff00dda5def6d58240600d15e76969489918d51c0def2fee7dbad6374f83e5afc14a998d176aa2944765df5cd84c3031b265a1931ab23f2fc965fc1
|
|
||||||
DIST crun-1.16.tar.gz 1759549 BLAKE2B 1dfdf9177ae52e627c92e70e48a558bb355c87f629e95f1debaf6b7d8c38802110bd796545d5b2dbe3cac7f8de1f9c94e9b5f046cc618e73afd4c434188d585c SHA512 718e17abdb8c2a9e1fdd39f09e7e3e435d88c5785cc13c1e67f492847d7d938cf399aecc055ecf88720fa8f73b8539f057e3b0e53f10f4e382f5664a2243b959
|
|
||||||
DIST crun-1.17.tar.gz 1773153 BLAKE2B 9f75cb6879e0b8cd47bb8939c1cf6f88d5e13e6d8932c652ea20c64501bc69fbda84dd061866a9c08e353848f39d1022bf67fbc0d160d5ef7fdc08c1edec03f9 SHA512 7556467c5e0e93bb7321e2e88de8a2f537340e3e0acaa5501eab8deb0f4bb93c4561f8d063156789d3ee98fdd49069fc52c0ed0c773bd44db476eeeccc16aa1a
|
|
||||||
DIST crun-1.19.1.tar.gz 1786019 BLAKE2B 555f7c917c9e9ed80919b708cd711890d47c395b5b6fa1c2b542d311176941c5ece23bd7ff0cb4c3dcf81be4f46fec21fa8127da57092657157707537771dfe1 SHA512 6cb6148a3b6e18b4dbb0178ea23eaaa57c040781a34b5c5c5dac71be513941717011fe996a7400b9dee0a73f7f0dd2fc36544fe72382a3f2543e4de90589fe6a
|
DIST crun-1.19.1.tar.gz 1786019 BLAKE2B 555f7c917c9e9ed80919b708cd711890d47c395b5b6fa1c2b542d311176941c5ece23bd7ff0cb4c3dcf81be4f46fec21fa8127da57092657157707537771dfe1 SHA512 6cb6148a3b6e18b4dbb0178ea23eaaa57c040781a34b5c5c5dac71be513941717011fe996a7400b9dee0a73f7f0dd2fc36544fe72382a3f2543e4de90589fe6a
|
||||||
DIST crun-1.20.tar.gz 1787750 BLAKE2B 4f31c21056c6c764c76021d3121dfaa4dd9b91f17def977238df831af02f27aff267cf22c3f1ade4f332d757ffc50cc98a480aea7cd67b3552f19ba5c810c3f8 SHA512 759326768a9a141ecaec5824e3c30cade0a0c7d848935d434cada4fdc5a59a992f1916515141a84387cdb95ee1307f5bec471679d7ff9b403b0cb2b10c7dfd74
|
DIST crun-1.20.tar.gz 1787750 BLAKE2B 4f31c21056c6c764c76021d3121dfaa4dd9b91f17def977238df831af02f27aff267cf22c3f1ade4f332d757ffc50cc98a480aea7cd67b3552f19ba5c810c3f8 SHA512 759326768a9a141ecaec5824e3c30cade0a0c7d848935d434cada4fdc5a59a992f1916515141a84387cdb95ee1307f5bec471679d7ff9b403b0cb2b10c7dfd74
|
||||||
|
DIST crun-1.21.tar.gz 1788933 BLAKE2B bc854f8eb24566d608e90b44cb7dd2509b59cf6594eef244839f15beef2d241eab7149aabcf2156694043ab00367e312f58599deb324b85493555958eedaf849 SHA512 dbec4b55645587046a83903822a00b93092b26fdf36d6df9b086674815b53a9a60f907c1611eb9535f3186a03d6e8a98ae6e40e9f4e287855ea17745c3578d4f
|
||||||
|
@ -1,71 +0,0 @@
|
|||||||
# Copyright 2019-2025 Gentoo Authors
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=8
|
|
||||||
|
|
||||||
PYTHON_COMPAT=( python3_{10..12} )
|
|
||||||
|
|
||||||
inherit libtool python-any-r1
|
|
||||||
|
|
||||||
DESCRIPTION="A fast and low-memory footprint OCI Container Runtime fully written in C"
|
|
||||||
HOMEPAGE="https://github.com/containers/crun"
|
|
||||||
|
|
||||||
if [[ "$PV" == *9999* ]]; then
|
|
||||||
inherit git-r3
|
|
||||||
EGIT_REPO_URI="https://github.com/containers/${PN}.git"
|
|
||||||
else
|
|
||||||
SRC_URI="https://github.com/containers/${PN}/releases/download/${PV}/${P}.tar.xz"
|
|
||||||
KEYWORDS="amd64 ~arm arm64 ppc64 ~riscv"
|
|
||||||
fi
|
|
||||||
|
|
||||||
LICENSE="GPL-2+ LGPL-2.1+"
|
|
||||||
SLOT="0"
|
|
||||||
IUSE="+bpf +caps criu +seccomp selinux systemd static-libs"
|
|
||||||
|
|
||||||
DEPEND="
|
|
||||||
dev-libs/yajl:=
|
|
||||||
sys-kernel/linux-headers
|
|
||||||
caps? ( sys-libs/libcap )
|
|
||||||
criu? ( >=sys-process/criu-3.15 )
|
|
||||||
elibc_musl? ( sys-libs/argp-standalone[static-libs] )
|
|
||||||
seccomp? ( sys-libs/libseccomp )
|
|
||||||
systemd? ( sys-apps/systemd:= )
|
|
||||||
"
|
|
||||||
RDEPEND="${DEPEND}
|
|
||||||
selinux? ( sec-policy/selinux-container )"
|
|
||||||
BDEPEND="
|
|
||||||
${PYTHON_DEPS}
|
|
||||||
virtual/pkgconfig
|
|
||||||
"
|
|
||||||
|
|
||||||
# the crun test suite is comprehensive to the extent that tests will fail
|
|
||||||
# within a sandbox environment, due to the nature of the privileges
|
|
||||||
# required to create linux "containers".
|
|
||||||
RESTRICT="test"
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
default
|
|
||||||
elibtoolize
|
|
||||||
}
|
|
||||||
|
|
||||||
src_configure() {
|
|
||||||
local myeconfargs=(
|
|
||||||
$(use_enable bpf)
|
|
||||||
$(use_enable caps)
|
|
||||||
$(use_enable criu)
|
|
||||||
$(use_enable seccomp)
|
|
||||||
$(use_enable systemd)
|
|
||||||
$(usex static-libs '--enable-shared --enable-static' '--enable-shared --disable-static' '' '')
|
|
||||||
)
|
|
||||||
|
|
||||||
econf "${myeconfargs[@]}"
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
emake "DESTDIR=${D}" install-exec
|
|
||||||
doman crun.1
|
|
||||||
einstalldocs
|
|
||||||
|
|
||||||
einfo "Cleaning up .la files"
|
|
||||||
find "${ED}" -name '*.la' -delete || die
|
|
||||||
}
|
|
@ -1,81 +0,0 @@
|
|||||||
# Copyright 2019-2025 Gentoo Authors
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=8
|
|
||||||
|
|
||||||
PYTHON_COMPAT=( python3_{10..13} )
|
|
||||||
|
|
||||||
inherit libtool python-any-r1
|
|
||||||
|
|
||||||
DESCRIPTION="A fast and low-memory footprint OCI Container Runtime fully written in C"
|
|
||||||
HOMEPAGE="https://github.com/containers/crun"
|
|
||||||
|
|
||||||
if [[ "$PV" == *9999* ]]; then
|
|
||||||
inherit git-r3
|
|
||||||
EGIT_REPO_URI="https://github.com/containers/${PN}.git"
|
|
||||||
else
|
|
||||||
SRC_URI="https://github.com/containers/${PN}/releases/download/${PV}/${P}.tar.gz"
|
|
||||||
KEYWORDS="amd64 ~arm arm64 ~loong ppc64 ~riscv"
|
|
||||||
fi
|
|
||||||
|
|
||||||
LICENSE="GPL-2+ LGPL-2.1+"
|
|
||||||
SLOT="0"
|
|
||||||
IUSE="+bpf +caps criu +seccomp selinux systemd static-libs"
|
|
||||||
|
|
||||||
DEPEND="
|
|
||||||
dev-libs/yajl:=
|
|
||||||
sys-kernel/linux-headers
|
|
||||||
caps? ( sys-libs/libcap )
|
|
||||||
criu? ( >=sys-process/criu-3.15 )
|
|
||||||
seccomp? ( sys-libs/libseccomp )
|
|
||||||
systemd? ( sys-apps/systemd:= )
|
|
||||||
"
|
|
||||||
RDEPEND="${DEPEND}
|
|
||||||
selinux? ( sec-policy/selinux-container )"
|
|
||||||
BDEPEND="
|
|
||||||
${PYTHON_DEPS}
|
|
||||||
virtual/pkgconfig
|
|
||||||
"
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
default
|
|
||||||
elibtoolize
|
|
||||||
}
|
|
||||||
|
|
||||||
src_configure() {
|
|
||||||
local myeconfargs=(
|
|
||||||
--cache-file="${S}"/config.cache
|
|
||||||
$(use_enable bpf)
|
|
||||||
$(use_enable caps)
|
|
||||||
$(use_enable criu)
|
|
||||||
$(use_enable seccomp)
|
|
||||||
$(use_enable systemd)
|
|
||||||
$(usex static-libs '--enable-shared --enable-static' '--enable-shared --disable-static' '' '')
|
|
||||||
)
|
|
||||||
|
|
||||||
econf "${myeconfargs[@]}"
|
|
||||||
}
|
|
||||||
|
|
||||||
src_test() {
|
|
||||||
emake check-TESTS -C ./libocispec
|
|
||||||
|
|
||||||
# the crun test suite is comprehensive to the extent that tests will fail
|
|
||||||
# within a sandbox environment, due to the nature of the privileges
|
|
||||||
# required to create linux "containers".
|
|
||||||
local supported_tests=(
|
|
||||||
"tests/tests_libcrun_utils"
|
|
||||||
"tests/tests_libcrun_errors"
|
|
||||||
"tests/tests_libcrun_intelrdt"
|
|
||||||
"tests/test_oci_features"
|
|
||||||
)
|
|
||||||
emake check-TESTS TESTS="${supported_tests[*]}"
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
emake "DESTDIR=${D}" install-exec
|
|
||||||
doman crun.1
|
|
||||||
einstalldocs
|
|
||||||
|
|
||||||
einfo "Cleaning up .la files"
|
|
||||||
find "${ED}" -name '*.la' -delete || die
|
|
||||||
}
|
|
@ -15,7 +15,7 @@ if [[ "$PV" == *9999* ]]; then
|
|||||||
EGIT_REPO_URI="https://github.com/containers/${PN}.git"
|
EGIT_REPO_URI="https://github.com/containers/${PN}.git"
|
||||||
else
|
else
|
||||||
SRC_URI="https://github.com/containers/${PN}/releases/download/${PV}/${P}.tar.gz"
|
SRC_URI="https://github.com/containers/${PN}/releases/download/${PV}/${P}.tar.gz"
|
||||||
KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc64 ~riscv"
|
KEYWORDS="amd64 ~arm ~arm64 ~loong ppc64 ~riscv"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
LICENSE="GPL-2+ LGPL-2.1+"
|
LICENSE="GPL-2+ LGPL-2.1+"
|
||||||
|
@ -3,14 +3,14 @@
|
|||||||
|
|
||||||
EAPI=8
|
EAPI=8
|
||||||
|
|
||||||
PYTHON_COMPAT=( python3_{10..13} )
|
PYTHON_COMPAT=( python3_{11..14} )
|
||||||
|
|
||||||
inherit libtool python-any-r1
|
inherit libtool python-any-r1
|
||||||
|
|
||||||
DESCRIPTION="A fast and low-memory footprint OCI Container Runtime fully written in C"
|
DESCRIPTION="Fast and low-memory footprint OCI Container Runtime fully written in C"
|
||||||
HOMEPAGE="https://github.com/containers/crun"
|
HOMEPAGE="https://github.com/containers/crun"
|
||||||
|
|
||||||
if [[ "$PV" == *9999* ]]; then
|
if [[ "${PV}" == *9999* ]]; then
|
||||||
inherit git-r3
|
inherit git-r3
|
||||||
EGIT_REPO_URI="https://github.com/containers/${PN}.git"
|
EGIT_REPO_URI="https://github.com/containers/${PN}.git"
|
||||||
else
|
else
|
||||||
@ -30,8 +30,10 @@ DEPEND="
|
|||||||
seccomp? ( sys-libs/libseccomp )
|
seccomp? ( sys-libs/libseccomp )
|
||||||
systemd? ( sys-apps/systemd:= )
|
systemd? ( sys-apps/systemd:= )
|
||||||
"
|
"
|
||||||
RDEPEND="${DEPEND}
|
RDEPEND="
|
||||||
selinux? ( sec-policy/selinux-container )"
|
${DEPEND}
|
||||||
|
selinux? ( sec-policy/selinux-container )
|
||||||
|
"
|
||||||
BDEPEND="
|
BDEPEND="
|
||||||
${PYTHON_DEPS}
|
${PYTHON_DEPS}
|
||||||
virtual/pkgconfig
|
virtual/pkgconfig
|
||||||
@ -44,37 +46,37 @@ src_prepare() {
|
|||||||
|
|
||||||
src_configure() {
|
src_configure() {
|
||||||
local myeconfargs=(
|
local myeconfargs=(
|
||||||
|
--cache-file="${S}"/config.cache
|
||||||
$(use_enable bpf)
|
$(use_enable bpf)
|
||||||
$(use_enable caps)
|
$(use_enable caps)
|
||||||
$(use_enable criu)
|
$(use_enable criu)
|
||||||
$(use_enable seccomp)
|
$(use_enable seccomp)
|
||||||
$(use_enable systemd)
|
$(use_enable systemd)
|
||||||
$(usex static-libs '--enable-shared --enable-static' '--enable-shared --disable-static' '' '')
|
--enable-shared
|
||||||
|
$(use_enable static-libs static)
|
||||||
)
|
)
|
||||||
|
|
||||||
econf "${myeconfargs[@]}"
|
econf "${myeconfargs[@]}"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
src_test() {
|
||||||
|
emake check-TESTS -C ./libocispec
|
||||||
|
|
||||||
|
# The crun test suite is comprehensive to the extent that tests will fail
|
||||||
|
# within a sandbox environment, due to the nature of the privileges
|
||||||
|
# required to create linux "containers".
|
||||||
|
local supported_tests=(
|
||||||
|
"tests/tests_libcrun_utils"
|
||||||
|
"tests/tests_libcrun_errors"
|
||||||
|
"tests/tests_libcrun_intelrdt"
|
||||||
|
)
|
||||||
|
emake check-TESTS TESTS="${supported_tests[*]}" CFLAGS="${CFLAGS} -std=gnu17"
|
||||||
|
}
|
||||||
|
|
||||||
src_install() {
|
src_install() {
|
||||||
emake "DESTDIR=${D}" install-exec
|
emake "DESTDIR=${D}" install-exec
|
||||||
doman crun.1
|
doman crun.1
|
||||||
einstalldocs
|
einstalldocs
|
||||||
|
|
||||||
einfo "Cleaning up .la files"
|
find "${ED}" -name '*.la' -type f -delete || die
|
||||||
find "${ED}" -name '*.la' -delete || die
|
|
||||||
}
|
|
||||||
|
|
||||||
src_test() {
|
|
||||||
emake check-TESTS -C ./libocispec
|
|
||||||
|
|
||||||
# the crun test suite is comprehensive to the extent that tests will fail
|
|
||||||
# within a sandbox environment, due to the nature of the privileges
|
|
||||||
# required to create linux "containers".
|
|
||||||
local supported_tests=(
|
|
||||||
"tests/tests_libcrun_utils"
|
|
||||||
"tests/tests_libcrun_errors"
|
|
||||||
"tests/tests_libcrun_intelrdt"
|
|
||||||
"tests/test_oci_features"
|
|
||||||
)
|
|
||||||
emake check-TESTS TESTS="${supported_tests[*]}"
|
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user