mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-26 05:02:18 +00:00
adb93122cb
For ports that already use the licenses framwork, merge the content of RESTRICTED/NO_CDROM/LEGAL* entries into LICENSEs. Approved by: rene Differential Revision: https://reviews.freebsd.org/D30010
62 lines
1.6 KiB
Makefile
62 lines
1.6 KiB
Makefile
# Created by: Corey Smith <corsmith@gmail.com>
|
|
|
|
PORTNAME= zerotier
|
|
DISTVERSION= 1.6.5
|
|
CATEGORIES= net
|
|
|
|
PATCH_SITES= https://github.com/zerotier/zerotierone/pull/
|
|
# PATCHFILES= 1043.patch:-p1
|
|
PATCHFILES= 1304.patch:-p1
|
|
|
|
MAINTAINER= dch@FreeBSD.org
|
|
COMMENT= Network virtualization everywhere
|
|
|
|
# No SaaS or Govt usage: https://github.com/zerotier/ZeroTierOne/blob/master/LICENSE.txt
|
|
LICENSE= BUSINESS MIT PD
|
|
LICENSE_COMB= multi
|
|
LICENSE_NAME_BUSINESS= Business Source License
|
|
LICENSE_FILE_BUSINESS= ${WRKSRC}/LICENSE.txt
|
|
LICENSE_FILE_MIT= ${WRKSRC}/ext/json/LICENSE.MIT
|
|
LICENSE_PERMS_BUSINESS= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
|
|
|
|
BUILD_DEPENDS= as:devel/binutils
|
|
|
|
USES= gmake compiler:c++14-lang
|
|
USE_RC_SUBR= zerotier
|
|
|
|
USE_GITHUB= yes
|
|
GH_PROJECT= ZeroTierOne
|
|
|
|
CFLAGS+= -flax-vector-conversions
|
|
|
|
OPTIONS_DEFINE= DBG
|
|
DBG_DESC= Enable foreground debugging for zerotier-one daemon
|
|
DBG_ALL_TARGET= debug
|
|
|
|
PLIST_FILES= bin/zerotier-cli bin/zerotier-idtool sbin/zerotier-one
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if ${OPSYS} == "FreeBSD"
|
|
# log output via syslog
|
|
SUB_LIST+= ZEROTIER_SYSLOG="-s debug -T zerotier"
|
|
# after r347241 tun(4) and tap(4) have been merged to tuntap(4)
|
|
.if (${OSVERSION} >= 1300028)
|
|
SUB_LIST+= ZEROTIER_IF_TAP="if_tuntap"
|
|
.else
|
|
SUB_LIST+= ZEROTIER_IF_TAP="if_tap"
|
|
.endif
|
|
.else
|
|
# we are not on FreeBSD
|
|
SUB_LIST+= ZEROTIER_IF_TAP="if_tap" \
|
|
ZEROTIER_SYSLOG=""
|
|
.endif
|
|
|
|
do-install:
|
|
${INSTALL_PROGRAM} ${WRKSRC}/zerotier-one ${STAGEDIR}${PREFIX}/sbin/
|
|
.for l in zerotier-cli zerotier-idtool
|
|
${RLN} ${STAGEDIR}${PREFIX}/sbin/zerotier-one ${STAGEDIR}${PREFIX}/bin/${l}
|
|
.endfor
|
|
|
|
.include <bsd.port.post.mk>
|