summaryrefslogtreecommitdiff
path: root/net/syncthing/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'net/syncthing/Makefile')
-rw-r--r--net/syncthing/Makefile34
1 files changed, 18 insertions, 16 deletions
diff --git a/net/syncthing/Makefile b/net/syncthing/Makefile
index e4c4df0aa0ec..cbecf66db27b 100644
--- a/net/syncthing/Makefile
+++ b/net/syncthing/Makefile
@@ -1,6 +1,6 @@
PORTNAME= syncthing
DISTVERSIONPREFIX= v
-DISTVERSION= 1.29.6
+DISTVERSION= 2.0.6
CATEGORIES= net
MASTER_SITES= https://github.com/${PORTNAME}/${PORTNAME}/releases/download/v${DISTVERSION}/
DISTNAME= ${PORTNAME}-source-${DISTVERSIONFULL}
@@ -12,29 +12,32 @@ WWW= https://syncthing.net/
LICENSE= MPL20
LICENSE_FILE= ${WRKSRC}/${PORTNAME}/LICENSE
-USES= cpe go:1.23,modules
+USES= cpe go:modules
USE_RC_SUBR= syncthing syncthing-discosrv syncthing-relaysrv \
syncthing-relaypoolsrv
BINS= syncthing stdiscosrv strelaysrv strelaypoolsrv
-.for x in ${BINS}
-PLIST_FILES+= bin/${x}
-.endfor
+# Anonymize
+MAKE_ENV+= BUILD_HOST=freebsd \
+ BUILD_USER=ports
-PORTDOCS= *
+CONFLICTS_INSTALL= syncthing1
+
+NO_CCACHE= yes
+NO_WRKSUBDIR= yes
USERS= syncthing
GROUPS= syncthing
-# Anonymize
-MAKE_ENV+= BUILD_HOST=freebsd \
- BUILD_USER=ports
+.for x in ${BINS}
+PLIST_FILES+= bin/${x}
+.endfor
-OPTIONS_DEFINE= DOCS
+PORTDOCS= *
-NO_WRKSUBDIR= yes
+OPTIONS_DEFINE= DOCS
do-build:
@( cd ${WRKSRC}/${PORTNAME} ; \
@@ -44,11 +47,6 @@ do-build:
${SETENV} ${MAKE_ENV} ${GO_ENV} GOPROXY=off ${GO_CMD} run build.go -version v${DISTVERSION} -no-upgrade build strelaypoolsrv; \
)
-do-test:
- @( cd ${WRKSRC}/${PORTNAME} ; \
- ${SETENV} ${MAKE_ENV} ${GO_ENV} GOPROXY=off ${GO_CMD} run build.go -version v${DISTVERSION} -no-upgrade test ; \
- )
-
do-install:
.for x in ${BINS}
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME}/${x} \
@@ -60,4 +58,8 @@ do-install:
${STAGEDIR}${DOCSDIR}
.endfor
+do-test:
+ @( cd ${WRKSRC}/${PORTNAME} ; \
+ ${SETENV} ${MAKE_ENV} ${GO_ENV} GOPROXY=off ${GO_CMD} run build.go -version v${DISTVERSION} -no-upgrade test ; \
+ )
.include <bsd.port.mk>