# Template file for 'zerotier'
pkgname=zerotier-one
version=1.2.4
revision=1
wrksrc=ZeroTierOne-${version}
build_style=gnu-makefile
hostmakedepends="nodejs"
makedepends="sqlite-devel"
short_desc="Network Virtualization Everywhere"
maintainer="Michael Aldridge <maldridge@VoidLinux.eu>"
license="GPL-3"
homepage="https://www.zerotier.com/"
distfiles="https://github.com/zerotier/ZeroTierOne/archive/${version}.tar.gz"
checksum=9f275b3732b721f02cc4b8df75b51e6a8fb56dfe1a542a7bd681538d852b0358

do_build() {
	make all ZT_ENABLE_NETWORK_CONTROLLER=1
}

pre_install() {
	sed -i 's/sbin/bin/g' make-linux.mk
}

post_install() {
	vsv zerotier
}
