Installation via go get:
$ go get -u github.com/dreadl0ck/netcap/...
To install the command-line tool:
$ go build -o $(go env GOPATH)/bin/netcap -i github.com/dreadl0ck/netcap/cmd
To cross compile for other architectures, set the GOARCH and GOOS environment variables. For example to cross compile a binary for linux amd64:
$ GOARCH=amd64 GOOS=linux go build -o netcap -i github.com/dreadl0ck/netcap/cmd
Install the netcap command-line tool with Homebrew:
$ brew tap dreadl0ck/formulas$ brew install netcap
Netcap uses the zeus buildsystem, it can be found on github along with installation instructions.
However, the project can easily be installed without zeus. All shell scripts needed for installation can be found in the zeus/generated directory as standalone versions:
To install the Netcap and Netlabel command-line tool and the library with zeus, run:
$ zeus install
To execute the unit tests, run the following from the project root:
$ go test -v -bench=. ./...