freebsd-ports/net/syncthing/Makefile

46 lines
1.3 KiB
Makefile
Raw Normal View History

# Created by: Steve Wills <swills@FreeBSD.org>
# $FreeBSD$
PORTNAME= syncthing
2016-03-23 21:26:29 +01:00
PORTVERSION= 0.12.21
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
2014-09-28 04:24:58 +02:00
BUILD_DEPENDS= ${LOCALBASE}/bin/go:${PORTSDIR}/lang/go
2015-02-24 23:00:49 +01:00
USE_GITHUB= yes
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
post-patch:
2014-11-04 02:59:37 +01:00
@cd ${WRKSRC} ; ${MKDIR} src/github.com/${PORTNAME}/${PORTNAME} ; \
2015-06-27 16:54:25 +02:00
${MV} .gitattributes .gitignore .mailmap AUTHORS CONDUCT.md \
2016-02-15 23:57:14 +01:00
CONTRIBUTING.md Godeps LICENSE NICKS README.md appveyor.yaml \
assets build.go build.sh cmd debian etc gui lib man script test \
2015-06-27 16:54:25 +02:00
src/github.com/${PORTNAME}/${PORTNAME}
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>