New package: zerotier-1.1.6

Closes #4437
This commit is contained in:
Michael Aldridge 2016-07-06 00:14:44 -05:00 committed by Toyam Cox
parent 79c7427574
commit 51fb45be19
2 changed files with 40 additions and 0 deletions

View File

@ -0,0 +1,2 @@
#!/bin/sh
exec zerotier-one

View File

@ -0,0 +1,38 @@
# Template file for 'zerotier'
pkgname=zerotier-one
version=1.1.6
revision=1
wrksrc=ZeroTierOne-${version}
build_style=gnu-makefile
hostmakedepends="nodejs"
makedepends="sqlite-devel"
short_desc="Network Virtualization Everywhere"
maintainer="Michael Aldridge <aldridge.mac@gmail.com>"
license="GPL-3"
homepage="https://www.zerotier.com/"
distfiles="https://github.com/zerotier/ZeroTierOne/archive/${version}.tar.gz"
checksum=7a265118a94009ed85a9fb05887d977c5665c25d63dee47068ba79acee6d88ae
pre_build() {
sed -i 's:#include <sys/sysctl.h>::' osdep/BSDEthernetTap.cpp \
attic/OSXEthernetTap.cpp.pcap-with-bridge-test \
ext/libnatpmp/getgateway.c osdep/ManagedRoute.cpp \
attic/OSXEthernetTap.cpp.utun-work-in-progress osdep/OSXEthernetTap.cpp
}
do_build() {
make all ZT_\ENABLE_\NETWORK_\CONTROLLER=1
}
pre_install() {
sed -i 's/sbin/bin/g' make-linux.mk
}
post_install() {
vsv zerotier
}
# REMARKS:
# Variable has backslashes in do_build. Upstream does it this way, don't know why.
# pre_build() fixes PRed by the-maldridge to upstream. Shouldn't be necessary
# after next release.