1 |
commit: 70311e8fba3a14b5e5680970a6ceff9424603323 |
2 |
Author: Dan Molik <dan <AT> danmolik <DOT> com> |
3 |
AuthorDate: Sat Jan 5 12:01:08 2019 +0000 |
4 |
Commit: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Jan 6 22:46:20 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=70311e8f |
7 |
|
8 |
dev-util/packer: new package |
9 |
|
10 |
Adding Hashicorp's packer utility to better support automated image |
11 |
building. One can find documentation here: https://packer.io and find |
12 |
the code base here: https://github.com/hashicorp/packer |
13 |
|
14 |
Closes: https://github.com/gentoo/gentoo/pull/10744 |
15 |
Closes: https://bugs.gentoo.org/624472 |
16 |
Package-Manager: Portage-2.3.54, Repoman-2.3.12 |
17 |
Signed-off-by: Dan Molik <dan <AT> danmolik.com> |
18 |
Tested-by: Dan Molik <dan <AT> danmolik.com> |
19 |
Signed-off-by: Georgy Yakovlev <gyakovlev <AT> gentoo.org> |
20 |
|
21 |
dev-util/packer/Manifest | 1 + |
22 |
dev-util/packer/metadata.xml | 31 +++++++++++++++++++++++++++++++ |
23 |
dev-util/packer/packer-1.3.3.ebuild | 36 ++++++++++++++++++++++++++++++++++++ |
24 |
3 files changed, 68 insertions(+) |
25 |
|
26 |
diff --git a/dev-util/packer/Manifest b/dev-util/packer/Manifest |
27 |
new file mode 100644 |
28 |
index 00000000000..cdad351d086 |
29 |
--- /dev/null |
30 |
+++ b/dev-util/packer/Manifest |
31 |
@@ -0,0 +1 @@ |
32 |
+DIST packer-1.3.3.tar.gz 8988302 BLAKE2B d6357624f7aa8af73961be9b8f75ec36650d3ccbf299ccdb85776699332fcaa90ff38349837f17962b9587cbbd051a75b0f3429b4459ee9aa46f2a897a3511ed SHA512 fc8965fc4c71d12e2d4bf0c2c7cb565834205749390cdbb879acb23143d4b7f4c566b6513afbec61ad73bf3e08a551ce001367ffad105dba68b72f2092d4bb97 |
33 |
|
34 |
diff --git a/dev-util/packer/metadata.xml b/dev-util/packer/metadata.xml |
35 |
new file mode 100644 |
36 |
index 00000000000..bda27c75a68 |
37 |
--- /dev/null |
38 |
+++ b/dev-util/packer/metadata.xml |
39 |
@@ -0,0 +1,31 @@ |
40 |
+<?xml version="1.0" encoding="UTF-8"?> |
41 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
42 |
+<pkgmetadata> |
43 |
+ <maintainer type="person"> |
44 |
+ <email>dan@××××××××.com</email> |
45 |
+ <name>Dan Molik</name> |
46 |
+ </maintainer> |
47 |
+ <maintainer type="project"> |
48 |
+ <email>proxy-maint@g.o</email> |
49 |
+ <name>Proxy Maintainers</name> |
50 |
+ </maintainer> |
51 |
+ <longdescription lang="en"> |
52 |
+ Packer is an open source tool for creating identical machine images for |
53 |
+ multiple platforms from a single source configuration. Packer is lightweight, |
54 |
+ runs on every major operating system, and is highly performant, creating |
55 |
+ machine images for multiple platforms in parallel. Packer does not replace |
56 |
+ configuration management like Chef or Puppet. In fact, when building images, |
57 |
+ Packer is able to use tools like Chef or Puppet to install software onto the |
58 |
+ image. |
59 |
+ |
60 |
+ A machine image is a single static unit that contains a pre-configured |
61 |
+ operating system and installed software which is used to quickly create new |
62 |
+ running machines. Machine image formats change for each platform. Some |
63 |
+ examples include AMIs for EC2, VMDK/VMX files for VMware, OVF exports for |
64 |
+ VirtualBox, etc. |
65 |
+ </longdescription> |
66 |
+ <upstream> |
67 |
+ <changelog>https://github.com/hashicorp/packer/blob/master/CHANGELOG.md</changelog> |
68 |
+ <remote-id type="github">hashicorp/packer</remote-id> |
69 |
+ </upstream> |
70 |
+</pkgmetadata> |
71 |
|
72 |
diff --git a/dev-util/packer/packer-1.3.3.ebuild b/dev-util/packer/packer-1.3.3.ebuild |
73 |
new file mode 100644 |
74 |
index 00000000000..8cae3f47d00 |
75 |
--- /dev/null |
76 |
+++ b/dev-util/packer/packer-1.3.3.ebuild |
77 |
@@ -0,0 +1,36 @@ |
78 |
+# Copyright 1999-2019 Gentoo Authors |
79 |
+# Distributed under the terms of the GNU General Public License v2 |
80 |
+ |
81 |
+EAPI=6 |
82 |
+ |
83 |
+inherit golang-vcs-snapshot |
84 |
+ |
85 |
+DESCRIPTION="A tool to create identical machine images for multiple platforms" |
86 |
+HOMEPAGE="https://www.packer.io" |
87 |
+ |
88 |
+EGO_PN="github.com/hashicorp/packer" |
89 |
+SRC_URI="https://github.com/hashicorp/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
90 |
+ |
91 |
+LICENSE="MPL-2.0" |
92 |
+SLOT="0" |
93 |
+KEYWORDS="~amd64" |
94 |
+IUSE="" |
95 |
+DEPEND=">=dev-lang/go-1.11.0" |
96 |
+ |
97 |
+DOCS="README.md CHANGELOG.md" |
98 |
+ |
99 |
+src_compile() { |
100 |
+ cd "src/${EGO_PN}" || die |
101 |
+ GOPATH="${S}" GOCACHE="${T}/go-cache" go build \ |
102 |
+ -v -work -o "${S}/${PN}" ./ || die |
103 |
+} |
104 |
+ |
105 |
+src_install() { |
106 |
+ dobin packer |
107 |
+ |
108 |
+ pushd "src/${EGO_PN}" || die |
109 |
+ einstalldocs |
110 |
+ insinto /usr/share/zsh/site-functions |
111 |
+ doins contrib/zsh-completion/_packer |
112 |
+ popd || die |
113 |
+} |