aboutsummaryrefslogtreecommitdiffstats
path: root/community/zerotier-one/APKBUILD
blob: 72bb88f1bbebdc59e1d5e9d4bdfacabe59e1ae20 (plain) (blame)
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
# Contributor: Kyle Parisi <kyleparisi@gmail.com>
# Maintainer: Kyle Parisi <kyleparisi@gmail.com>
pkgname=zerotier-one
pkgver=1.6.4
pkgrel=0
pkgdesc="ZeroTier One allows systems to join and participate in ZeroTier virtual networks."
url="https://www.zerotier.com/"
arch="x86 x86_64 armhf ppc64le"
license="GPL-3.0-or-later"
makedepends="linux-headers"
subpackages="$pkgname-doc $pkgname-openrc"
source="$pkgname-$pkgver.tar.gz::https://github.com/zerotier/ZeroTierOne/archive/$pkgver.tar.gz
	$pkgname.initd
	make-linux.patch
	"

builddir="$srcdir"/ZeroTierOne-$pkgver
build() {
	sed -i.bak s:/bash:/sh:g ./doc/build.sh
	make
}

check() {
	make selftest
}

package() {
	make DESTDIR="$pkgdir" install
	install -m755 -D "$srcdir"/$pkgname.initd \
		"$pkgdir"/etc/init.d/$pkgname
	install -d "$pkgdir"/usr/lib/modules-load.d
	echo "tun" > "$pkgdir"/usr/lib/modules-load.d/$pkgname.conf
}

sha512sums="b1cd96cdc76cfd7929016382bc4a373a88d468010134cd65efbe32fc23e1cb56e0306f84ae10b3ad6d65e7a3fa6aebe79ec6c019840123f770bbc6fe2152723c  zerotier-one-1.6.4.tar.gz
a63f8e649d63a3de58a556b3adca440cd0c0d4b36239ea547d555b97852d89d0a1446f348d35e98f77faabe1fe4ffb76868b8290ad9f2b4cd8b6c599945a176c  zerotier-one.initd
efee4e5e6d553d4914e4de35844a5fddd42af3a1bcb1e8b54a3c1e62529fe3b75a5ca3ebc7f1ec0e531f5c72547cec68c6dd5acb33000664b148117ed89ecc53  make-linux.patch"