Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 13 Jul 2015 12:26:40 +0000 (UTC)
From:      Ed Schouten <ed@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r391894 - in head/sysutils: . cloudabi-utils
Message-ID:  <201507131226.t6DCQeqW090072@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ed (src committer)
Date: Mon Jul 13 12:26:40 2015
New Revision: 391894
URL: https://svnweb.freebsd.org/changeset/ports/391894

Log:
  Add sysutils/cloudabi-utils.
  
  Summary:
  Though CloudABI programs can simply be started from the command line
  like any UNIX process, the preferred way for starting them is using the
  cloudabi-run utility.
  
  cloudabi-run parses a YAML file that contains the configuration for the
  program that you want to run. Special tags can be used in the YAML file
  to indicate that the program depends on a resources (a socket or a
  file). cloudabi-run then attempts to obtain these resources and startes
  the program for you.
  
  The end result is that it's possible to build software that looks like
  traditional UNIX software (executable + config file), but still gets run
  in this completely sandboxed environment.
  
  Reviewers: bapt
  
  Reviewed By: bapt
  
  Differential Revision: https://reviews.freebsd.org/D3067

Added:
  head/sysutils/cloudabi-utils/
  head/sysutils/cloudabi-utils/Makefile   (contents, props changed)
  head/sysutils/cloudabi-utils/distinfo   (contents, props changed)
  head/sysutils/cloudabi-utils/pkg-descr   (contents, props changed)
Modified:
  head/sysutils/Makefile

Modified: head/sysutils/Makefile
==============================================================================
--- head/sysutils/Makefile	Mon Jul 13 12:14:06 2015	(r391893)
+++ head/sysutils/Makefile	Mon Jul 13 12:26:40 2015	(r391894)
@@ -134,6 +134,7 @@
     SUBDIR += clone
     SUBDIR += clonehdd
     SUBDIR += cloop-utils
+    SUBDIR += cloudabi-utils
     SUBDIR += clsync
     SUBDIR += cmdwatch
     SUBDIR += cmockery2

Added: head/sysutils/cloudabi-utils/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/sysutils/cloudabi-utils/Makefile	Mon Jul 13 12:26:40 2015	(r391894)
@@ -0,0 +1,37 @@
+# Created by: Ed Schouten <ed@FreeBSD.org>
+# $FreeBSD$
+
+PORTNAME=	cloudabi-utils
+PORTVERSION=	0.2
+CATEGORIES=	sysutils
+MASTER_SITES=	https://nuxi.nl/distfiles/cloudabi-utils/
+
+MAINTAINER=	ed@FreeBSD.org
+COMMENT=	Utilities for running CloudABI programs
+
+LICENSE=	BSD2CLAUSE
+
+BUILD_DEPENDS=	cloudabi-toolchain>=0:${PORTSDIR}/devel/cloudabi-toolchain
+LIB_DEPENDS=	libyaml.so:${PORTSDIR}/textproc/libyaml
+
+ONLY_FOR_ARCHS=	amd64
+ONLY_FOR_ARCHS_REASON=	CloudABI has not yet been ported to other architectures
+
+USES=		tar:xz
+
+PLIST_FILES=	bin/cloudabi-run \
+		libexec/cloudabi-reexec \
+		man/man1/cloudabi-run.1.gz
+
+do-build:
+	@cd ${WRKSRC} && \
+		PREFIX=${LOCALBASE} \
+		CLOUDABI_CC=${LOCALBASE}/bin/x86_64-unknown-cloudabi-cc \
+		${SH} build
+
+do-install:
+	@cd ${WRKSRC} && \
+		PREFIX=${STAGEDIR}${PREFIX} \
+		${SH} install
+
+.include <bsd.port.mk>

Added: head/sysutils/cloudabi-utils/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/sysutils/cloudabi-utils/distinfo	Mon Jul 13 12:26:40 2015	(r391894)
@@ -0,0 +1,2 @@
+SHA256 (cloudabi-utils-0.2.tar.xz) = 210a15563d7019597b5a5a1b171803c23b4aa57c6fb9bab138d033232710f90e
+SIZE (cloudabi-utils-0.2.tar.xz) = 12704

Added: head/sysutils/cloudabi-utils/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/sysutils/cloudabi-utils/pkg-descr	Mon Jul 13 12:26:40 2015	(r391894)
@@ -0,0 +1,11 @@
+Nuxi CloudABI is an application binary interface for UNIX-like operating
+systems built around the concept of capability-based security. In a
+nutshell, it means that you can run processes directly on top of a UNIX
+kernel while keeping complete control over the actions the process is
+allowed to perform.
+
+This package installs utilities that are useful when running CloudABI
+processes. The cloudabi-run utility can run CloudABI processes,
+providing it the resources (sockets and files) that it requires.
+
+WWW: https://github.com/NuxiNL/cloudabi-utils



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