aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sysutils/py-salt/Makefile18
1 files 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