From owner-svn-ports-head@freebsd.org Fri Mar 17 09:59:16 2017 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id DEC64D10238; Fri, 17 Mar 2017 09:59:16 +0000 (UTC) (envelope-from araujo@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 9D69C1116; Fri, 17 Mar 2017 09:59:16 +0000 (UTC) (envelope-from araujo@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id v2H9xFbG060351; Fri, 17 Mar 2017 09:59:15 GMT (envelope-from araujo@FreeBSD.org) Received: (from araujo@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id v2H9xF3E060345; Fri, 17 Mar 2017 09:59:15 GMT (envelope-from araujo@FreeBSD.org) Message-Id: <201703170959.v2H9xF3E060345@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: araujo set sender to araujo@FreeBSD.org using -f From: Marcelo Araujo Date: Fri, 17 Mar 2017 09:59:15 +0000 (UTC) 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 X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 17 Mar 2017 09:59:17 -0000 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 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