aboutsummaryrefslogtreecommitdiffstats
path: root/devel
diff options
context:
space:
mode:
authorwg <wg@FreeBSD.org>2018-10-05 03:02:48 +0800
committerwg <wg@FreeBSD.org>2018-10-05 03:02:48 +0800
commit3a15d1f6e1eb373bffee3b5a602a3ff8994aa830 (patch)
treea9fba56c9771a77eb20d8398a723fbdf81738194 /devel
parent5062b075dcd2781f9d12f5e4ecfd36f270b00fcb (diff)
downloadfreebsd-ports-gnome-3a15d1f6e1eb373bffee3b5a602a3ff8994aa830.tar.gz
freebsd-ports-gnome-3a15d1f6e1eb373bffee3b5a602a3ff8994aa830.tar.zst
freebsd-ports-gnome-3a15d1f6e1eb373bffee3b5a602a3ff8994aa830.zip
devel/py-libiocage: Library to manage jails with iocage
Provides programmatic access to iocage features and jails, while aiming to be compatible with iocage-legacy, and the current Python 3 version of iocage. WWW: https://github.com/iocage/libiocage
Diffstat (limited to 'devel')
-rw-r--r--devel/Makefile1
-rw-r--r--devel/py-libiocage/Makefile36
-rw-r--r--devel/py-libiocage/distinfo3
-rw-r--r--devel/py-libiocage/files/patch-setup.py10
-rw-r--r--devel/py-libiocage/pkg-descr4
-rw-r--r--devel/py-libiocage/pkg-plist105
6 files changed, 159 insertions, 0 deletions
diff --git a/devel/Makefile b/devel/Makefile
index d5804b825613..4fe85c42f143 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -4694,6 +4694,7 @@
SUBDIR += py-lazr.delegates
SUBDIR += py-lazy
SUBDIR += py-lazy-object-proxy
+ SUBDIR += py-libiocage
SUBDIR += py-liblarch
SUBDIR += py-libpeas
SUBDIR += py-libplist
diff --git a/devel/py-libiocage/Makefile b/devel/py-libiocage/Makefile
new file mode 100644
index 000000000000..5251bad477aa
--- /dev/null
+++ b/devel/py-libiocage/Makefile
@@ -0,0 +1,36 @@
+# $FreeBSD$
+
+PORTNAME= libiocage
+PORTVERSION= 0.3.0.20181001
+CATEGORIES= devel python
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= maintainers@iocage.io
+COMMENT= Library to manage jails with iocage
+
+LICENSE= BSD2CLAUSE
+LICENSE_FILE= ${WRKSRC}/LICENSE.txt
+
+BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pip>0:devel/py-pip@${PY_FLAVOR}
+RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}GitPython>0:devel/py-gitpython@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}ucl>0:textproc/py-ucl@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}libzfs>0:devel/py-libzfs@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}sysctl>0:devel/py-sysctl@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}click>0:devel/py-click@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}texttable>0:textproc/py-texttable@${PY_FLAVOR} \
+ ca_root_nss>0:security/ca_root_nss \
+ rsync:net/rsync
+
+USE_GITHUB= yes
+GH_ACCOUNT= iocage
+GH_PROJECT= libiocage
+GH_TAGNAME= cee9351
+
+NO_ARCH= yes
+USES= python:3.6+
+USE_PYTHON= distutils py3kplist
+
+post-install:
+ ${INSTALL_SCRIPT} ${WRKSRC}/rc.d/ioc ${STAGEDIR}${PREFIX}/etc/rc.d/ioc
+
+.include <bsd.port.mk>
diff --git a/devel/py-libiocage/distinfo b/devel/py-libiocage/distinfo
new file mode 100644
index 000000000000..98a0ad894b9f
--- /dev/null
+++ b/devel/py-libiocage/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1538659662
+SHA256 (iocage-libiocage-0.3.0.20181001-cee9351_GH0.tar.gz) = 613c665fd4630e968637d82a03ffe41a1cb19ba2ee635f24f44332cccf7842de
+SIZE (iocage-libiocage-0.3.0.20181001-cee9351_GH0.tar.gz) = 142020
diff --git a/devel/py-libiocage/files/patch-setup.py b/devel/py-libiocage/files/patch-setup.py
new file mode 100644
index 000000000000..70addc83544f
--- /dev/null
+++ b/devel/py-libiocage/files/patch-setup.py
@@ -0,0 +1,10 @@
+--- setup.py.orig 2018-10-04 10:36:15 UTC
++++ setup.py
+@@ -94,7 +94,6 @@ setup(
+ include_package_data=True,
+ install_requires=iocage_requirements["install_requires"],
+ dependency_links=iocage_requirements["dependency_links"],
+- setup_requires=['pytest-runner'],
+ tests_require=['pytest', 'pytest-cov', 'pytest-pep8']
+ )
+
diff --git a/devel/py-libiocage/pkg-descr b/devel/py-libiocage/pkg-descr
new file mode 100644
index 000000000000..534a9d687d6b
--- /dev/null
+++ b/devel/py-libiocage/pkg-descr
@@ -0,0 +1,4 @@
+Provides programmatic access to iocage features and jails, while aiming to be
+compatible with iocage-legacy, and the current Python 3 version of iocage.
+
+WWW: https://github.com/iocage/libiocage
diff --git a/devel/py-libiocage/pkg-plist b/devel/py-libiocage/pkg-plist
new file mode 100644
index 000000000000..6433e0c9d70e
--- /dev/null
+++ b/devel/py-libiocage/pkg-plist
@@ -0,0 +1,105 @@
+bin/ioc
+etc/rc.d/ioc
+%%PYTHON_SITELIBDIR%%/ioc-0.3.0-py%%PYTHON_VER%%.egg-info/PKG-INFO
+%%PYTHON_SITELIBDIR%%/ioc-0.3.0-py%%PYTHON_VER%%.egg-info/SOURCES.txt
+%%PYTHON_SITELIBDIR%%/ioc-0.3.0-py%%PYTHON_VER%%.egg-info/dependency_links.txt
+%%PYTHON_SITELIBDIR%%/ioc-0.3.0-py%%PYTHON_VER%%.egg-info/entry_points.txt
+%%PYTHON_SITELIBDIR%%/ioc-0.3.0-py%%PYTHON_VER%%.egg-info/requires.txt
+%%PYTHON_SITELIBDIR%%/ioc-0.3.0-py%%PYTHON_VER%%.egg-info/top_level.txt
+%%PYTHON_SITELIBDIR%%/ioc/__init__.py
+%%PYTHON_SITELIBDIR%%/ioc/activate.py
+%%PYTHON_SITELIBDIR%%/ioc/clone.py
+%%PYTHON_SITELIBDIR%%/ioc/console.py
+%%PYTHON_SITELIBDIR%%/ioc/create.py
+%%PYTHON_SITELIBDIR%%/ioc/deactivate.py
+%%PYTHON_SITELIBDIR%%/ioc/destroy.py
+%%PYTHON_SITELIBDIR%%/ioc/exec.py
+%%PYTHON_SITELIBDIR%%/ioc/export.py
+%%PYTHON_SITELIBDIR%%/ioc/fetch.py
+%%PYTHON_SITELIBDIR%%/ioc/fstab.py
+%%PYTHON_SITELIBDIR%%/ioc/get.py
+%%PYTHON_SITELIBDIR%%/ioc/import.py
+%%PYTHON_SITELIBDIR%%/ioc/list.py
+%%PYTHON_SITELIBDIR%%/ioc/migrate.py
+%%PYTHON_SITELIBDIR%%/ioc/pkg.py
+%%PYTHON_SITELIBDIR%%/ioc/promote.py
+%%PYTHON_SITELIBDIR%%/ioc/provision.py
+%%PYTHON_SITELIBDIR%%/ioc/rename.py
+%%PYTHON_SITELIBDIR%%/ioc/restart.py
+%%PYTHON_SITELIBDIR%%/ioc/set.py
+%%PYTHON_SITELIBDIR%%/ioc/shared/__init__.py
+%%PYTHON_SITELIBDIR%%/ioc/shared/click.py
+%%PYTHON_SITELIBDIR%%/ioc/shared/jail.py
+%%PYTHON_SITELIBDIR%%/ioc/shared/output.py
+%%PYTHON_SITELIBDIR%%/ioc/snapshot.py
+%%PYTHON_SITELIBDIR%%/ioc/start.py
+%%PYTHON_SITELIBDIR%%/ioc/stop.py
+%%PYTHON_SITELIBDIR%%/ioc/update.py
+%%PYTHON_SITELIBDIR%%/iocage-0.3.0-py%%PYTHON_VER%%.egg-info/PKG-INFO
+%%PYTHON_SITELIBDIR%%/iocage-0.3.0-py%%PYTHON_VER%%.egg-info/SOURCES.txt
+%%PYTHON_SITELIBDIR%%/iocage-0.3.0-py%%PYTHON_VER%%.egg-info/dependency_links.txt
+%%PYTHON_SITELIBDIR%%/iocage-0.3.0-py%%PYTHON_VER%%.egg-info/requires.txt
+%%PYTHON_SITELIBDIR%%/iocage-0.3.0-py%%PYTHON_VER%%.egg-info/top_level.txt
+%%PYTHON_SITELIBDIR%%/iocage/BridgeInterface.py
+%%PYTHON_SITELIBDIR%%/iocage/CommandQueue.py
+%%PYTHON_SITELIBDIR%%/iocage/Config/Dataset.py
+%%PYTHON_SITELIBDIR%%/iocage/Config/Jail/BaseConfig.py
+%%PYTHON_SITELIBDIR%%/iocage/Config/Jail/Defaults.py
+%%PYTHON_SITELIBDIR%%/iocage/Config/Jail/File/Fstab.py
+%%PYTHON_SITELIBDIR%%/iocage/Config/Jail/File/RCConf.py
+%%PYTHON_SITELIBDIR%%/iocage/Config/Jail/File/SysctlConf.py
+%%PYTHON_SITELIBDIR%%/iocage/Config/Jail/File/__init__.py
+%%PYTHON_SITELIBDIR%%/iocage/Config/Jail/JailConfig.py
+%%PYTHON_SITELIBDIR%%/iocage/Config/Jail/Properties/Addresses.py
+%%PYTHON_SITELIBDIR%%/iocage/Config/Jail/Properties/Defaultrouter.py
+%%PYTHON_SITELIBDIR%%/iocage/Config/Jail/Properties/Interfaces.py
+%%PYTHON_SITELIBDIR%%/iocage/Config/Jail/Properties/Resolver.py
+%%PYTHON_SITELIBDIR%%/iocage/Config/Jail/Properties/ResourceLimit.py
+%%PYTHON_SITELIBDIR%%/iocage/Config/Jail/Properties/__init__.py
+%%PYTHON_SITELIBDIR%%/iocage/Config/Jail/__init__.py
+%%PYTHON_SITELIBDIR%%/iocage/Config/Prototype.py
+%%PYTHON_SITELIBDIR%%/iocage/Config/Type/JSON.py
+%%PYTHON_SITELIBDIR%%/iocage/Config/Type/UCL.py
+%%PYTHON_SITELIBDIR%%/iocage/Config/Type/ZFS.py
+%%PYTHON_SITELIBDIR%%/iocage/Config/Type/__init__.py
+%%PYTHON_SITELIBDIR%%/iocage/Config/__init__.py
+%%PYTHON_SITELIBDIR%%/iocage/Datasets.py
+%%PYTHON_SITELIBDIR%%/iocage/DevfsRules.py
+%%PYTHON_SITELIBDIR%%/iocage/Distribution.py
+%%PYTHON_SITELIBDIR%%/iocage/Filter.py
+%%PYTHON_SITELIBDIR%%/iocage/Firewall.py
+%%PYTHON_SITELIBDIR%%/iocage/Host.py
+%%PYTHON_SITELIBDIR%%/iocage/IPAddress.py
+%%PYTHON_SITELIBDIR%%/iocage/Jail.py
+%%PYTHON_SITELIBDIR%%/iocage/JailState.py
+%%PYTHON_SITELIBDIR%%/iocage/Jails.py
+%%PYTHON_SITELIBDIR%%/iocage/LaunchableResource.py
+%%PYTHON_SITELIBDIR%%/iocage/ListableResource.py
+%%PYTHON_SITELIBDIR%%/iocage/Logger.py
+%%PYTHON_SITELIBDIR%%/iocage/MacAddress.py
+%%PYTHON_SITELIBDIR%%/iocage/Network.py
+%%PYTHON_SITELIBDIR%%/iocage/NetworkInterface.py
+%%PYTHON_SITELIBDIR%%/iocage/NullFSBasejailStorage.py
+%%PYTHON_SITELIBDIR%%/iocage/Pkg.py
+%%PYTHON_SITELIBDIR%%/iocage/Prompts.py
+%%PYTHON_SITELIBDIR%%/iocage/Provisioning/__init__.py
+%%PYTHON_SITELIBDIR%%/iocage/Provisioning/ix.py
+%%PYTHON_SITELIBDIR%%/iocage/Release.py
+%%PYTHON_SITELIBDIR%%/iocage/Releases.py
+%%PYTHON_SITELIBDIR%%/iocage/Resource.py
+%%PYTHON_SITELIBDIR%%/iocage/ResourceBackup.py
+%%PYTHON_SITELIBDIR%%/iocage/ResourceSelector.py
+%%PYTHON_SITELIBDIR%%/iocage/ResourceUpdater.py
+%%PYTHON_SITELIBDIR%%/iocage/SecureTarfile.py
+%%PYTHON_SITELIBDIR%%/iocage/StandaloneJailStorage.py
+%%PYTHON_SITELIBDIR%%/iocage/Storage.py
+%%PYTHON_SITELIBDIR%%/iocage/Types.py
+%%PYTHON_SITELIBDIR%%/iocage/VersionedResource.py
+%%PYTHON_SITELIBDIR%%/iocage/ZFS.py
+%%PYTHON_SITELIBDIR%%/iocage/ZFSBasejailStorage.py
+%%PYTHON_SITELIBDIR%%/iocage/ZFSShareStorage.py
+%%PYTHON_SITELIBDIR%%/iocage/__init__.py
+%%PYTHON_SITELIBDIR%%/iocage/errors.py
+%%PYTHON_SITELIBDIR%%/iocage/events.py
+%%PYTHON_SITELIBDIR%%/iocage/helpers.py
+%%PYTHON_SITELIBDIR%%/iocage/helpers_object.py