Gentoo Archives: gentoo-commits

From: Erik Mackdanz <stasibear@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-emulation/lxd/files/, app-emulation/lxd/
Date: Tue, 03 Jan 2017 14:04:59
Message-Id: 1483452281.84820f97951810ff7abae4e4e449bbda038b58ee.stasibear@gentoo
1 commit: 84820f97951810ff7abae4e4e449bbda038b58ee
2 Author: Erik Mackdanz <stasibear <AT> gentoo <DOT> org>
3 AuthorDate: Tue Jan 3 14:04:41 2017 +0000
4 Commit: Erik Mackdanz <stasibear <AT> gentoo <DOT> org>
5 CommitDate: Tue Jan 3 14:04:41 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=84820f97
7
8 app-emulation/lxd: remove old versions
9
10 Package-Manager: Portage-2.3.3, Repoman-2.3.1
11
12 app-emulation/lxd/Manifest | 3 -
13 app-emulation/lxd/files/lxd-2.2-dont-go-get.patch | 22 ---
14 app-emulation/lxd/files/lxd-2.2.confd | 27 ---
15 app-emulation/lxd/files/lxd-2.2.initd | 50 ------
16 app-emulation/lxd/files/lxd-2.3-dont-go-get.patch | 22 ---
17 app-emulation/lxd/files/lxd-2.3.confd | 27 ---
18 app-emulation/lxd/files/lxd-2.3.initd | 50 ------
19 .../lxd/files/lxd-2.4.1-dont-go-get.patch | 22 ---
20 app-emulation/lxd/files/lxd-2.4.1.confd | 27 ---
21 app-emulation/lxd/files/lxd-2.4.1.initd | 50 ------
22 app-emulation/lxd/lxd-2.2.ebuild | 156 -----------------
23 app-emulation/lxd/lxd-2.3.ebuild | 195 ---------------------
24 app-emulation/lxd/lxd-2.4.1.ebuild | 195 ---------------------
25 13 files changed, 846 deletions(-)
26
27 diff --git a/app-emulation/lxd/Manifest b/app-emulation/lxd/Manifest
28 index edd2aef..d0ab9fe 100644
29 --- a/app-emulation/lxd/Manifest
30 +++ b/app-emulation/lxd/Manifest
31 @@ -1,5 +1,2 @@
32 -DIST lxd-2.2.tar.bz2 2234844 SHA256 c76b8698a9266afa5e4aec3ccaa283226cc52232e10ad376f02c4bcd000126b7 SHA512 272cd02f8533a18a51739fd2698f239cd57ae852fbf828d3dc53ed1253629808984720bde9173ae7df1f9e94389ab929b53893e7b57c2d0f6571744365c1c93a WHIRLPOOL d76c5ed9bedde8d51403a452bfc1f33bcb19d71fca79439c63f2b70bd58544ff0c05f4008f2603935dd1c63c4d0ea5c733775c723330de692fc5f6cd471d1529
33 -DIST lxd-2.3.tar.bz2 2248758 SHA256 cd746b3f9682e50b7973e6175a5b48b999748face9e4b515491773ade9d754c4 SHA512 746ea9c2e9266a8482a62fc9e9fdb83f0713b0094e1b52957c5bf2fbd00f4bf1d7a0978086ab123d60ac02bd0dd1f00d46801959ced3b01308170dd7911c7bdc WHIRLPOOL f899e78bd3082ddd46dab5d09d83fe23a23aabbee09488f48ef2ff4a9f3bc41878ecb50b4223235c12962b01468c7b0124c0ae54e60d452f224824cbc89d144e
34 -DIST lxd-2.4.1.tar.bz2 2257768 SHA256 4a02c74819870be5df71227f90be4bc1b7cb90784c115c9f96a6174c8d4dcf75 SHA512 84ce4911a55d495f809a4174061577eceba0b3cd0381170a23fea91651049e43ec809494bf885b315b2d5fde7cda19ee29eed71259b88d3a789fd87c26aac3db WHIRLPOOL 70a2eb3c6b239e9d8682005134ae5c8e991b2f331685b971e1e8d09173aec8c34848527c9f893af0f937384d0f33f7a9e626f8063a00e2fa450331acf00ad7fe
35 DIST lxd-2.5.tar.bz2 2267313 SHA256 d87ac77ec6f47cd3e3417a78b0c315dac367bc89c532cf1784d80b31e57cfc8d SHA512 c023f2b9ccd958560eead23806cb60a04371a3721420f5c0d65e55cf2d7647d6690677619c4f8fa91573545817a1444d9d61f6a2b6ca8c3870136911cb1fbce9 WHIRLPOOL e4702e2597c5fe88ffa5139b829146ea474959799910bed79db617d9486da73d9de77c1ad398c1112d04109a858e5684f2c676bfe9fd4d68cf5081fbc0f6ae7a
36 DIST lxd-2.7.tar.bz2 2309735 SHA256 2681a77888e19ed95ea0bd562dee9d03d703d01d25ab8cb8e80eb6c6a5f115ed SHA512 53a34e96a1478bd73f5b12988a10162fc4d93554cfd66a38a82879662e63a6d34cbdba432dea6e45733cb66f3b40b46146c4be2d38a66eb3d553f8157104b212 WHIRLPOOL 7fd13e545c632ee16b96f172948509838bcd85fe3541bd014168acb978811827367d86461eb68579fd6aaf3311a87f960057f207eb9b5a6b908a0aac81a5004d
37
38 diff --git a/app-emulation/lxd/files/lxd-2.2-dont-go-get.patch b/app-emulation/lxd/files/lxd-2.2-dont-go-get.patch
39 deleted file mode 100644
40 index 9402de5..00000000
41 --- a/app-emulation/lxd/files/lxd-2.2-dont-go-get.patch
42 +++ /dev/null
43 @@ -1,22 +0,0 @@
44 ---- /Makefile.orig 2016-07-11 23:34:40.299664675 +0000
45 -+++ /Makefile 2016-07-11 23:37:00.816018727 +0000
46 -@@ -12,19 +12,11 @@
47 -
48 - .PHONY: default
49 - default:
50 -- # Must a few times due to go get race
51 -- -go get -t -v -d ./...
52 -- -go get -t -v -d ./...
53 -- -go get -t -v -d ./...
54 - go install -v $(DEBUG) ./...
55 - @echo "LXD built successfully"
56 -
57 - .PHONY: client
58 - client:
59 -- # Must a few times due to go get race
60 -- -go get -t -v -d ./...
61 -- -go get -t -v -d ./...
62 -- -go get -t -v -d ./...
63 - go install -v $(DEBUG) ./lxc
64 - @echo "LXD client built successfully"
65 -
66
67 diff --git a/app-emulation/lxd/files/lxd-2.2.confd b/app-emulation/lxd/files/lxd-2.2.confd
68 deleted file mode 100644
69 index 3d55327..00000000
70 --- a/app-emulation/lxd/files/lxd-2.2.confd
71 +++ /dev/null
72 @@ -1,27 +0,0 @@
73 -# Group which owns the shared socket
74 -LXD_OPTIONS+=" --group lxd"
75 -
76 -
77 -
78 -# Enable cpu profiling into the specified file
79 -#LXD_OPTIONS+=" --cpuprofile /tmp/lxc_cpu_profile"
80 -
81 -# Enable memory profiling into the specified file
82 -#LXD_OPTIONS+=" --memprofile /tmp/lxc_mem_profile"
83 -
84 -
85 -
86 -# Enables debug mode
87 -#LXD_OPTIONS+=" --debug"
88 -
89 -# For debugging, print a complete stack trace every n seconds
90 -#LXD_OPTIONS+=" --print-goroutines-every 5"
91 -
92 -# Enables verbose mode
93 -#LXD_OPTIONS+=" -v"
94 -
95 -# Logfile to log to
96 -#LXD_OPTIONS+=" --logfile /var/log/lxd/lxd.log"
97 -
98 -# Enables syslog logging
99 -#LXD_OPTIONS+=" --syslog"
100
101 diff --git a/app-emulation/lxd/files/lxd-2.2.initd b/app-emulation/lxd/files/lxd-2.2.initd
102 deleted file mode 100644
103 index c1aef37..00000000
104 --- a/app-emulation/lxd/files/lxd-2.2.initd
105 +++ /dev/null
106 @@ -1,50 +0,0 @@
107 -#!/sbin/openrc-run
108 -# Copyright 1999-2016 Gentoo Foundation
109 -# Distributed under the terms of the GNU General Public License v2
110 -# $Id$
111 -
112 -DAEMON=/usr/sbin/lxd
113 -PIDFILE=/run/lxd.pid
114 -
115 -extra_commands="stopall"
116 -
117 -depend() {
118 - need net
119 - use lxcfs
120 -
121 - # remove with 2.0 release
122 - need cgmanager
123 -}
124 -
125 -start() {
126 - ebegin "Starting lxd server"
127 -
128 - start-stop-daemon --start \
129 - --pidfile ${PIDFILE} \
130 - --exec ${DAEMON} \
131 - --background \
132 - --make-pidfile \
133 - -- \
134 - ${LXD_OPTIONS}
135 -
136 - eend $?
137 -}
138 -
139 -stop() {
140 - if [[ $RC_GOINGDOWN = YES ]] || [[ $RC_REBOOT = YES ]]; then
141 - stopall
142 - else
143 - ebegin "Stopping lxd service (but not containers)"
144 - start-stop-daemon --stop --quiet -R TERM/45 -p ${PIDFILE}
145 - eend $?
146 - fi
147 -}
148 -
149 -stopall() {
150 - ebegin "Stopping lxd service and containers"
151 - if "${DAEMON}" shutdown; then
152 - /etc/init.d/lxd zap
153 - rm -f ${PIDFILE}
154 - fi
155 - eend $?
156 -}
157
158 diff --git a/app-emulation/lxd/files/lxd-2.3-dont-go-get.patch b/app-emulation/lxd/files/lxd-2.3-dont-go-get.patch
159 deleted file mode 100644
160 index 9402de5..00000000
161 --- a/app-emulation/lxd/files/lxd-2.3-dont-go-get.patch
162 +++ /dev/null
163 @@ -1,22 +0,0 @@
164 ---- /Makefile.orig 2016-07-11 23:34:40.299664675 +0000
165 -+++ /Makefile 2016-07-11 23:37:00.816018727 +0000
166 -@@ -12,19 +12,11 @@
167 -
168 - .PHONY: default
169 - default:
170 -- # Must a few times due to go get race
171 -- -go get -t -v -d ./...
172 -- -go get -t -v -d ./...
173 -- -go get -t -v -d ./...
174 - go install -v $(DEBUG) ./...
175 - @echo "LXD built successfully"
176 -
177 - .PHONY: client
178 - client:
179 -- # Must a few times due to go get race
180 -- -go get -t -v -d ./...
181 -- -go get -t -v -d ./...
182 -- -go get -t -v -d ./...
183 - go install -v $(DEBUG) ./lxc
184 - @echo "LXD client built successfully"
185 -
186
187 diff --git a/app-emulation/lxd/files/lxd-2.3.confd b/app-emulation/lxd/files/lxd-2.3.confd
188 deleted file mode 100644
189 index 3d55327..00000000
190 --- a/app-emulation/lxd/files/lxd-2.3.confd
191 +++ /dev/null
192 @@ -1,27 +0,0 @@
193 -# Group which owns the shared socket
194 -LXD_OPTIONS+=" --group lxd"
195 -
196 -
197 -
198 -# Enable cpu profiling into the specified file
199 -#LXD_OPTIONS+=" --cpuprofile /tmp/lxc_cpu_profile"
200 -
201 -# Enable memory profiling into the specified file
202 -#LXD_OPTIONS+=" --memprofile /tmp/lxc_mem_profile"
203 -
204 -
205 -
206 -# Enables debug mode
207 -#LXD_OPTIONS+=" --debug"
208 -
209 -# For debugging, print a complete stack trace every n seconds
210 -#LXD_OPTIONS+=" --print-goroutines-every 5"
211 -
212 -# Enables verbose mode
213 -#LXD_OPTIONS+=" -v"
214 -
215 -# Logfile to log to
216 -#LXD_OPTIONS+=" --logfile /var/log/lxd/lxd.log"
217 -
218 -# Enables syslog logging
219 -#LXD_OPTIONS+=" --syslog"
220
221 diff --git a/app-emulation/lxd/files/lxd-2.3.initd b/app-emulation/lxd/files/lxd-2.3.initd
222 deleted file mode 100644
223 index c1aef37..00000000
224 --- a/app-emulation/lxd/files/lxd-2.3.initd
225 +++ /dev/null
226 @@ -1,50 +0,0 @@
227 -#!/sbin/openrc-run
228 -# Copyright 1999-2016 Gentoo Foundation
229 -# Distributed under the terms of the GNU General Public License v2
230 -# $Id$
231 -
232 -DAEMON=/usr/sbin/lxd
233 -PIDFILE=/run/lxd.pid
234 -
235 -extra_commands="stopall"
236 -
237 -depend() {
238 - need net
239 - use lxcfs
240 -
241 - # remove with 2.0 release
242 - need cgmanager
243 -}
244 -
245 -start() {
246 - ebegin "Starting lxd server"
247 -
248 - start-stop-daemon --start \
249 - --pidfile ${PIDFILE} \
250 - --exec ${DAEMON} \
251 - --background \
252 - --make-pidfile \
253 - -- \
254 - ${LXD_OPTIONS}
255 -
256 - eend $?
257 -}
258 -
259 -stop() {
260 - if [[ $RC_GOINGDOWN = YES ]] || [[ $RC_REBOOT = YES ]]; then
261 - stopall
262 - else
263 - ebegin "Stopping lxd service (but not containers)"
264 - start-stop-daemon --stop --quiet -R TERM/45 -p ${PIDFILE}
265 - eend $?
266 - fi
267 -}
268 -
269 -stopall() {
270 - ebegin "Stopping lxd service and containers"
271 - if "${DAEMON}" shutdown; then
272 - /etc/init.d/lxd zap
273 - rm -f ${PIDFILE}
274 - fi
275 - eend $?
276 -}
277
278 diff --git a/app-emulation/lxd/files/lxd-2.4.1-dont-go-get.patch b/app-emulation/lxd/files/lxd-2.4.1-dont-go-get.patch
279 deleted file mode 100644
280 index 9402de5..00000000
281 --- a/app-emulation/lxd/files/lxd-2.4.1-dont-go-get.patch
282 +++ /dev/null
283 @@ -1,22 +0,0 @@
284 ---- /Makefile.orig 2016-07-11 23:34:40.299664675 +0000
285 -+++ /Makefile 2016-07-11 23:37:00.816018727 +0000
286 -@@ -12,19 +12,11 @@
287 -
288 - .PHONY: default
289 - default:
290 -- # Must a few times due to go get race
291 -- -go get -t -v -d ./...
292 -- -go get -t -v -d ./...
293 -- -go get -t -v -d ./...
294 - go install -v $(DEBUG) ./...
295 - @echo "LXD built successfully"
296 -
297 - .PHONY: client
298 - client:
299 -- # Must a few times due to go get race
300 -- -go get -t -v -d ./...
301 -- -go get -t -v -d ./...
302 -- -go get -t -v -d ./...
303 - go install -v $(DEBUG) ./lxc
304 - @echo "LXD client built successfully"
305 -
306
307 diff --git a/app-emulation/lxd/files/lxd-2.4.1.confd b/app-emulation/lxd/files/lxd-2.4.1.confd
308 deleted file mode 100644
309 index 3d55327..00000000
310 --- a/app-emulation/lxd/files/lxd-2.4.1.confd
311 +++ /dev/null
312 @@ -1,27 +0,0 @@
313 -# Group which owns the shared socket
314 -LXD_OPTIONS+=" --group lxd"
315 -
316 -
317 -
318 -# Enable cpu profiling into the specified file
319 -#LXD_OPTIONS+=" --cpuprofile /tmp/lxc_cpu_profile"
320 -
321 -# Enable memory profiling into the specified file
322 -#LXD_OPTIONS+=" --memprofile /tmp/lxc_mem_profile"
323 -
324 -
325 -
326 -# Enables debug mode
327 -#LXD_OPTIONS+=" --debug"
328 -
329 -# For debugging, print a complete stack trace every n seconds
330 -#LXD_OPTIONS+=" --print-goroutines-every 5"
331 -
332 -# Enables verbose mode
333 -#LXD_OPTIONS+=" -v"
334 -
335 -# Logfile to log to
336 -#LXD_OPTIONS+=" --logfile /var/log/lxd/lxd.log"
337 -
338 -# Enables syslog logging
339 -#LXD_OPTIONS+=" --syslog"
340
341 diff --git a/app-emulation/lxd/files/lxd-2.4.1.initd b/app-emulation/lxd/files/lxd-2.4.1.initd
342 deleted file mode 100644
343 index c1aef37..00000000
344 --- a/app-emulation/lxd/files/lxd-2.4.1.initd
345 +++ /dev/null
346 @@ -1,50 +0,0 @@
347 -#!/sbin/openrc-run
348 -# Copyright 1999-2016 Gentoo Foundation
349 -# Distributed under the terms of the GNU General Public License v2
350 -# $Id$
351 -
352 -DAEMON=/usr/sbin/lxd
353 -PIDFILE=/run/lxd.pid
354 -
355 -extra_commands="stopall"
356 -
357 -depend() {
358 - need net
359 - use lxcfs
360 -
361 - # remove with 2.0 release
362 - need cgmanager
363 -}
364 -
365 -start() {
366 - ebegin "Starting lxd server"
367 -
368 - start-stop-daemon --start \
369 - --pidfile ${PIDFILE} \
370 - --exec ${DAEMON} \
371 - --background \
372 - --make-pidfile \
373 - -- \
374 - ${LXD_OPTIONS}
375 -
376 - eend $?
377 -}
378 -
379 -stop() {
380 - if [[ $RC_GOINGDOWN = YES ]] || [[ $RC_REBOOT = YES ]]; then
381 - stopall
382 - else
383 - ebegin "Stopping lxd service (but not containers)"
384 - start-stop-daemon --stop --quiet -R TERM/45 -p ${PIDFILE}
385 - eend $?
386 - fi
387 -}
388 -
389 -stopall() {
390 - ebegin "Stopping lxd service and containers"
391 - if "${DAEMON}" shutdown; then
392 - /etc/init.d/lxd zap
393 - rm -f ${PIDFILE}
394 - fi
395 - eend $?
396 -}
397
398 diff --git a/app-emulation/lxd/lxd-2.2.ebuild b/app-emulation/lxd/lxd-2.2.ebuild
399 deleted file mode 100644
400 index b5754f1..00000000
401 --- a/app-emulation/lxd/lxd-2.2.ebuild
402 +++ /dev/null
403 @@ -1,156 +0,0 @@
404 -# Copyright 1999-2016 Gentoo Foundation
405 -# Distributed under the terms of the GNU General Public License v2
406 -# $Id$
407 -
408 -EAPI=6
409 -
410 -DESCRIPTION="Fast, dense and secure container management"
411 -HOMEPAGE="https://linuxcontainers.org/lxd/introduction/"
412 -EGO_PN_PARENT="github.com/lxc"
413 -EGO_PN="${EGO_PN_PARENT}/lxd"
414 -
415 -# The source is repackaged using a script at:
416 -# https://dev.gentoo.org/~stasibear/lxd_repackage.py
417 -# This is necessary because go's native package management assumes
418 -# that a build starts with checking out many git repositories, often
419 -# from HEAD. This provides no way to build the same code repeatably,
420 -# and anyway portage requires that fetching is only done from SRC_URI.
421 -# The only sane alternative I've seen is in the consul ebuild, which
422 -# is more transparent but raises other questions.
423 -SRC_URI="https://dev.gentoo.org/~stasibear/distfiles/${P}.tar.bz2"
424 -
425 -LICENSE="Apache-2.0"
426 -SLOT="0"
427 -KEYWORDS="~amd64"
428 -
429 -PLOCALES="de fr ja"
430 -IUSE="+daemon nls test"
431 -
432 -# IUSE and PLOCALES must be defined before l10n inherited
433 -inherit bash-completion-r1 golang-build l10n systemd user vcs-snapshot
434 -
435 -DEPEND="
436 - dev-go/go-crypto
437 - dev-libs/protobuf
438 - nls? ( sys-devel/gettext )
439 - test? (
440 - app-misc/jq
441 - dev-db/sqlite
442 - net-misc/curl
443 - sys-devel/gettext
444 - )
445 -"
446 -
447 -RDEPEND="
448 - daemon? (
449 - app-admin/cgmanager
450 - app-arch/xz-utils
451 - app-emulation/lxc[cgmanager,seccomp]
452 - net-misc/rsync[xattr]
453 - sys-apps/iproute2
454 - sys-fs/squashfs-tools
455 - virtual/acl
456 - )
457 -"
458 -
459 -PATCHES=("${FILESDIR}/${P}-dont-go-get.patch")
460 -
461 -# KNOWN ISSUES:
462 -# - Translations may not work. I've been unsuccessful in forcing
463 -# localized output. Anyway, upstream (Canonical) doesn't install the
464 -# message files.
465 -
466 -src_prepare() {
467 - cd "${S}/src/${EGO_PN}" || die "Failed to change to deep src dir"
468 -
469 - default_src_prepare
470 -
471 - tmpgoroot="${T}/goroot"
472 - mkdir -p "$tmpgoroot" || die "Failed to create temporary GOROOT"
473 - cp -sR "$(get_golibdir_gopath)"/* "${tmpgoroot}" || die "Failed to copy files to temporary GOROOT"
474 -
475 - # Warn on unhandled locale changes
476 - l10n_find_plocales_changes po "" .po
477 -}
478 -
479 -src_compile() {
480 - golang-build_src_compile
481 -
482 - cd "${S}/src/${EGO_PN}" || die "Failed to change to deep src dir"
483 -
484 - tmpgoroot="${T}/goroot"
485 - if use daemon; then
486 - # Build binaries
487 - GOPATH="${S}:${tmpgoroot}" emake
488 - else
489 - # build client tool
490 - GOPATH="${S}:${tmpgoroot}" emake client
491 - fi
492 -
493 - use nls && emake build-mo
494 -}
495 -
496 -src_test() {
497 - if use daemon; then
498 - # Go native tests should succeed
499 - golang-build_src_test
500 - fi
501 -}
502 -
503 -src_install() {
504 - # Installs all src,pkg to /usr/lib/go-gentoo
505 - golang-build_src_install
506 -
507 - cd "${S}"
508 - dobin bin/lxc
509 - use daemon && dosbin bin/lxd
510 -
511 - cd "src/${EGO_PN}"
512 -
513 - if use nls; then
514 - for lingua in ${PLOCALES}; do
515 - if use linguas_${lingua}; then
516 - domo po/${lingua}.mo
517 - fi
518 - done
519 - fi
520 -
521 - if use daemon; then
522 - newinitd "${FILESDIR}"/${P}.initd lxd
523 - newconfd "${FILESDIR}"/${P}.confd lxd
524 -
525 - systemd_dounit "${FILESDIR}"/lxd.service
526 - fi
527 -
528 - newbashcomp config/bash/lxd-client lxc
529 -
530 - dodoc AUTHORS CONTRIBUTING.md README.md doc/*
531 -}
532 -
533 -pkg_postinst() {
534 - einfo
535 - einfo "Consult https://wiki.gentoo.org/wiki/LXD for more information,"
536 - einfo "including a Quick Start."
537 -
538 - # The messaging below only applies to daemon installs
539 - use daemon || return 0
540 -
541 - # The control socket will be owned by (and writeable by) this group.
542 - enewgroup lxd
543 -
544 - # Ubuntu also defines an lxd user but it appears unused (the daemon
545 - # must run as root)
546 -
547 - einfo
548 - einfo "Though not strictly required, some features are enabled at run-time"
549 - einfo "when the relevant helper programs are detected:"
550 - einfo "- sys-apps/apparmor"
551 - einfo "- sys-fs/btrfs-progs"
552 - einfo "- sys-fs/lvm2"
553 - einfo "- sys-fs/lxcfs"
554 - einfo "- sys-fs/zfs"
555 - einfo "- sys-process/criu"
556 - einfo
557 - einfo "Since these features can't be disabled at build-time they are"
558 - einfo "not USE-conditional."
559 -}
560
561 diff --git a/app-emulation/lxd/lxd-2.3.ebuild b/app-emulation/lxd/lxd-2.3.ebuild
562 deleted file mode 100644
563 index 809f11a..00000000
564 --- a/app-emulation/lxd/lxd-2.3.ebuild
565 +++ /dev/null
566 @@ -1,195 +0,0 @@
567 -# Copyright 1999-2016 Gentoo Foundation
568 -# Distributed under the terms of the GNU General Public License v2
569 -# $Id$
570 -
571 -EAPI=6
572 -
573 -DESCRIPTION="Fast, dense and secure container management"
574 -HOMEPAGE="https://linuxcontainers.org/lxd/introduction/"
575 -EGO_PN_PARENT="github.com/lxc"
576 -EGO_PN="${EGO_PN_PARENT}/lxd"
577 -
578 -# The source is repackaged using a script at:
579 -# https://dev.gentoo.org/~stasibear/lxd_repackage.py
580 -# This is necessary because go's native package management assumes
581 -# that a build starts with checking out many git repositories, often
582 -# from HEAD. This provides no way to build the same code repeatably,
583 -# and anyway portage requires that fetching is only done from SRC_URI.
584 -# The only sane alternative I've seen is in the consul ebuild, which
585 -# is more transparent but raises other questions.
586 -SRC_URI="https://dev.gentoo.org/~stasibear/distfiles/${P}.tar.bz2"
587 -
588 -LICENSE="Apache-2.0"
589 -SLOT="0"
590 -KEYWORDS="~amd64"
591 -
592 -PLOCALES="de fr ja"
593 -IUSE="+daemon nls test"
594 -
595 -# IUSE and PLOCALES must be defined before l10n inherited
596 -inherit bash-completion-r1 golang-build l10n linux-info systemd user vcs-snapshot
597 -
598 -DEPEND="
599 - >=dev-lang/go-1.7.1
600 - dev-go/go-crypto
601 - dev-libs/protobuf
602 - nls? ( sys-devel/gettext )
603 - test? (
604 - app-misc/jq
605 - dev-db/sqlite
606 - net-misc/curl
607 - sys-devel/gettext
608 - )
609 -"
610 -
611 -RDEPEND="
612 - daemon? (
613 - app-admin/cgmanager
614 - app-arch/xz-utils
615 - app-emulation/lxc[cgmanager,seccomp]
616 - net-dns/dnsmasq[dhcp,ipv6]
617 - net-misc/rsync[xattr]
618 - sys-apps/iproute2[ipv6]
619 - sys-fs/squashfs-tools
620 - virtual/acl
621 - )
622 -"
623 -
624 -CONFIG_CHECK="
625 - ~BRIDGE
626 - ~DUMMY
627 - ~IP6_NF_NAT
628 - ~IP6_NF_TARGET_MASQUERADE
629 - ~IPV6
630 - ~IP_NF_NAT
631 - ~IP_NF_TARGET_MASQUERADE
632 - ~MACVLAN
633 - ~NETFILTER_XT_MATCH_COMMENT
634 - ~NET_IPGRE
635 - ~NET_IPGRE_DEMUX
636 - ~NET_IPIP
637 - ~NF_NAT_MASQUERADE_IPV4
638 - ~NF_NAT_MASQUERADE_IPV6
639 - ~VXLAN
640 -"
641 -
642 -ERROR_BRIDGE="BRIDGE: needed for network commands"
643 -ERROR_DUMMY="DUMMY: needed for network commands"
644 -ERROR_IP6_NF_NAT="IP6_NF_NAT: needed for network commands"
645 -ERROR_IP6_NF_TARGET_MASQUERADE="IP6_NF_TARGET_MASQUERADE: needed for network commands"
646 -ERROR_IPV6="IPV6: needed for network commands"
647 -ERROR_IP_NF_NAT="IP_NF_NAT: needed for network commands"
648 -ERROR_IP_NF_TARGET_MASQUERADE="IP_NF_TARGET_MASQUERADE: needed for network commands"
649 -ERROR_MACVLAN="MACVLAN: needed for network commands"
650 -ERROR_NETFILTER_XT_MATCH_COMMENT="NETFILTER_XT_MATCH_COMMENT: needed for network commands"
651 -ERROR_NET_IPGRE="NET_IPGRE: needed for network commands"
652 -ERROR_NET_IPGRE_DEMUX="NET_IPGRE_DEMUX: needed for network commands"
653 -ERROR_NET_IPIP="NET_IPIP: needed for network commands"
654 -ERROR_NF_NAT_MASQUERADE_IPV4="NF_NAT_MASQUERADE_IPV4: needed for network commands"
655 -ERROR_NF_NAT_MASQUERADE_IPV6="NF_NAT_MASQUERADE_IPV6: needed for network commands"
656 -ERROR_VXLAN="VXLAN: needed for network commands"
657 -
658 -PATCHES=("${FILESDIR}/${P}-dont-go-get.patch")
659 -
660 -# KNOWN ISSUES:
661 -# - Translations may not work. I've been unsuccessful in forcing
662 -# localized output. Anyway, upstream (Canonical) doesn't install the
663 -# message files.
664 -
665 -src_prepare() {
666 - cd "${S}/src/${EGO_PN}" || die "Failed to change to deep src dir"
667 -
668 - default_src_prepare
669 -
670 - tmpgoroot="${T}/goroot"
671 - mkdir -p "$tmpgoroot" || die "Failed to create temporary GOROOT"
672 - cp -sR "$(get_golibdir_gopath)"/* "${tmpgoroot}" || die "Failed to copy files to temporary GOROOT"
673 -
674 - # Warn on unhandled locale changes
675 - l10n_find_plocales_changes po "" .po
676 -}
677 -
678 -src_compile() {
679 - golang-build_src_compile
680 -
681 - cd "${S}/src/${EGO_PN}" || die "Failed to change to deep src dir"
682 -
683 - tmpgoroot="${T}/goroot"
684 - if use daemon; then
685 - # Build binaries
686 - GOPATH="${S}:${tmpgoroot}" emake
687 - else
688 - # build client tool
689 - GOPATH="${S}:${tmpgoroot}" emake client
690 - fi
691 -
692 - use nls && emake build-mo
693 -}
694 -
695 -src_test() {
696 - if use daemon; then
697 - # Go native tests should succeed
698 - golang-build_src_test
699 - fi
700 -}
701 -
702 -src_install() {
703 - # Installs all src,pkg to /usr/lib/go-gentoo
704 - golang-build_src_install
705 -
706 - cd "${S}"
707 - dobin bin/lxc
708 - use daemon && dosbin bin/lxd
709 -
710 - cd "src/${EGO_PN}"
711 -
712 - if use nls; then
713 - for lingua in ${PLOCALES}; do
714 - if use linguas_${lingua}; then
715 - domo po/${lingua}.mo
716 - fi
717 - done
718 - fi
719 -
720 - if use daemon; then
721 - newinitd "${FILESDIR}"/${P}.initd lxd
722 - newconfd "${FILESDIR}"/${P}.confd lxd
723 -
724 - systemd_dounit "${FILESDIR}"/lxd.service
725 - fi
726 -
727 - newbashcomp config/bash/lxd-client lxc
728 -
729 - dodoc AUTHORS CONTRIBUTING.md README.md doc/*
730 -}
731 -
732 -pkg_postinst() {
733 - einfo
734 - einfo "Consult https://wiki.gentoo.org/wiki/LXD for more information,"
735 - einfo "including a Quick Start."
736 -
737 - # The messaging below only applies to daemon installs
738 - use daemon || return 0
739 -
740 - # The control socket will be owned by (and writeable by) this group.
741 - enewgroup lxd
742 -
743 - # Ubuntu also defines an lxd user but it appears unused (the daemon
744 - # must run as root)
745 -
746 - einfo
747 - einfo "Though not strictly required, some features are enabled at run-time"
748 - einfo "when the relevant helper programs are detected:"
749 - einfo "- sys-apps/apparmor"
750 - einfo "- sys-fs/btrfs-progs"
751 - einfo "- sys-fs/lvm2"
752 - einfo "- sys-fs/lxcfs"
753 - einfo "- sys-fs/zfs"
754 - einfo "- sys-process/criu"
755 - einfo
756 - einfo "Since these features can't be disabled at build-time they are"
757 - einfo "not USE-conditional."
758 - einfo
759 - einfo "Networks with bridge.mode=fan are unsupported due to requiring"
760 - einfo "a patched kernel and iproute2."
761 -}
762
763 diff --git a/app-emulation/lxd/lxd-2.4.1.ebuild b/app-emulation/lxd/lxd-2.4.1.ebuild
764 deleted file mode 100644
765 index 809f11a..00000000
766 --- a/app-emulation/lxd/lxd-2.4.1.ebuild
767 +++ /dev/null
768 @@ -1,195 +0,0 @@
769 -# Copyright 1999-2016 Gentoo Foundation
770 -# Distributed under the terms of the GNU General Public License v2
771 -# $Id$
772 -
773 -EAPI=6
774 -
775 -DESCRIPTION="Fast, dense and secure container management"
776 -HOMEPAGE="https://linuxcontainers.org/lxd/introduction/"
777 -EGO_PN_PARENT="github.com/lxc"
778 -EGO_PN="${EGO_PN_PARENT}/lxd"
779 -
780 -# The source is repackaged using a script at:
781 -# https://dev.gentoo.org/~stasibear/lxd_repackage.py
782 -# This is necessary because go's native package management assumes
783 -# that a build starts with checking out many git repositories, often
784 -# from HEAD. This provides no way to build the same code repeatably,
785 -# and anyway portage requires that fetching is only done from SRC_URI.
786 -# The only sane alternative I've seen is in the consul ebuild, which
787 -# is more transparent but raises other questions.
788 -SRC_URI="https://dev.gentoo.org/~stasibear/distfiles/${P}.tar.bz2"
789 -
790 -LICENSE="Apache-2.0"
791 -SLOT="0"
792 -KEYWORDS="~amd64"
793 -
794 -PLOCALES="de fr ja"
795 -IUSE="+daemon nls test"
796 -
797 -# IUSE and PLOCALES must be defined before l10n inherited
798 -inherit bash-completion-r1 golang-build l10n linux-info systemd user vcs-snapshot
799 -
800 -DEPEND="
801 - >=dev-lang/go-1.7.1
802 - dev-go/go-crypto
803 - dev-libs/protobuf
804 - nls? ( sys-devel/gettext )
805 - test? (
806 - app-misc/jq
807 - dev-db/sqlite
808 - net-misc/curl
809 - sys-devel/gettext
810 - )
811 -"
812 -
813 -RDEPEND="
814 - daemon? (
815 - app-admin/cgmanager
816 - app-arch/xz-utils
817 - app-emulation/lxc[cgmanager,seccomp]
818 - net-dns/dnsmasq[dhcp,ipv6]
819 - net-misc/rsync[xattr]
820 - sys-apps/iproute2[ipv6]
821 - sys-fs/squashfs-tools
822 - virtual/acl
823 - )
824 -"
825 -
826 -CONFIG_CHECK="
827 - ~BRIDGE
828 - ~DUMMY
829 - ~IP6_NF_NAT
830 - ~IP6_NF_TARGET_MASQUERADE
831 - ~IPV6
832 - ~IP_NF_NAT
833 - ~IP_NF_TARGET_MASQUERADE
834 - ~MACVLAN
835 - ~NETFILTER_XT_MATCH_COMMENT
836 - ~NET_IPGRE
837 - ~NET_IPGRE_DEMUX
838 - ~NET_IPIP
839 - ~NF_NAT_MASQUERADE_IPV4
840 - ~NF_NAT_MASQUERADE_IPV6
841 - ~VXLAN
842 -"
843 -
844 -ERROR_BRIDGE="BRIDGE: needed for network commands"
845 -ERROR_DUMMY="DUMMY: needed for network commands"
846 -ERROR_IP6_NF_NAT="IP6_NF_NAT: needed for network commands"
847 -ERROR_IP6_NF_TARGET_MASQUERADE="IP6_NF_TARGET_MASQUERADE: needed for network commands"
848 -ERROR_IPV6="IPV6: needed for network commands"
849 -ERROR_IP_NF_NAT="IP_NF_NAT: needed for network commands"
850 -ERROR_IP_NF_TARGET_MASQUERADE="IP_NF_TARGET_MASQUERADE: needed for network commands"
851 -ERROR_MACVLAN="MACVLAN: needed for network commands"
852 -ERROR_NETFILTER_XT_MATCH_COMMENT="NETFILTER_XT_MATCH_COMMENT: needed for network commands"
853 -ERROR_NET_IPGRE="NET_IPGRE: needed for network commands"
854 -ERROR_NET_IPGRE_DEMUX="NET_IPGRE_DEMUX: needed for network commands"
855 -ERROR_NET_IPIP="NET_IPIP: needed for network commands"
856 -ERROR_NF_NAT_MASQUERADE_IPV4="NF_NAT_MASQUERADE_IPV4: needed for network commands"
857 -ERROR_NF_NAT_MASQUERADE_IPV6="NF_NAT_MASQUERADE_IPV6: needed for network commands"
858 -ERROR_VXLAN="VXLAN: needed for network commands"
859 -
860 -PATCHES=("${FILESDIR}/${P}-dont-go-get.patch")
861 -
862 -# KNOWN ISSUES:
863 -# - Translations may not work. I've been unsuccessful in forcing
864 -# localized output. Anyway, upstream (Canonical) doesn't install the
865 -# message files.
866 -
867 -src_prepare() {
868 - cd "${S}/src/${EGO_PN}" || die "Failed to change to deep src dir"
869 -
870 - default_src_prepare
871 -
872 - tmpgoroot="${T}/goroot"
873 - mkdir -p "$tmpgoroot" || die "Failed to create temporary GOROOT"
874 - cp -sR "$(get_golibdir_gopath)"/* "${tmpgoroot}" || die "Failed to copy files to temporary GOROOT"
875 -
876 - # Warn on unhandled locale changes
877 - l10n_find_plocales_changes po "" .po
878 -}
879 -
880 -src_compile() {
881 - golang-build_src_compile
882 -
883 - cd "${S}/src/${EGO_PN}" || die "Failed to change to deep src dir"
884 -
885 - tmpgoroot="${T}/goroot"
886 - if use daemon; then
887 - # Build binaries
888 - GOPATH="${S}:${tmpgoroot}" emake
889 - else
890 - # build client tool
891 - GOPATH="${S}:${tmpgoroot}" emake client
892 - fi
893 -
894 - use nls && emake build-mo
895 -}
896 -
897 -src_test() {
898 - if use daemon; then
899 - # Go native tests should succeed
900 - golang-build_src_test
901 - fi
902 -}
903 -
904 -src_install() {
905 - # Installs all src,pkg to /usr/lib/go-gentoo
906 - golang-build_src_install
907 -
908 - cd "${S}"
909 - dobin bin/lxc
910 - use daemon && dosbin bin/lxd
911 -
912 - cd "src/${EGO_PN}"
913 -
914 - if use nls; then
915 - for lingua in ${PLOCALES}; do
916 - if use linguas_${lingua}; then
917 - domo po/${lingua}.mo
918 - fi
919 - done
920 - fi
921 -
922 - if use daemon; then
923 - newinitd "${FILESDIR}"/${P}.initd lxd
924 - newconfd "${FILESDIR}"/${P}.confd lxd
925 -
926 - systemd_dounit "${FILESDIR}"/lxd.service
927 - fi
928 -
929 - newbashcomp config/bash/lxd-client lxc
930 -
931 - dodoc AUTHORS CONTRIBUTING.md README.md doc/*
932 -}
933 -
934 -pkg_postinst() {
935 - einfo
936 - einfo "Consult https://wiki.gentoo.org/wiki/LXD for more information,"
937 - einfo "including a Quick Start."
938 -
939 - # The messaging below only applies to daemon installs
940 - use daemon || return 0
941 -
942 - # The control socket will be owned by (and writeable by) this group.
943 - enewgroup lxd
944 -
945 - # Ubuntu also defines an lxd user but it appears unused (the daemon
946 - # must run as root)
947 -
948 - einfo
949 - einfo "Though not strictly required, some features are enabled at run-time"
950 - einfo "when the relevant helper programs are detected:"
951 - einfo "- sys-apps/apparmor"
952 - einfo "- sys-fs/btrfs-progs"
953 - einfo "- sys-fs/lvm2"
954 - einfo "- sys-fs/lxcfs"
955 - einfo "- sys-fs/zfs"
956 - einfo "- sys-process/criu"
957 - einfo
958 - einfo "Since these features can't be disabled at build-time they are"
959 - einfo "not USE-conditional."
960 - einfo
961 - einfo "Networks with bridge.mode=fan are unsupported due to requiring"
962 - einfo "a patched kernel and iproute2."
963 -}