Skip to content

Commit

Permalink
sysutils/ansible-*: Switch to USES=ansibe
Browse files Browse the repository at this point in the history
Approved by:	portmgr blanket (infrastructure changes)
  • Loading branch information
0mp committed May 17, 2021
1 parent 7ad2591 commit 33ac74e
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 22 deletions.
11 changes: 4 additions & 7 deletions sysutils/ansible-iocage/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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}
Expand Down
11 changes: 4 additions & 7 deletions sysutils/ansible-kld/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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>
13 changes: 5 additions & 8 deletions sysutils/ansible-sshjail/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,23 +9,20 @@ 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

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>

0 comments on commit 33ac74e

Please sign in to comment.