1 |
commit: d799375d0c3bcab66723bdb820c39858ffac7ccc |
2 |
Author: babykart <babykart <AT> gmail <DOT> com> |
3 |
AuthorDate: Sat Feb 16 20:42:00 2019 +0000 |
4 |
Commit: Zac Medico <zmedico <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Feb 17 02:43:13 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d799375d |
7 |
|
8 |
app-emulation/libpod: version bump to 1.0.1 |
9 |
|
10 |
Closes: https://bugs.gentoo.org/678178 |
11 |
Package-Manager: Portage-2.3.60, Repoman-2.3.12 |
12 |
Signed-off-by: Zac Medico <zmedico <AT> gentoo.org> |
13 |
|
14 |
app-emulation/libpod/Manifest | 1 + |
15 |
app-emulation/libpod/libpod-1.0.1.ebuild | 108 +++++++++++++++++++++++++++++++ |
16 |
2 files changed, 109 insertions(+) |
17 |
|
18 |
diff --git a/app-emulation/libpod/Manifest b/app-emulation/libpod/Manifest |
19 |
index 42810a9b0f0..75ea1c1bff5 100644 |
20 |
--- a/app-emulation/libpod/Manifest |
21 |
+++ b/app-emulation/libpod/Manifest |
22 |
@@ -1 +1,2 @@ |
23 |
DIST libpod-0.12.1.2.tar.gz 5987875 BLAKE2B 11381c53e768c94bfadcb2013a028f64058b0001cd985ef289d1618163225cdf10bd608cff0cd6f7fc1c094497184fc6d0cedea32fde54f3581ebb51eb5eabdd SHA512 9abb46d7880c4577d22b48aed01baeae29662dc3dbbdbc297f1eebe8324fb734d9bac6cd105dc93f7600753874c0fa581142d1b16f7490175cea80b8f62b34ce |
24 |
+DIST libpod-1.0.1.tar.gz 6088749 BLAKE2B 64e28c6c7b60e226cae6a302e6e26ca5c2659d3c61910cc6fd2bbceec20485d7f2106d32da0472bc18a08bd611a6f0bf851b5c46066b47613783768c53a4c034 SHA512 23515fa3934ba2ec174011362ab1b67c747a7bf3122e606677ed40eb18aad28f79da30d09b6e1d0b74384286ff600fd1441fa4b6424e8bf3e410e867b57d92ef |
25 |
|
26 |
diff --git a/app-emulation/libpod/libpod-1.0.1.ebuild b/app-emulation/libpod/libpod-1.0.1.ebuild |
27 |
new file mode 100644 |
28 |
index 00000000000..584d3ba095f |
29 |
--- /dev/null |
30 |
+++ b/app-emulation/libpod/libpod-1.0.1.ebuild |
31 |
@@ -0,0 +1,108 @@ |
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="2c74edd0ac6509d6e533cb4e012e3e3f9e03434d" |
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 |
+ newinitd "${FILESDIR}"/podman.initd podman |
132 |
+ |
133 |
+ systemd_dounit "${S}"/contrib/varlink/*.service "${S}"/contrib/varlink/*.socket |
134 |
+ |
135 |
+ insinto /etc/logrotate.d |
136 |
+ newins "${FILESDIR}/podman.logrotated" podman |
137 |
+ |
138 |
+ keepdir /var/lib/containers |
139 |
+} |