From: "Erik Mackdanz" <stasibear@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: app-emulation/lxd/
Date: Thu, 14 Jul 2016 02:48:39 +0000 (UTC) [thread overview]
Message-ID: <1468464507.6a9a664ec93efaf354150dd22c07eceb1ff427b0.stasibear@gentoo> (raw)
commit: 6a9a664ec93efaf354150dd22c07eceb1ff427b0
Author: Erik Mackdanz <stasibear <AT> gentoo <DOT> org>
AuthorDate: Thu Jul 14 02:48:27 2016 +0000
Commit: Erik Mackdanz <stasibear <AT> gentoo <DOT> org>
CommitDate: Thu Jul 14 02:48:27 2016 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6a9a664e
app-emulation/lxd: Revbump to add missing dep
Gentoo-bug: 588754
Package-Manager: portage-2.3.0
app-emulation/lxd/lxd-2.0.3-r1.ebuild | 156 ++++++++++++++++++++++++++++++++++
1 file changed, 156 insertions(+)
diff --git a/app-emulation/lxd/lxd-2.0.3-r1.ebuild b/app-emulation/lxd/lxd-2.0.3-r1.ebuild
new file mode 100644
index 0000000..b5754f1
--- /dev/null
+++ b/app-emulation/lxd/lxd-2.0.3-r1.ebuild
@@ -0,0 +1,156 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+
+DESCRIPTION="Fast, dense and secure container management"
+HOMEPAGE="https://linuxcontainers.org/lxd/introduction/"
+EGO_PN_PARENT="github.com/lxc"
+EGO_PN="${EGO_PN_PARENT}/lxd"
+
+# The source is repackaged using a script at:
+# https://dev.gentoo.org/~stasibear/lxd_repackage.py
+# This is necessary because go's native package management assumes
+# that a build starts with checking out many git repositories, often
+# from HEAD. This provides no way to build the same code repeatably,
+# and anyway portage requires that fetching is only done from SRC_URI.
+# The only sane alternative I've seen is in the consul ebuild, which
+# is more transparent but raises other questions.
+SRC_URI="https://dev.gentoo.org/~stasibear/distfiles/${P}.tar.bz2"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64"
+
+PLOCALES="de fr ja"
+IUSE="+daemon nls test"
+
+# IUSE and PLOCALES must be defined before l10n inherited
+inherit bash-completion-r1 golang-build l10n systemd user vcs-snapshot
+
+DEPEND="
+ dev-go/go-crypto
+ dev-libs/protobuf
+ nls? ( sys-devel/gettext )
+ test? (
+ app-misc/jq
+ dev-db/sqlite
+ net-misc/curl
+ sys-devel/gettext
+ )
+"
+
+RDEPEND="
+ daemon? (
+ app-admin/cgmanager
+ app-arch/xz-utils
+ app-emulation/lxc[cgmanager,seccomp]
+ net-misc/rsync[xattr]
+ sys-apps/iproute2
+ sys-fs/squashfs-tools
+ virtual/acl
+ )
+"
+
+PATCHES=("${FILESDIR}/${P}-dont-go-get.patch")
+
+# KNOWN ISSUES:
+# - Translations may not work. I've been unsuccessful in forcing
+# localized output. Anyway, upstream (Canonical) doesn't install the
+# message files.
+
+src_prepare() {
+ cd "${S}/src/${EGO_PN}" || die "Failed to change to deep src dir"
+
+ default_src_prepare
+
+ tmpgoroot="${T}/goroot"
+ mkdir -p "$tmpgoroot" || die "Failed to create temporary GOROOT"
+ cp -sR "$(get_golibdir_gopath)"/* "${tmpgoroot}" || die "Failed to copy files to temporary GOROOT"
+
+ # Warn on unhandled locale changes
+ l10n_find_plocales_changes po "" .po
+}
+
+src_compile() {
+ golang-build_src_compile
+
+ cd "${S}/src/${EGO_PN}" || die "Failed to change to deep src dir"
+
+ tmpgoroot="${T}/goroot"
+ if use daemon; then
+ # Build binaries
+ GOPATH="${S}:${tmpgoroot}" emake
+ else
+ # build client tool
+ GOPATH="${S}:${tmpgoroot}" emake client
+ fi
+
+ use nls && emake build-mo
+}
+
+src_test() {
+ if use daemon; then
+ # Go native tests should succeed
+ golang-build_src_test
+ fi
+}
+
+src_install() {
+ # Installs all src,pkg to /usr/lib/go-gentoo
+ golang-build_src_install
+
+ cd "${S}"
+ dobin bin/lxc
+ use daemon && dosbin bin/lxd
+
+ cd "src/${EGO_PN}"
+
+ if use nls; then
+ for lingua in ${PLOCALES}; do
+ if use linguas_${lingua}; then
+ domo po/${lingua}.mo
+ fi
+ done
+ fi
+
+ if use daemon; then
+ newinitd "${FILESDIR}"/${P}.initd lxd
+ newconfd "${FILESDIR}"/${P}.confd lxd
+
+ systemd_dounit "${FILESDIR}"/lxd.service
+ fi
+
+ newbashcomp config/bash/lxd-client lxc
+
+ dodoc AUTHORS CONTRIBUTING.md README.md doc/*
+}
+
+pkg_postinst() {
+ einfo
+ einfo "Consult https://wiki.gentoo.org/wiki/LXD for more information,"
+ einfo "including a Quick Start."
+
+ # The messaging below only applies to daemon installs
+ use daemon || return 0
+
+ # The control socket will be owned by (and writeable by) this group.
+ enewgroup lxd
+
+ # Ubuntu also defines an lxd user but it appears unused (the daemon
+ # must run as root)
+
+ einfo
+ einfo "Though not strictly required, some features are enabled at run-time"
+ einfo "when the relevant helper programs are detected:"
+ einfo "- sys-apps/apparmor"
+ einfo "- sys-fs/btrfs-progs"
+ einfo "- sys-fs/lvm2"
+ einfo "- sys-fs/lxcfs"
+ einfo "- sys-fs/zfs"
+ einfo "- sys-process/criu"
+ einfo
+ einfo "Since these features can't be disabled at build-time they are"
+ einfo "not USE-conditional."
+}
next reply other threads:[~2016-07-14 2:48 UTC|newest]
Thread overview: 86+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-07-14 2:48 Erik Mackdanz [this message]
-- strict thread matches above, loose matches on Subject: below --
2021-12-11 7:17 [gentoo-commits] repo/gentoo:master commit in: app-emulation/lxd/ Joonas Niilola
2021-11-17 6:29 Joonas Niilola
2021-11-10 7:02 Joonas Niilola
2021-11-10 7:02 Joonas Niilola
2021-10-22 17:21 Joonas Niilola
2021-10-10 6:29 Joonas Niilola
2021-10-10 6:29 Joonas Niilola
2021-10-04 5:40 Joonas Niilola
2021-08-25 7:09 Joonas Niilola
2021-08-19 6:23 Joonas Niilola
2021-07-19 11:15 Joonas Niilola
2021-07-19 11:15 Joonas Niilola
2021-07-14 13:05 Joonas Niilola
2021-06-30 4:48 Joonas Niilola
2021-06-01 8:43 Joonas Niilola
2021-05-01 5:38 Joonas Niilola
2021-04-28 5:57 Joonas Niilola
2021-04-26 10:08 Joonas Niilola
2021-03-09 9:26 Joonas Niilola
2021-03-08 10:25 Sam James
2021-03-07 9:03 Joonas Niilola
2021-02-19 7:37 Joonas Niilola
2021-01-30 6:38 Joonas Niilola
2021-01-30 6:38 Joonas Niilola
2021-01-30 6:38 Joonas Niilola
2021-01-14 4:20 Joonas Niilola
2021-01-04 5:18 Joonas Niilola
2020-12-15 7:18 Joonas Niilola
2020-12-09 8:04 Joonas Niilola
2020-10-23 7:37 Joonas Niilola
2020-10-20 5:43 Joonas Niilola
2020-09-22 6:54 Joonas Niilola
2020-09-14 5:11 Joonas Niilola
2020-09-14 5:11 Joonas Niilola
2020-08-15 6:19 Joonas Niilola
2020-08-12 13:03 Joonas Niilola
2020-07-17 8:14 Joonas Niilola
2020-07-13 7:19 Joonas Niilola
2020-07-13 7:16 Joonas Niilola
2020-06-26 8:13 Joonas Niilola
2020-06-21 17:02 Joonas Niilola
2020-05-29 13:15 Joonas Niilola
2020-05-15 8:57 Joonas Niilola
2020-05-15 8:30 Joonas Niilola
2019-11-18 20:54 Tim Harder
2019-09-09 2:58 Erik Mackdanz
2019-09-08 22:47 Erik Mackdanz
2019-07-05 19:05 Virgil Dupras
2019-07-01 14:25 Erik Mackdanz
2019-07-01 14:25 Erik Mackdanz
2019-07-01 13:52 Erik Mackdanz
2019-04-07 3:59 Erik Mackdanz
2019-04-02 4:15 Erik Mackdanz
2019-04-02 4:00 Erik Mackdanz
2019-04-02 3:57 Erik Mackdanz
2019-02-08 3:55 Erik Mackdanz
2019-01-19 17:25 Erik Mackdanz
2019-01-19 17:12 Erik Mackdanz
2018-12-15 22:23 Erik Mackdanz
2018-12-15 21:41 Erik Mackdanz
2018-12-15 21:38 Erik Mackdanz
2018-11-11 21:23 Erik Mackdanz
2018-11-11 21:15 Erik Mackdanz
2018-11-04 4:03 Erik Mackdanz
2018-10-13 22:43 Erik Mackdanz
2018-09-09 22:51 Erik Mackdanz
2018-08-19 22:23 Erik Mackdanz
2018-07-27 3:57 Erik Mackdanz
2018-07-27 3:52 Erik Mackdanz
2018-07-03 12:23 Virgil Dupras
2018-04-02 2:15 Erik Mackdanz
2018-04-02 2:12 Erik Mackdanz
2018-02-21 8:47 Agostino Sarubbo
2018-01-26 21:22 Patrice Clement
2018-01-05 19:21 Ulrich Müller
2017-09-24 11:18 Agostino Sarubbo
2017-09-21 12:41 Amy Liffey
2017-09-21 12:41 Amy Liffey
2017-09-02 9:32 Michał Górny
2017-08-14 21:41 Patrice Clement
2017-07-30 11:24 David Seifert
2017-04-14 8:25 Zac Medico
2016-10-04 12:11 Erik Mackdanz
2016-03-18 19:11 Michał Górny
2015-08-10 21:06 Zac Medico
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1468464507.6a9a664ec93efaf354150dd22c07eceb1ff427b0.stasibear@gentoo \
--to=stasibear@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox