Index: head/sysutils/Makefile =================================================================== --- head/sysutils/Makefile +++ head/sysutils/Makefile @@ -134,6 +134,7 @@ SUBDIR += clone SUBDIR += clonehdd SUBDIR += cloop-utils + SUBDIR += cloudabi-utils SUBDIR += clsync SUBDIR += cmdwatch SUBDIR += cmockery2 Index: head/sysutils/cloudabi-utils/Makefile =================================================================== --- head/sysutils/cloudabi-utils/Makefile +++ head/sysutils/cloudabi-utils/Makefile @@ -0,0 +1,37 @@ +# Created by: Ed Schouten +# $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 Index: head/sysutils/cloudabi-utils/distinfo =================================================================== --- head/sysutils/cloudabi-utils/distinfo +++ head/sysutils/cloudabi-utils/distinfo @@ -0,0 +1,2 @@ +SHA256 (cloudabi-utils-0.2.tar.xz) = 210a15563d7019597b5a5a1b171803c23b4aa57c6fb9bab138d033232710f90e +SIZE (cloudabi-utils-0.2.tar.xz) = 12704 Index: head/sysutils/cloudabi-utils/pkg-descr =================================================================== --- head/sysutils/cloudabi-utils/pkg-descr +++ head/sysutils/cloudabi-utils/pkg-descr @@ -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