Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 17 Mar 2017 09:59:15 +0000 (UTC)
From:      Marcelo Araujo <araujo@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r436331 - in head/sysutils: . py3-iocage py3-iocage/files
Message-ID:  <201703170959.v2H9xF3E060345@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: araujo
Date: Fri Mar 17 09:59:15 2017
New Revision: 436331
URL: https://svnweb.freebsd.org/changeset/ports/436331

Log:
  iocage is a jail/container manager amalgamating some of the best
  features and technologies the FreeBSD operating system has
  to offer. It is geared for ease of use with a simple and easy
  to understand command syntax.
  
  This is the new and the most updated version of iocage written
  in python3.6.
  
  Submitted by:	brandon@ixsystems.com (author and maintainer) via email.

Added:
  head/sysutils/py3-iocage/
  head/sysutils/py3-iocage/Makefile   (contents, props changed)
  head/sysutils/py3-iocage/distinfo   (contents, props changed)
  head/sysutils/py3-iocage/files/
  head/sysutils/py3-iocage/files/iocage.in   (contents, props changed)
  head/sysutils/py3-iocage/pkg-descr   (contents, props changed)
Modified:
  head/sysutils/Makefile

Modified: head/sysutils/Makefile
==============================================================================
--- head/sysutils/Makefile	Fri Mar 17 09:32:50 2017	(r436330)
+++ head/sysutils/Makefile	Fri Mar 17 09:59:15 2017	(r436331)
@@ -895,6 +895,7 @@
     SUBDIR += py-zdaemon
     SUBDIR += py-zfs
     SUBDIR += pydf
+    SUBDIR += py3-iocage
     SUBDIR += qchroot
     SUBDIR += qjail
     SUBDIR += qjail2

Added: head/sysutils/py3-iocage/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/sysutils/py3-iocage/Makefile	Fri Mar 17 09:59:15 2017	(r436331)
@@ -0,0 +1,40 @@
+# $FreeBSD$
+
+PORTNAME=	iocage
+PORTVERSION=	0.9.7
+CATEGORIES=	sysutils python
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER=	brandon@ixsystems.com
+COMMENT=	FreeBSD jail manager written in Python3
+
+LICENSE=	BSD2CLAUSE
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}click>=6.7:devel/py3-click \
+		${PYTHON_PKGNAMEPREFIX}tqdm>=4.10.0:misc/py3-tqdm \
+		ca_root_nss>0:security/ca_root_nss \
+		${PYTHON_PKGNAMEPREFIX}texttable>=0.8.7:textproc/py3-texttable \
+		${PYTHON_PKGNAMEPREFIX}requests>=2.11.1:www/py3-requests
+
+USE_GITHUB=	yes
+
+NO_ARCH=	yes
+USES=		python:3.6
+USE_PYTHON=	autoplist distutils
+
+CONFLICTS=	py-iocage-[0-9]* iocage-[0-9]* iocage-devel-[0-9]*
+
+pre-everything::
+	@${ECHO_MSG} ""
+	@${ECHO_MSG} "##################################################"
+	@${ECHO_MSG} " The new iocage needs python ${PYTHON_VER} or greater."
+	@${ECHO_MSG} ""
+	@${ECHO_MSG} " If you want use the new iocage, stop the build now and"
+	@${ECHO_MSG} " add this line to your /etc/make.conf, and then restart the build."
+	@${ECHO_MSG} ""
+	@${ECHO_MSG} " DEFAULT_VERSIONS+=python3=${PYTHON_VER}"
+	@${ECHO_MSG} "##################################################"
+	@${ECHO_MSG} ""
+
+.include <bsd.port.mk>

Added: head/sysutils/py3-iocage/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/sysutils/py3-iocage/distinfo	Fri Mar 17 09:59:15 2017	(r436331)
@@ -0,0 +1,3 @@
+TIMESTAMP = 1489549714
+SHA256 (iocage-iocage-0.9.7_GH0.tar.gz) = 76dab74df5f9d8b169924fcc0addaa1a291a8274bf6e0e222fb5d62425456a72
+SIZE (iocage-iocage-0.9.7_GH0.tar.gz) = 325256

Added: head/sysutils/py3-iocage/files/iocage.in
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/sysutils/py3-iocage/files/iocage.in	Fri Mar 17 09:59:15 2017	(r436331)
@@ -0,0 +1,47 @@
+#!/bin/sh
+#
+# $FreeBSD$
+#
+
+# PROVIDE: iocage
+# REQUIRE: LOGIN cleanvar sshd ZFS
+# BEFORE:  securelevel
+# KEYWORD: shutdown
+
+# Add the following lines to /etc/rc.conf to enable iocage:
+#
+# iocage_enable="YES"
+#
+#
+
+. /etc/rc.subr
+
+name="iocage"
+rcvar=iocage_enable
+
+# read configuration and set defaults
+load_rc_config "$name"
+: ${iocage_enable="NO"}
+: ${iocage_lang="en_US.UTF-8"}
+
+start_cmd="iocage_start"
+stop_cmd="iocage_stop"
+export LANG=$iocage_lang
+
+iocage_start()
+{
+    if checkyesno ${rcvar}; then
+        echo "* [I|O|C] starting jails... "
+        /usr/local/bin/iocage start --rc
+    fi
+}
+
+iocage_stop()
+{
+    if checkyesno ${rcvar}; then
+        echo "* [I|O|C] stopping jails... "
+        /usr/local/bin/iocage stop --rc
+    fi
+}
+
+run_rc_command "$1"

Added: head/sysutils/py3-iocage/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/sysutils/py3-iocage/pkg-descr	Fri Mar 17 09:59:15 2017	(r436331)
@@ -0,0 +1,6 @@
+iocage is a jail/container manager amalgamating some of the best
+features and technologies the FreeBSD operating system has
+to offer. It is geared for ease of use with a simple and easy
+to understand command syntax.
+
+WWW: https://github.com/iocage/iocage



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201703170959.v2H9xF3E060345>