diff options
author | swills <swills@FreeBSD.org> | 2015-11-20 23:23:23 +0800 |
---|---|---|
committer | swills <swills@FreeBSD.org> | 2015-11-20 23:23:23 +0800 |
commit | db9cad82e4efba615d923168936c96ceda87210c (patch) | |
tree | 9ba2f4c5f296519181c0ea835fbca2e8192dcdf8 /net | |
parent | 0be1457ff1eb8671a0569daa08973c13c87b8744 (diff) | |
download | freebsd-ports-gnome-db9cad82e4efba615d923168936c96ceda87210c.tar.gz freebsd-ports-gnome-db9cad82e4efba615d923168936c96ceda87210c.tar.zst freebsd-ports-gnome-db9cad82e4efba615d923168936c96ceda87210c.zip |
net/syncthing-discosrv: update to latest, fix rc script
PR: 203987
Reported by: wraul@dbox.se
Diffstat (limited to 'net')
-rw-r--r-- | net/syncthing-discosrv/Makefile | 8 | ||||
-rw-r--r-- | net/syncthing-discosrv/distinfo | 4 | ||||
-rw-r--r-- | net/syncthing-discosrv/files/syncthing-discosrv.in | 10 | ||||
-rw-r--r-- | net/syncthing-discosrv/pkg-message | 24 |
4 files changed, 38 insertions, 8 deletions
diff --git a/net/syncthing-discosrv/Makefile b/net/syncthing-discosrv/Makefile index 168e5e62f832..83706535b968 100644 --- a/net/syncthing-discosrv/Makefile +++ b/net/syncthing-discosrv/Makefile @@ -2,18 +2,18 @@ # $FreeBSD$ PORTNAME= syncthing-discosrv -PORTVERSION= 0.0.0.2015092201 +PORTVERSION= 0.12.2 +DISTVERSIONPREFIX= v CATEGORIES= net MAINTAINER= swills@FreeBSD.org COMMENT= Discovery server for syncthing -BUILD_DEPENDS= go>=1.5:${PORTSDIR}/lang/go +BUILD_DEPENDS= go:${PORTSDIR}/lang/go USE_GITHUB= yes GH_ACCOUNT= syncthing GH_PROJECT= discosrv -GH_TAGNAME= 2062f77 PLIST_FILES= bin/syncthing-discosrv @@ -25,7 +25,7 @@ STRIP= # stripping can break go binaries do-build: @cd ${WRKSRC} ; ${SETENV} GOPATH=${WRKSRC}/Godeps/_workspace:${WRKSRC} go build - @${MV} ${WRKSRC}/discosrv-${GH_TAGNAME} ${WRKSRC}/syncthing-discosrv + @${MV} ${WRKSRC}/discosrv-${PORTVERSION} ${WRKSRC}/syncthing-discosrv do-install: ${INSTALL_PROGRAM} ${WRKSRC}/syncthing-discosrv ${STAGEDIR}${PREFIX}/bin/ diff --git a/net/syncthing-discosrv/distinfo b/net/syncthing-discosrv/distinfo index 2513242052db..6a883da8707f 100644 --- a/net/syncthing-discosrv/distinfo +++ b/net/syncthing-discosrv/distinfo @@ -1,2 +1,2 @@ -SHA256 (syncthing-discosrv-0.0.0.2015092201-2062f77_GH0.tar.gz) = ceed277b47d303898eda1c4fad520343252e7d058daf75405522468af091fc0e -SIZE (syncthing-discosrv-0.0.0.2015092201-2062f77_GH0.tar.gz) = 969977 +SHA256 (syncthing-discosrv-v0.12.2_GH0.tar.gz) = 429632dd1d6bd61f41ba3288e78bdd9a5ab0be00013f9f061e5affeccf6266b1 +SIZE (syncthing-discosrv-v0.12.2_GH0.tar.gz) = 970007 diff --git a/net/syncthing-discosrv/files/syncthing-discosrv.in b/net/syncthing-discosrv/files/syncthing-discosrv.in index 1d175be639e6..4c3528fb73d5 100644 --- a/net/syncthing-discosrv/files/syncthing-discosrv.in +++ b/net/syncthing-discosrv/files/syncthing-discosrv.in @@ -17,6 +17,12 @@ # Default is "syncthing". # syncthingdiscosrv_dir (dir): Set dir to run syncthing-discosrv in. # Default is "/var/db/syncthing-discosrv". +# syncthingdiscosrv_key (file): Set key file to use +# Default is "${syncthingdiscosrv_dir}/syncthing.key". +# syncthingdiscosrv_cert (file): Set cert file to use +# Default is "${syncthingdiscosrv_dir}/syncthing.cert". +# syncthingdiscosrv_args (string): Extra args to pass to syncthing-discosrv +# Default is "" . /etc/rc.subr @@ -29,13 +35,15 @@ load_rc_config $name : ${syncthingdiscosrv_user:="syncthing"} : ${syncthingdiscosrv_group:="syncthing"} : ${syncthingdiscosrv_dir:="/var/db/syncthing-discosrv"} +: ${syncthingdiscosrv_key:="${syncthingdiscosrv_dir}/syncthing.key"} +: ${syncthingdiscosrv_cert:="${syncthingdiscosrv_dir}/syncthing.cert"} export STNORESTART=true pidfile=/var/run/syncthingdiscosrv.pid procname="%%PREFIX%%/bin/syncthing-discosrv" command="/usr/sbin/daemon" -command_args="-f -p ${pidfile} ${procname} -db-dir=${syncthingdiscosrv_dir}/db -stats-file=${syncthingdiscosrv_dir}/stats ${syncthingdiscosrv_flags}" +command_args="-f -p ${pidfile} ${procname} -key ${syncthingdiscosrv_key} -cert ${syncthingdiscosrv_cert} ${syncthingdiscosrv_args}" start_precmd=syncthingdiscosrv_startprecmd diff --git a/net/syncthing-discosrv/pkg-message b/net/syncthing-discosrv/pkg-message index 622079459a1a..408235c025ca 100644 --- a/net/syncthing-discosrv/pkg-message +++ b/net/syncthing-discosrv/pkg-message @@ -1,5 +1,27 @@ -WARNING: This version is not backwards compatible with 0.10.x releases! +WARNING: This version is not backwards compatible with 0.11.x or older +releases! For more information, please read: https://forum.syncthing.net/t/syncthing-v0-11-0-release-notes/2426 +https://forum.syncthing.net/t/syncthing-syncthing-v0-12-0-beryllium-bedbug/6026 + +WARNING: This version requires cert and key files. You must supply a TLS key +and cert. The service will not start without these files. The default key/cert +files are: + +/var/db/syncthing-discosrv/syncthing.key +/var/db/syncthing-discosrv/syncthing.cert + +You may specify the location by adding these lines to /etc/rc.conf: + +syncthingdiscosrv_key="/path/to/your/key" +syncthingdiscosrv_cert="/path/to/your/cert" + +WARNING: The database is no longer automatically persisted to disk. You may +persist it to disk by adding this line to /etc/rc.conf: + +syncthingdiscosrv_args="-db-dsn=file:///var/db/syncthing-discosrv/discosrv.db" + +NOTE: Additional args such as stats file may also be added to +syncthingdiscosrv_args in /etc/rc.conf |