blob: 8f84f65b4b17968961462783f3f87152607d80d0 (
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
|
# Contributor: TBK <alpine@jjtc.eu>
# Maintainer: TBK <alpine@jjtc.eu>
pkgname=nebula
pkgver=1.2.0
pkgrel=1
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"
|