# Contributor: TBK # Maintainer: TBK pkgname=nebula pkgver=1.2.0 pkgrel=0 pkgdesc="A scalable overlay networking tool with a focus on performance, simplicity & security" url="https://github.com/slackhq/nebula" arch="all !armv7 !armhf" # https://github.com/slackhq/nebula/issues/212 license="MIT" pkgusers="$pkgname" pkggroups="$pkgname" install="$pkgname.pre-install" makedepends="go libcap" subpackages="$pkgname-openrc" source="$pkgname-$pkgver.tar.gz::https://github.com/slackhq/nebula/archive/v$pkgver.tar.gz $pkgname.initd " build() { make BUILD_NUMBER="$pkgver" bin } check() { make test } package() { install -Dm750 -o nebula -g nebula nebula -t "$pkgdir"/usr/sbin/ setcap cap_net_admin+ep "$pkgdir"/usr/sbin/nebula install -Dm755 nebula-cert -t "$pkgdir"/usr/bin/ install -Dm755 examples/config.yml -t "$pkgdir"/etc/$pkgname install -Dm755 "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname } sha512sums="1dcb8ec532e1345012e2c2367da751eef0d364d222019b4139013086351381fdc23743ac0df34caeb805082d0d2e971c78126465c765f07605f224cbee2a408d nebula-1.2.0.tar.gz 7efa3ef860e6dfefbce25425bbb5c1a37779554063bd2084efc60f78c52cf3e0cafe2060c06aea0b45c1b5cf0e231d15778d5e8f2ead4173ce7f158103208b87 nebula.initd"