mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-17 14:49:30 -07:00
Upstream merged the previous split repos into one repo. So this one is replacing: - app-containers/containers-image - app-containers/containers-common - app-containers/containers-shortnames - app-containers/containers-storage Also, because of various changes in the usage of the files here, syntax and content, we block on older unsupported tool versions for podman, buildah and skopeo. I'm adding here with multiple keywords from the start, since those are only various man files & configuration files, so it should inherit the original keywords. Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
72 lines
2.1 KiB
Bash
72 lines
2.1 KiB
Bash
# Copyright 1999-2026 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=9
|
|
|
|
inherit readme.gentoo-r1
|
|
|
|
DESCRIPTION="Several utilities from the containers project"
|
|
HOMEPAGE="https://github.com/podman-container-tools/container-libs"
|
|
SRC_URI="https://github.com/podman-container-tools/container-libs/archive/common/v${PV}.tar.gz -> ${P}.tar.gz"
|
|
S=${WORKDIR}/${PN}-common-v${PV}
|
|
|
|
LICENSE="Apache-2.0"
|
|
SLOT="0"
|
|
KEYWORDS="~amd64 ~arm64 ~loong ~riscv"
|
|
RESTRICT="test"
|
|
|
|
RDEPEND="
|
|
>=app-containers/aardvark-dns-2.0.0
|
|
>=app-containers/crun-1.25.1
|
|
>=app-containers/netavark-2.0.0
|
|
net-firewall/nftables
|
|
>=net-misc/passt-2026.05.26
|
|
>=sys-fs/fuse-overlayfs-1.16
|
|
!app-containers/containers-image
|
|
!app-containers/containers-common
|
|
!app-containers/containers-shortnames
|
|
!app-containers/containers-storage
|
|
!<app-containers/buildah-1.44.0
|
|
!<app-containers/podman-6.0.0
|
|
!<app-containers/skopeo-1.23
|
|
"
|
|
BDEPEND=">=dev-go/go-md2man-2.0.2"
|
|
|
|
DOC_CONTENTS="
|
|
For rootless operations, one needs to configure subuid(5) and subgid(5).
|
|
See /etc/sub{uid,gid} to check whether rootless user is already configured.
|
|
If not, quickly configure it with:\n
|
|
usermod --add-subuids 1065536-1131071 <rootless user>\n
|
|
usermod --add-subgids 1065536-1131071 <rootless user>
|
|
"
|
|
|
|
src_compile() {
|
|
emake -C common GO=true docs
|
|
emake -C image GO=true docs
|
|
emake -C storage GO=true docs
|
|
touch {images,layers}.lock || die
|
|
}
|
|
|
|
src_install() {
|
|
emake -C common GO=true DESTDIR="${ED}" PREFIX="/usr" install
|
|
emake -C image GO=true PREFIX="${ED}/usr" CONTAINERSCONFDIR="${ED}/etc/containers" install
|
|
emake -C storage GO=true DESTDIR="${ED}" install
|
|
readme.gentoo_create_doc
|
|
|
|
insinto /usr/share/containers
|
|
doins common/pkg/{seccomp/seccomp.json,subscriptions/mounts.conf} storage/storage.conf
|
|
|
|
keepdir /etc/containers/{certs.d,oci/hooks.d,networks,systemd} /var/lib/containers/{sigstore,storage}
|
|
|
|
diropts -m0700
|
|
dodir /usr/lib/containers/storage/overlay-{images,layers}
|
|
for i in images layers; do
|
|
insinto /usr/lib/containers/storage/overlay-"${i}"
|
|
doins "${i}".lock
|
|
done
|
|
}
|
|
|
|
pkg_postinst() {
|
|
readme.gentoo_print_elog
|
|
}
|