summaryrefslogtreecommitdiff
path: root/net/syncthing
diff options
context:
space:
mode:
Diffstat (limited to 'net/syncthing')
-rw-r--r--net/syncthing/Makefile34
-rw-r--r--net/syncthing/distinfo6
-rw-r--r--net/syncthing/files/syncthing.in2
3 files changed, 22 insertions, 20 deletions
diff --git a/net/syncthing/Makefile b/net/syncthing/Makefile
index e4c4df0aa0ec..0e304d41ac4d 100644
--- a/net/syncthing/Makefile
+++ b/net/syncthing/Makefile
@@ -1,6 +1,6 @@
PORTNAME= syncthing
DISTVERSIONPREFIX= v
-DISTVERSION= 1.29.6
+DISTVERSION= 2.0.7
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>
diff --git a/net/syncthing/distinfo b/net/syncthing/distinfo
index 483744eece30..c9dc80d94639 100644
--- a/net/syncthing/distinfo
+++ b/net/syncthing/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1746574524
-SHA256 (syncthing-source-v1.29.6.tar.gz) = 28e7f4984a6a34fb4697448141ce2611a6510f5a4369c1669d4e766eb75cd878
-SIZE (syncthing-source-v1.29.6.tar.gz) = 16265938
+TIMESTAMP = 1757071364
+SHA256 (syncthing-source-v2.0.7.tar.gz) = 6e0f66fa17402e7a4395658732af719e3c25c17ca436eb473912dfb0f4340a0d
+SIZE (syncthing-source-v2.0.7.tar.gz) = 62661923
diff --git a/net/syncthing/files/syncthing.in b/net/syncthing/files/syncthing.in
index 8b96017031aa..3eba70d6a976 100644
--- a/net/syncthing/files/syncthing.in
+++ b/net/syncthing/files/syncthing.in
@@ -35,7 +35,7 @@ load_rc_config $name
pidfile=/var/run/syncthing.pid
procname="%%PREFIX%%/bin/syncthing"
command="/usr/sbin/daemon"
-command_args="-cf -p ${pidfile} ${procname} ${syncthing_home:+-home=${syncthing_home}} ${syncthing_log_file:+-logfile=${syncthing_log_file}} -no-browser ${syncthing_args}"
+command_args="-cf -p ${pidfile} ${procname} ${syncthing_home:+--home=${syncthing_home}} ${syncthing_log_file:+--logfile=${syncthing_log_file}} --no-browser ${syncthing_args}"
start_precmd=syncthing_startprecmd