summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVirgil Dupras <vdupras@gentoo.org>2018-06-15 22:16:27 -0400
committerVirgil Dupras <vdupras@gentoo.org>2018-06-15 22:20:14 -0400
commit0635c582097d984143cc26dbfdeccf369235e9cf (patch)
tree8300550e5e60806a107687a6f823de0f854ad5e7 /app-emulation/lxc
parentapp-emulation/lxc-templates: new package (diff)
downloadgentoo-0635c582097d984143cc26dbfdeccf369235e9cf.tar.gz
gentoo-0635c582097d984143cc26dbfdeccf369235e9cf.tar.bz2
gentoo-0635c582097d984143cc26dbfdeccf369235e9cf.zip
app-emulation/lxc: add templates USE flag
Since v3.0, LXC bundles old style templates separately. This USE flags brings back the old behavior of installing templates by default. Closes: https://bugs.gentoo.org/655020 Package-Manager: Portage-2.3.40, Repoman-2.3.9
Diffstat (limited to 'app-emulation/lxc')
-rw-r--r--app-emulation/lxc/lxc-3.0.1.ebuild4
-rw-r--r--app-emulation/lxc/metadata.xml1
2 files changed, 4 insertions, 1 deletions
diff --git a/app-emulation/lxc/lxc-3.0.1.ebuild b/app-emulation/lxc/lxc-3.0.1.ebuild
index 4122c2e8599d..79af8e188502 100644
--- a/app-emulation/lxc/lxc-3.0.1.ebuild
+++ b/app-emulation/lxc/lxc-3.0.1.ebuild
@@ -13,7 +13,7 @@ KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86"
LICENSE="LGPL-3"
SLOT="0"
-IUSE="examples pam seccomp selinux"
+IUSE="examples pam seccomp selinux +templates"
RDEPEND="
net-libs/gnutls
@@ -31,6 +31,8 @@ RDEPEND="${RDEPEND}
app-misc/pax-utils
virtual/awk"
+PDEPEND="templates? ( app-emulation/lxc-templates )"
+
CONFIG_CHECK="~CGROUPS ~CGROUP_DEVICE
~CPUSETS ~CGROUP_CPUACCT
~CGROUP_SCHED
diff --git a/app-emulation/lxc/metadata.xml b/app-emulation/lxc/metadata.xml
index 219ec3659944..8ec672d923c4 100644
--- a/app-emulation/lxc/metadata.xml
+++ b/app-emulation/lxc/metadata.xml
@@ -10,6 +10,7 @@
</maintainer>
<use>
<flag name="cgmanager">Enable support for cgroup management using <pkg>app-admin/cgmanager</pkg></flag>
+ <flag name="templates">Install old style templates through <pkg>app-emulation/lxc-templates</pkg></flag>
</use>
<upstream>
<remote-id type="github">lxc/lxc</remote-id>