aboutsummaryrefslogtreecommitdiffstats
path: root/community/nebula/APKBUILD
blob: 584bed798ec3ab89485cc2e2d8a9ee7918ac848d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# Contributor: TBK <alpine@jjtc.eu>
# Maintainer: TBK <alpine@jjtc.eu>
pkgname=nebula
pkgver=1.5.2
pkgrel=4
pkgdesc="Scalable overlay networking tool with a focus on performance, simplicity and security"
url="https://github.com/slackhq/nebula"
license="MIT"
# armv7 blocked by test failure https://github.com/slackhq/nebula/issues/212
arch="all !armhf !armv7"
pkgusers="$pkgname"
pkggroups="$pkgname"
install="$pkgname.pre-install"
makedepends="go libcap"
subpackages="$pkgname-openrc"
source="https://github.com/slackhq/nebula/archive/v$pkgver/nebula-$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 -Dm644 examples/config.yml -t "$pkgdir"/etc/$pkgname

	install -Dm755 "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname
}

sha512sums="
2c1064ddf0ff0579c9255abaf9636efc2afaac03d3c1d6e2984e8f7a79158a3a64d1f815c650045042683d87a37b6112545f9f74a1a173d91226aafaa41a2651  nebula-1.5.2.tar.gz
9124a728ccbf554cbafd9bdf7ed3ab72837ec12bb3d6cf65286c30dd67f6b4de41f3bbe3392a7607977c2d59af3403309643a9ab889fd96516e4bc0692a98f1d  nebula.initd
"