From d2a6c189abbb37aed65d2bc876cc7cffddbda557 Mon Sep 17 00:00:00 2001 From: ABevier Date: Thu, 11 May 2023 15:55:19 -0400 Subject: [PATCH] +gvproxy (#1955) * +gvproxy * debuggin * buildmode=pie for linux --- .../containers/gvisor-tap-vsock/package.yml | 34 +++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 projects/github.com/containers/gvisor-tap-vsock/package.yml diff --git a/projects/github.com/containers/gvisor-tap-vsock/package.yml b/projects/github.com/containers/gvisor-tap-vsock/package.yml new file mode 100644 index 00000000..94858661 --- /dev/null +++ b/projects/github.com/containers/gvisor-tap-vsock/package.yml @@ -0,0 +1,34 @@ +distributable: + url: https://github.com/containers/gvisor-tap-vsock/archive/refs/tags/v{{version}}.tar.gz + strip-components: 1 + +versions: + github: containers/gvisor-tap-vsock/releases/tags + +platforms: + - darwin + - linux/x86-64 + +provides: + - bin/gvproxy + - bin/qemu-wrapper + +build: + dependencies: + tea.xyz/gx/cc: c99 + tea.xyz/gx/make: '*' + go.dev: ^1.18 + script: | + if test "{{hw.platform}}" = "linux"; then + sed -i.bak 's/go build/go build -buildmode=pie/g' Makefile + fi + + make --jobs {{ hw.concurrency }} + mkdir -p "{{ prefix }}"/bin + mv bin/* "{{ prefix }}"/bin + +test: + script: | + gvproxy -help 2>&1 + gvproxy -help 2>&1 | grep "Usage of gvproxy:" +