blob: 2526944f8d44b53ac76e912bc36666f196110634 (
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
|
# Contributor: Kyle Parisi <kyleparisi@gmail.com>
# Maintainer: Kyle Parisi <kyleparisi@gmail.com>
pkgname=zerotier-one
pkgver=1.4.0.1
pkgrel=1
pkgdesc="ZeroTier One allows systems to join and participate in ZeroTier virtual networks."
url="https://www.zerotier.com/"
arch="x86_64 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
zerotier-one.initd
ppc64le-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"/etc/modules-load.d
echo "tun" > "$pkgdir"/etc/modules-load.d/$pkgname.conf
}
sha512sums="b8700ae98096c61b1f90ddd6201078109f0b629393d61add2e91cf3b4d4414457bd053ce1adb9e3a040a6953366ebc79c3932da091558cde17fc8b44e7ee058c zerotier-one-1.4.0.1.tar.gz
a63f8e649d63a3de58a556b3adca440cd0c0d4b36239ea547d555b97852d89d0a1446f348d35e98f77faabe1fe4ffb76868b8290ad9f2b4cd8b6c599945a176c zerotier-one.initd
fe4468a2fdcda99ab4b6055a567f12c04973ad151ad7c1f710bf4e53a5d7e1190ba864cd45274106e5b341267f24f27b2a4855bd27668fec84545d17627d79e7 ppc64le-make-linux.patch"
|