View | Details | Raw Unified | Return to bug 240814 | Differences between
and this patch

Collapse All | Expand All

(-)sysutils/ansible-iocage/Makefile (+36 lines)
Line 0 Link Here
1
# $FreeBSD$
2
3
PORTNAME=	ansible-iocage
4
DISTVERSION=	0.1
5
CATEGORIES=	sysutils
6
PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
7
8
MAINTAINER=	vulcan@wired.sh
9
COMMENT=	Ansible module for iocage
10
11
LICENSE=	MIT
12
LICENSE_FILE=	${WRKSRC}/LICENSE
13
14
RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}ansible>0:sysutils/ansible@${PY_FLAVOR}
15
16
USES=		python shebangfix
17
SHEBANG_FILES=	iocage
18
19
USE_GITHUB=	yes
20
GH_ACCOUNT=	fractalcells
21
GH_PROJECT=	ansible-iocage
22
GH_TAGNAME=	b8114ae6670fefddf0612801fd16030595c24bb2
23
24
NO_ARCH=	yes
25
NO_BUILD=	yes
26
27
ANSIBLE_MOD=	share/${PYTHON_PKGNAMEPREFIX}ansible/plugins/modules
28
29
PLIST_FILES=	${ANSIBLE_MOD}/iocage
30
31
do-install:
32
	${MKDIR} ${STAGEDIR}${PREFIX}/${ANSIBLE_MOD}
33
	${INSTALL_SCRIPT} ${WRKSRC}/iocage \
34
		${STAGEDIR}${PREFIX}/${ANSIBLE_MOD}/iocage
35
36
.include <bsd.port.mk>
(-)sysutils/ansible-iocage/distinfo (+3 lines)
Line 0 Link Here
1
TIMESTAMP = 1569417146
2
SHA256 (fractalcells-ansible-iocage-0.1-b8114ae6670fefddf0612801fd16030595c24bb2_GH0.tar.gz) = 422e32f7cf34266a5b2ba1722d4e316aab2581a0a0087cb844a976f81bed86fd
3
SIZE (fractalcells-ansible-iocage-0.1-b8114ae6670fefddf0612801fd16030595c24bb2_GH0.tar.gz) = 7786
(-)sysutils/ansible-iocage/files/patch-iocage (+27 lines)
Line 0 Link Here
1
See: https://github.com/fractalcells/ansible-iocage/pull/18
2
--- iocage.orig	2019-11-03 14:19:54 UTC
3
+++ iocage
4
@@ -148,10 +148,11 @@ def _get_iocage_facts(module, iocage_path, argument="a
5
                 # non-iocage jails: skip all
6
                 break
7
             elif re.match('(\d+|-)',_jid):
8
-                if l.count('\t') == 10:
9
-                    (_jid,_name,_boot,_state,_type,_release,_ip4,_ip6,_template,_basejail) = l.split('\t')
10
+                _fragments = l.split('\t')
11
+                if len(_fragments) == 10:
12
+                    (_jid,_name,_boot,_state,_type,_release,_ip4,_ip6,_template,_basejail) = _fragments
13
                 else:
14
-                    (_jid,_name,_boot,_state,_type,_release,_ip4,_ip6,_template) = l.split('\t')
15
+                    (_jid,_name,_boot,_state,_type,_release,_ip4,_ip6,_template) = _fragments
16
                 if _name != "":
17
                     _properties = _jail_get_properties(module, iocage_path, _name)
18
                     _jails[_name] = { "jid": _jid, "name": _name, "state": _state, "properties": _properties }
19
@@ -504,7 +505,7 @@ def main():
20
             cmd          = dict(default="", required=False),
21
             clone_from   = dict(default="", required=False),
22
             release      = dict(default="", required=False),
23
-            update       = dict(default="", required=False, type='bool'),
24
+            update       = dict(default=False, required=False, type='bool'),
25
             components   = dict(default="", aliases=["files","component"], required=False, type='list')),
26
         supports_check_mode = True
27
     )
(-)sysutils/ansible-iocage/pkg-descr (+4 lines)
Line 0 Link Here
1
Ansible module for the iocage utility: convenient, lightweight
2
and easy jail management.
3
4
WWW: https://github.com/fractalcells/ansible-iocage

Return to bug 240814