Date: Tue, 22 Jun 2021 18:34:49 GMT From: Kirill Ponomarev <krion@FreeBSD.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org Subject: git: 667772286cef - main - sysutils/py-salt: install zsh and bash completion files Message-ID: <202106221834.15MIYnsT014939@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by krion: URL: https://cgit.FreeBSD.org/ports/commit/?id=667772286cef83ac5592d3adf7267e51c5f3f2cf commit 667772286cef83ac5592d3adf7267e51c5f3f2cf Author: Kirill Ponomarev <krion@FreeBSD.org> AuthorDate: 2021-06-22 18:32:49 +0000 Commit: Kirill Ponomarev <krion@FreeBSD.org> CommitDate: 2021-06-22 18:34:46 +0000 sysutils/py-salt: install zsh and bash completion files Approved by: maintainer --- sysutils/py-salt/Makefile | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/sysutils/py-salt/Makefile b/sysutils/py-salt/Makefile index f8666be6b742..8ae87d94e147 100644 --- a/sysutils/py-salt/Makefile +++ b/sysutils/py-salt/Makefile @@ -2,6 +2,7 @@ PORTNAME= salt PORTVERSION= 3002.6 +PORTREVISION= 1 CATEGORIES= sysutils python MASTER_SITES= CHEESESHOP PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} @@ -60,8 +61,8 @@ SUB_FILES= pkg-message # Upstream archive contains files with UTF-8 names EXTRACT_CMD= ${SETENV} LC_ALL=en_US.UTF-8 /usr/bin/bsdtar -OPTIONS_DEFINE= AWS TCP ZEROMQ -OPTIONS_DEFAULT=ZEROMQ +OPTIONS_DEFINE= AWS BASH TCP ZEROMQ ZSH +OPTIONS_DEFAULT= BASH ZEROMQ ZSH AWS_DESC= Install dependencies required for Amazon Web Services TCP_DESC= Install dependencies required for TCP transport @@ -78,6 +79,9 @@ ZEROMQ_BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pyzmq>=2.2.0:net/py-pyzmq@${PY_FLAV ZEROMQ_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pyzmq>=2.2.0:net/py-pyzmq@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}pycryptodomex>=3.9.7:security/py-pycryptodomex@${PY_FLAVOR} +BASH_PLIST_FILES= share/bash-completion/completions/salt +ZSH_PLIST_FILES= share/zsh/site-functions/_salt + post-patch: .for file in conf/minion conf/master doc/man/salt-key.1 \ doc/man/salt-cp.1 doc/man/salt-minion.1 doc/man/salt-syndic.1 \ @@ -89,6 +93,16 @@ post-patch: .endfor @${REINPLACE_CMD} -e 's|yumpkg5|pkgng|' ${WRKSRC}/conf/minion +do-install-BASH-on: + @${MKDIR} ${STAGEDIR}${PREFIX}/share/bash-completion/completions/ + ${INSTALL_DATA} ${WRKSRC}/pkg/salt.bash \ + ${STAGEDIR}${PREFIX}/share/bash-completion/completions/salt + +do-install-ZSH-on: + @${MKDIR} ${STAGEDIR}${PREFIX}/share/zsh/site-functions + ${INSTALL_DATA} ${WRKSRC}/pkg/zsh_completion.zsh \ + ${STAGEDIR}${PREFIX}/share/zsh/site-functions/_salt + post-install: @${MKDIR} ${STAGEDIR}${ETCDIR} ${INSTALL_DATA} ${WRKSRC}/conf/master ${STAGEDIR}${ETCDIR}/master.sample
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202106221834.15MIYnsT014939>