aboutsummaryrefslogtreecommitdiffstats
path: root/community/zerotier-one/APKBUILD
blob: 2a0a5a6f44758d02de92c74b3bc59f5efb6d60ee (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.2
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="8abb31ba8aed4c187a4e88ffe6f536ed7d0fe2421f89ae706eef620cc9508372a089ce9e9579df372e21b6dab271bea91e2d12b424dd85ece8c19885a6caa643  $pkgname-$pkgver.tar.gz
a63f8e649d63a3de58a556b3adca440cd0c0d4b36239ea547d555b97852d89d0a1446f348d35e98f77faabe1fe4ffb76868b8290ad9f2b4cd8b6c599945a176c  $pkgname.initd
181f1fc99552e53d2979680b85037a29de20b60b89322122baf82b4765691a8773221d97136a984629404027608b1a1a30467dff3f111f924f4b4ddde2095980  make-linux.patch"