Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mail.netbsd.org", Issuer "Postmaster NetBSD.org" (verified OK)) by mollari.NetBSD.org (Postfix) with ESMTPS id 97D4C7A140 for ; Fri, 17 Feb 2017 21:24:42 +0000 (UTC) Received: by mail.netbsd.org (Postfix, from userid 605) id 41AC78560F; Fri, 17 Feb 2017 21:24:42 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id C601885607 for ; Fri, 17 Feb 2017 21:24:41 +0000 (UTC) X-Virus-Scanned: amavisd-new at netbsd.org Received: from mail.netbsd.org ([127.0.0.1]) by localhost (mail.netbsd.org [127.0.0.1]) (amavisd-new, port 10025) with ESMTP id 8qHQN612Ja9L for ; Fri, 17 Feb 2017 21:24:41 +0000 (UTC) Received: from cvs.NetBSD.org (ivanova.netbsd.org [199.233.217.197]) by mail.netbsd.org (Postfix) with ESMTP id 08B3384CE0 for ; Fri, 17 Feb 2017 21:24:41 +0000 (UTC) Received: by cvs.NetBSD.org (Postfix, from userid 500) id C0C21FBE4; Fri, 17 Feb 2017 21:23:42 +0000 (UTC) Content-Transfer-Encoding: 7bit Content-Type: multipart/mixed; boundary="_----------=_1487366622135490" MIME-Version: 1.0 Date: Fri, 17 Feb 2017 21:23:42 +0000 From: "Julio Merino" Subject: CVS commit: pkgsrc/sysutils To: pkgsrc-changes@NetBSD.org Reply-To: jmmv@netbsd.org X-Mailer: log_accum Message-Id: <20170217212342.C0C21FBE4@cvs.NetBSD.org> Sender: pkgsrc-changes-owner@NetBSD.org List-Id: pkgsrc-changes.NetBSD.org Precedence: bulk This is a multi-part message in MIME format. --_----------=_1487366622135490 Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" Module Name: pkgsrc Committed By: jmmv Date: Fri Feb 17 21:23:42 UTC 2017 Modified Files: pkgsrc/sysutils: Makefile Added Files: pkgsrc/sysutils/sandboxctl: DESCR Makefile PLIST PLIST.Darwin PLIST.FreeBSD PLIST.Linux PLIST.NetBSD distinfo Log Message: Initial addition of sandboxctl 1.0: sandboxctl is a tool to interact with chroot-based sandboxes. The sandboxctl tool provides an automated mechanism to create and interact with chroot-based sandboxes. These sandboxes can be transient (e.g. to run a single command within them) or long-lived (e.g. to run a system service in a safe manner). Sandboxes can be created using multiple mechanisms, which range from extracting fresh distribution sets to bind-mounting the outer file systems inside the sandbox. The specific mechanism depends on the features supported by the underlying operating system and the chosen sandbox type. Currently, sandboxctl includes support for FreeBSD, Linux, macOS (Darwin), and NetBSD. Each sandbox is defined via a configuration file provided by the user and a system-specific template provided by this package. The user configuration is simple and semantically-rich, allowing the system administrator to not worry about the environment-specific details. This package is primarily targetted at supporting pkgtools/pkg_comp but is provided as a standalone tool for flexibility. To generate a diff of this commit: cvs rdiff -u -r1.690 -r1.691 pkgsrc/sysutils/Makefile cvs rdiff -u -r0 -r1.1 pkgsrc/sysutils/sandboxctl/DESCR \ pkgsrc/sysutils/sandboxctl/Makefile pkgsrc/sysutils/sandboxctl/PLIST \ pkgsrc/sysutils/sandboxctl/PLIST.Darwin \ pkgsrc/sysutils/sandboxctl/PLIST.FreeBSD \ pkgsrc/sysutils/sandboxctl/PLIST.Linux \ pkgsrc/sysutils/sandboxctl/PLIST.NetBSD \ pkgsrc/sysutils/sandboxctl/distinfo Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. --_----------=_1487366622135490 Content-Disposition: inline Content-Length: 6358 Content-Transfer-Encoding: binary Content-Type: text/x-diff; charset=us-ascii Modified files: Index: pkgsrc/sysutils/Makefile diff -u pkgsrc/sysutils/Makefile:1.690 pkgsrc/sysutils/Makefile:1.691 --- pkgsrc/sysutils/Makefile:1.690 Mon Feb 13 19:08:20 2017 +++ pkgsrc/sysutils/Makefile Fri Feb 17 21:23:42 2017 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.690 2017/02/13 19:08:20 fhajny Exp $ +# $NetBSD: Makefile,v 1.691 2017/02/17 21:23:42 jmmv Exp $ # COMMENT= System utilities @@ -503,6 +503,7 @@ SUBDIR+= safetynet SUBDIR+= salt SUBDIR+= salt-docs SUBDIR+= same +SUBDIR+= sandboxctl SUBDIR+= sarah SUBDIR+= screenbrightness SUBDIR+= screenfetch Added files: Index: pkgsrc/sysutils/sandboxctl/DESCR diff -u /dev/null pkgsrc/sysutils/sandboxctl/DESCR:1.1 --- /dev/null Fri Feb 17 21:23:42 2017 +++ pkgsrc/sysutils/sandboxctl/DESCR Fri Feb 17 21:23:42 2017 @@ -0,0 +1,20 @@ +sandboxctl is a tool to interact with chroot-based sandboxes. + +The sandboxctl tool provides an automated mechanism to create and +interact with chroot-based sandboxes. These sandboxes can be transient +(e.g. to run a single command within them) or long-lived (e.g. to run a +system service in a safe manner). + +Sandboxes can be created using multiple mechanisms, which range from +extracting fresh distribution sets to bind-mounting the outer file +systems inside the sandbox. The specific mechanism depends on the +features supported by the underlying operating system and the chosen +sandbox type. Currently, sandboxctl includes support for FreeBSD, +Linux, macOS (Darwin), and NetBSD. + +Each sandbox is defined via a configuration file provided by the user +and a system-specific template provided by this package. The user +configuration is simple and semantically-rich, allowing the system +administrator to not worry about the environment-specific details. + +This is not an official Google product. Index: pkgsrc/sysutils/sandboxctl/Makefile diff -u /dev/null pkgsrc/sysutils/sandboxctl/Makefile:1.1 --- /dev/null Fri Feb 17 21:23:42 2017 +++ pkgsrc/sysutils/sandboxctl/Makefile Fri Feb 17 21:23:42 2017 @@ -0,0 +1,44 @@ +# $NetBSD: Makefile,v 1.1 2017/02/17 21:23:42 jmmv Exp $ + +DISTNAME= sandboxctl-1.0 +CATEGORIES= sysutils +MASTER_SITES= ${MASTER_SITE_GITHUB:=jmmv/}sandboxctl/releases/download/sandboxctl-1.0/ + +MAINTAINER= jmmv@NetBSD.org +COMMENT= Manages chroot-based sandboxes +LICENSE= modified-bsd + +ONLY_FOR_PLATFORM= Darwin-*-* FreeBSD-*-* Linux-*-* NetBSD-*-* + +GNU_CONFIGURE= yes +TEST_TARGET= check +USE_LANGUAGES= # empty +USE_TOOLS= pkg-config + +PKG_SYSCONFSUBDIR= sandboxctl +CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR} +CONFIGURE_ARGS+= SANDBOXCTL_CONFSUBDIR= +INSTALL_MAKE_FLAGS+= sandboxctl_confdir=${EGDIR} +EGDIR= ${PREFIX}/share/examples/sandboxctl +CONF_FILES+= ${EGDIR}/default.conf ${PKG_SYSCONFDIR}/default.conf + +PKG_OPTIONS_VAR= PKG_OPTIONS.sandboxctl +PKG_SUPPORTED_OPTIONS= tests +PKG_SUGGESTED_OPTIONS= tests + +.include "../../mk/bsd.options.mk" + +.if !empty(PKG_OPTIONS:Mtests) +. include "../../devel/atf/buildlink3.mk" +PLIST_SUBST+= TESTS= +.else +CONFIGURE_ARGS+= --with-atf=no +PLIST_SUBST+= TESTS=@comment + +post-install: + rm -rf "${PREFIX}/share/tests/sandboxctl" +.endif + +BUILDLINK_API_DEPENDS.shtk+= shtk>=1.7 +.include "../../devel/shtk/buildlink3.mk" +.include "../../mk/bsd.pkg.mk" Index: pkgsrc/sysutils/sandboxctl/PLIST diff -u /dev/null pkgsrc/sysutils/sandboxctl/PLIST:1.1 --- /dev/null Fri Feb 17 21:23:42 2017 +++ pkgsrc/sysutils/sandboxctl/PLIST Fri Feb 17 21:23:42 2017 @@ -0,0 +1,17 @@ +@comment $NetBSD: PLIST,v 1.1 2017/02/17 21:23:42 jmmv Exp $ +man/man5/sandboxctl.conf.5 +man/man8/sandboxctl.8 +sbin/sandboxctl +share/doc/sandboxctl/AUTHORS +share/doc/sandboxctl/CONTRIBUTING.md +share/doc/sandboxctl/CONTRIBUTORS +share/doc/sandboxctl/COPYING +share/doc/sandboxctl/NEWS +share/doc/sandboxctl/README +share/examples/sandboxctl/default.conf +share/sandboxctl/empty.subr +share/shtk/sandbox.subr +${TESTS}tests/sandboxctl/Kyuafile +${TESTS}tests/sandboxctl/modules/Kyuafile +${TESTS}tests/sandboxctl/sandbox_test +${TESTS}tests/sandboxctl/sandboxctl_test Index: pkgsrc/sysutils/sandboxctl/PLIST.Darwin diff -u /dev/null pkgsrc/sysutils/sandboxctl/PLIST.Darwin:1.1 --- /dev/null Fri Feb 17 21:23:42 2017 +++ pkgsrc/sysutils/sandboxctl/PLIST.Darwin Fri Feb 17 21:23:42 2017 @@ -0,0 +1,3 @@ +@comment $NetBSD: PLIST.Darwin,v 1.1 2017/02/17 21:23:42 jmmv Exp $ +share/sandboxctl/darwin_native.subr +${TESTS}tests/sandboxctl/modules/darwin_native_test Index: pkgsrc/sysutils/sandboxctl/PLIST.FreeBSD diff -u /dev/null pkgsrc/sysutils/sandboxctl/PLIST.FreeBSD:1.1 --- /dev/null Fri Feb 17 21:23:42 2017 +++ pkgsrc/sysutils/sandboxctl/PLIST.FreeBSD Fri Feb 17 21:23:42 2017 @@ -0,0 +1,3 @@ +@comment $NetBSD: PLIST.FreeBSD,v 1.1 2017/02/17 21:23:42 jmmv Exp $ +share/sandboxctl/freebsd_native.subr +${TESTS}tests/sandboxctl/modules/freebsd_native_test Index: pkgsrc/sysutils/sandboxctl/PLIST.Linux diff -u /dev/null pkgsrc/sysutils/sandboxctl/PLIST.Linux:1.1 --- /dev/null Fri Feb 17 21:23:42 2017 +++ pkgsrc/sysutils/sandboxctl/PLIST.Linux Fri Feb 17 21:23:42 2017 @@ -0,0 +1,3 @@ +@comment $NetBSD: PLIST.Linux,v 1.1 2017/02/17 21:23:42 jmmv Exp $ +share/sandboxctl/linux_native.subr +${TESTS}tests/sandboxctl/modules/linux_native_test Index: pkgsrc/sysutils/sandboxctl/PLIST.NetBSD diff -u /dev/null pkgsrc/sysutils/sandboxctl/PLIST.NetBSD:1.1 --- /dev/null Fri Feb 17 21:23:42 2017 +++ pkgsrc/sysutils/sandboxctl/PLIST.NetBSD Fri Feb 17 21:23:42 2017 @@ -0,0 +1,5 @@ +@comment $NetBSD: PLIST.NetBSD,v 1.1 2017/02/17 21:23:42 jmmv Exp $ +share/sandboxctl/netbsd_native.subr +share/sandboxctl/netbsd_release.subr +${TESTS}tests/sandboxctl/modules/netbsd_native_test +${TESTS}tests/sandboxctl/modules/netbsd_release_test Index: pkgsrc/sysutils/sandboxctl/distinfo diff -u /dev/null pkgsrc/sysutils/sandboxctl/distinfo:1.1 --- /dev/null Fri Feb 17 21:23:42 2017 +++ pkgsrc/sysutils/sandboxctl/distinfo Fri Feb 17 21:23:42 2017 @@ -0,0 +1,6 @@ +$NetBSD: distinfo,v 1.1 2017/02/17 21:23:42 jmmv Exp $ + +SHA1 (sandboxctl-1.0.tar.gz) = 8040df9de356b1292431a454367b9a379ab2d799 +RMD160 (sandboxctl-1.0.tar.gz) = 5eabc9f69e2993636312d97358b838f4ebc538bb +SHA512 (sandboxctl-1.0.tar.gz) = db6aaa44dfae3aa2c8090b1c8225a3d74034168711ddae9dcf5b4a02d194604080f423f0fa39acd1b9749a4158037160c317b7714ffe4070dbac2f1d06016f90 +Size (sandboxctl-1.0.tar.gz) = 95965 bytes --_----------=_1487366622135490--