aboutsummaryrefslogtreecommitdiff
path: root/sysutils/restic
diff options
context:
space:
mode:
authorWilliam Grzybowski <wg@FreeBSD.org>2017-01-24 12:38:51 +0000
committerWilliam Grzybowski <wg@FreeBSD.org>2017-01-24 12:38:51 +0000
commit8a6cb95972b832d736cbfdebfd0d1a024fb2f865 (patch)
tree9478dca1d675e3b8574c74e466d781eebba3f254 /sysutils/restic
parent6a3468d2964cf508857f8318a3582309b5b6edac (diff)
downloadports-8a6cb95972b832d736cbfdebfd0d1a024fb2f865.tar.gz
ports-8a6cb95972b832d736cbfdebfd0d1a024fb2f865.zip
Notes
Diffstat (limited to 'sysutils/restic')
-rw-r--r--sysutils/restic/Makefile25
-rw-r--r--sysutils/restic/distinfo11
2 files changed, 8 insertions, 28 deletions
diff --git a/sysutils/restic/Makefile b/sysutils/restic/Makefile
index 689167e3ae95..9d22d657d604 100644
--- a/sysutils/restic/Makefile
+++ b/sysutils/restic/Makefile
@@ -1,39 +1,24 @@
# $FreeBSD$
PORTNAME= restic
-PORTVERSION= 0.1.0
-PORTREVISION= 1
+PORTVERSION= 0.3.3
DISTVERSIONPREFIX= v
CATEGORIES= sysutils
MAINTAINER= wg@FreeBSD.org
COMMENT= Restic backup program
-BUILD_DEPENDS= ${LOCALBASE}/bin/go:lang/go
-
-BROKEN= fails to build
+LICENSE= BSD2CLAUSE
+USES= go
USE_GITHUB= yes
-GH_TUPLE= restic:chunker:16a28ff:chunker/src/github.com/restic/chunker \
- juju:errors:1b5e39b:errors/src/github.com/juju/errors \
- golang:crypto:74f810a:crypto/src/golang.org/x/crypto
STRIP= # stripping can break go binaries
-# Seems to build even less when using
-# GH_SUBDIR=/src/github.com/${GH_ACCOUNT}/${PORTNAME} instead of this
-# post-extract thing:
-post-extract:
- @${MKDIR} ${WRKSRC}/src/github.com/${GH_ACCOUNT}/${PORTNAME}
-.for src in CONTRIBUTING.md Godeps LICENSE Makefile README.md VERSION Vagrantfile appveyor.yml archiver.go archiver_int_test.go archiver_test.go backend build.go cache.go cache_test.go checker cmd crypto debug doc doc.go filter fuse lock.go lock_test.go lock_unix.go lock_windows.go node.go node_darwin.go node_freebsd.go node_linux.go node_openbsd.go node_test.go node_unix.go node_windows.go pack pipe progress.go repository restorer.go run_integration_tests.go run_tests.go snapshot.go snapshot_test.go test tree.go tree_test.go walk.go walk_test.go
- @${MV} ${WRKSRC}/${src} \
- ${WRKSRC}/src/github.com/restic/${PORTNAME}
-.endfor
-
do-build:
- @cd ${WRKSRC}/src/github.com/${GH_ACCOUNT}/${PORTNAME}; ${SETENV} GOPATH=${WRKSRC} go run build.go
+ @(cd ${GO_WRKSRC}; ${SETENV} ${MAKE_ENV} ${GO_ENV} ${GO_CMD} run build.go)
do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/src/github.com/${GH_ACCOUNT}/${PORTNAME}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
+ ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
.include <bsd.port.mk>
diff --git a/sysutils/restic/distinfo b/sysutils/restic/distinfo
index 060878467313..a8cb92ff07a2 100644
--- a/sysutils/restic/distinfo
+++ b/sysutils/restic/distinfo
@@ -1,8 +1,3 @@
-SHA256 (restic-restic-v0.1.0_GH0.tar.gz) = df7842cb690a56ce5371013a958d9f324072429897511d4bbfc092d76303f198
-SIZE (restic-restic-v0.1.0_GH0.tar.gz) = 13368404
-SHA256 (restic-chunker-16a28ff_GH0.tar.gz) = e5028b6fbc39997cf8ac6ba81025681228ddb1d80558a9acd6c2f10a0051c3cc
-SIZE (restic-chunker-16a28ff_GH0.tar.gz) = 12241
-SHA256 (juju-errors-1b5e39b_GH0.tar.gz) = bf7ec9986aa03ad916f88e96c3860b8c7fb2705ed760f72f4149a6fc2341d53d
-SIZE (juju-errors-1b5e39b_GH0.tar.gz) = 15611
-SHA256 (golang-crypto-74f810a_GH0.tar.gz) = 25e0c9cb7c6d6a5935aa318c9792fa6e18c8e0238994b5be039f90c8d58fd680
-SIZE (golang-crypto-74f810a_GH0.tar.gz) = 864642
+TIMESTAMP = 1483974957
+SHA256 (restic-restic-v0.3.3_GH0.tar.gz) = e98da8f712ae0f33e0d1e5e36cbd130ed15dc7bd42e73a33754b6b4f0322177d
+SIZE (restic-restic-v0.3.3_GH0.tar.gz) = 22919640