# Contributor: TBK # Maintainer: TBK pkgname=nebula pkgver=1.7.2 pkgrel=2 pkgdesc="Scalable overlay networking tool with a focus on performance, simplicity and security" url="https://github.com/slackhq/nebula" license="MIT" # tests seem to fail due to >32-bit allocs, probably doesn't work arch="all !x86 !armhf !armv7" pkgusers="$pkgname" pkggroups="$pkgname" install="$pkgname.pre-install" makedepends="go" subpackages="$pkgname-openrc" source="https://github.com/slackhq/nebula/archive/v$pkgver/nebula-$pkgver.tar.gz $pkgname.initd " export GOCACHE="${GOCACHE:-"$srcdir/go-cache"}" export GOTMPDIR="${GOTMPDIR:-"$srcdir"}" export GOMODCACHE="${GOMODCACHE:-"$srcdir/go"}" build() { make BUILD_ARGS="$GOFLAGS" BUILD_NUMBER="$pkgver" bin } check() { make test } package() { install -Dm750 -o nebula -g nebula nebula -t "$pkgdir"/usr/sbin/ install -Dm755 nebula-cert -t "$pkgdir"/usr/bin/ install -Dm644 examples/config.yml -t "$pkgdir"/etc/$pkgname install -Dm755 "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname } sha512sums=" b9b871eabdf0ffb05cb350fd665e4cc7c39c9c519837eb4aa88aba4d8d43d62e098da6eb4d2e679100eaa1755f1bb0a3d416a2ea5271ad1e841be1d3434fb341 nebula-1.7.2.tar.gz b86a38a0e558f2bc00b062d713cd3ad3e6b5e7a0695c92d7bfe5633edb80184fcd64ebf5af6c35677c91719159dad8cd38c2278b5f4d9f5d2e42f101e6e354b2 nebula.initd "