svn commit: r547359 - in head/sysutils: . ansible-iocage
Steve Wills
swills at FreeBSD.org
Wed Sep 2 14:29:45 UTC 2020
Author: swills
Date: Wed Sep 2 14:29:43 2020
New Revision: 547359
URL: https://svnweb.freebsd.org/changeset/ports/547359
Log:
sysutils/ansible-iocage: create port
Ansible module for the iocage utility: convenient, lightweight
and easy jail management.
WWW: https://github.com/fractalcells/ansible-iocage
PR: 240814
Submitted by: Lewis Cook <vulcan at wired.sh>
Added:
head/sysutils/ansible-iocage/
head/sysutils/ansible-iocage/Makefile (contents, props changed)
head/sysutils/ansible-iocage/distinfo (contents, props changed)
head/sysutils/ansible-iocage/patch-iocage (contents, props changed)
head/sysutils/ansible-iocage/pkg-descr (contents, props changed)
Modified:
head/sysutils/Makefile (contents, props changed)
Modified: head/sysutils/Makefile
==============================================================================
--- head/sysutils/Makefile Wed Sep 2 14:12:59 2020 (r547358)
+++ head/sysutils/Makefile Wed Sep 2 14:29:43 2020 (r547359)
@@ -40,6 +40,7 @@
SUBDIR += android-file-transfer-qt5
SUBDIR += angrysearch
SUBDIR += ansible
+ SUBDIR += ansible-iocage
SUBDIR += ansible-kld
SUBDIR += ansible-sysrc
SUBDIR += ansible27
Added: head/sysutils/ansible-iocage/Makefile
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/sysutils/ansible-iocage/Makefile Wed Sep 2 14:29:43 2020 (r547359)
@@ -0,0 +1,36 @@
+# $FreeBSD$
+
+PORTNAME= ansible-iocage
+DISTVERSION= 0.1
+CATEGORIES= sysutils
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= vulcan at wired.sh
+COMMENT= Ansible module for iocage
+
+LICENSE= MIT
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}ansible>0:sysutils/ansible@${PY_FLAVOR}
+
+USES= python shebangfix
+SHEBANG_FILES= iocage
+
+USE_GITHUB= yes
+GH_ACCOUNT= fractalcells
+GH_PROJECT= ansible-iocage
+GH_TAGNAME= b8114ae6670fefddf0612801fd16030595c24bb2
+
+NO_ARCH= yes
+NO_BUILD= yes
+
+ANSIBLE_MOD= share/${PYTHON_PKGNAMEPREFIX}ansible/plugins/modules
+
+PLIST_FILES= ${ANSIBLE_MOD}/iocage
+
+do-install:
+ ${MKDIR} ${STAGEDIR}${PREFIX}/${ANSIBLE_MOD}
+ ${INSTALL_SCRIPT} ${WRKSRC}/iocage \
+ ${STAGEDIR}${PREFIX}/${ANSIBLE_MOD}/iocage
+
+.include <bsd.port.mk>
Added: head/sysutils/ansible-iocage/distinfo
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/sysutils/ansible-iocage/distinfo Wed Sep 2 14:29:43 2020 (r547359)
@@ -0,0 +1,3 @@
+TIMESTAMP = 1569417146
+SHA256 (fractalcells-ansible-iocage-0.1-b8114ae6670fefddf0612801fd16030595c24bb2_GH0.tar.gz) = 422e32f7cf34266a5b2ba1722d4e316aab2581a0a0087cb844a976f81bed86fd
+SIZE (fractalcells-ansible-iocage-0.1-b8114ae6670fefddf0612801fd16030595c24bb2_GH0.tar.gz) = 7786
Added: head/sysutils/ansible-iocage/patch-iocage
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/sysutils/ansible-iocage/patch-iocage Wed Sep 2 14:29:43 2020 (r547359)
@@ -0,0 +1,27 @@
+See: https://github.com/fractalcells/ansible-iocage/pull/18
+--- iocage.orig 2019-11-03 14:19:54 UTC
++++ iocage
+@@ -148,10 +148,11 @@ def _get_iocage_facts(module, iocage_path, argument="a
+ # non-iocage jails: skip all
+ break
+ elif re.match('(\d+|-)',_jid):
+- if l.count('\t') == 10:
+- (_jid,_name,_boot,_state,_type,_release,_ip4,_ip6,_template,_basejail) = l.split('\t')
++ _fragments = l.split('\t')
++ if len(_fragments) == 10:
++ (_jid,_name,_boot,_state,_type,_release,_ip4,_ip6,_template,_basejail) = _fragments
+ else:
+- (_jid,_name,_boot,_state,_type,_release,_ip4,_ip6,_template) = l.split('\t')
++ (_jid,_name,_boot,_state,_type,_release,_ip4,_ip6,_template) = _fragments
+ if _name != "":
+ _properties = _jail_get_properties(module, iocage_path, _name)
+ _jails[_name] = { "jid": _jid, "name": _name, "state": _state, "properties": _properties }
+@@ -504,7 +505,7 @@ def main():
+ cmd = dict(default="", required=False),
+ clone_from = dict(default="", required=False),
+ release = dict(default="", required=False),
+- update = dict(default="", required=False, type='bool'),
++ update = dict(default=False, required=False, type='bool'),
+ components = dict(default="", aliases=["files","component"], required=False, type='list')),
+ supports_check_mode = True
+ )
Added: head/sysutils/ansible-iocage/pkg-descr
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/sysutils/ansible-iocage/pkg-descr Wed Sep 2 14:29:43 2020 (r547359)
@@ -0,0 +1,4 @@
+Ansible module for the iocage utility: convenient, lightweight
+and easy jail management.
+
+WWW: https://github.com/fractalcells/ansible-iocage
More information about the svn-ports-head
mailing list