4 |
4 |
EAPI=8
|
5 |
5 |
EGIT_COMMIT="75e3c12579d391b81d871fd1cded6cf0d043550a"
|
6 |
6 |
|
7 |
|
inherit bash-completion-r1 flag-o-matic go-module tmpfiles
|
|
7 |
inherit shell-completion flag-o-matic go-module tmpfiles
|
8 |
8 |
|
9 |
9 |
DESCRIPTION="Library and podman tool for running OCI-based containers in Pods"
|
10 |
|
HOMEPAGE="https://github.com/containers/podman/"
|
|
10 |
HOMEPAGE="https://github.com/containers/podman/ https://podman.io/"
|
11 |
11 |
MY_PN=podman
|
12 |
12 |
MY_P=${MY_PN}-${PV}
|
13 |
13 |
SRC_URI="https://github.com/containers/podman/archive/v${PV}.tar.gz -> ${MY_P}.tar.gz"
|
14 |
14 |
LICENSE="Apache-2.0 BSD BSD-2 CC-BY-SA-4.0 ISC MIT MPL-2.0"
|
15 |
15 |
SLOT="0"
|
16 |
16 |
|
17 |
|
KEYWORDS="amd64 arm64 ~ppc64 ~riscv"
|
|
17 |
KEYWORDS="~amd64 ~arm64 ~riscv"
|
18 |
18 |
IUSE="apparmor btrfs cgroup-hybrid +fuse +init +rootless selinux"
|
19 |
19 |
RESTRICT="test"
|
20 |
20 |
|
21 |
21 |
COMMON_DEPEND="
|
22 |
22 |
app-crypt/gpgme:=
|
|
23 |
>=app-containers/containers-common-0.56.0
|
23 |
24 |
>=app-containers/conmon-2.0.0
|
24 |
25 |
cgroup-hybrid? ( >=app-containers/runc-1.0.0_rc6 )
|
25 |
26 |
!cgroup-hybrid? ( app-containers/crun )
|
26 |
27 |
dev-libs/libassuan:=
|
27 |
28 |
dev-libs/libgpg-error:=
|
28 |
|
|| (
|
29 |
|
>=app-containers/cni-plugins-0.8.6
|
30 |
|
( app-containers/netavark app-containers/aardvark-dns )
|
31 |
|
)
|
32 |
29 |
sys-apps/shadow:=
|
33 |
30 |
sys-fs/lvm2
|
34 |
31 |
sys-libs/libseccomp:=
|
... | ... | |
113 |
110 |
src_install() {
|
114 |
111 |
emake DESTDIR="${D}" PREFIX="${EPREFIX}/usr" install
|
115 |
112 |
|
116 |
|
insinto /etc/containers
|
117 |
|
newins test/registries.conf registries.conf.example
|
118 |
|
newins test/policy.json policy.json.example
|
119 |
|
|
120 |
113 |
insinto /etc/cni/net.d
|
121 |
114 |
doins cni/87-podman-bridge.conflist
|
122 |
115 |
|
123 |
|
insinto /usr/share/containers
|
124 |
|
doins vendor/github.com/containers/common/pkg/seccomp/seccomp.json
|
125 |
|
|
126 |
116 |
newconfd "${FILESDIR}"/podman.confd podman
|
127 |
117 |
newinitd "${FILESDIR}"/podman.initd podman
|
128 |
118 |
|
... | ... | |
130 |
120 |
newins "${FILESDIR}/podman.logrotated" podman
|
131 |
121 |
|
132 |
122 |
dobashcomp completions/bash/*
|
133 |
|
|
134 |
|
insinto /usr/share/zsh/site-functions
|
135 |
|
doins completions/zsh/*
|
136 |
|
|
137 |
|
insinto /usr/share/fish/vendor_completions.d
|
138 |
|
doins completions/fish/*
|
|
123 |
dozshcomp completions/zsh/*
|
|
124 |
dofishcomp completions/fish/*
|
139 |
125 |
|
140 |
126 |
keepdir /var/lib/containers
|
141 |
127 |
}
|
... | ... | |
151 |
137 |
tmpfiles_process podman.conf
|
152 |
138 |
|
153 |
139 |
local want_newline=false
|
154 |
|
if [[ ! ( -e ${EROOT%/*}/etc/containers/policy.json && -e ${EROOT%/*}/etc/containers/registries.conf ) ]]; then
|
155 |
|
elog "You need to create the following config files:"
|
156 |
|
elog "/etc/containers/registries.conf"
|
157 |
|
elog "/etc/containers/policy.json"
|
158 |
|
elog "To copy over default examples, use:"
|
159 |
|
elog "cp /etc/containers/registries.conf{.example,}"
|
160 |
|
elog "cp /etc/containers/policy.json{.example,}"
|
161 |
|
want_newline=true
|
162 |
|
fi
|
163 |
140 |
if [[ ${PODMAN_ROOTLESS_UPGRADE} == true ]] ; then
|
164 |
141 |
${want_newline} && elog ""
|
165 |
142 |
elog "For rootless operation, you need to configure subuid/subgid"
|