pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/sysutils Initial addition of sandboxctl 1.0:



details:   https://anonhg.NetBSD.org/pkgsrc/rev/0422d11aba33
branches:  trunk
changeset: 358667:0422d11aba33
user:      jmmv <jmmv%pkgsrc.org@localhost>
date:      Fri Feb 17 21:23:42 2017 +0000

description:
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.

diffstat:

 sysutils/Makefile                 |   3 +-
 sysutils/sandboxctl/DESCR         |  20 +++++++++++++++++
 sysutils/sandboxctl/Makefile      |  44 +++++++++++++++++++++++++++++++++++++++
 sysutils/sandboxctl/PLIST         |  17 +++++++++++++++
 sysutils/sandboxctl/PLIST.Darwin  |   3 ++
 sysutils/sandboxctl/PLIST.FreeBSD |   3 ++
 sysutils/sandboxctl/PLIST.Linux   |   3 ++
 sysutils/sandboxctl/PLIST.NetBSD  |   5 ++++
 sysutils/sandboxctl/distinfo      |   6 +++++
 9 files changed, 103 insertions(+), 1 deletions(-)

diffs (150 lines):

diff -r 9b647b1c9bee -r 0422d11aba33 sysutils/Makefile
--- a/sysutils/Makefile Fri Feb 17 21:20:07 2017 +0000
+++ b/sysutils/Makefile Fri Feb 17 21:23:42 2017 +0000
@@ -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+=       salt
 SUBDIR+=       salt-docs
 SUBDIR+=       same
+SUBDIR+=       sandboxctl
 SUBDIR+=       sarah
 SUBDIR+=       screenbrightness
 SUBDIR+=       screenfetch
diff -r 9b647b1c9bee -r 0422d11aba33 sysutils/sandboxctl/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/sandboxctl/DESCR Fri Feb 17 21:23:42 2017 +0000
@@ -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.
diff -r 9b647b1c9bee -r 0422d11aba33 sysutils/sandboxctl/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/sandboxctl/Makefile      Fri Feb 17 21:23:42 2017 +0000
@@ -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@localhost
+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"
diff -r 9b647b1c9bee -r 0422d11aba33 sysutils/sandboxctl/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/sandboxctl/PLIST Fri Feb 17 21:23:42 2017 +0000
@@ -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
diff -r 9b647b1c9bee -r 0422d11aba33 sysutils/sandboxctl/PLIST.Darwin
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/sandboxctl/PLIST.Darwin  Fri Feb 17 21:23:42 2017 +0000
@@ -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
diff -r 9b647b1c9bee -r 0422d11aba33 sysutils/sandboxctl/PLIST.FreeBSD
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/sandboxctl/PLIST.FreeBSD Fri Feb 17 21:23:42 2017 +0000
@@ -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
diff -r 9b647b1c9bee -r 0422d11aba33 sysutils/sandboxctl/PLIST.Linux
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/sandboxctl/PLIST.Linux   Fri Feb 17 21:23:42 2017 +0000
@@ -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
diff -r 9b647b1c9bee -r 0422d11aba33 sysutils/sandboxctl/PLIST.NetBSD
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/sandboxctl/PLIST.NetBSD  Fri Feb 17 21:23:42 2017 +0000
@@ -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
diff -r 9b647b1c9bee -r 0422d11aba33 sysutils/sandboxctl/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/sandboxctl/distinfo      Fri Feb 17 21:23:42 2017 +0000
@@ -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



Home | Main Index | Thread Index | Old Index