Index: head/net/syncthing/Makefile =================================================================== --- head/net/syncthing/Makefile (revision 371124) +++ head/net/syncthing/Makefile (revision 371125) @@ -1,39 +1,40 @@ # Created by: Steve Wills # $FreeBSD$ PORTNAME= syncthing PORTVERSION= 0.10.1 +PORTREVISION= 1 CATEGORIES= net MASTER_SITES= https://github.com/${PORTNAME}/${PORTNAME}/archive/v${PORTVERSION}.tar.gz?dummy=/ DISTNAME= ${PORTNAME}-${PORTVERSION} 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} .gitignore CONTRIBUTING.md CONTRIBUTORS Godeps LICENSE \ README.md assets build.go build.sh check-contrib.sh 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 do-install: ${INSTALL_PROGRAM} ${WRKSRC}/src/github.com/${PORTNAME}/${PORTNAME}/bin/syncthing ${STAGEDIR}${PREFIX}/bin/ ${MKDIR} ${STAGEDIR}${DOCSDIR} .for x in CONTRIBUTORS LICENSE README.md ${INSTALL_MAN} ${WRKSRC}/src/github.com/${PORTNAME}/${PORTNAME}/${x} ${STAGEDIR}${DOCSDIR} .endfor .include Index: head/net/syncthing/files/syncthing.in =================================================================== --- head/net/syncthing/files/syncthing.in (revision 371124) +++ head/net/syncthing/files/syncthing.in (revision 371125) @@ -1,55 +1,54 @@ #!/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"} -export STNORESTART=true 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}" 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"