Index: head/net/syncthing-discosrv/Makefile =================================================================== --- head/net/syncthing-discosrv/Makefile (revision 402088) +++ head/net/syncthing-discosrv/Makefile (revision 402089) @@ -1,33 +1,33 @@ # Created by: Steve Wills # $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 USE_RC_SUBR= syncthing-discosrv USERS= syncthing GROUPS= syncthing 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/ .include Index: head/net/syncthing-discosrv/distinfo =================================================================== --- head/net/syncthing-discosrv/distinfo (revision 402088) +++ head/net/syncthing-discosrv/distinfo (revision 402089) @@ -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 Index: head/net/syncthing-discosrv/files/syncthing-discosrv.in =================================================================== --- head/net/syncthing-discosrv/files/syncthing-discosrv.in (revision 402088) +++ head/net/syncthing-discosrv/files/syncthing-discosrv.in (revision 402089) @@ -1,54 +1,62 @@ #!/bin/sh # $FreeBSD$ # # PROVIDE: syncthingdiscosrv # REQUIRE: LOGIN # KEYWORD: shutdown # # Add the following lines to /etc/rc.conf.local or /etc/rc.conf # to enable this service: # # syncthingdiscosrv_enable (bool): Set to NO by default. # Set it to YES to enable syncthing-discosrv. # syncthingdiscosrv_user (user): Set user to run syncthing-discosrv. # Default is "syncthing". # syncthingdiscosrv_group (group): Set group to run syncthing-discosrv. # 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 name=syncthingdiscosrv rcvar=syncthingdiscosrv_enable load_rc_config $name : ${syncthingdiscosrv_enable:="NO"} : ${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 syncthingdiscosrv_startprecmd() { if [ ! -e ${pidfile} ]; then install -o ${syncthingdiscosrv_user} -g ${syncthingdiscosrv_group} /dev/null ${pidfile}; fi if [ ! -d ${syncthingdiscosrv_dir} ]; then install -d -o ${syncthingdiscosrv_user} -g ${syncthingdiscosrv_group} ${syncthingdiscosrv_dir} fi } run_rc_command "$1" Index: head/net/syncthing-discosrv/pkg-message =================================================================== --- head/net/syncthing-discosrv/pkg-message (revision 402088) +++ head/net/syncthing-discosrv/pkg-message (revision 402089) @@ -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