shells/bash-completion-zfs: New port: bash completion rules for zfs and zpool commands
This commit is contained in:
@@ -8,6 +8,7 @@
|
||||
SUBDIR += bash
|
||||
SUBDIR += bash-completion
|
||||
SUBDIR += bash-completion-freebsd
|
||||
SUBDIR += bash-completion-zfs
|
||||
SUBDIR += bash-static
|
||||
SUBDIR += bashc
|
||||
SUBDIR += bicon
|
||||
|
||||
@@ -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>
|
||||
@@ -0,0 +1,3 @@
|
||||
TIMESTAMP = 1742326449
|
||||
SHA256 (zfs.in) = 64ad7c694d55bb82480ac68001e5bdba3202332157d421a420296bebf946a353
|
||||
SIZE (zfs.in) = 15150
|
||||
@@ -0,0 +1 @@
|
||||
OpenZFS extension to the Bash completion library
|
||||
Reference in New Issue
Block a user