2014-08-14 19:39:29 +02:00
|
|
|
# Created by: Steve Wills <swills@FreeBSD.org>
|
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= syncthing
|
2017-01-11 17:14:25 +01:00
|
|
|
PORTVERSION= 0.14.19
|
2015-02-24 23:00:49 +01:00
|
|
|
DISTVERSIONPREFIX= v
|
2015-05-11 19:30:01 +02:00
|
|
|
CATEGORIES= net
|
2014-08-14 19:39:29 +02:00
|
|
|
|
|
|
|
MAINTAINER= swills@FreeBSD.org
|
|
|
|
COMMENT= Encrypted file sync tool
|
|
|
|
|
2016-04-01 16:16:16 +02:00
|
|
|
BUILD_DEPENDS= ${LOCALBASE}/bin/go:lang/go
|
2014-08-14 19:39:29 +02:00
|
|
|
|
2015-02-24 23:00:49 +01:00
|
|
|
USE_GITHUB= yes
|
2016-09-22 16:09:21 +02:00
|
|
|
GH_SUBDIR= src/github.com/${PORTNAME}/${PORTNAME}
|
2014-08-14 19:39:29 +02:00
|
|
|
USE_RC_SUBR= syncthing
|
2014-09-28 04:24:58 +02:00
|
|
|
PLIST_FILES= bin/syncthing
|
2014-08-14 19:39:29 +02:00
|
|
|
PORTDOCS= *
|
|
|
|
|
|
|
|
USERS= syncthing
|
|
|
|
GROUPS= syncthing
|
|
|
|
|
2014-12-10 03:43:42 +01:00
|
|
|
STRIP= # stripping can break go binaries
|
|
|
|
|
2014-08-14 19:39:29 +02:00
|
|
|
do-build:
|
2014-09-28 04:24:58 +02:00
|
|
|
# timestamp here refers to source, not build time
|
2015-06-27 16:54:25 +02:00
|
|
|
@cd ${WRKSRC}/src/github.com/${PORTNAME}/${PORTNAME} ; \
|
2014-11-25 14:08:11 +01:00
|
|
|
${SETENV} GOPATH=${WRKSRC} go run build.go -no-upgrade=true -version v${PORTVERSION}
|
2014-08-14 19:39:29 +02:00
|
|
|
|
|
|
|
do-install:
|
2014-11-04 02:59:37 +01:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/src/github.com/${PORTNAME}/${PORTNAME}/bin/syncthing \
|
|
|
|
${STAGEDIR}${PREFIX}/bin/
|
2014-08-14 19:39:29 +02:00
|
|
|
${MKDIR} ${STAGEDIR}${DOCSDIR}
|
2014-11-25 14:08:11 +01:00
|
|
|
.for x in AUTHORS CONTRIBUTING.md LICENSE README.md
|
2014-11-04 02:59:37 +01:00
|
|
|
${INSTALL_MAN} ${WRKSRC}/src/github.com/${PORTNAME}/${PORTNAME}/${x} \
|
|
|
|
${STAGEDIR}${DOCSDIR}
|
2014-08-14 19:39:29 +02:00
|
|
|
.endfor
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|