1 |
commit: bc2a6090600db70d91ddc6a52828a353c19ea333 |
2 |
Author: Zac Medico <zmedico <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Nov 3 21:40:30 2019 +0000 |
4 |
Commit: Zac Medico <zmedico <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Nov 3 21:41:46 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bc2a6090 |
7 |
|
8 |
app-emulation/libpod: Bump to version 1.6.3 |
9 |
|
10 |
Package-Manager: Portage-2.3.78, Repoman-2.3.17 |
11 |
Signed-off-by: Zac Medico <zmedico <AT> gentoo.org> |
12 |
|
13 |
app-emulation/libpod/Manifest | 1 + |
14 |
app-emulation/libpod/libpod-1.6.3.ebuild | 130 +++++++++++++++++++++++++++++++ |
15 |
2 files changed, 131 insertions(+) |
16 |
|
17 |
diff --git a/app-emulation/libpod/Manifest b/app-emulation/libpod/Manifest |
18 |
index 24023149209..e09b88df125 100644 |
19 |
--- a/app-emulation/libpod/Manifest |
20 |
+++ b/app-emulation/libpod/Manifest |
21 |
@@ -1,2 +1,3 @@ |
22 |
DIST libpod-1.5.1.tar.gz 8010274 BLAKE2B 4928b45a6d86fe14ff7359c856da664d14fc578dcff095c984eb0fa3b4aed42576cf610f19a9015064f406109d79cd6df60eb0b2990e5058de1e4f9f7d9ae7ee SHA512 d9d422c4189adb840cfe3dd8b7e8278412f0ea17e4ccd2cdf4f4b134a87b1add61bbdca1c8d9db3db846c272e2ab3f624bf9e4aac005b78d0c7e161af898dc02 |
23 |
DIST libpod-1.6.2.tar.gz 8270781 BLAKE2B 5d86533ddc821f731292e126102a31d651956c275a22c5c4ab3c57b9351832a1d85d75be877343c60af47716f9d1776315b3bf41fb17037d02fee10cf88efba3 SHA512 68192dda019623e3f3af9f82f946be8efbaf3e2c54acf23f62af67ac1ca093dd4dba11d2a7c1c950b99060393ed7e945752c1eaa9eada0dfc30f3dcaac8e1c04 |
24 |
+DIST libpod-1.6.3.tar.gz 8340471 BLAKE2B b017a29ab034d8432b3abe2d920e0a71ad6542a5f088ed0de8fc67e846b409efbfd5be2e72908b52b5d21f05ce30c31db3bd55f8d8974711eb8f48cf8c3553a5 SHA512 a4d9f4c74db42fade86c36f4b2c27b8b3ff42db90af21bccab2eae8e9d710ae102c05e1fa926ac1d8e67613e11fa40163800077b61e49d90de521ab472e9c8dd |
25 |
|
26 |
diff --git a/app-emulation/libpod/libpod-1.6.3.ebuild b/app-emulation/libpod/libpod-1.6.3.ebuild |
27 |
new file mode 100644 |
28 |
index 00000000000..f2d8fa4c489 |
29 |
--- /dev/null |
30 |
+++ b/app-emulation/libpod/libpod-1.6.3.ebuild |
31 |
@@ -0,0 +1,130 @@ |
32 |
+# Copyright 1999-2019 Gentoo Authors |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+ |
35 |
+EAPI=7 |
36 |
+ |
37 |
+EGIT_COMMIT="9d087f6a766259ba53b224944f1b7b778035c370" |
38 |
+ |
39 |
+inherit bash-completion-r1 flag-o-matic go-module |
40 |
+ |
41 |
+DESCRIPTION="Library and podman tool for running OCI-based containers in Pods" |
42 |
+HOMEPAGE="https://github.com/containers/libpod/" |
43 |
+SRC_URI="https://github.com/containers/libpod/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
44 |
+LICENSE="Apache-2.0 BSD BSD-2 CC-BY-SA-4.0 ISC MIT MPL-2.0" |
45 |
+SLOT="0" |
46 |
+ |
47 |
+KEYWORDS="~amd64" |
48 |
+IUSE="apparmor btrfs ostree +rootless selinux" |
49 |
+REQUIRED_USE="!ostree" |
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 |
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/$(GO) build/$(GO) build -v -work -x/' \ |
78 |
+ -e 's/^\(install:.*\) install\.python$/\1/' \ |
79 |
+ -i Makefile || die |
80 |
+} |
81 |
+ |
82 |
+src_compile() { |
83 |
+ # Filter unsupported linker flags |
84 |
+ filter-flags '-Wl,*' |
85 |
+ |
86 |
+ [[ -f hack/apparmor_tag.sh ]] || die |
87 |
+ if use apparmor; then |
88 |
+ echo -e "#!/bin/sh\necho apparmor" > hack/apparmor_tag.sh || die |
89 |
+ else |
90 |
+ echo -e "#!/bin/sh\ntrue" > hack/apparmor_tag.sh || die |
91 |
+ fi |
92 |
+ |
93 |
+ [[ -f hack/btrfs_installed_tag.sh ]] || die |
94 |
+ if use btrfs; then |
95 |
+ echo -e "#!/bin/sh\ntrue" > hack/btrfs_installed_tag.sh || die |
96 |
+ else |
97 |
+ echo -e "#!/bin/sh\necho exclude_graphdriver_btrfs" > \ |
98 |
+ hack/btrfs_installed_tag.sh || die |
99 |
+ fi |
100 |
+ |
101 |
+ [[ -f hack/selinux_tag.sh ]] || die |
102 |
+ if use selinux; then |
103 |
+ echo -e "#!/bin/sh\necho selinux" > hack/selinux_tag.sh || die |
104 |
+ else |
105 |
+ echo -e "#!/bin/sh\ntrue" > hack/selinux_tag.sh || die |
106 |
+ fi |
107 |
+ |
108 |
+ export -n GOCACHE XDG_CACHE_HOME |
109 |
+ GOBIN="${S}/bin" \ |
110 |
+ emake all \ |
111 |
+ GIT_BRANCH=master \ |
112 |
+ GIT_BRANCH_CLEAN=master \ |
113 |
+ COMMIT_NO="${EGIT_COMMIT}" \ |
114 |
+ GIT_COMMIT="${EGIT_COMMIT}" |
115 |
+} |
116 |
+ |
117 |
+src_install() { |
118 |
+ emake DESTDIR="${D}" PREFIX="${EPREFIX}/usr" install |
119 |
+ |
120 |
+ insinto /etc/containers |
121 |
+ newins test/registries.conf registries.conf.example |
122 |
+ newins test/policy.json policy.json.example |
123 |
+ |
124 |
+ newinitd "${FILESDIR}"/podman.initd podman |
125 |
+ |
126 |
+ insinto /etc/logrotate.d |
127 |
+ newins "${FILESDIR}/podman.logrotated" podman |
128 |
+ |
129 |
+ dobashcomp completions/bash/* |
130 |
+ |
131 |
+ keepdir /var/lib/containers |
132 |
+} |
133 |
+ |
134 |
+pkg_preinst() { |
135 |
+ LIBPOD_ROOTLESS_UPGRADE=false |
136 |
+ if use rootless; then |
137 |
+ has_version 'app-emulation/libpod[rootless]' || LIBPOD_ROOTLESS_UPGRADE=true |
138 |
+ fi |
139 |
+} |
140 |
+ |
141 |
+pkg_postinst() { |
142 |
+ local want_newline=false |
143 |
+ if [[ ! ( -e ${EROOT%/*}/etc/containers/policy.json && -e ${EROOT%/*}/etc/containers/registries.conf ) ]]; then |
144 |
+ elog "You need to create the following config files:" |
145 |
+ elog "/etc/containers/registries.conf" |
146 |
+ elog "/etc/containers/policy.json" |
147 |
+ elog "To copy over default examples, use:" |
148 |
+ elog "cp /etc/containers/registries.conf{.example,}" |
149 |
+ elog "cp /etc/containers/policy.json{.example,}" |
150 |
+ want_newline=true |
151 |
+ fi |
152 |
+ if [[ ${LIBPOD_ROOTLESS_UPGRADE} == true ]] ; then |
153 |
+ ${want_newline} && elog "" |
154 |
+ elog "For rootless operation, you need to configure subuid/subgid" |
155 |
+ elog "for user running podman. In case subuid/subgid has only been" |
156 |
+ elog "configured for root, run:" |
157 |
+ elog "usermod --add-subuids 1065536-1131071 <user>" |
158 |
+ elog "usermod --add-subgids 1065536-1131071 <user>" |
159 |
+ want_newline=true |
160 |
+ fi |
161 |
+} |