blob: 123c4288908f38033e51eb64b337bc20340c0e09 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
# Created by: Steve Wills <swills@FreeBSD.org>
# $FreeBSD$
PORTNAME= syncthing-cli
PORTVERSION= 0.1.0.2015070301
CATEGORIES= net
MAINTAINER= swills@FreeBSD.org
COMMENT= Syncthing CLI
BUILD_DEPENDS= ${LOCALBASE}/bin/go:${PORTSDIR}/lang/go
USE_GITHUB= yes
GH_ACCOUNT= syncthing AudriusButkevicius:audrius
GH_PROJECT= syncthing:st cli:audrius
GH_TAGNAME= 2707f77 v${SYNCTHING_VER}:st 7f561c7:audrius
SYNCTHING_VER= 0.11.16
PLIST_FILES= bin/syncthing-cli
STRIP= # stripping can break go binaries
post-patch:
@${MKDIR} ${WRKSRC}/src/github.com/syncthing
@${MKDIR} ${WRKSRC}/src/github.com/AudriusButkevicius
@${MKDIR} ${WRKSRC}/src/code.google.com/p
@${MKDIR} ${WRKSRC}/src/golang.org/x
@${MKDIR} ${WRKSRC}/src/github.com/bkaradzic
@${MV} ${WRKSRC_audrius} \
${WRKSRC}/src/github.com/AudriusButkevicius/cli
@${MV} ${WRKSRC_st}/Godeps/_workspace/src/golang.org/x/crypto \
${WRKSRC}/src/golang.org/x
@${MV} ${WRKSRC_st}/Godeps/_workspace/src/golang.org/x/text \
${WRKSRC}/src/golang.org/x
@${MV} ${WRKSRC_st}/Godeps/_workspace/src/github.com/bkaradzic/go-lz4 \
${WRKSRC}/src/github.com/bkaradzic
@${MV} ${WRKSRC_st}/Godeps/_workspace/src/github.com/calmh \
${WRKSRC}/src/github.com/calmh
@${MV} ${WRKSRC_st} \
${WRKSRC}/src/github.com/syncthing/syncthing
@${MV} ${WRKSRC}/src/github.com/syncthing/syncthing/Godeps/_workspace/src/github.com/syncthing/protocol \
${WRKSRC}/src/github.com/syncthing/protocol
do-build:
@cd ${WRKSRC} ; ${SETENV} GOPATH=${WRKSRC} go build
@${MV} ${WRKSRC}/syncthing-cli-${GH_TAGNAME} ${WRKSRC}/syncthing-cli
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/syncthing-cli ${STAGEDIR}${PREFIX}/bin/
.include <bsd.port.mk>
|