diff options
author | Vladimir Druzenko <vvd@FreeBSD.org> | 2025-03-20 19:10:11 +0300 |
---|---|---|
committer | Vladimir Druzenko <vvd@FreeBSD.org> | 2025-03-20 19:10:11 +0300 |
commit | b55f7e3d81a8ac2d4c85746f1820a32ccda17d68 (patch) | |
tree | 59f14a740c65a38d09b24a620250eae45cee3a46 /shells/bash-completion-zfs | |
parent | net/haproxy: update to version 3.0.9. (diff) |
shells/bash-completion-zfs: New port: bash completion rules for zfs and zpool commands
Diffstat (limited to 'shells/bash-completion-zfs')
-rw-r--r-- | shells/bash-completion-zfs/Makefile | 33 | ||||
-rw-r--r-- | shells/bash-completion-zfs/distinfo | 3 | ||||
-rw-r--r-- | shells/bash-completion-zfs/pkg-descr | 1 |
3 files changed, 37 insertions, 0 deletions
diff --git a/shells/bash-completion-zfs/Makefile b/shells/bash-completion-zfs/Makefile new file mode 100644 index 000000000000..731b3ed6a8a2 --- /dev/null +++ b/shells/bash-completion-zfs/Makefile @@ -0,0 +1,33 @@ +PORTNAME= bash-completion-zfs +DISTVERSION= 2.3.1 +CATEGORIES= shells +# Use direct link to 15KB file instead of 30+MB tarball: +# https://github.com/openzfs/zfs/releases/download/zfs-${DISTVERSION}/zfs-${DISTVERSION}.tar.gz +MASTER_SITES= https://raw.githubusercontent.com/openzfs/zfs/refs/tags/zfs-${DISTVERSION}/contrib/bash_completion.d/ +DISTFILES= zfs.in + +MAINTAINER= vvd@FreeBSD.org +COMMENT= OpenZFS extension to the Bash completion library +WWW= https://github.com/openzfs/zfs/ + +LICENSE= MIT + +EXTRACT_CMD= ${CP} +EXTRACT_BEFORE_ARGS= # +EXTRACT_AFTER_ARGS= ${WRKSRC} + +NO_ARCH= yes +NO_BUILD= yes +NO_WRKSUBDIR= yes + +PLIST_FILES= etc/bash_completion.d/zfs + +post-patch: + ${REINPLACE_CMD} -e 's|@sbindir@|/sbin|g' ${WRKSRC}/${DISTFILES} + +do-install: + ${MKDIR} ${STAGEDIR}${PREFIX}/etc/bash_completion.d + ${INSTALL_DATA} ${WRKSRC}/${DISTFILES} \ + ${STAGEDIR}${PREFIX}/etc/bash_completion.d/zfs + +.include <bsd.port.mk> diff --git a/shells/bash-completion-zfs/distinfo b/shells/bash-completion-zfs/distinfo new file mode 100644 index 000000000000..d341d8b90317 --- /dev/null +++ b/shells/bash-completion-zfs/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1742326449 +SHA256 (zfs.in) = 64ad7c694d55bb82480ac68001e5bdba3202332157d421a420296bebf946a353 +SIZE (zfs.in) = 15150 diff --git a/shells/bash-completion-zfs/pkg-descr b/shells/bash-completion-zfs/pkg-descr new file mode 100644 index 000000000000..2163a944c5be --- /dev/null +++ b/shells/bash-completion-zfs/pkg-descr @@ -0,0 +1 @@ +OpenZFS extension to the Bash completion library |