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

Collapse All | Expand All

(-)sysutils/ansible-iocage/Makefile (+34 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
17
18
USE_GITHUB=	yes
19
GH_ACCOUNT=	fractalcells
20
GH_PROJECT=	ansible-iocage
21
GH_TAGNAME=	b8114ae6670fefddf0612801fd16030595c24bb2
22
23
NO_ARCH=	yes
24
NO_BUILD=	yes
25
26
ANSIBLE_MOD=	$$(ansible-config-${PYTHON_VER} dump | ${EGREP} -o '${PREFIX}/share/${PYTHON_PKGNAMEPREFIX}ansible/plugins/modules')
27
28
PLIST_FILES=	$$(${ECHO_CMD} ${ANSIBLE_MOD} | ${SED} -e 's|${PREFIX}/||')/iocage
29
30
do-install:
31
	${MKDIR} ${STAGEDIR}${ANSIBLE_MOD}
32
	${INSTALL_SCRIPT} ${WRKSRC}/iocage ${STAGEDIR}${ANSIBLE_MOD}/iocage
33
34
.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 (+26 lines)
Line 0 Link Here
1
--- iocage.orig	2019-09-25 14:04:39.890773000 +0100
2
+++ iocage	2019-09-25 14:09:59.399713000 +0100
3
@@ -148,10 +148,11 @@
4
                 # non-iocage jails: skip all
5
                 break
6
             elif re.match('(\d+|-)',_jid):
7
-                if l.count('\t') == 10:
8
-                    (_jid,_name,_boot,_state,_type,_release,_ip4,_ip6,_template,_basejail) = l.split('\t')
9
+                _fragments = l.split('\t')
10
+                if len(_fragments) == 10:
11
+                    (_jid,_name,_boot,_state,_type,_release,_ip4,_ip6,_template,_basejail) = _fragments
12
                 else:
13
-                    (_jid,_name,_boot,_state,_type,_release,_ip4,_ip6,_template) = l.split('\t')
14
+                    (_jid,_name,_boot,_state,_type,_release,_ip4,_ip6,_template) = _fragments
15
                 if _name != "":
16
                     _properties = _jail_get_properties(module, iocage_path, _name)
17
                     _jails[_name] = { "jid": _jid, "name": _name, "state": _state, "properties": _properties }
18
@@ -504,7 +505,7 @@
19
             cmd          = dict(default="", required=False),
20
             clone_from   = dict(default="", required=False),
21
             release      = dict(default="", required=False),
22
-            update       = dict(default="", required=False, type='bool'),
23
+            update       = dict(default=False, required=False, type='bool'),
24
             components   = dict(default="", aliases=["files","component"], required=False, type='list')),
25
         supports_check_mode = True
26
     )
(-)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