summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--metadata/categories.conf1
-rw-r--r--metadata/repository_mask.conf13
-rw-r--r--packages/sys-apps/sydbox/sydbox-scm.exheres-019
-rw-r--r--packages/sys-apps/sydbox/sydbox.exlib73
4 files changed, 104 insertions, 2 deletions
diff --git a/metadata/categories.conf b/metadata/categories.conf
index 4282c4b..89a9db8 100644
--- a/metadata/categories.conf
+++ b/metadata/categories.conf
@@ -26,3 +26,4 @@ app-emulation
sys-libs
dev-db
net-fs
+sys-apps
diff --git a/metadata/repository_mask.conf b/metadata/repository_mask.conf
index 6671815..bd43305 100644
--- a/metadata/repository_mask.conf
+++ b/metadata/repository_mask.conf
@@ -1,11 +1,20 @@
(
media-gfx/nomacs[~scm]
media-sound/pulseaudio[~scm]
- app-emulation/wine[~scm]
- net-libs/stem[~scm]
)
[[
date = [ 28 Jun 2018 ]
token = scm
description = [ Mask scm version, does not builds ]
]]
+
+(
+ net-libs/stem[~scm]
+ sys-apps/sydbox[~scm]
+ app-emulation/wine[~scm]
+)
+[[
+ date = [ 9 Jul 2018 ]
+ token = scm
+ description = [ Mask scm version ]
+]]
diff --git a/packages/sys-apps/sydbox/sydbox-scm.exheres-0 b/packages/sys-apps/sydbox/sydbox-scm.exheres-0
new file mode 100644
index 0000000..c5942a5
--- /dev/null
+++ b/packages/sys-apps/sydbox/sydbox-scm.exheres-0
@@ -0,0 +1,19 @@
+# Copyright 2009, 2012 Ali Polatel <alip@exherbo.org>
+# Distributed under the terms of the GNU General Public License v2
+
+SCM_REPOSITORY="https://git.exherbo.org/sydbox-1.git"
+SCM_BRANCH="inspect"
+
+require sydbox autotools [ supported_autoconf=[ 2.5 ] supported_automake=[ 1.15 1.13 1.12 1.11 1.10 ] ] scm-git
+
+DOWNLOADS=""
+
+PLATFORMS="~amd64 ~armv7"
+
+DEPENDENCIES="
+ build:
+ dev-libs/libxslt
+"
+
+AT_M4DIR=( m4 )
+
diff --git a/packages/sys-apps/sydbox/sydbox.exlib b/packages/sys-apps/sydbox/sydbox.exlib
new file mode 100644
index 0000000..a295d3a
--- /dev/null
+++ b/packages/sys-apps/sydbox/sydbox.exlib
@@ -0,0 +1,73 @@
+# Copyright 2009, 2010, 2011, 2012, 2013 Ali Polatel <alip@exherbo.org>
+# Copyright 2015 Wouter van Kesteren <woutershep@gmail.com>
+# Distributed under the terms of the GNU General Public License v2
+
+export_exlib_phases src_test
+
+SUMMARY="Sydbox, the other sandbox"
+DESCRIPTION="Sydbox is a ptrace based sandbox for Linux."
+ever is_scm || DOWNLOADS="https://dev.exherbo.org/distfiles/${PN}/${PNV}.tar.bz2"
+
+LICENCES="GPL-2"
+SLOT="0"
+MYOPTIONS=""
+DEPENDENCIES=""
+
+BUGS_TO="alip@exherbo.org"
+REMOTE_IDS="freecode:${PN}"
+
+if ever at_least 1; then
+
+ HOMEPAGE="https://git.exherbo.org/sydbox-1.git"
+
+ # sydbox 1(_pre): has seccomp
+ MYOPTIONS+="
+ seccomp [[ description = [ Enable seccomp user filter support ] ]]"
+ DEPENDENCIES+="
+ build:
+ seccomp? ( sys-kernel/linux-headers[>=3.5] )"
+
+ DEFAULT_SRC_CONFIGURE_OPTION_ENABLES=( seccomp )
+
+ if ever at_least 1.0.0; then
+ # sydbox 1: external pinktrace
+ DEPENDENCIES+="
+ build+run:
+ dev-libs/pinktrace[>=0.9.0]"
+ else
+ # sydbox 1_pre: internal pinktrace
+ MYOPTIONS+="
+ doc [[ description = [ Build API documentation of included pinktrace library ] ]]"
+ DEPENDENCIES+="
+ build:
+ doc? ( app-doc/doxygen )"
+
+ DEFAULT_SRC_CONFIGURE_PARAMS=( --enable-ipv6 )
+ DEFAULT_SRC_CONFIGURE_OPTION_ENABLES+=( "doc doxygen" )
+ fi
+
+else
+
+ HOMEPAGE="https://git.exherbo.org/sydbox.git"
+
+ # sydbox 0: no seccomp, glib, external pinktrace
+ DEPENDENCIES+="
+ build+run:
+ dev-libs/glib:2[>=2.18]
+ dev-libs/pinktrace[>=0.1.2]"
+fi
+
+sydbox_src_test() {
+ if ! esandbox check 2>/dev/null; then
+ default
+ else
+ elog "Not running tests because sydbox doesn't work under sydbox"
+ elog "set PALUDIS_DO_NOTHING_SANDBOXY=1 if you want to run the tests"
+
+ if ever at_least 1.0.2; then
+ elog "As of sydbox-1.0.2, tests are installed by default."
+ elog "You can use the helper utility sydtest to run the tests."
+ fi
+ fi
+}
+