diff options
Diffstat (limited to 'testing/zerotier-one')
-rw-r--r-- | testing/zerotier-one/APKBUILD | 38 | ||||
-rw-r--r-- | testing/zerotier-one/zerotier-one.initd | 9 |
2 files changed, 47 insertions, 0 deletions
diff --git a/testing/zerotier-one/APKBUILD b/testing/zerotier-one/APKBUILD new file mode 100644 index 0000000000..c254ef33b7 --- /dev/null +++ b/testing/zerotier-one/APKBUILD @@ -0,0 +1,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" diff --git a/testing/zerotier-one/zerotier-one.initd b/testing/zerotier-one/zerotier-one.initd new file mode 100644 index 0000000000..22ab0712ed --- /dev/null +++ b/testing/zerotier-one/zerotier-one.initd @@ -0,0 +1,9 @@ +#!/sbin/openrc-run + +depend() { + need net +} + +command="/usr/sbin/zerotier-one" +command_background="yes" +pidfile="/run/$RC_SVCNAME.pid" |