2014-08-15 04:22:01 +02:00
|
|
|
# Created by: Steve Wills <swills@FreeBSD.org>
|
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= syncthing-cli
|
2015-10-04 17:04:30 +02:00
|
|
|
PORTVERSION= 0.1.0.2015092201
|
2014-08-15 04:22:01 +02:00
|
|
|
CATEGORIES= net
|
|
|
|
|
|
|
|
MAINTAINER= swills@FreeBSD.org
|
|
|
|
COMMENT= Syncthing CLI
|
|
|
|
|
2016-04-01 16:16:16 +02:00
|
|
|
BUILD_DEPENDS= go>=1.5:lang/go
|
2014-08-15 04:22:01 +02:00
|
|
|
|
2015-05-07 19:26:05 +02:00
|
|
|
USE_GITHUB= yes
|
2015-10-04 17:04:30 +02:00
|
|
|
GH_ACCOUNT= syncthing
|
|
|
|
GH_TAGNAME= 9594d39
|
2014-11-04 03:02:03 +01:00
|
|
|
|
2014-08-15 04:22:01 +02:00
|
|
|
PLIST_FILES= bin/syncthing-cli
|
|
|
|
|
2014-12-10 04:05:15 +01:00
|
|
|
STRIP= # stripping can break go binaries
|
|
|
|
|
2014-08-15 04:22:01 +02:00
|
|
|
do-build:
|
2015-10-04 17:04:30 +02:00
|
|
|
@cd ${WRKSRC} ; ${SETENV} GOPATH=${WRKSRC}/Godeps/_workspace:${WRKSRC} go build
|
2015-05-07 19:26:05 +02:00
|
|
|
@${MV} ${WRKSRC}/syncthing-cli-${GH_TAGNAME} ${WRKSRC}/syncthing-cli
|
2014-08-15 04:22:01 +02:00
|
|
|
|
|
|
|
do-install:
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/syncthing-cli ${STAGEDIR}${PREFIX}/bin/
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|