freebsd-ports/net/syncthing/Makefile

40 lines
1,003 B
Makefile
Raw Normal View History

# 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
MAINTAINER= swills@FreeBSD.org
COMMENT= Encrypted file sync tool
BUILD_DEPENDS= ${LOCALBASE}/bin/go:lang/go
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}
USE_RC_SUBR= syncthing
2014-09-28 04:24:58 +02:00
PLIST_FILES= bin/syncthing
PORTDOCS= *
USERS= syncthing
GROUPS= syncthing
2014-12-10 03:43:42 +01:00
STRIP= # stripping can break go binaries
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}
do-install:
2014-11-04 02:59:37 +01:00
${INSTALL_PROGRAM} ${WRKSRC}/src/github.com/${PORTNAME}/${PORTNAME}/bin/syncthing \
${STAGEDIR}${PREFIX}/bin/
${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}
.endfor
.include <bsd.port.mk>