aboutsummaryrefslogtreecommitdiffstats
path: root/testing/zerotier-one/APKBUILD
blob: c254ef33b775d5cf7abdd306135ab0d90a176dfd (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
# Contributor: Kyle Parisi <kyleparisi@gmail.com>
# Maintainer: Kyle Parisi <kyleparisi@gmail.com>
pkgname=zerotier-one
pkgver=1.1.14
pkgrel=0
pkgdesc="ZeroTier One allows systems to join and participate in ZeroTier virtual networks."
url="https://www.zerotier.com/"
arch="all"
license="GPL3"
depends=""
makedepends="nodejs linux-headers"
install=""
subpackages="$pkgname-doc"
source="
	$pkgname-$pkgver.tar.gz::https://github.com/zerotier/ZeroTierOne/archive/${pkgver}.tar.gz
	zerotier-one.initd
	"

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

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install || return 1
	install -m755 -D "$srcdir"/$pkgname.initd \
			"$pkgdir"/etc/init.d/$pkgname || return 1
}

md5sums="5e381f0864797886b3b3bf20beb49bba  zerotier-one-1.1.14.tar.gz
45175f743636373dd54597c8adef0dc8  zerotier-one.initd"
sha256sums="d206069ad21c665159cdececb0a20a21758849ad73d91234d709962b26f634af  zerotier-one-1.1.14.tar.gz
de95f8f8011ff6b4b4c53c5267eb8047f755a29f99a15e46ab5f437e22e04320  zerotier-one.initd"
sha512sums="96806a5eab8204d01585c88dba426fb7d47337562074488f87eb81b7ece6643216e2f60adcf1677f9a61fa5ab5187b7569fc1b9565d7055ba106139b6363e7a5  zerotier-one-1.1.14.tar.gz
5b5badc9ea9619d3d3cd9b05813704097bfd8c6a03ece93ea8cee5b52b15cadf0ff1350011b8e056155174321724cf947a31e6e17a633923e9543a23da9c1d5b  zerotier-one.initd"