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 | PortGroup github 1.0 |
---|
6 | |
---|
7 | # Please update the version of both boot2docker and docker ports together. |
---|
8 | github.setup boot2docker boot2docker-cli 1.6.2 v |
---|
9 | name boot2docker |
---|
10 | revision 0 |
---|
11 | categories sysutils |
---|
12 | maintainers nomaintainer |
---|
13 | description Boot2docker is a command-line, Linux-container management tool. |
---|
14 | long_description \ |
---|
15 | Boot2docker is a command-line interface to docker. This tool downloads the \ |
---|
16 | boot2docker ISO image, creates a VirtualBox virtual machine, sets up two networks \ |
---|
17 | for that virtual machine (one NAT to allow the VM and containers to access the \ |
---|
18 | internet, the other host-only to allow container port mapping to work securely), \ |
---|
19 | and then provides the user a simple way to login via SSH. IANA assigned docker \ |
---|
20 | plain-text port 2375 and ssl port 2376. |
---|
21 | |
---|
22 | license Apache-2 |
---|
23 | platforms darwin |
---|
24 | worksrcdir go/src/github.com/boot2docker/boot2docker-cli |
---|
25 | use_configure no |
---|
26 | use_parallel_build no |
---|
27 | |
---|
28 | depends_build port:go |
---|
29 | depends_run port:docker |
---|
30 | |
---|
31 | platform darwin { |
---|
32 | pre-fetch { |
---|
33 | if {${os.major} < 10} { |
---|
34 | ui_error "${name} requires Snow Leopard or newer." |
---|
35 | return -code error "unsupported platform" |
---|
36 | } |
---|
37 | } |
---|
38 | } |
---|
39 | |
---|
40 | fetch.type git |
---|
41 | post-fetch { |
---|
42 | system -W ${worksrcpath} "GOPATH=${workpath}/go go get -d" |
---|
43 | } |
---|
44 | |
---|
45 | build.env GOPATH=${workpath}/go |
---|
46 | build.cmd make -e |
---|
47 | build.target goinstall |
---|
48 | |
---|
49 | destroot { |
---|
50 | xinstall ${workpath}/go/bin/boot2docker-cli ${destroot}/${prefix}/bin/boot2docker |
---|
51 | } |
---|
52 | |
---|
53 | test.run yes |
---|
54 | test.cmd ${workpath}/go/bin/boot2docker-cli |
---|
55 | test.target version |
---|