1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-20 04:02:27 +00:00

sysutils/ansible-*: Switch to USES=ansibe

Approved by:	portmgr blanket (infrastructure changes)
This commit is contained in:
Mateusz Piotrowski 2021-05-17 21:18:08 +02:00
parent 7ad2591434
commit 33ac74eacd
3 changed files with 13 additions and 22 deletions

View File

@ -10,9 +10,7 @@ COMMENT= Ansible module for iocage
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}ansible>0:sysutils/ansible@${PY_FLAVOR}
USES= python shebangfix
USES= ansible:module python shebangfix
USE_GITHUB= yes
GH_ACCOUNT= fractalcells
GH_TAGNAME= 0f0b5e6e5df45b653ed8c512207cb4cc2f58f82d
@ -21,16 +19,15 @@ SHEBANG_FILES= iocage
NO_ARCH= yes
NO_BUILD= yes
_ANSIBLE_MOD= share/${PYTHON_PKGNAMEPREFIX}ansible/plugins/modules
PLIST_FILES= ${_ANSIBLE_MOD}/iocage
PLIST_FILES= ${ANSIBLE_MODULESDIR}/iocage
PORTDOCS= README.md
OPTIONS_DEFINE= DOCS
do-install:
${MKDIR} ${STAGEDIR}${PREFIX}/${_ANSIBLE_MOD}
${MKDIR} ${STAGEDIR}${ANSIBLE_MODULESDIR}
${INSTALL_SCRIPT} ${WRKSRC}/iocage \
${STAGEDIR}${PREFIX}/${_ANSIBLE_MOD}/iocage
${STAGEDIR}${ANSIBLE_MODULESDIR}/iocage
post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}

View File

@ -12,9 +12,7 @@ COMMENT?= Ansible module to load kernel modules or update /boot/loader.conf
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}ansible>0:sysutils/ansible@${PY_FLAVOR}
USES= python shebangfix
USES= ansible:module python shebangfix
USE_GITHUB= yes
GH_ACCOUNT= dlundgren
@ -26,13 +24,12 @@ NO_ARCH= yes
NO_BUILD= yes
_LIBRARY?= kld
_ANSIBLE_MOD= share/${PYTHON_PKGNAMEPREFIX}ansible/plugins/modules
PLIST_FILES= ${_ANSIBLE_MOD}/${_LIBRARY}
PLIST_FILES= ${ANSIBLE_MODULESDIR}/${_LIBRARY}
do-install:
${MKDIR} ${STAGEDIR}${PREFIX}/${_ANSIBLE_MOD}
${MKDIR} ${STAGEDIR}${ANSIBLE_MODULESDIR}
${INSTALL_SCRIPT} ${WRKSRC}/library/${_LIBRARY} \
${STAGEDIR}${PREFIX}/${_ANSIBLE_MOD}/${_LIBRARY}
${STAGEDIR}${ANSIBLE_MODULESDIR}/${_LIBRARY}
.include <bsd.port.mk>

View File

@ -9,9 +9,8 @@ COMMENT= Ansible connector for remote jails
LICENSE= MIT
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}ansible>0:sysutils/ansible@${PY_FLAVOR}
USES= python
USES= ansible:plugin python
ANSIBLE_PLUGIN_TYPE= connection
USE_GITHUB= yes
GH_ACCOUNT= austinhyde
@ -19,13 +18,11 @@ GH_ACCOUNT= austinhyde
NO_ARCH= yes
NO_BUILD= yes
ANSIBLE_MOD= share/${PYTHON_PKGNAMEPREFIX}ansible/plugins/connection
PLIST_FILES= ${ANSIBLE_MOD}/sshjail.py
PLIST_FILES= ${ANSIBLE_PLUGINSDIR}/sshjail.py
do-install:
${MKDIR} ${STAGEDIR}${PREFIX}/${ANSIBLE_MOD}
${MKDIR} ${STAGEDIR}/${ANSIBLE_PLUGINSDIR}
${INSTALL_SCRIPT} ${WRKSRC}/sshjail.py \
${STAGEDIR}${PREFIX}/${ANSIBLE_MOD}/sshjail.py
${STAGEDIR}/${ANSIBLE_PLUGINSDIR}/sshjail.py
.include <bsd.port.mk>