Gentoo Archives: gentoo-commits

From: Zac Medico <zmedico@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-emulation/rkt/
Date: Sat, 30 Jul 2016 07:13:57
Message-Id: 1469862799.ba40d8809e09ff169e07be496cd78b4f6349b73e.zmedico@gentoo
1 commit: ba40d8809e09ff169e07be496cd78b4f6349b73e
2 Author: Zac Medico <zmedico <AT> gentoo <DOT> org>
3 AuthorDate: Sat Jul 30 07:13:19 2016 +0000
4 Commit: Zac Medico <zmedico <AT> gentoo <DOT> org>
5 CommitDate: Sat Jul 30 07:13:19 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ba40d880
7
8 app-emulation/rkt: remove old versions
9
10 Package-Manager: portage-2.3.0
11
12 app-emulation/rkt/Manifest | 3 -
13 app-emulation/rkt/rkt-1.6.0.ebuild | 194 -------------------------------------
14 app-emulation/rkt/rkt-1.7.0.ebuild | 190 ------------------------------------
15 3 files changed, 387 deletions(-)
16
17 diff --git a/app-emulation/rkt/Manifest b/app-emulation/rkt/Manifest
18 index 44cb1e1..fb61fbf 100644
19 --- a/app-emulation/rkt/Manifest
20 +++ b/app-emulation/rkt/Manifest
21 @@ -3,9 +3,6 @@ DIST kvmtool-d62653e177597251c24494a6dda60acd6d846671.tar.gz 243930 SHA256 89f4c
22 DIST linux-4.3.1.tar.xz 86900452 SHA256 11faaff6e7546038b868f524cdf42a5a1b67be9fdfd37d931723a8deb1811b72 SHA512 640db1a15db2e18f912e8ea93b01c784740d1a9957dc1d5580809448adb0713edfb02b7172f61362f0f362800c88f09dcc8165005250a757fbd942b59e36ba16 WHIRLPOOL f5de4ea768ad7a5cad21705c24b79773522207ffbc85209676b1a4ce067e031330ded68e2201953c477c3dae743f95521da230194be90be900afa30f39f943c5
23 DIST rkt-1.10.1.tar.gz 2754338 SHA256 4a3c5db16be05292d6174d9d2c1d1f4c5c967e37686390927b8ca0d2bf570eb5 SHA512 6f6291251b31a3b4e1a4652554ded3f5c43b975aac861bbad483360347ea23f3f517b5fdd97fca2b26ab9543530df6318207e67c3d0776eff04cd4808489d2ec WHIRLPOOL 8f2946a2e5478bc2d1a0d5274fd22a7a16fbc81ed462d0cc49e7aa47e43c6c4324c317c3913199b55000d09b955aa56df0090427f99825f4cf376240cdd285c7
24 DIST rkt-1.11.0.tar.gz 2767797 SHA256 cd75f1648ae6736da731c14a2102646ee90467efd6d2a32b518fd36b8c9806c5 SHA512 dfc604b50037a5a272e0fe0f438c35e1a010489ee19a426cbad7184a3910a214f4bf659b533f323a2ab742deffe7bba10daee52691ff32e5a35f453b2b0c4bb0 WHIRLPOOL 4caa6be6f5f8c5aeb67c762a2643ffc8579d45f49b5c5e4cb5c16ce5e38cc4db35e9dee7d5df20ef80bf75d64e3cccbcc1521c4ddab18441652d2d383a17368b
25 -DIST rkt-1.6.0.tar.gz 2641952 SHA256 767f2ed21d6dbf00a7a264d0dbd84a2733d56dbe97bab90b3d99af47d33c9b5c SHA512 54a0c564173047adbb5b81abb73600fee4fbdb5bf27521d4de269156e6ae9d3df23796cf57fdff551fc0846332c88fb96cca0b757beca512e1b760c5653a462b WHIRLPOOL 84fac58e268651f76ee1509ef99b3554bdc14e5cb66a75613f60fca5fe3d177305dc252a7b868e3d183222f40882e618aa964760c9025829f42b8bce7e1391b1
26 -DIST rkt-1.7.0.tar.gz 2835144 SHA256 80806ea63fe741cc569c991f98721289cd439c2239c3a8b1966ced2e467ed182 SHA512 677fe65921610070a8d3dfd96adda361390511e1f30f5fbd0335ddf0f743056f9dcddf089f3d42db0060f1d85830647b8b5633439ed5d8e589c64daf0490e6f6 WHIRLPOOL aeea6323a4e962c4f64f6c03b0685b85021916840d61d441da554f3091b1c68efd6bf3e4b06fb7536ae421bd9f2bc13747856e3139da5361cc1e8f35809a6231
27 -DIST rkt-pxe-1032.0.0.img 233166273 SHA256 2e34b18dc6d8a7f89ab6dd64ed405299171067f4d9f0bb2cf18b15be9985bed2 SHA512 e6dd5b2329894c54d1d5c6b0d700a6e5aab5001c754a043de461bf0335c946690933d7b93897f681c82c99778fdbddd75efe777535dfc7dda1f11834d0a6e8d2 WHIRLPOOL df5af345546339bb245884900cda7f246de58d6d0fc21c8f8f9dfb16bf7375263f455526d9c3d2330b4693b7c015029987edc9c5843201ca6b51482a2b3fdef7
28 DIST rkt-pxe-1068.0.0.img 261402717 SHA256 f7ae0b0c676a2aaaaf2872fd5d0d692744d6af9185a334354c3c673865e54a1a SHA512 7b4c4ac28eb59f9fa8616b205fb440e5535814b80d89a365fd695252e7f9ed5f0d5288d1e571bc71b261f4f68ca052d327eee7eabe9b562e7003c767c96e052a WHIRLPOOL 1afa35b65a4beb2d5c12a8da4db7aff6b3b3123aa83366b0a51caac911938957f992082f7af35c1592c2da44503cc5131547a7961771c2c4064e79b3074f8a6b
29 DIST rkt-pxe-1097.0.0.img 240454650 SHA256 aa205919c4c733cf4cb7220f038f272f4b3ce6a185e5195945fdc625f506f737 SHA512 7a3cc62b5ae13ed8813effdea6125472982c81fa1fb35df0ac13a233ee352e67167a38cd82a802c0e8da50b2cf4455771441ad5ada186b3e3f2cdade4b1903c7 WHIRLPOOL 067eba2c1ebc546df506a249c0c49ab2ce556869f9455b6b1706e2285111293a4beed0172036df372e7b2e02449d815fb76c361219badcebe3240686be7bcc4c
30 DIST rkt-pxe-794.1.0.img 185121072 SHA256 d513e27d2412d8fdaa2456786703346f10c24a62480d2036ca5c31b3d5a0df16 SHA512 f36324e9736bb0c533706c45d4146bed2efcb3ee2cb842c3624a62399835808c0df2aef56495a12b30f67c47fd84e93e34b10c57e4aa6d0450402d5e21c6f88c WHIRLPOOL 099851022b11aa29d004bbcef316a7cceeb5efa43f8069cdf1858888e7550f938fd9f9ec53eb63c313b5c1b93b0569f578a50fc5bae28b4d30c451a2ffd2adba
31
32 diff --git a/app-emulation/rkt/rkt-1.6.0.ebuild b/app-emulation/rkt/rkt-1.6.0.ebuild
33 deleted file mode 100644
34 index 2d3a5ad..0000000
35 --- a/app-emulation/rkt/rkt-1.6.0.ebuild
36 +++ /dev/null
37 @@ -1,194 +0,0 @@
38 -# Copyright 1999-2016 Gentoo Foundation
39 -# Distributed under the terms of the GNU General Public License v2
40 -# $Id$
41 -
42 -EAPI=5
43 -
44 -AUTOTOOLS_AUTORECONF=yes
45 -AUTOTOOLS_IN_SOURCE_BUILD=yes
46 -
47 -inherit autotools-utils flag-o-matic systemd toolchain-funcs
48 -
49 -KEYWORDS="~amd64"
50 -
51 -PXE_VERSION="1032.0.0"
52 -PXE_SYSTEMD_VERSION="v229"
53 -KVM_LINUX_VERSION="4.3.1"
54 -KVMTOOL_VERSION="d62653e177597251c24494a6dda60acd6d846671"
55 -PXE_URI="http://alpha.release.core-os.net/amd64-usr/${PXE_VERSION}/coreos_production_pxe_image.cpio.gz"
56 -PXE_FILE="${PN}-pxe-${PXE_VERSION}.img"
57 -
58 -SRC_URI="https://github.com/coreos/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz
59 -rkt_stage1_coreos? ( $PXE_URI -> $PXE_FILE )
60 -rkt_stage1_kvm? (
61 - https://kernel.googlesource.com/pub/scm/linux/kernel/git/will/kvmtool/+archive/${KVMTOOL_VERSION}.tar.gz -> kvmtool-${KVMTOOL_VERSION}.tar.gz
62 - mirror://kernel/linux/kernel/v4.x/linux-${KVM_LINUX_VERSION}.tar.xz
63 - ${PXE_URI} -> ${PXE_FILE}
64 -)
65 -rkt_stage1_src? ( https://github.com/systemd/systemd/archive/${PXE_SYSTEMD_VERSION}.tar.gz -> systemd-${PXE_SYSTEMD_VERSION#v}.tar.gz )"
66 -
67 -DESCRIPTION="A CLI for running app containers, and an implementation of the App
68 -Container Spec."
69 -HOMEPAGE="https://github.com/coreos/rkt"
70 -
71 -LICENSE="Apache-2.0"
72 -SLOT="0"
73 -IUSE="doc examples +rkt_stage1_coreos +rkt_stage1_fly rkt_stage1_host rkt_stage1_kvm rkt_stage1_src +actool systemd"
74 -REQUIRED_USE="|| ( rkt_stage1_coreos rkt_stage1_fly rkt_stage1_host rkt_stage1_kvm rkt_stage1_src ) rkt_stage1_host? ( systemd )"
75 -
76 -DEPEND=">=dev-lang/go-1.5
77 - app-arch/cpio
78 - app-crypt/trousers
79 - sys-fs/squashfs-tools
80 - dev-perl/Capture-Tiny
81 - rkt_stage1_src? ( >=sys-apps/util-linux-2.27 )"
82 -
83 -RDEPEND="!app-emulation/rocket
84 - rkt_stage1_host? ( systemd? (
85 - >=sys-apps/systemd-222
86 - app-shells/bash:0
87 - ) )"
88 -
89 -BUILDDIR="build-${P}"
90 -STAGE1_DEFAULT_LOCATION="/usr/share/rkt/stage1.aci"
91 -
92 -src_unpack() {
93 - local x
94 - for x in ${A}; do
95 - case ${x} in
96 - *.img|linux-*) continue ;;
97 - kvmtool-*)
98 - mkdir kvmtool || die
99 - pushd kvmtool >/dev/null || die
100 - unpack ${x}
101 - popd >/dev/null || die
102 - ;;
103 - *)
104 - unpack ${x}
105 - esac
106 - done
107 -}
108 -
109 -src_prepare() {
110 - # disable git fetch of systemd
111 - sed -e 's~^include makelib/git.mk$~'\
112 -'ifneq ($(wildcard $(RKT_STAGE1_SYSTEMD_SRC)),)\n\n'\
113 -'get_systemd_sources: | $(UFS_SYSTEMDDIR)\n'\
114 -'\tmv "$(RKT_STAGE1_SYSTEMD_SRC)" "$(UFS_SYSTEMD_SRCDIR)"\n\n'\
115 -'$(UFS_SYSTEMD_CONFIGURE): get_systemd_sources\n\n'\
116 -'else ifneq ($(wildcard $(UFS_SYSTEMD_SRCDIR)),)\n\n'\
117 -'else\n'\
118 -'\t\0\n'\
119 -'endif~' -i stage1/usr_from_src/usr_from_src.mk || die
120 -
121 - # disable git fetch of kvmtool
122 - sed -e 's~^include makelib/git.mk$~'\
123 -'ifneq ($(wildcard $(shell echo "$${WORKDIR}/kvmtool")),)\n\n'\
124 -'$(call forward-vars, get_lkvm_sources, LKVM_SRCDIR)\n'\
125 -'get_lkvm_sources: | $(LKVM_TMPDIR)\n'\
126 -'\tmv "$${WORKDIR}/kvmtool" "$(LKVM_SRCDIR)"\n\n'\
127 -'$(LKVM_PATCH_STAMP): get_lkvm_sources\n\n'\
128 -'else ifneq ($(wildcard $(LKVM_SRCDIR)),)\n\n'\
129 -'else\n'\
130 -'\t\0\n'\
131 -'endif~' -i stage1/usr_from_kvm/lkvm.mk || die
132 -
133 - # disable fetch of kernel sources
134 - sed -e 's|wget .*|ln -s "$${DISTDIR}/linux-'${KVM_LINUX_VERSION}'.tar.xz" "$@"|' \
135 - -i stage1/usr_from_kvm/kernel.mk || die
136 -
137 - if use rkt_stage1_host; then
138 - # Make systemdUnitsPath consistent with host
139 - sed -e 's|\(systemdUnitsPath := \).*|\1"'$(systemd_get_systemunitdir)'"|' \
140 - -i stage1/init/init.go || die
141 - fi
142 -
143 - # https://github.com/coreos/rkt/pull/2633
144 - sed -e 's:^\(func \)\(TestCalculateDataDir\):\1_\2:' \
145 - -i rkt/rkt_test.go || die
146 -
147 - autotools-utils_src_prepare
148 -}
149 -
150 -src_configure() {
151 - local flavors myeconfargs=(
152 - --with-stage1-default-images-directory="/usr/share/rkt"
153 - --with-stage1-default-location="${STAGE1_DEFAULT_LOCATION}"
154 - )
155 -
156 - # enable flavors (first is default)
157 - use rkt_stage1_host && flavors+=",host"
158 - use rkt_stage1_src && flavors+=",src"
159 - use rkt_stage1_coreos && flavors+=",coreos"
160 - use rkt_stage1_fly && flavors+=",fly"
161 - use rkt_stage1_kvm && flavors+=",kvm"
162 - myeconfargs+=( --with-stage1-flavors="${flavors#,}" )
163 -
164 - if use rkt_stage1_src; then
165 - myeconfargs+=(
166 - --with-stage1-systemd-version=${PXE_SYSTEMD_VERSION}
167 - --with-stage1-systemd-src="${WORKDIR}/systemd-${PXE_SYSTEMD_VERSION#v}"
168 - )
169 - fi
170 -
171 - if use rkt_stage1_coreos || use rkt_stage1_kvm; then
172 - myeconfargs+=(
173 - --with-coreos-local-pxe-image-path="${DISTDIR}/${PXE_FILE}"
174 - --with-coreos-local-pxe-image-systemd-version="${PXE_SYSTEMD_VERSION}"
175 - )
176 - fi
177 -
178 - # Go's 6l linker does not support PIE, disable so cgo binaries
179 - # which use 6l+gcc for linking can be built correctly.
180 - if gcc-specs-pie; then
181 - append-ldflags -nopie
182 - fi
183 -
184 - export CC=$(tc-getCC)
185 - export CGO_ENABLED=1
186 - export CGO_CFLAGS="${CFLAGS}"
187 - export CGO_CPPFLAGS="${CPPFLAGS}"
188 - export CGO_CXXFLAGS="${CXXFLAGS}"
189 - export CGO_LDFLAGS="${LDFLAGS}"
190 - export BUILDDIR
191 -
192 - autotools-utils_src_configure
193 -}
194 -
195 -src_compile() {
196 - local arch=${ARCH}
197 - case ${arch} in
198 - amd64) arch=x86_64;;
199 - esac
200 - ARCH=${arch} autotools-utils_src_compile
201 -}
202 -
203 -src_install() {
204 - dodoc README.md
205 - use doc && dodoc -r Documentation
206 - use examples && dodoc -r examples
207 - use actool && dobin "${S}/${BUILDDIR}/bin/actool"
208 -
209 - dobin "${S}/${BUILDDIR}/bin/rkt"
210 -
211 - insinto /usr/share/rkt
212 - doins "${S}/${BUILDDIR}/bin/"*.aci
213 -
214 - # create symlink for default stage1 image path
215 - if use rkt_stage1_host; then
216 - dosym stage1-host.aci "${STAGE1_DEFAULT_LOCATION}"
217 - elif use rkt_stage1_src; then
218 - dosym stage1-src.aci "${STAGE1_DEFAULT_LOCATION}"
219 - elif use rkt_stage1_coreos; then
220 - dosym stage1-coreos.aci "${STAGE1_DEFAULT_LOCATION}"
221 - elif use rkt_stage1_fly; then
222 - dosym stage1-fly.aci "${STAGE1_DEFAULT_LOCATION}"
223 - elif use rkt_stage1_kvm; then
224 - dosym stage1-kvm.aci "${STAGE1_DEFAULT_LOCATION}"
225 - fi
226 -
227 - systemd_dounit "${S}"/dist/init/systemd/${PN}-gc.service
228 - systemd_dounit "${S}"/dist/init/systemd/${PN}-gc.timer
229 - systemd_dounit "${S}"/dist/init/systemd/${PN}-metadata.service
230 - systemd_dounit "${S}"/dist/init/systemd/${PN}-metadata.socket
231 -}
232
233 diff --git a/app-emulation/rkt/rkt-1.7.0.ebuild b/app-emulation/rkt/rkt-1.7.0.ebuild
234 deleted file mode 100644
235 index cc77360..0000000
236 --- a/app-emulation/rkt/rkt-1.7.0.ebuild
237 +++ /dev/null
238 @@ -1,190 +0,0 @@
239 -# Copyright 1999-2016 Gentoo Foundation
240 -# Distributed under the terms of the GNU General Public License v2
241 -# $Id$
242 -
243 -EAPI=5
244 -
245 -AUTOTOOLS_AUTORECONF=yes
246 -AUTOTOOLS_IN_SOURCE_BUILD=yes
247 -
248 -inherit autotools-utils flag-o-matic systemd toolchain-funcs
249 -
250 -KEYWORDS="~amd64"
251 -
252 -PXE_VERSION="1032.0.0"
253 -PXE_SYSTEMD_VERSION="v229"
254 -KVM_LINUX_VERSION="4.3.1"
255 -KVMTOOL_VERSION="d62653e177597251c24494a6dda60acd6d846671"
256 -PXE_URI="http://alpha.release.core-os.net/amd64-usr/${PXE_VERSION}/coreos_production_pxe_image.cpio.gz"
257 -PXE_FILE="${PN}-pxe-${PXE_VERSION}.img"
258 -
259 -SRC_URI="https://github.com/coreos/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz
260 -rkt_stage1_coreos? ( $PXE_URI -> $PXE_FILE )
261 -rkt_stage1_kvm? (
262 - https://kernel.googlesource.com/pub/scm/linux/kernel/git/will/kvmtool/+archive/${KVMTOOL_VERSION}.tar.gz -> kvmtool-${KVMTOOL_VERSION}.tar.gz
263 - mirror://kernel/linux/kernel/v4.x/linux-${KVM_LINUX_VERSION}.tar.xz
264 - ${PXE_URI} -> ${PXE_FILE}
265 -)
266 -rkt_stage1_src? ( https://github.com/systemd/systemd/archive/${PXE_SYSTEMD_VERSION}.tar.gz -> systemd-${PXE_SYSTEMD_VERSION#v}.tar.gz )"
267 -
268 -DESCRIPTION="A CLI for running app containers, and an implementation of the App
269 -Container Spec."
270 -HOMEPAGE="https://github.com/coreos/rkt"
271 -
272 -LICENSE="Apache-2.0"
273 -SLOT="0"
274 -IUSE="doc examples +rkt_stage1_coreos +rkt_stage1_fly rkt_stage1_host rkt_stage1_kvm rkt_stage1_src +actool systemd"
275 -REQUIRED_USE="|| ( rkt_stage1_coreos rkt_stage1_fly rkt_stage1_host rkt_stage1_kvm rkt_stage1_src ) rkt_stage1_host? ( systemd )"
276 -
277 -DEPEND=">=dev-lang/go-1.5
278 - app-arch/cpio
279 - app-crypt/trousers
280 - sys-fs/squashfs-tools
281 - dev-perl/Capture-Tiny
282 - rkt_stage1_src? ( >=sys-apps/util-linux-2.27 )"
283 -
284 -RDEPEND="!app-emulation/rocket
285 - rkt_stage1_host? ( systemd? (
286 - >=sys-apps/systemd-222
287 - app-shells/bash:0
288 - ) )"
289 -
290 -BUILDDIR="build-${P}"
291 -STAGE1_DEFAULT_LOCATION="/usr/share/rkt/stage1.aci"
292 -
293 -src_unpack() {
294 - local x
295 - for x in ${A}; do
296 - case ${x} in
297 - *.img|linux-*) continue ;;
298 - kvmtool-*)
299 - mkdir kvmtool || die
300 - pushd kvmtool >/dev/null || die
301 - unpack ${x}
302 - popd >/dev/null || die
303 - ;;
304 - *)
305 - unpack ${x}
306 - esac
307 - done
308 -}
309 -
310 -src_prepare() {
311 - # disable git fetch of systemd
312 - sed -e 's~^include makelib/git.mk$~'\
313 -'ifneq ($(wildcard $(RKT_STAGE1_SYSTEMD_SRC)),)\n\n'\
314 -'get_systemd_sources: | $(UFS_SYSTEMDDIR)\n'\
315 -'\tmv "$(RKT_STAGE1_SYSTEMD_SRC)" "$(UFS_SYSTEMD_SRCDIR)"\n\n'\
316 -'$(UFS_SYSTEMD_CONFIGURE): get_systemd_sources\n\n'\
317 -'else ifneq ($(wildcard $(UFS_SYSTEMD_SRCDIR)),)\n\n'\
318 -'else\n'\
319 -'\t\0\n'\
320 -'endif~' -i stage1/usr_from_src/usr_from_src.mk || die
321 -
322 - # disable git fetch of kvmtool
323 - sed -e 's~^include makelib/git.mk$~'\
324 -'ifneq ($(wildcard $(shell echo "$${WORKDIR}/kvmtool")),)\n\n'\
325 -'$(call forward-vars, get_lkvm_sources, LKVM_SRCDIR)\n'\
326 -'get_lkvm_sources: | $(LKVM_TMPDIR)\n'\
327 -'\tmv "$${WORKDIR}/kvmtool" "$(LKVM_SRCDIR)"\n\n'\
328 -'$(LKVM_PATCH_STAMP): get_lkvm_sources\n\n'\
329 -'else ifneq ($(wildcard $(LKVM_SRCDIR)),)\n\n'\
330 -'else\n'\
331 -'\t\0\n'\
332 -'endif~' -i stage1/usr_from_kvm/lkvm.mk || die
333 -
334 - # disable fetch of kernel sources
335 - sed -e 's|wget .*|ln -s "$${DISTDIR}/linux-'${KVM_LINUX_VERSION}'.tar.xz" "$@"|' \
336 - -i stage1/usr_from_kvm/kernel.mk || die
337 -
338 - if use rkt_stage1_host; then
339 - # Make systemdUnitsPath consistent with host
340 - sed -e 's|\(systemdUnitsPath := \).*|\1"'$(systemd_get_systemunitdir)'"|' \
341 - -i stage1/init/init.go || die
342 - fi
343 -
344 - autotools-utils_src_prepare
345 -}
346 -
347 -src_configure() {
348 - local flavors myeconfargs=(
349 - --with-stage1-default-images-directory="/usr/share/rkt"
350 - --with-stage1-default-location="${STAGE1_DEFAULT_LOCATION}"
351 - )
352 -
353 - # enable flavors (first is default)
354 - use rkt_stage1_host && flavors+=",host"
355 - use rkt_stage1_src && flavors+=",src"
356 - use rkt_stage1_coreos && flavors+=",coreos"
357 - use rkt_stage1_fly && flavors+=",fly"
358 - use rkt_stage1_kvm && flavors+=",kvm"
359 - myeconfargs+=( --with-stage1-flavors="${flavors#,}" )
360 -
361 - if use rkt_stage1_src; then
362 - myeconfargs+=(
363 - --with-stage1-systemd-version=${PXE_SYSTEMD_VERSION}
364 - --with-stage1-systemd-src="${WORKDIR}/systemd-${PXE_SYSTEMD_VERSION#v}"
365 - )
366 - fi
367 -
368 - if use rkt_stage1_coreos || use rkt_stage1_kvm; then
369 - myeconfargs+=(
370 - --with-coreos-local-pxe-image-path="${DISTDIR}/${PXE_FILE}"
371 - --with-coreos-local-pxe-image-systemd-version="${PXE_SYSTEMD_VERSION}"
372 - )
373 - fi
374 -
375 - # Go's 6l linker does not support PIE, disable so cgo binaries
376 - # which use 6l+gcc for linking can be built correctly.
377 - if gcc-specs-pie; then
378 - append-ldflags -nopie
379 - fi
380 -
381 - export CC=$(tc-getCC)
382 - export CGO_ENABLED=1
383 - export CGO_CFLAGS="${CFLAGS}"
384 - export CGO_CPPFLAGS="${CPPFLAGS}"
385 - export CGO_CXXFLAGS="${CXXFLAGS}"
386 - export CGO_LDFLAGS="${LDFLAGS}"
387 - export BUILDDIR
388 -
389 - autotools-utils_src_configure
390 -}
391 -
392 -src_compile() {
393 - local arch=${ARCH}
394 - case ${arch} in
395 - amd64) arch=x86_64;;
396 - esac
397 - ARCH=${arch} autotools-utils_src_compile
398 -}
399 -
400 -src_install() {
401 - dodoc README.md
402 - use doc && dodoc -r Documentation
403 - use examples && dodoc -r examples
404 - use actool && dobin "${S}/${BUILDDIR}/bin/actool"
405 -
406 - dobin "${S}/${BUILDDIR}/bin/rkt"
407 -
408 - insinto /usr/share/rkt
409 - doins "${S}/${BUILDDIR}/bin/"*.aci
410 -
411 - # create symlink for default stage1 image path
412 - if use rkt_stage1_host; then
413 - dosym stage1-host.aci "${STAGE1_DEFAULT_LOCATION}"
414 - elif use rkt_stage1_src; then
415 - dosym stage1-src.aci "${STAGE1_DEFAULT_LOCATION}"
416 - elif use rkt_stage1_coreos; then
417 - dosym stage1-coreos.aci "${STAGE1_DEFAULT_LOCATION}"
418 - elif use rkt_stage1_fly; then
419 - dosym stage1-fly.aci "${STAGE1_DEFAULT_LOCATION}"
420 - elif use rkt_stage1_kvm; then
421 - dosym stage1-kvm.aci "${STAGE1_DEFAULT_LOCATION}"
422 - fi
423 -
424 - systemd_dounit "${S}"/dist/init/systemd/${PN}-gc.service
425 - systemd_dounit "${S}"/dist/init/systemd/${PN}-gc.timer
426 - systemd_dounit "${S}"/dist/init/systemd/${PN}-metadata.service
427 - systemd_dounit "${S}"/dist/init/systemd/${PN}-metadata.socket
428 -}