blob: 18a9f9f052519e25405bf6d23afcc767d68afaa4 (
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
29
|
PORTNAME= kopia
DISTVERSIONPREFIX= v
DISTVERSION= 0.16.1
PORTREVISION= 3
CATEGORIES= sysutils
MAINTAINER= eduardo@FreeBSD.org
COMMENT= Fast and secure open-source backup/restore tool
WWW= https://kopia.io/
LICENSE= APACHE20
LICENSE_FILE= ${WRKSRC}/LICENSE
USES= go:1.21,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>
|