1 |
commit: a6e124e16da79e0d6831151186e844bc9e750945 |
2 |
Author: Zac Medico <zmedico <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Jun 4 08:25:43 2018 +0000 |
4 |
Commit: Zac Medico <zmedico <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Jan 7 10:16:19 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a6e124e1 |
7 |
|
8 |
app-emulation/libpod: new package |
9 |
|
10 |
Package-Manager: Portage-2.3.40, Repoman-2.3.9 |
11 |
Signed-off-by: Zac Medico <zmedico <AT> gentoo.org> |
12 |
|
13 |
app-emulation/libpod/Manifest | 1 + |
14 |
app-emulation/libpod/libpod-0.12.1.2.ebuild | 99 +++++++++++++++++++++++++++++ |
15 |
app-emulation/libpod/metadata.xml | 29 +++++++++ |
16 |
3 files changed, 129 insertions(+) |
17 |
|
18 |
diff --git a/app-emulation/libpod/Manifest b/app-emulation/libpod/Manifest |
19 |
new file mode 100644 |
20 |
index 00000000000..42810a9b0f0 |
21 |
--- /dev/null |
22 |
+++ b/app-emulation/libpod/Manifest |
23 |
@@ -0,0 +1 @@ |
24 |
+DIST libpod-0.12.1.2.tar.gz 5987875 BLAKE2B 11381c53e768c94bfadcb2013a028f64058b0001cd985ef289d1618163225cdf10bd608cff0cd6f7fc1c094497184fc6d0cedea32fde54f3581ebb51eb5eabdd SHA512 9abb46d7880c4577d22b48aed01baeae29662dc3dbbdbc297f1eebe8324fb734d9bac6cd105dc93f7600753874c0fa581142d1b16f7490175cea80b8f62b34ce |
25 |
|
26 |
diff --git a/app-emulation/libpod/libpod-0.12.1.2.ebuild b/app-emulation/libpod/libpod-0.12.1.2.ebuild |
27 |
new file mode 100644 |
28 |
index 00000000000..b3bc6469606 |
29 |
--- /dev/null |
30 |
+++ b/app-emulation/libpod/libpod-0.12.1.2.ebuild |
31 |
@@ -0,0 +1,99 @@ |
32 |
+# Copyright 1999-2019 Gentoo Authors |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+ |
35 |
+EAPI=6 |
36 |
+ |
37 |
+EGIT_COMMIT="9551f6bb379d4af56dfb63ddf0f3682e40a6694e" |
38 |
+EGO_PN="github.com/containers/${PN}" |
39 |
+ |
40 |
+inherit golang-vcs-snapshot systemd |
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" |
46 |
+SLOT="0" |
47 |
+ |
48 |
+KEYWORDS="~amd64" |
49 |
+IUSE="apparmor btrfs ostree selinux" |
50 |
+REQUIRED_USE="!selinux? ( !ostree )" |
51 |
+RESTRICT="test" |
52 |
+ |
53 |
+COMMON_DEPEND=" |
54 |
+ app-crypt/gpgme:= |
55 |
+ >=app-emulation/cri-o-1.13.0 |
56 |
+ app-emulation/runc |
57 |
+ dev-libs/libassuan:= |
58 |
+ dev-libs/libgpg-error:= |
59 |
+ sys-fs/lvm2 |
60 |
+ sys-libs/libseccomp:= |
61 |
+ |
62 |
+ apparmor? ( sys-libs/libapparmor ) |
63 |
+ btrfs? ( sys-fs/btrfs-progs ) |
64 |
+ ostree? ( |
65 |
+ dev-libs/glib:= |
66 |
+ dev-util/ostree:= |
67 |
+ ) |
68 |
+ selinux? ( sys-libs/libselinux:= ) |
69 |
+" |
70 |
+DEPEND=" |
71 |
+ ${COMMON_DEPEND} |
72 |
+ dev-go/go-md2man" |
73 |
+RDEPEND="${COMMON_DEPEND}" |
74 |
+S="${WORKDIR}/${P}/src/${EGO_PN}" |
75 |
+ |
76 |
+src_prepare() { |
77 |
+ default |
78 |
+ |
79 |
+ # Disable installation of python modules here, since those are |
80 |
+ # installed by separate ebuilds. |
81 |
+ sed -e '/^GIT_.*/d' \ |
82 |
+ -e 's/$(GO) build/$(GO) build -v -work -x/' \ |
83 |
+ -e 's/^\(install:.*\) install\.python$/\1/' \ |
84 |
+ -i Makefile || die |
85 |
+} |
86 |
+ |
87 |
+src_compile() { |
88 |
+ [[ -f hack/apparmor_tag.sh ]] || die |
89 |
+ if use apparmor; then |
90 |
+ echo -e "#!/bin/sh\necho apparmor" > hack/apparmor_tag.sh || die |
91 |
+ else |
92 |
+ echo -e "#!/bin/sh\ntrue" > hack/apparmor_tag.sh || die |
93 |
+ fi |
94 |
+ |
95 |
+ [[ -f hack/btrfs_installed_tag.sh ]] || die |
96 |
+ if use btrfs; then |
97 |
+ echo -e "#!/bin/sh\ntrue" > hack/btrfs_installed_tag.sh || die |
98 |
+ else |
99 |
+ echo -e "#!/bin/sh\necho exclude_graphdriver_btrfs" > \ |
100 |
+ hack/btrfs_installed_tag.sh || die |
101 |
+ fi |
102 |
+ |
103 |
+ [[ -f hack/ostree_tag.sh ]] || die |
104 |
+ if use ostree; then |
105 |
+ echo -e "#!/bin/sh\necho ostree" > hack/ostree_tag.sh || die |
106 |
+ else |
107 |
+ echo -e "#!/bin/sh\necho containers_image_ostree_stub" > hack/ostree_tag.sh || die |
108 |
+ fi |
109 |
+ |
110 |
+ [[ -f hack/selinux_tag.sh ]] || die |
111 |
+ if use selinux; then |
112 |
+ echo -e "#!/bin/sh\necho selinux" > hack/selinux_tag.sh || die |
113 |
+ else |
114 |
+ echo -e "#!/bin/sh\ntrue" > hack/selinux_tag.sh || die |
115 |
+ fi |
116 |
+ |
117 |
+ env -u LDFLAGS GOPATH="${WORKDIR}/${P}" GOBIN="${WORKDIR}/${P}/bin" \ |
118 |
+ emake all \ |
119 |
+ GIT_BRANCH=master \ |
120 |
+ GIT_BRANCH_CLEAN=master \ |
121 |
+ COMMIT_NO="${EGIT_COMMIT}" \ |
122 |
+ GIT_COMMIT="${EGIT_COMMIT}" |
123 |
+} |
124 |
+ |
125 |
+src_install() { |
126 |
+ emake DESTDIR="${D}" PREFIX="${D}${EPREFIX}/usr" install |
127 |
+ |
128 |
+ insinto /etc/containers |
129 |
+ newins test/registries.conf registries.conf.example |
130 |
+} |
131 |
|
132 |
diff --git a/app-emulation/libpod/metadata.xml b/app-emulation/libpod/metadata.xml |
133 |
new file mode 100644 |
134 |
index 00000000000..1c5655b32d7 |
135 |
--- /dev/null |
136 |
+++ b/app-emulation/libpod/metadata.xml |
137 |
@@ -0,0 +1,29 @@ |
138 |
+<?xml version="1.0" encoding="UTF-8"?> |
139 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
140 |
+<pkgmetadata> |
141 |
+ <maintainer type="person"> |
142 |
+ <email>zmedico@g.o</email> |
143 |
+ <name>Zac Medico</name> |
144 |
+ </maintainer> |
145 |
+ <longdescription lang="en"> |
146 |
+ libpod provides a library for applications looking to use the |
147 |
+ Container Pod concept popularized by Kubernetes. libpod also |
148 |
+ contains a tool called podman for managing Pods, Containers, |
149 |
+ and Container Images. |
150 |
+ </longdescription> |
151 |
+ <use> |
152 |
+ <flag name="apparmor"> |
153 |
+ Enable AppArmor support. |
154 |
+ </flag> |
155 |
+ <flag name="btrfs"> |
156 |
+ Enables dependencies for the "btrfs" graph driver, including |
157 |
+ necessary kernel flags. |
158 |
+ </flag> |
159 |
+ <flag name="ostree"> |
160 |
+ Enables dependencies for handling of OSTree images. |
161 |
+ </flag> |
162 |
+ </use> |
163 |
+ <upstream> |
164 |
+ <remote-id type="github">containers/libpod</remote-id> |
165 |
+ </upstream> |
166 |
+</pkgmetadata> |