app-emulation/lxc-templates: new package
authorVirgil Dupras <vdupras@gentoo.org>
Sat, 16 Jun 2018 01:56:23 +0000 (21:56 -0400)
committerVirgil Dupras <vdupras@gentoo.org>
Sat, 16 Jun 2018 02:20:14 +0000 (22:20 -0400)
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 [new file with mode: 0644]
app-emulation/lxc-templates/files/lxc-templates-3.0.1-no-cache-dir.patch [new file with mode: 0644]
app-emulation/lxc-templates/lxc-templates-3.0.1.ebuild [new file with mode: 0644]
app-emulation/lxc-templates/metadata.xml [new file with mode: 0644]

diff --git a/app-emulation/lxc-templates/Manifest b/app-emulation/lxc-templates/Manifest
new file mode 100644 (file)
index 0000000..09f2ddd
--- /dev/null
@@ -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 (file)
index 0000000..d7e50fd
--- /dev/null
@@ -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 (file)
index 0000000..528f6b7
--- /dev/null
@@ -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 (file)
index 0000000..17c3388
--- /dev/null
@@ -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>vdupras@gentoo.org</email>
+  </maintainer>
+  <maintainer type="project">
+    <email>virtualization@gentoo.org</email>
+    <name>Gentoo Virtualization Project</name>
+  </maintainer>
+  <upstream>
+    <remote-id type="github">lxc/lxc-templates</remote-id>
+  </upstream>
+</pkgmetadata>