|
Lines 1-39
Link Here
|
| 1 |
# $FreeBSD$ |
1 |
# $FreeBSD$ |
| 2 |
|
2 |
|
| 3 |
PORTNAME= restic |
3 |
PORTNAME= restic |
| 4 |
PORTVERSION= 0.1.0 |
4 |
PORTVERSION= 0.3.3 |
| 5 |
PORTREVISION= 1 |
|
|
| 6 |
DISTVERSIONPREFIX= v |
5 |
DISTVERSIONPREFIX= v |
| 7 |
CATEGORIES= sysutils |
6 |
CATEGORIES= sysutils |
| 8 |
|
7 |
|
| 9 |
MAINTAINER= wg@FreeBSD.org |
8 |
MAINTAINER= wg@FreeBSD.org |
| 10 |
COMMENT= Restic backup program |
9 |
COMMENT= Restic backup program |
| 11 |
|
10 |
|
| 12 |
BUILD_DEPENDS= ${LOCALBASE}/bin/go:lang/go |
11 |
LICENSE= BSD2CLAUSE |
| 13 |
|
|
|
| 14 |
BROKEN= fails to build |
| 15 |
|
12 |
|
|
|
13 |
USES= go |
| 16 |
USE_GITHUB= yes |
14 |
USE_GITHUB= yes |
| 17 |
GH_TUPLE= restic:chunker:16a28ff:chunker/src/github.com/restic/chunker \ |
|
|
| 18 |
juju:errors:1b5e39b:errors/src/github.com/juju/errors \ |
| 19 |
golang:crypto:74f810a:crypto/src/golang.org/x/crypto |
| 20 |
|
15 |
|
| 21 |
STRIP= # stripping can break go binaries |
16 |
STRIP= # stripping can break go binaries |
| 22 |
|
17 |
|
| 23 |
# Seems to build even less when using |
|
|
| 24 |
# GH_SUBDIR=/src/github.com/${GH_ACCOUNT}/${PORTNAME} instead of this |
| 25 |
# post-extract thing: |
| 26 |
post-extract: |
| 27 |
@${MKDIR} ${WRKSRC}/src/github.com/${GH_ACCOUNT}/${PORTNAME} |
| 28 |
.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 |
| 29 |
@${MV} ${WRKSRC}/${src} \ |
| 30 |
${WRKSRC}/src/github.com/restic/${PORTNAME} |
| 31 |
.endfor |
| 32 |
|
| 33 |
do-build: |
18 |
do-build: |
| 34 |
@cd ${WRKSRC}/src/github.com/${GH_ACCOUNT}/${PORTNAME}; ${SETENV} GOPATH=${WRKSRC} go run build.go |
19 |
@(cd ${GO_WRKSRC}; ${SETENV} ${MAKE_ENV} ${GO_ENV} ${GO_CMD} run build.go) |
| 35 |
|
20 |
|
| 36 |
do-install: |
21 |
do-install: |
| 37 |
${INSTALL_PROGRAM} ${WRKSRC}/src/github.com/${GH_ACCOUNT}/${PORTNAME}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/${PORTNAME} |
22 |
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/${PORTNAME} |
| 38 |
|
23 |
|
| 39 |
.include <bsd.port.mk> |
24 |
.include <bsd.port.mk> |