# Template file for 'nebula'
pkgname=nebula
version=1.11.0
revision=1
build_style=go
make_dirs="/etc/nebula 0750 root root"
go_import_path=github.com/slackhq/nebula
go_package="${go_import_path}/cmd/nebula ${go_import_path}/cmd/nebula-cert"
go_ldflags="-X main.Build=${version}"
short_desc="Scalable overlay networking tool"
maintainer="sn0w <me@sn0w.re>"
license="MIT"
homepage="https://github.com/slackhq/nebula"
distfiles="https://github.com/slackhq/nebula/archive/v${version}.tar.gz"
checksum=d570e30a04e4e25fb1bddac6e131f26b325f7c5226c4961c6c37ef6f297d60a6

# argon2 test is broken on 32bit
# https://github.com/slackhq/nebula/pull/1598
case "$XBPS_TARGET_MACHINE" in
	i686) make_check_args="-skip Test_ca";;
esac

post_install() {
	vlicense LICENSE
	vsconf examples/config.yml
	vsv nebula
}
