# Created by: Steve Wills # $FreeBSD: head/net/syncthing/Makefile 413750 2016-04-21 18:34:43Z swills $ PORTNAME= syncthing PORTVERSION= 0.12.22 DISTVERSIONPREFIX= v CATEGORIES= net MAINTAINER= swills@FreeBSD.org COMMENT= Encrypted file sync tool BUILD_DEPENDS= ${LOCALBASE}/bin/go:lang/go USE_GITHUB= yes USE_RC_SUBR= syncthing PLIST_FILES= bin/syncthing PORTDOCS= * USERS= syncthing GROUPS= syncthing STRIP= # stripping can break go binaries post-patch: @cd ${WRKSRC} ; ${MKDIR} src/github.com/${PORTNAME}/${PORTNAME} ; \ ${MV} .gitattributes .gitignore .mailmap AUTHORS CONDUCT.md \ CONTRIBUTING.md Godeps LICENSE NICKS README.md appveyor.yaml \ assets build.go build.sh cmd debian etc gui lib man script 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