PORTNAME= frp DISTVERSIONPREFIX= v DISTVERSION= 0.72.0 PORTREVISION= 1 CATEGORIES= net MAINTAINER= yuri@FreeBSD.org COMMENT= Reverse proxy to expose local server behind NAT/firewall to Internet WWW= https://github.com/fatedier/frp LICENSE= APACHE20 LICENSE_FILE= ${WRKSRC}/LICENSE USES= cpe go:modules CPE_VENDOR= fatedier GO_MODULE= github.com/fatedier/frp GO_TARGET= ./cmd/frpc ./cmd/frps GO_BUILDFLAGS+= -tags=noweb GO_TESTFLAGS+= -tags=noweb # e2e tests need web assets not included with -tags=noweb GO_TESTTARGET= ./client/... ./cmd/... ./pkg/... ./server/... SUB_LIST= DAEMON_USER=${DAEMON_USER} USE_RC_SUBR= ${PORTNAME}s OPTIONS_RADIO= DAEMON_USER # also see https://github.com/fatedier/frp/issues/3417 OPTIONS_RADIO_DAEMON_USER= ROOT NOBODY OPTIONS_DEFAULT= ROOT # to allow frp to read certificates ROOT_VARS= DAEMON_USER=root NOBODY_VARS= DAEMON_USER=nobody DAEMON_USER_DESC= Daemon user ROOT_DESC= Run as root NOBODY_DESC= Run as nobody post-install: .for f in frpc.toml frps.toml ${INSTALL_DATA} ${WRKSRC}/conf/${f} ${STAGEDIR}${PREFIX}/etc/${f}.sample .endfor # as of 0.71.0: all tests pass .include