1 | # -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4 |
---|
2 | # $Id$ |
---|
3 | |
---|
4 | PortSystem 1.0 |
---|
5 | |
---|
6 | name packer |
---|
7 | version 0.11.0 |
---|
8 | |
---|
9 | categories devel |
---|
10 | platforms darwin |
---|
11 | license MPL-2 |
---|
12 | |
---|
13 | maintainers outlook.com:echophage \ |
---|
14 | openmaintainer |
---|
15 | |
---|
16 | description Creating machine images and containers for multiple platforms from a single source config |
---|
17 | long_description Packer is a tool for building identical machine images for multiple \ |
---|
18 | platforms from a single source configuration. Packer is lightweight, \ |
---|
19 | runs on every major operating system, and is highly performant, \ |
---|
20 | creating machine images for multiple platforms in parallel. Packer \ |
---|
21 | comes out of the box with support for the following platforms:\ |
---|
22 | \ |
---|
23 | Amazon EC2 (AMI). Both EBS-backed and instance-store AMIs \ |
---|
24 | Azure \ |
---|
25 | DigitalOcean \ |
---|
26 | Docker \ |
---|
27 | Google Compute Engine \ |
---|
28 | OpenStack \ |
---|
29 | Parallels \ |
---|
30 | QEMU. Both KVM and Xen images \ |
---|
31 | VirtualBox \ |
---|
32 | VMware \ |
---|
33 | Support for other platforms can be added via plugins.\ |
---|
34 | \ |
---|
35 | The images that Packer creates can easily be turned into Vagrant boxes. |
---|
36 | |
---|
37 | homepage https://www.packer.io |
---|
38 | |
---|
39 | master_sites https://github.com/mitchellh/packer/archive/ |
---|
40 | distfiles v$version.tar.gz |
---|
41 | |
---|
42 | checksums rmd160 32fecfc7719e6fed77859036e396a6c5b44742ff \ |
---|
43 | sha256 6e217b863a5b030fb92e019d3ba47c71fca641daa72f1ed8f2a0327a95bac266 |
---|
44 | |
---|
45 | depends_build port:go |
---|
46 | |
---|
47 | set gobuildpath src/github.com/mitchellh |
---|
48 | |
---|
49 | extract { |
---|
50 | xinstall -d ${workpath}/${gobuildpath} |
---|
51 | system "tar -C ${workpath}/${gobuildpath} -xvzf ${distpath}/${distfiles}" |
---|
52 | system "mv ${workpath}/${gobuildpath}/${name}-${version} ${workpath}/${gobuildpath}/${name}" |
---|
53 | } |
---|
54 | |
---|
55 | patchfiles patch-makefile.diff \ |
---|
56 | patch-build.sh.diff |
---|
57 | patch.dir ${workpath}/src/github.com/mitchellh/packer |
---|
58 | |
---|
59 | use_configure no |
---|
60 | |
---|
61 | use_parallel_build no |
---|
62 | build.dir ${workpath}/${gobuildpath}/${name} |
---|
63 | build.target release |
---|
64 | build.env GOPATH=${workpath} \ |
---|
65 | PATH=/${prefix}/bin:/${prefix}/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:${workpath}/bin |
---|
66 | |
---|
67 | destroot { |
---|
68 | copy ${workpath}/${gobuildpath}/${name}/bin/${name} ${destroot}/${prefix}/bin |
---|
69 | } |
---|