diff options
-rw-r--r-- | testing/zerotier-one/APKBUILD | 24 |
1 files changed, 13 insertions, 11 deletions
diff --git a/testing/zerotier-one/APKBUILD b/testing/zerotier-one/APKBUILD index b639d329f2..7bce01756d 100644 --- a/testing/zerotier-one/APKBUILD +++ b/testing/zerotier-one/APKBUILD @@ -1,18 +1,15 @@ # Contributor: Kyle Parisi <kyleparisi@gmail.com> # Maintainer: Kyle Parisi <kyleparisi@gmail.com> pkgname=zerotier-one -pkgver=1.2.10 +pkgver=1.2.12 pkgrel=0 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" -depends="" -makedepends="npm linux-headers" -install="" -subpackages="$pkgname-doc" -source=" - $pkgname-$pkgver.tar.gz::https://github.com/zerotier/ZeroTierOne/archive/${pkgver}.tar.gz +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 " @@ -21,16 +18,21 @@ builddir="$srcdir"/ZeroTierOne-$pkgver build() { cd "$builddir" sed -i.bak s:/bash:/sh:g ./doc/build.sh - make || return 1 + make +} + +check() { + cd "$builddir" + make selftest } package() { cd "$builddir" - make DESTDIR="$pkgdir" install || return 1 + make DESTDIR="$pkgdir" install install -m755 -D "$srcdir"/$pkgname.initd \ - "$pkgdir"/etc/init.d/$pkgname || return 1 + "$pkgdir"/etc/init.d/$pkgname } -sha512sums="75d967524b67176295c647d7ea04edd5892bd94e19bbe924b5acf439da35f3bc67145c1265294538fb9dfb90ddd9affe258d46fa6aa69704cbd515bc42237058 zerotier-one-1.2.10.tar.gz +sha512sums="a35029993d9266f3529a9922daa606b0d56a332514545f8cfab2092a4c9db4fc7217223f3bd7dbe59e536de325ee9b4f0226d673c0f0ec5859cf2937e8a4a2d4 zerotier-one-1.2.12.tar.gz a63f8e649d63a3de58a556b3adca440cd0c0d4b36239ea547d555b97852d89d0a1446f348d35e98f77faabe1fe4ffb76868b8290ad9f2b4cd8b6c599945a176c zerotier-one.initd fe4468a2fdcda99ab4b6055a567f12c04973ad151ad7c1f710bf4e53a5d7e1190ba864cd45274106e5b341267f24f27b2a4855bd27668fec84545d17627d79e7 ppc64le-make-linux.patch" |