1 |
commit: 83c3ceba0318835199a24426d8d80c3db2095f1d |
2 |
Author: Zac Medico <zmedico <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Feb 8 03:15:19 2020 +0000 |
4 |
Commit: Zac Medico <zmedico <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Feb 8 03:17:07 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=83c3ceba |
7 |
|
8 |
app-emulation/libpod: Bump to version 1.8.0 |
9 |
|
10 |
Package-Manager: Portage-2.3.87, Repoman-2.3.20 |
11 |
Signed-off-by: Zac Medico <zmedico <AT> gentoo.org> |
12 |
|
13 |
app-emulation/libpod/Manifest | 1 + |
14 |
app-emulation/libpod/libpod-1.8.0.ebuild | 136 +++++++++++++++++++++++++++++++ |
15 |
2 files changed, 137 insertions(+) |
16 |
|
17 |
diff --git a/app-emulation/libpod/Manifest b/app-emulation/libpod/Manifest |
18 |
index b0d47445155..504fd208dbf 100644 |
19 |
--- a/app-emulation/libpod/Manifest |
20 |
+++ b/app-emulation/libpod/Manifest |
21 |
@@ -1,3 +1,4 @@ |
22 |
DIST containers-storage-1.14.0-vfs-user-xattrs.patch 14835 BLAKE2B 99c35933dcb25385ee83b80cf282c11c738d0e4d91216cc08a50522f6caa9bca5938299412908f16df404f99e80616a10b4c02c0ebc38240a987830ddaf15008 SHA512 62c7ed49728bd12b5706f59b0d4af3b18d90e8cfc2b06e681f84fe3f5d3e0cd5c0317147109c4e3ec4fec26f82c269af3c9813e47339ce102e4e97400b74627d |
23 |
DIST libpod-1.6.4.tar.gz 8340370 BLAKE2B f68f0e846a442aa0717d4918f24260560ee77c8abdecd5af3dec06ee95ab899d623b8797962ac416bf498f22643d45de5c6d86049eead9d5c93073957c3fd9bf SHA512 69322551ab196cd3859e03988178c59a47df6f00ef0768a56e40d785f6b2130df03ff0ea76d101e21e748ea9260ede144d31f3ec21922ffd70eb2969a77d4194 |
24 |
DIST libpod-1.7.0.tar.gz 8679022 BLAKE2B 8a8037b75deae9f94461ab697b2a7cf095254c68d8436655c37a40375e3dd1a2b621672643e430acc8a656fcd516fa5a542e7104d6cfdbee3d213aca6228d410 SHA512 986ec7123127d3ffb26cecc39a2ae3d8a6dd3d147327449fc4e9d17f6e6606bde278f13920d0aef59410262801251e7b4cfe099cb5caafe9773533e8476848fe |
25 |
+DIST libpod-1.8.0.tar.gz 8992983 BLAKE2B a3b12dbfbdb0fe01ef8791de2c938cbf21c01ac0b36314d2a170c593d22eea08d912f8547861b239bb982db6acc9d2426adb97ffda4603739321cff0fb9ff1d8 SHA512 8e46633742e7dda1b9f6b641051009485331a3a95fcc8ff4c59c46a66f86ce1b79c832c5775d825aa54b885edaf533be2f864257137277a5265509026d0a8b87 |
26 |
|
27 |
diff --git a/app-emulation/libpod/libpod-1.8.0.ebuild b/app-emulation/libpod/libpod-1.8.0.ebuild |
28 |
new file mode 100644 |
29 |
index 00000000000..502e3dde382 |
30 |
--- /dev/null |
31 |
+++ b/app-emulation/libpod/libpod-1.8.0.ebuild |
32 |
@@ -0,0 +1,136 @@ |
33 |
+# Copyright 1999-2020 Gentoo Authors |
34 |
+# Distributed under the terms of the GNU General Public License v2 |
35 |
+ |
36 |
+EAPI=7 |
37 |
+ |
38 |
+EGIT_COMMIT="2ced9094d4728dd09f60a177faa32339a8d0f721" |
39 |
+ |
40 |
+inherit bash-completion-r1 flag-o-matic go-module |
41 |
+ |
42 |
+DESCRIPTION="Library and podman tool for running OCI-based containers in Pods" |
43 |
+HOMEPAGE="https://github.com/containers/libpod/" |
44 |
+SRC_URI="https://github.com/containers/libpod/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
45 |
+LICENSE="Apache-2.0 BSD BSD-2 CC-BY-SA-4.0 ISC MIT MPL-2.0" |
46 |
+SLOT="0" |
47 |
+ |
48 |
+KEYWORDS="~amd64" |
49 |
+IUSE="apparmor btrfs +rootless selinux" |
50 |
+RESTRICT="test" |
51 |
+ |
52 |
+COMMON_DEPEND=" |
53 |
+ app-crypt/gpgme:= |
54 |
+ >=app-emulation/conmon-2.0.0 |
55 |
+ || ( >=app-emulation/runc-1.0.0_rc6 app-emulation/crun ) |
56 |
+ dev-libs/libassuan:= |
57 |
+ dev-libs/libgpg-error:= |
58 |
+ sys-fs/lvm2 |
59 |
+ sys-libs/libseccomp:= |
60 |
+ |
61 |
+ apparmor? ( sys-libs/libapparmor ) |
62 |
+ btrfs? ( sys-fs/btrfs-progs ) |
63 |
+ rootless? ( app-emulation/slirp4netns ) |
64 |
+ selinux? ( sys-libs/libselinux:= ) |
65 |
+" |
66 |
+DEPEND=" |
67 |
+ ${COMMON_DEPEND} |
68 |
+ dev-go/go-md2man" |
69 |
+RDEPEND="${COMMON_DEPEND}" |
70 |
+ |
71 |
+src_prepare() { |
72 |
+ default |
73 |
+ |
74 |
+ # Disable installation of python modules here, since those are |
75 |
+ # installed by separate ebuilds. |
76 |
+ sed -e '/^GIT_.*/d' \ |
77 |
+ -e 's:GO111MODULE=off:GO111MODULE=on:' \ |
78 |
+ -e 's/$(GO) build/$(GO) build -v -work -x/' \ |
79 |
+ -e 's/^\(install:.*\) install\.python$/\1/' \ |
80 |
+ -i Makefile || die |
81 |
+ |
82 |
+ sed -e 's|OUTPUT="${CIRRUS_TAG:.*|OUTPUT='v${PV}'|' \ |
83 |
+ -i hack/get_release_info.sh || die |
84 |
+} |
85 |
+ |
86 |
+src_compile() { |
87 |
+ # Filter unsupported linker flags |
88 |
+ filter-flags '-Wl,*' |
89 |
+ |
90 |
+ [[ -f hack/apparmor_tag.sh ]] || die |
91 |
+ if use apparmor; then |
92 |
+ echo -e "#!/bin/sh\necho apparmor" > hack/apparmor_tag.sh || die |
93 |
+ else |
94 |
+ echo -e "#!/bin/sh\ntrue" > hack/apparmor_tag.sh || die |
95 |
+ fi |
96 |
+ |
97 |
+ [[ -f hack/btrfs_installed_tag.sh ]] || die |
98 |
+ if use btrfs; then |
99 |
+ echo -e "#!/bin/sh\ntrue" > hack/btrfs_installed_tag.sh || die |
100 |
+ else |
101 |
+ echo -e "#!/bin/sh\necho exclude_graphdriver_btrfs" > \ |
102 |
+ hack/btrfs_installed_tag.sh || die |
103 |
+ fi |
104 |
+ |
105 |
+ [[ -f hack/selinux_tag.sh ]] || die |
106 |
+ if use selinux; then |
107 |
+ echo -e "#!/bin/sh\necho selinux" > hack/selinux_tag.sh || die |
108 |
+ else |
109 |
+ echo -e "#!/bin/sh\ntrue" > hack/selinux_tag.sh || die |
110 |
+ fi |
111 |
+ |
112 |
+ export -n GOCACHE GOPATH XDG_CACHE_HOME |
113 |
+ GOBIN="${S}/bin" \ |
114 |
+ emake all \ |
115 |
+ GIT_BRANCH=master \ |
116 |
+ GIT_BRANCH_CLEAN=master \ |
117 |
+ COMMIT_NO="${EGIT_COMMIT}" \ |
118 |
+ GIT_COMMIT="${EGIT_COMMIT}" |
119 |
+} |
120 |
+ |
121 |
+src_install() { |
122 |
+ emake DESTDIR="${D}" PREFIX="${EPREFIX}/usr" install |
123 |
+ |
124 |
+ insinto /etc/containers |
125 |
+ newins test/registries.conf registries.conf.example |
126 |
+ newins test/policy.json policy.json.example |
127 |
+ |
128 |
+ insinto /usr/share/containers |
129 |
+ doins seccomp.json |
130 |
+ |
131 |
+ newinitd "${FILESDIR}"/podman.initd podman |
132 |
+ |
133 |
+ insinto /etc/logrotate.d |
134 |
+ newins "${FILESDIR}/podman.logrotated" podman |
135 |
+ |
136 |
+ dobashcomp completions/bash/* |
137 |
+ |
138 |
+ keepdir /var/lib/containers |
139 |
+} |
140 |
+ |
141 |
+pkg_preinst() { |
142 |
+ LIBPOD_ROOTLESS_UPGRADE=false |
143 |
+ if use rootless; then |
144 |
+ has_version 'app-emulation/libpod[rootless]' || LIBPOD_ROOTLESS_UPGRADE=true |
145 |
+ fi |
146 |
+} |
147 |
+ |
148 |
+pkg_postinst() { |
149 |
+ local want_newline=false |
150 |
+ if [[ ! ( -e ${EROOT%/*}/etc/containers/policy.json && -e ${EROOT%/*}/etc/containers/registries.conf ) ]]; then |
151 |
+ elog "You need to create the following config files:" |
152 |
+ elog "/etc/containers/registries.conf" |
153 |
+ elog "/etc/containers/policy.json" |
154 |
+ elog "To copy over default examples, use:" |
155 |
+ elog "cp /etc/containers/registries.conf{.example,}" |
156 |
+ elog "cp /etc/containers/policy.json{.example,}" |
157 |
+ want_newline=true |
158 |
+ fi |
159 |
+ if [[ ${LIBPOD_ROOTLESS_UPGRADE} == true ]] ; then |
160 |
+ ${want_newline} && elog "" |
161 |
+ elog "For rootless operation, you need to configure subuid/subgid" |
162 |
+ elog "for user running podman. In case subuid/subgid has only been" |
163 |
+ elog "configured for root, run:" |
164 |
+ elog "usermod --add-subuids 1065536-1131071 <user>" |
165 |
+ elog "usermod --add-subgids 1065536-1131071 <user>" |
166 |
+ want_newline=true |
167 |
+ fi |
168 |
+} |