-
Notifications
You must be signed in to change notification settings - Fork 1.3k
/
Portfile
38 lines (29 loc) · 1.4 KB
/
Portfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# -*- 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
PortSystem 1.0
PortGroup golang 1.0
go.setup github.com/containers/gvisor-tap-vsock 0.2.0 v
revision 1
categories net
license Apache-2
maintainers {judaew @judaew} openmaintainer
description A new network stack based on gVisor
long_description \
A replacement for libslirp and VPNKit, written in pure Go. It is based on \
the network stack of gVisor. Compared to libslirp, gvisor-tap-vsock \
brings a configurable DNS server and dynamic port forwarding.
checksums rmd160 58746cf04f61a3e11e0e02c0e65737e3ff90ab00 \
sha256 10b8b0efa3dbe715df0ab0b2025c3ec9bf5984aa6e1c4801c122bd95d37d2e71 \
size 3844981
# FIXME: This port currently can't be built without allowing go mod to fetch
build.env-delete GOPROXY=off GO111MODULE=off
build.cmd make
build.args build
destroot {
# `gvproxy` is a binary to forward ports for podman machine. It should not
# be used as a normal user.
#
# https://github.com/containers/podman/issues/11960#issuecomment-943162546
xinstall -m 0755 ${worksrcpath}/bin/gvproxy ${destroot}${prefix}/libexec
}
# Do not check the first tags v3 and v4.
github.livecheck.regex {([0-2.]\.[0-9.]+)}