1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-01 05:45:45 +00:00
freebsd-ports/net/syncthing/Makefile
2019-04-04 16:53:37 +00:00

55 lines
1.5 KiB
Makefile

# $FreeBSD$
PORTNAME= syncthing
PORTVERSION= 1.1.1
DISTVERSIONPREFIX= v
CATEGORIES= net
MASTER_SITES= https://github.com/syncthing/syncthing/releases/download/v${PORTVERSION}/
DISTNAME= ${PORTNAME}-source-${DISTVERSIONPREFIX}${PORTVERSION}
MAINTAINER= swills@FreeBSD.org
COMMENT= Encrypted file sync tool
LICENSE= MPL20
LICENSE_FILE= ${WRKSRC}/${PORTNAME}/LICENSE
BUILD_DEPENDS= ${LOCALBASE}/bin/go:lang/go
USE_RC_SUBR= syncthing syncthing-discosrv syncthing-relaysrv syncthing-relaypoolsrv
BINS= syncthing stdiscosrv strelaysrv strelaypoolsrv
.for x in ${BINS}
PLIST_FILES+= bin/${x}
.endfor
PORTDOCS= *
USERS= syncthing
GROUPS= syncthing
OPTIONS_DEFINE= DOCS
NO_WRKSUBDIR= yes
do-build:
@( cd ${WRKSRC}/${PORTNAME} ; \
${SETENV} ${MAKE_ENV} CGO_ENABLED=0 GOFLAGS="-mod=vendor" go run build.go -version v${PORTVERSION} -no-upgrade build ; \
${SETENV} ${MAKE_ENV} CGO_ENABLED=0 GOFLAGS="-mod=vendor" go run build.go -version v${PORTVERSION} -no-upgrade build stdiscosrv ; \
${SETENV} ${MAKE_ENV} CGO_ENABLED=0 GOFLAGS="-mod=vendor" go run build.go -version v${PORTVERSION} -no-upgrade build strelaysrv ; \
${SETENV} ${MAKE_ENV} CGO_ENABLED=0 GOFLAGS="-mod=vendor" go run build.go -version v${PORTVERSION} -no-upgrade build strelaypoolsrv ; \
)
do-install:
.for x in ${BINS}
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME}/${x} \
${STAGEDIR}${PREFIX}/bin/
.endfor
${MKDIR} ${STAGEDIR}${DOCSDIR}
.for x in AUTHORS LICENSE README.md
${INSTALL_DATA} ${WRKSRC}/${PORTNAME}/${x} \
${STAGEDIR}${DOCSDIR}
.endfor
.include <bsd.port.mk>