File: netstack

package info (click to toggle)
golang-gvisor-gvisor 0.0~20240729.0-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 21,300 kB
  • sloc: asm: 3,361; ansic: 1,197; cpp: 348; makefile: 92; python: 89; sh: 83
file content (12 lines) | stat: -rwxr-xr-x 421 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/bash

set -ex

# build packages which are usually imported by other package on all arch.
# https://github.com/WireGuard/wireguard-go/blob/master/tun/netstack/tun.go

export DH_GOLANG_BUILDPKG="gvisor.dev/gvisor/pkg/tcpip/..."
export DH_GOLANG_EXCLUDES="link/stopfd link/fdbased link/xdp link/sharedmem"
mkdir -p _build
cp -a /usr/share/gocode/src _build/
dh_auto_build --buildsystem=golang --builddirectory=_build