1 |
commit: bf26f36f5a139d74f3588e8867280ec947c7fb93 |
2 |
Author: Zac Medico <zmedico <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Feb 22 05:52:06 2016 +0000 |
4 |
Commit: Zac Medico <zmedico <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Feb 22 05:55:20 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bf26f36f |
7 |
|
8 |
app-emulation/rkt: version bump to 1.0.0 |
9 |
|
10 |
Package-Manager: portage-2.2.27 |
11 |
|
12 |
app-emulation/rkt/Manifest | 2 + |
13 |
app-emulation/rkt/metadata.xml | 5 ++ |
14 |
app-emulation/rkt/rkt-1.0.0.ebuild | 103 +++++++++++++++++++++++++++++++++++++ |
15 |
3 files changed, 110 insertions(+) |
16 |
|
17 |
diff --git a/app-emulation/rkt/Manifest b/app-emulation/rkt/Manifest |
18 |
index d74b026..3da236a 100644 |
19 |
--- a/app-emulation/rkt/Manifest |
20 |
+++ b/app-emulation/rkt/Manifest |
21 |
@@ -1,2 +1,4 @@ |
22 |
DIST rkt-0.8.0.tar.gz 1749853 SHA256 c9eb0126b8ff2f059d7cedaab17ca73dce256f342092c9bf4a7ae20661f2a5aa SHA512 4e2c27fb40cd3d27de062631105db3ea04ed902f48abb647a8e4de249478dd8a145ac0b77fd5b261cc680df1bcaa4067accb8a597def9b3963108e2c1f3d9d5a WHIRLPOOL f65ddd8908ec30cfefa06e60cd4d8cdb2099ab279b6350790eb3e436b88c792efe28cea53569f48d42f6eec682635a4212f16fea9d184e6baa97877a643e1106 |
23 |
+DIST rkt-1.0.0.tar.gz 2414183 SHA256 7e30b03fa51a34db095484c4b111c526e49bead4e33232e1b239090503d7ac97 SHA512 f176532486b68ebc15aae17cfcf31e0f97ce3afc96bfed1c4f918da41350ef21c170712cb071a8720f39ee757b7b9ba1e66730d6e12acb9753446b929801c4ff WHIRLPOOL b2fc3082693b474584292a6ec943a685826364632dc346b18233bf9b9d2feaf14981f4a7fcbd9e79b98c2466b2f24be9b57f6345c89aeea5d075cdbeee26aba5 |
24 |
DIST rkt-pxe-738.1.0.img 151780780 SHA256 805a4c491281553c8927f3dd1a7bec50cca29209d0a7264870e7155d794ecbe6 SHA512 7774cc64dfa874f08f48cba0c15103e9eca86ffd87dcb24f765a9b56074e72f6862a663a4007a0a7dd296740ae91bf4edf7290fa35659b0b1572fe2f5dad3256 WHIRLPOOL 5973a6036d650c576bb0bd365c8c9ea35776501c1fd2baf1d7c00d06496fab35e9c796096ef89b095e7a922e2062dce6c0d1c85cd3101022e0aca84277d18cb9 |
25 |
+DIST rkt-pxe-794.1.0.img 185121072 SHA256 d513e27d2412d8fdaa2456786703346f10c24a62480d2036ca5c31b3d5a0df16 SHA512 f36324e9736bb0c533706c45d4146bed2efcb3ee2cb842c3624a62399835808c0df2aef56495a12b30f67c47fd84e93e34b10c57e4aa6d0450402d5e21c6f88c WHIRLPOOL 099851022b11aa29d004bbcef316a7cceeb5efa43f8069cdf1858888e7550f938fd9f9ec53eb63c313b5c1b93b0569f578a50fc5bae28b4d30c451a2ffd2adba |
26 |
|
27 |
diff --git a/app-emulation/rkt/metadata.xml b/app-emulation/rkt/metadata.xml |
28 |
index 5616198..33d4777 100644 |
29 |
--- a/app-emulation/rkt/metadata.xml |
30 |
+++ b/app-emulation/rkt/metadata.xml |
31 |
@@ -1,6 +1,10 @@ |
32 |
<?xml version="1.0" encoding="UTF-8"?> |
33 |
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
34 |
<pkgmetadata> |
35 |
+ <maintainer type="person"> |
36 |
+ <email>zmedico@g.o</email> |
37 |
+ <name>Zac Medico</name> |
38 |
+ </maintainer> |
39 |
<longdescription lang="en"> |
40 |
rkt is a new container runtime, designed for composability, security, |
41 |
and speed. Today we are releasing a prototype version on GitHub to begin |
42 |
@@ -10,6 +14,7 @@ |
43 |
<use> |
44 |
<flag name="actool">Install the actool for ACI manipulation</flag> |
45 |
<flag name="rkt_stage1_coreos">Download and use a prebuilt stage1.aci from CoreOS</flag> |
46 |
+ <flag name="rkt_stage1_fly">Build stage1-fly.aci</flag> |
47 |
<flag name="rkt_stage1_src">Build the stage1.aci from source</flag> |
48 |
<flag name="rkt_stage1_host">Assemble stage1.aci from host binaries</flag> |
49 |
</use> |
50 |
|
51 |
diff --git a/app-emulation/rkt/rkt-1.0.0.ebuild b/app-emulation/rkt/rkt-1.0.0.ebuild |
52 |
new file mode 100644 |
53 |
index 0000000..858b0c3 |
54 |
--- /dev/null |
55 |
+++ b/app-emulation/rkt/rkt-1.0.0.ebuild |
56 |
@@ -0,0 +1,103 @@ |
57 |
+# Copyright 1999-2016 Gentoo Foundation |
58 |
+# Distributed under the terms of the GNU General Public License v2 |
59 |
+# $Id$ |
60 |
+ |
61 |
+EAPI=5 |
62 |
+ |
63 |
+AUTOTOOLS_AUTORECONF=yes |
64 |
+AUTOTOOLS_IN_SOURCE_BUILD=yes |
65 |
+ |
66 |
+inherit autotools-utils flag-o-matic systemd toolchain-funcs |
67 |
+ |
68 |
+KEYWORDS="~amd64" |
69 |
+ |
70 |
+PXE_VERSION="794.1.0" |
71 |
+PXE_SYSTEMD_VERSION="v222" |
72 |
+PXE_URI="http://alpha.release.core-os.net/amd64-usr/${PXE_VERSION}/coreos_production_pxe_image.cpio.gz" |
73 |
+PXE_FILE="${PN}-pxe-${PXE_VERSION}.img" |
74 |
+ |
75 |
+SRC_URI="https://github.com/coreos/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz |
76 |
+rkt_stage1_coreos? ( $PXE_URI -> $PXE_FILE )" |
77 |
+ |
78 |
+DESCRIPTION="A CLI for running app containers, and an implementation of the App |
79 |
+Container Spec." |
80 |
+HOMEPAGE="https://github.com/coreos/rkt" |
81 |
+ |
82 |
+LICENSE="Apache-2.0" |
83 |
+SLOT="0" |
84 |
+IUSE="doc examples +rkt_stage1_coreos +rkt_stage1_fly +actool" |
85 |
+REQUIRED_USE="|| ( rkt_stage1_coreos rkt_stage1_fly )" |
86 |
+ |
87 |
+DEPEND=">=dev-lang/go-1.4.1 |
88 |
+ app-arch/cpio |
89 |
+ sys-fs/squashfs-tools |
90 |
+ dev-perl/Capture-Tiny" |
91 |
+ |
92 |
+RDEPEND="!app-emulation/rocket" |
93 |
+ |
94 |
+BUILDDIR="build-${P}" |
95 |
+STAGE1_DEFAULT_LOCATION="/usr/share/rkt/stage1.aci" |
96 |
+ |
97 |
+src_configure() { |
98 |
+ local flavors myeconfargs=( |
99 |
+ --with-stage1-default-images-directory="/usr/share/rkt" |
100 |
+ --with-stage1-default-location="${STAGE1_DEFAULT_LOCATION}" |
101 |
+ ) |
102 |
+ |
103 |
+ # TODO: |
104 |
+ # - fix rkt_stage1_kvm to not download kernel sources with wget |
105 |
+ # - fix rkt_stage1_src to not download systemd sources with git clone |
106 |
+ # - fix rkt_stage1_host to not fail during launch |
107 |
+ |
108 |
+ # enable flavors (first is default) |
109 |
+ use rkt_stage1_coreos && flavors+=",coreos" |
110 |
+ use rkt_stage1_fly && flavors+=",fly" |
111 |
+ myeconfargs+=( --with-stage1-flavors="${flavors#,}" ) |
112 |
+ |
113 |
+ if use rkt_stage1_coreos; then |
114 |
+ myeconfargs+=( |
115 |
+ --with-coreos-local-pxe-image-path="${DISTDIR}/${PXE_FILE}" |
116 |
+ --with-coreos-local-pxe-image-systemd-version="${PXE_SYSTEMD_VERSION}" |
117 |
+ ) |
118 |
+ fi |
119 |
+ |
120 |
+ # Go's 6l linker does not support PIE, disable so cgo binaries |
121 |
+ # which use 6l+gcc for linking can be built correctly. |
122 |
+ if gcc-specs-pie; then |
123 |
+ append-ldflags -nopie |
124 |
+ fi |
125 |
+ |
126 |
+ export CC=$(tc-getCC) |
127 |
+ export CGO_ENABLED=1 |
128 |
+ export CGO_CFLAGS="${CFLAGS}" |
129 |
+ export CGO_CPPFLAGS="${CPPFLAGS}" |
130 |
+ export CGO_CXXFLAGS="${CXXFLAGS}" |
131 |
+ export CGO_LDFLAGS="${LDFLAGS}" |
132 |
+ export BUILDDIR |
133 |
+ |
134 |
+ autotools-utils_src_configure |
135 |
+} |
136 |
+ |
137 |
+src_install() { |
138 |
+ dodoc README.md |
139 |
+ use doc && dodoc -r Documentation |
140 |
+ use examples && dodoc -r examples |
141 |
+ use actool && dobin "${S}/${BUILDDIR}/bin/actool" |
142 |
+ |
143 |
+ dobin "${S}/${BUILDDIR}/bin/rkt" |
144 |
+ |
145 |
+ insinto /usr/share/rkt |
146 |
+ doins "${S}/${BUILDDIR}/bin/"*.aci |
147 |
+ |
148 |
+ # create symlink for default stage1 image path |
149 |
+ if use rkt_stage1_coreos; then |
150 |
+ dosym stage1-coreos.aci "${STAGE1_DEFAULT_LOCATION}" |
151 |
+ elif use rkt_stage1_fly; then |
152 |
+ dosym stage1-fly.aci "${STAGE1_DEFAULT_LOCATION}" |
153 |
+ fi |
154 |
+ |
155 |
+ systemd_dounit "${S}"/dist/init/systemd/${PN}-gc.service |
156 |
+ systemd_dounit "${S}"/dist/init/systemd/${PN}-gc.timer |
157 |
+ systemd_dounit "${S}"/dist/init/systemd/${PN}-metadata.service |
158 |
+ systemd_dounit "${S}"/dist/init/systemd/${PN}-metadata.socket |
159 |
+} |