commit:     9d9ac0168727ce29fc6545e6be233dfa5b04efd0
Author:     Virgil Dupras <vdupras <AT> gentoo <DOT> org>
AuthorDate: Sat Jun 16 01:56:23 2018 +0000
Commit:     Virgil Dupras <vdupras <AT> gentoo <DOT> org>
CommitDate: Sat Jun 16 02:20:14 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9d9ac016

app-emulation/lxc-templates: new package

Since v3.0, LXC has been shipping old style templates separately.

Package-Manager: Portage-2.3.40, Repoman-2.3.9

 app-emulation/lxc-templates/Manifest               |  1 +
 .../files/lxc-templates-3.0.1-no-cache-dir.patch   | 12 ++++++++++
 .../lxc-templates/lxc-templates-3.0.1.ebuild       | 28 ++++++++++++++++++++++
 app-emulation/lxc-templates/metadata.xml           | 14 +++++++++++
 4 files changed, 55 insertions(+)

diff --git a/app-emulation/lxc-templates/Manifest 
b/app-emulation/lxc-templates/Manifest
new file mode 100644
index 00000000000..09f2ddd54d9
--- /dev/null
+++ b/app-emulation/lxc-templates/Manifest
@@ -0,0 +1 @@
+DIST lxc-templates-3.0.1.tar.gz 256074 BLAKE2B 
8a5dab2d69fbc29e0246a0853690726c07d24e0fe6d4e761d8ec8b4559cdf285a82e17c8f4d2a6bf2355896c667000d4341511b3c5f1805a55849b4812eb7efe
 SHA512 
cae47b670654dc6c143827d196f0477c5354cb6d81ae4028192622fb73912e8bb3b62a0a68786e9212885bb52b593c6e742cfbfefb70ec33260d599e5d5c8290

diff --git 
a/app-emulation/lxc-templates/files/lxc-templates-3.0.1-no-cache-dir.patch 
b/app-emulation/lxc-templates/files/lxc-templates-3.0.1-no-cache-dir.patch
new file mode 100644
index 00000000000..d7e50fd3712
--- /dev/null
+++ b/app-emulation/lxc-templates/files/lxc-templates-3.0.1-no-cache-dir.patch
@@ -0,0 +1,12 @@
+--- a/Makefile.am
++++ b/Makefile.am
+@@ -10,9 +10,5 @@ EXTRA_DIST = \
+       CONTRIBUTING \
+       MAINTAINERS
+ 
+-install-data-local:
+-      $(MKDIR_P) $(DESTDIR)$(LXCPATH)
+-      $(MKDIR_P) $(DESTDIR)$(localstatedir)/cache/lxc
+-
+ ChangeLog::
+       @touch ChangeLog

diff --git a/app-emulation/lxc-templates/lxc-templates-3.0.1.ebuild 
b/app-emulation/lxc-templates/lxc-templates-3.0.1.ebuild
new file mode 100644
index 00000000000..528f6b711d1
--- /dev/null
+++ b/app-emulation/lxc-templates/lxc-templates-3.0.1.ebuild
@@ -0,0 +1,28 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit autotools
+
+DESCRIPTION="Old style template scripts for LXC"
+HOMEPAGE="https://linuxcontainers.org/";
+SRC_URI="https://linuxcontainers.org/downloads/lxc/${P}.tar.gz";
+
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86"
+
+LICENSE="LGPL-3"
+SLOT="0"
+
+RDEPEND="
+       >=app-emulation/lxc-3.0"
+
+DEPEND="${RDEPEND}"
+
+PATCHES=( "${FILESDIR}/${P}-no-cache-dir.patch" )
+DOCS=()
+
+src_prepare() {
+       default
+       eautoreconf
+}

diff --git a/app-emulation/lxc-templates/metadata.xml 
b/app-emulation/lxc-templates/metadata.xml
new file mode 100644
index 00000000000..17c33883e5b
--- /dev/null
+++ b/app-emulation/lxc-templates/metadata.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd";>
+<pkgmetadata>
+  <maintainer type="person">
+    <email>vdup...@gentoo.org</email>
+  </maintainer>
+  <maintainer type="project">
+    <email>virtualizat...@gentoo.org</email>
+    <name>Gentoo Virtualization Project</name>
+  </maintainer>
+  <upstream>
+    <remote-id type="github">lxc/lxc-templates</remote-id>
+  </upstream>
+</pkgmetadata>

Reply via email to