diff --git a/shells/Makefile b/shells/Makefile index ae7161c178cf..50696157abf9 100644 --- a/shells/Makefile +++ b/shells/Makefile @@ -1,83 +1,84 @@ COMMENT = Shells SUBDIR += 44bsd-csh SUBDIR += anongitssh SUBDIR += antibody SUBDIR += ast-ksh SUBDIR += atuin SUBDIR += bash SUBDIR += bash-completion SUBDIR += bash-completion-freebsd + SUBDIR += bash-completion-zfs SUBDIR += bash-static SUBDIR += bashc SUBDIR += bicon SUBDIR += bosh SUBDIR += carapace SUBDIR += ch SUBDIR += dash SUBDIR += elvish SUBDIR += envy SUBDIR += es SUBDIR += etsh SUBDIR += fd SUBDIR += fish SUBDIR += git-prompt.zsh SUBDIR += heirloom-sh SUBDIR += ibsh SUBDIR += ion SUBDIR += jailkit SUBDIR += klish SUBDIR += ksh SUBDIR += ksh-devel SUBDIR += ksh93 SUBDIR += libpowershell-native SUBDIR += mksh SUBDIR += modernish SUBDIR += murex SUBDIR += nologinmsg SUBDIR += nsh SUBDIR += nu_plugin_formats SUBDIR += nu_plugin_gstat SUBDIR += nu_plugin_inc SUBDIR += nu_plugin_polars SUBDIR += nu_plugin_query SUBDIR += nushell SUBDIR += ohmyzsh SUBDIR += oil SUBDIR += oksh SUBDIR += p5-Bash-Completion SUBDIR += p5-Shell-Perl SUBDIR += p5-Term-Bash-Completion-Generator SUBDIR += p5-Term-ShellUI SUBDIR += pdksh SUBDIR += pear-PHP_Shell SUBDIR += powershell SUBDIR += psh SUBDIR += rc SUBDIR += rubygem-shellwords SUBDIR += rush SUBDIR += sash SUBDIR += schemesh SUBDIR += scponly SUBDIR += sheldon SUBDIR += shell-hist SUBDIR += shellharden SUBDIR += starship SUBDIR += switchBashZsh SUBDIR += tcshrc SUBDIR += v7sh SUBDIR += viewglob SUBDIR += vshnu SUBDIR += wcd SUBDIR += xonsh SUBDIR += yash SUBDIR += zsh SUBDIR += zsh-antigen SUBDIR += zsh-autosuggestions SUBDIR += zsh-completions SUBDIR += zsh-fast-syntax-highlighting SUBDIR += zsh-navigation-tools SUBDIR += zsh-syntax-highlighting SUBDIR += zsh-you-should-use .include 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 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