summaryrefslogtreecommitdiff
path: root/sysutils/kopia/Makefile
blob: bc276a44027e219e1a09b90eb48859f56ad0bd97 (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
PORTNAME=	kopia
DISTVERSIONPREFIX=	v
DISTVERSION=	0.12.1
PORTREVISION=	6
CATEGORIES=	sysutils

MAINTAINER=	eduardo@FreeBSD.org
COMMENT=	Fast and secure open-source backup/restore tool
WWW=		https://kopia.io/

LICENSE=	APACHE20

USES=		go:modules
GO_MODULE=	github.com/kopia/kopia
GO_BUILDFLAGS=	-ldflags "\
		-X github.com/kopia/kopia/repo.BuildVersion=${DISTVERSION} \
		-X github.com/kopia/kopia/repo.BuildInfo="`date +%Y%m%d`""

PLIST_FILES=	bin/${PORTNAME} \
		share/man/man1/${PORTNAME}.1.gz

post-build:
	${GO_WRKDIR_BIN}/${PORTNAME} --log-dir="" --help-man > ${WRKSRC}/${PORTNAME}.1

post-install:
	${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.1 ${STAGEDIR}${PREFIX}/share/man/man1

.include <bsd.port.mk>