diff options
Diffstat (limited to 'app-emulation/containerd')
-rw-r--r-- | app-emulation/containerd/Manifest | 2 | ||||
-rw-r--r-- | app-emulation/containerd/containerd-1.4.12.ebuild | 84 |
2 files changed, 86 insertions, 0 deletions
diff --git a/app-emulation/containerd/Manifest b/app-emulation/containerd/Manifest index 32535f3c9531..ca5e8f4d758f 100644 --- a/app-emulation/containerd/Manifest +++ b/app-emulation/containerd/Manifest @@ -1,6 +1,8 @@ AUX containerd.initd 766 BLAKE2B 07b323c35f9cafa156969644ccab7c618baf60a82ad8037538ae23562c5663742a7453e00412eeafa72129a4806f3610f3f77865c7ebf3e58223a7286c9f712e SHA512 b70abb44d6bc0cdd8115104ef1fbb5099a270c29040351ceff738b9b6ff796a802f92dbbe2c49e04ae058043546bbe6a854e25044f5c07bea7bf6b6fc4f66018 DIST containerd-1.4.11.tar.gz 6406769 BLAKE2B a4882223e2f71944a4d46fb0500a95248cfa33735447952f94c7d7350c2cb62b4911adc77f96559116cca462be02b7270185a0a3dfed5ce4c530465cca7e2078 SHA512 16aa6ae4209939754e122545b454d8b25027a3621464a4b4e0379480b35adf0efb318271f82cf2b959a62fffe531979c9bdfee9ac7d47d4b33269a6bafe2d070 +DIST containerd-1.4.12.tar.gz 6408402 BLAKE2B 559164a9d8680edea52040690da8e9b45777a39e471b1a7cc56ff4cf207cee7c83dc73969a8868db5d531f6e4e27cc7a975f073ffcf7f9c2768858b1a4001ddf SHA512 52dc4b0344eb4c6a6f1cc5690ff0c70ee052ef05c02300ed4a806458c40bb1970c26b374b0733b2c30a05c04a731d62a7c4206b1d768075d51c202912efd32b1 DIST containerd-1.5.7.tar.gz 7714453 BLAKE2B 621b6527814665432c52e72263da371840a183aa65f621a686111b59ee48e85dd96919abd35f069476b97858a8112d3c92b03afbe42d57495649ca0d2af2fd50 SHA512 ce0d9d355b4a6142569690a9fcde8cd07de20b5788098f1184a728106a60dd11a437c87499a97af0c147b14372c2bca4daa823ea470f10b5e1b8a1e34ba530b0 EBUILD containerd-1.4.11.ebuild 1936 BLAKE2B a6206c40dc64a882fb9732b2892e4725fb564f5f3b850cda62d34e80b04a6883edc607475a769d168a558740ace1e3e7550516ad01e77b789f7eef237887ad32 SHA512 1d6e1a8136ed8a86a9d2a9d2eebe2645cfac1e2811ec559823f1d7b99c8fdf6c48b63275963bd9ba14c92493925d59008d24712e99d055d080e48557b94a9043 +EBUILD containerd-1.4.12.ebuild 1939 BLAKE2B 04cefaafe3acfd5a19021c4cd2b5d5f7c95cb4c9dabed386f32ac3a2c3a93b12fe4a0529c273138003a95075094b4fe8959a74b2c219cabaf6ed1e99f10a679e SHA512 b3306d0d29eeb1d96b22742a0fb64f2dfd1c7a4b3af6b6f683c0ac0a97be007f4499c4e8afb81ad2a8ef48545d6271d7c424c9d5a3258cdec1d2a79a83f8f66d EBUILD containerd-1.5.7.ebuild 1907 BLAKE2B 2f09ab3d48a9200d8ebc4c1ee6d99db77082a03dd54985f8ee84fdb63aab545b3b04a26d680bf4fa88fcbacd0452f48320c7d8f0e55969a3e3daec9b928ef46a SHA512 df883f40f60131805e92f7807e449a0c5ef692995b68c7ac5b1bc106f40a1b3b03c2c4f59233f1e43d3816e00f8630a76f47e6f0a12eb8b0fa4fbbe1fac3c14e MISC metadata.xml 1144 BLAKE2B 960f8dd81a1e56c0d381355da41a845c2e9c12db0c8c546da1593a0499e4929b37610dff83943c388f8edc5878b9824e47ddac02ba129176a916054400e10e90 SHA512 904a5a11d7729ea6021aaf1b1d91ae3f7609c08b8c191d9f4c35c62914b0acf1ee45f3f7e0416711225809f129da4b4c76c934e6207026b69b0096f431820982 diff --git a/app-emulation/containerd/containerd-1.4.12.ebuild b/app-emulation/containerd/containerd-1.4.12.ebuild new file mode 100644 index 000000000000..10c53e0472be --- /dev/null +++ b/app-emulation/containerd/containerd-1.4.12.ebuild @@ -0,0 +1,84 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +CONTAINERD_COMMIT=7b11cfaabd73bb80907dd23182b9347b4245eb5d +EGO_PN="github.com/containerd/${PN}" +inherit golang-vcs-snapshot + +DESCRIPTION="A daemon to control runC" +HOMEPAGE="https://containerd.io/" +SRC_URI="https://github.com/containerd/containerd/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86" +IUSE="apparmor btrfs device-mapper +cri hardened +seccomp selinux test" + +DEPEND=" + btrfs? ( sys-fs/btrfs-progs ) + seccomp? ( sys-libs/libseccomp ) +" + +# recommended version of runc is found in script/setup/runc-version +RDEPEND=" + ${DEPEND} + ~app-emulation/runc-1.0.2 +" + +BDEPEND=" + dev-go/go-md2man + virtual/pkgconfig + test? ( ${RDEPEND} ) +" + +# tests require root or docker +# upstream does not recommend stripping binary +RESTRICT+=" strip test" + +S="${WORKDIR}/${P}/src/${EGO_PN}" + +src_prepare() { + default + sed -i -e "s/git describe --match.*$/echo ${PV})/"\ + -e "s/git rev-parse HEAD.*$/echo ${CONTAINERD_COMMIT})/"\ + -e "s/-s -w//" \ + Makefile || die +} + +src_compile() { + local options=( + $(usev apparmor) + $(usex btrfs "" "no_btrfs") + $(usex cri "" "no_cri") + $(usex device-mapper "" "no_devmapper") + $(usev seccomp) + $(usev selinux) + ) + + myemakeargs=( + BUILDTAGS="${options[*]}" + LDFLAGS="$(usex hardened '-extldflags -fno-PIC' '')" + ) + + export GOPATH="${WORKDIR}/${P}" # ${PWD}/vendor + export GOFLAGS="-v -x -mod=vendor" + # race condition in man target https://bugs.gentoo.org/765100 + emake "${myemakeargs[@]}" man -j1 #nowarn + emake "${myemakeargs[@]}" all +} + +src_install() { + dobin bin/* + doman man/* + newinitd "${FILESDIR}"/${PN}.initd "${PN}" + keepdir /var/lib/containerd + + # we already installed manpages, remove markdown source + # before installing docs directory + rm -r docs/man || die + + local DOCS=( README.md PLUGINS.md docs/. ) + einstalldocs +} |