blob: 23c792b565ce9b1c4f4bef31eb3826044161a384 (
plain)
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
53
54
55
56
|
PORTNAME= syncthing
PORTVERSION= 1.13.1
DISTVERSIONPREFIX= v
CATEGORIES= net
MASTER_SITES= https://github.com/syncthing/syncthing/releases/download/v${PORTVERSION}/
DISTNAME= ${PORTNAME}-source-${DISTVERSIONPREFIX}${PORTVERSION}
DISTFILES= ${DISTNAME}${EXTRACT_SUFX}
MAINTAINER= swills@FreeBSD.org
COMMENT= Encrypted file sync tool
LICENSE= MPL20
LICENSE_FILE= ${WRKSRC}/${PORTNAME}/LICENSE
USES= go
USE_RC_SUBR= syncthing syncthing-discosrv syncthing-relaysrv syncthing-relaypoolsrv
BINS= syncthing stdiscosrv strelaysrv strelaypoolsrv
.for x in ${BINS}
PLIST_FILES+= bin/${x}
.endfor
PORTDOCS= *
USERS= syncthing
GROUPS= syncthing
# Anonymize
MAKE_ENV+= BUILD_USER=ports BUILD_HOST=freebsd
OPTIONS_DEFINE= DOCS
NO_WRKSUBDIR= yes
do-build:
@( cd ${WRKSRC}/${PORTNAME} ; \
${SETENV} ${MAKE_ENV} CGO_ENABLED=0 GOFLAGS="-mod=vendor" go run build.go -version v${PORTVERSION} -no-upgrade build ; \
${SETENV} ${MAKE_ENV} CGO_ENABLED=0 GOFLAGS="-mod=vendor" go run build.go -version v${PORTVERSION} -no-upgrade build stdiscosrv ; \
${SETENV} ${MAKE_ENV} CGO_ENABLED=0 GOFLAGS="-mod=vendor" go run build.go -version v${PORTVERSION} -no-upgrade build strelaysrv ; \
${SETENV} ${MAKE_ENV} CGO_ENABLED=0 GOFLAGS="-mod=vendor" go run build.go -version v${PORTVERSION} -no-upgrade build strelaypoolsrv ; \
)
do-install:
.for x in ${BINS}
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME}/${x} \
${STAGEDIR}${PREFIX}/bin/
.endfor
${MKDIR} ${STAGEDIR}${DOCSDIR}
.for x in AUTHORS LICENSE README.md
${INSTALL_DATA} ${WRKSRC}/${PORTNAME}/${x} \
${STAGEDIR}${DOCSDIR}
.endfor
.include <bsd.port.mk>
|