Index: head/net/syncthing/Makefile =================================================================== --- head/net/syncthing/Makefile (revision 373699) +++ head/net/syncthing/Makefile (revision 373700) @@ -1,41 +1,41 @@ # Created by: Steve Wills # $FreeBSD$ PORTNAME= syncthing -PORTVERSION= 0.10.8 +PORTVERSION= 0.10.9 CATEGORIES= net MASTER_SITES= https://github.com/${PORTNAME}/${PORTNAME}/archive/v${PORTVERSION}.tar.gz?dummy=/ MAINTAINER= swills@FreeBSD.org COMMENT= Encrypted file sync tool BUILD_DEPENDS= ${LOCALBASE}/bin/go:${PORTSDIR}/lang/go USE_RC_SUBR= syncthing PLIST_FILES= bin/syncthing PORTDOCS= * USERS= syncthing GROUPS= syncthing post-patch: @cd ${WRKSRC} ; ${MKDIR} src/github.com/${PORTNAME}/${PORTNAME} ; \ ${MV} AUTHORS CONTRIBUTING.md Godeps LICENSE README.md \ build.go build.sh check-contrib.sh assets cmd gui internal \ protocol test src/github.com/${PORTNAME}/${PORTNAME} do-build: # timestamp here refers to source, not build time cd ${WRKSRC}/src/github.com/${PORTNAME}/${PORTNAME} ; \ ${SETENV} GOPATH=${WRKSRC} go run build.go -no-upgrade=true -version v${PORTVERSION} do-install: ${INSTALL_PROGRAM} ${WRKSRC}/src/github.com/${PORTNAME}/${PORTNAME}/bin/syncthing \ ${STAGEDIR}${PREFIX}/bin/ ${MKDIR} ${STAGEDIR}${DOCSDIR} .for x in AUTHORS CONTRIBUTING.md LICENSE README.md ${INSTALL_MAN} ${WRKSRC}/src/github.com/${PORTNAME}/${PORTNAME}/${x} \ ${STAGEDIR}${DOCSDIR} .endfor .include Index: head/net/syncthing/distinfo =================================================================== --- head/net/syncthing/distinfo (revision 373699) +++ head/net/syncthing/distinfo (revision 373700) @@ -1,2 +1,2 @@ -SHA256 (syncthing-0.10.8.tar.gz) = a5ffb70c841ef333d567586c32826b9d60a27cc70c05e8a43b898e369390521d -SIZE (syncthing-0.10.8.tar.gz) = 3061835 +SHA256 (syncthing-0.10.9.tar.gz) = d69303f94ffa638141c363d6490ea9fc911e08e670a90df274235d16849f80ab +SIZE (syncthing-0.10.9.tar.gz) = 3088980 Index: head/net/syncthing/files/syncthing.in =================================================================== --- head/net/syncthing/files/syncthing.in (revision 373699) +++ head/net/syncthing/files/syncthing.in (revision 373700) @@ -1,54 +1,52 @@ #!/bin/sh # $FreeBSD$ # # PROVIDE: syncthing # REQUIRE: LOGIN # KEYWORD: shutdown # # Add the following lines to /etc/rc.conf.local or /etc/rc.conf # to enable this service: # # syncthing_enable (bool): Set to NO by default. # Set it to YES to enable syncthing. # syncthing_user (user): Set user to run syncthing. # Default is "syncthing". # syncthing_group (group): Set group to run syncthing. # Default is "syncthing". # syncthing_dir (dir): Set dir to run syncthing in. # Default is "/var/tmp/syncthing". . /etc/rc.subr name=syncthing rcvar=syncthing_enable load_rc_config $name : ${syncthing_enable:="NO"} : ${syncthing_user:="syncthing"} : ${syncthing_group:="syncthing"} -: ${syncthing_dir:="/var/tmp/syncthing"} +: ${syncthing_dir:="/var/db/syncthing"} -export HOME=${syncthing_dir} - pidfile=/var/run/syncthing.pid procname="%%PREFIX%%/bin/syncthing" command="/usr/sbin/daemon" -command_args="-f -p ${pidfile} ${procname} -home=${syncthing_dir} -no-browser ${syncthing_flags}" +command_args="-f -p ${pidfile} ${procname} -home=${syncthing_dir} -no-browser ${syncthing_args}" start_precmd=syncthing_startprecmd syncthing_startprecmd() { if [ ! -e ${pidfile} ]; then install -o ${syncthing_user} -g ${syncthing_group} /dev/null ${pidfile}; fi if [ ! -d ${syncthing_dir} ]; then install -d -o ${syncthing_user} -g ${syncthing_group} ${syncthing_dir} fi } run_rc_command "$1"