pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
restic: Include shell completion files in package
Module Name: pkgsrc-wip
Committed By: Iku Iwasa <iku.iwasa%gmail.com@localhost>
Pushed By: iquiw
Date: Tue Feb 11 16:47:10 2020 +0900
Changeset: da22af3074f1bbbfcd24943a2d0d35b1d422a7d7
Modified Files:
restic/Makefile
restic/PLIST
Log Message:
restic: Include shell completion files in package
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=da22af3074f1bbbfcd24943a2d0d35b1d422a7d7
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
restic/Makefile | 10 ++++++++--
restic/PLIST | 2 ++
2 files changed, 10 insertions(+), 2 deletions(-)
diffs:
diff --git a/restic/Makefile b/restic/Makefile
index 17023dd48c..7368a7ac10 100644
--- a/restic/Makefile
+++ b/restic/Makefile
@@ -1,7 +1,7 @@
# $NetBSD$
PKGNAME= restic-0.9.6
-PKGREVISION= 3
+PKGREVISION= 4
DISTNAME= restic-${GITHUB_TAG}
CATEGORIES= sysutils
MASTER_SITES= ${MASTER_SITE_GITHUB:=restic/}
@@ -18,10 +18,16 @@ EXTRACT_USING= bsdtar
GO_DIST_BASE= ${GITHUB_PROJECT}-${PKGVERSION_NOREV}
GO_SRCPATH= github.com/restic/restic/
-INSTALLATION_DIRS+= bin ${PKGMANDIR}/man1
+INSTALLATION_DIRS+= bin ${PKGMANDIR}/man1 \
+ share/bash-completion/completions \
+ share/zsh/site-functions
do-install:
${INSTALL_PROGRAM} ${WRKDIR}/bin/restic ${DESTDIR}${PREFIX}/bin
+ ${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
diff --git a/restic/PLIST b/restic/PLIST
index 7cd4c26c7a..36013a9fdd 100644
--- a/restic/PLIST
+++ b/restic/PLIST
@@ -26,3 +26,5 @@ man/man1/restic-tag.1
man/man1/restic-unlock.1
man/man1/restic-version.1
man/man1/restic.1
+share/bash-completion/completions/restic
+share/zsh/site-functions/_restic
Home |
Main Index |
Thread Index |
Old Index