aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils/restic/Makefile
blob: a0583610058aab526e7221f6c16126cba6cc21c8 (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
# $FreeBSD$

PORTNAME=   restic
PORTVERSION=    0.4.0
DISTVERSIONPREFIX=  v
CATEGORIES= sysutils

MAINTAINER= wg@FreeBSD.org
COMMENT=    Restic backup program

LICENSE=    BSD2CLAUSE

USES=       go
USE_GITHUB= yes

STRIP=      # stripping can break go binaries
PLIST_FILES=    bin/restic

do-build:
    @(cd ${GO_WRKSRC}; ${SETENV} ${MAKE_ENV} ${GO_ENV} ${GO_CMD} run build.go)

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}

.include <bsd.port.mk>