2022-05-11 21:26:18 +02:00
|
|
|
# $NetBSD: Makefile,v 1.17 2022/05/11 19:26:25 bsiegert Exp $
|
2021-01-31 20:52:07 +01:00
|
|
|
|
2021-10-27 07:58:38 +02:00
|
|
|
PKGNAME= restic-0.12.1
|
2022-05-11 21:26:18 +02:00
|
|
|
PKGREVISION= 7
|
2021-01-31 20:52:07 +01:00
|
|
|
DISTNAME= restic-${GITHUB_TAG}
|
|
|
|
CATEGORIES= sysutils
|
|
|
|
MASTER_SITES= ${MASTER_SITE_GITHUB:=restic/}
|
|
|
|
GITHUB_PROJECT= restic
|
|
|
|
GITHUB_TAG= v${PKGVERSION_NOREV}
|
|
|
|
|
|
|
|
MAINTAINER= iku.iwasa@gmail.com
|
|
|
|
HOMEPAGE= https://restic.net/
|
|
|
|
COMMENT= Fast, secure, efficient backup program
|
|
|
|
LICENSE= mit
|
|
|
|
|
|
|
|
EXTRACT_USING= bsdtar
|
|
|
|
|
|
|
|
GO_BUILD_PATTERN= ./cmd/restic
|
|
|
|
|
2021-10-11 13:16:41 +02:00
|
|
|
INSTALLATION_DIRS+= ${PKGMANDIR}/man1 \
|
2021-01-31 20:52:07 +01:00
|
|
|
share/bash-completion/completions \
|
|
|
|
share/zsh/site-functions
|
|
|
|
|
|
|
|
.include "go-modules.mk"
|
|
|
|
|
2021-10-11 13:16:41 +02:00
|
|
|
post-install:
|
2021-01-31 20:52:07 +01:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/bash-completion.sh \
|
|
|
|
${DESTDIR}${PREFIX}/share/bash-completion/completions/restic
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/zsh-completion.zsh \
|
|
|
|
${DESTDIR}${PREFIX}/share/zsh/site-functions/_restic
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/doc/man/restic-backup.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/doc/man/restic-cache.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/doc/man/restic-cat.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/doc/man/restic-check.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/doc/man/restic-diff.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/doc/man/restic-dump.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/doc/man/restic-find.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/doc/man/restic-forget.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/doc/man/restic-generate.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/doc/man/restic-init.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/doc/man/restic-key.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/doc/man/restic-list.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/doc/man/restic-ls.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/doc/man/restic-migrate.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/doc/man/restic-mount.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/doc/man/restic-prune.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/doc/man/restic-rebuild-index.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/doc/man/restic-recover.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/doc/man/restic-restore.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/doc/man/restic-self-update.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/doc/man/restic-snapshots.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/doc/man/restic-stats.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/doc/man/restic-tag.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/doc/man/restic-unlock.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/doc/man/restic-version.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/doc/man/restic.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
|
|
|
|
|
|
|
|
.include "../../lang/go/go-module.mk"
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|