edd 88cac83799 Update net/syncthing to version 1.1.4.
Also improve the pkg README.

Tested by Paco Esteban. OK bket@. Thanks!
2019-06-29 14:05:19 +00:00

45 lines
1.0 KiB
Makefile

# $OpenBSD: Makefile,v 1.27 2019/06/29 14:05:19 edd Exp $
COMMENT = open decentralized synchronization utility
V = 1.1.4
DISTNAME = syncthing-${V}
DISTFILES = syncthing-source-v${V}${EXTRACT_SUFX}
CATEGORIES = net
HOMEPAGE = https://syncthing.net/
MAINTAINER = Edd Barrett <edd@openbsd.org>
# MPL 2.0
PERMIT_PACKAGE = Yes
WANTLIB += c pthread
MASTER_SITES = https://github.com/syncthing/syncthing/releases/download/v${V}/
WRKDIST = ${WRKDIR}/syncthing
WRKSRC = ${WRKDIR}/go/src/github.com/syncthing/syncthing
SUBST_VARS += VARBASE
MODULES = lang/go
MODGO_TYPE = bin
do-build:
cd ${WRKSRC} && ${MODGO_CMD} run build.go \
-version v${V} -no-upgrade
# A couple of test failures caused by a bug in the test suite (but not in
# Syncthing itself):
# https://github.com/syncthing/syncthing/issues/5796#issuecomment-502473144
do-test:
cd ${WRKSRC} && ${MODGO_CMD} run build.go test
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/bin/* ${PREFIX}/bin/
.for sec in 1 5 7
${INSTALL_MAN} ${WRKSRC}/man/*.${sec} ${PREFIX}/man/man${sec}/
.endfor
.include <bsd.port.mk>