summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Hubbs <williamh@gentoo.org>2016-07-01 13:54:39 -0500
committerWilliam Hubbs <williamh@gentoo.org>2016-07-01 13:58:46 -0500
commit09e0d4ffa77ffcaa9335441e5e714acf66b3915e (patch)
treea313cded9024731594895e66c128c48caa896cd4 /app-emulation/s6-overlay
parentgames-action/0verkill: remove deprecated games eclass (diff)
downloadgentoo-09e0d4ffa77ffcaa9335441e5e714acf66b3915e.tar.gz
gentoo-09e0d4ffa77ffcaa9335441e5e714acf66b3915e.tar.bz2
gentoo-09e0d4ffa77ffcaa9335441e5e714acf66b3915e.zip
app-emulation/s6-overlay: new package -- an s6 init system for containers
Package-Manager: portage-2.2.28
Diffstat (limited to 'app-emulation/s6-overlay')
-rw-r--r--app-emulation/s6-overlay/Manifest1
-rw-r--r--app-emulation/s6-overlay/metadata.xml11
-rw-r--r--app-emulation/s6-overlay/s6-overlay-1.18.1.3.ebuild59
3 files changed, 71 insertions, 0 deletions
diff --git a/app-emulation/s6-overlay/Manifest b/app-emulation/s6-overlay/Manifest
new file mode 100644
index 000000000000..bda0c1ec0649
--- /dev/null
+++ b/app-emulation/s6-overlay/Manifest
@@ -0,0 +1 @@
+DIST s6-overlay-1.18.1.3.tar.gz 20067 SHA256 15d16c0882a3bc014e6dd7de0f13dbdb2a4acdee4b48365db3d3b18d9c2bed5d SHA512 2b17b86a93e1efc27181a100bb86aacbce2e2c58cfd0d0855a293b99ba5c871a2f17bd10fa14b173b297816ae2d1658aaee2e6a6e25b957ad60f93d535955775 WHIRLPOOL ea53eb5595fbaa7340ae3223a0a885b57c94fa478b9cbe13cfab58c7fc61deb4714ccce624066be363530aa6f664365f36db9d9d84e8142ebc93c158d9de4829
diff --git a/app-emulation/s6-overlay/metadata.xml b/app-emulation/s6-overlay/metadata.xml
new file mode 100644
index 000000000000..d2b76d6ecfc1
--- /dev/null
+++ b/app-emulation/s6-overlay/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer>
+ <email>williamh@gentoo.org</email>
+ <name>William Hubbs</name>
+ </maintainer>
+ <longdescription lang="en">
+ This is an s6-based custom init to be used in containers.
+ </longdescription>
+</pkgmetadata>
diff --git a/app-emulation/s6-overlay/s6-overlay-1.18.1.3.ebuild b/app-emulation/s6-overlay/s6-overlay-1.18.1.3.ebuild
new file mode 100644
index 000000000000..10c6e2dab5ad
--- /dev/null
+++ b/app-emulation/s6-overlay/s6-overlay-1.18.1.3.ebuild
@@ -0,0 +1,59 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+
+if [[ ${PV} = 9999 ]]; then
+ EGIT_REPO_URI="git://github.com/just-containers/${PN}"
+ inherit git-r3
+else
+ SRC_URI="https://github.com/just-containers/${PN}/archive/v${PV}.tar.gz ->
+ ${P}.tar.gz"
+ KEYWORDS="~amd64"
+ inherit vcs-snapshot
+fi
+
+DESCRIPTION="an s6-based init system for containers"
+HOMEPAGE="https://github.com/just-containers/s6-overlay"
+
+LICENSE="ISC"
+SLOT="0"
+IUSE=""
+
+DEPEND=""
+RDEPEND="sys-apps/s6
+ sys-apps/s6-portable-utils"
+
+src_install() {
+ dodoc *.md
+ cd builder/overlay-rootfs
+ dobin usr/bin/{fix-attrs,logutil*,print*,with*}
+
+ insinto /
+ doins -r etc init
+
+ # create must exist directories
+ dodir /etc/{cont-init.d,cont-finish.d,fix-attrs.d,services.d}
+ dodir /etc/s6/init/env-stage2
+
+ # create "supervise" directory in fdholder, its needed for no-catchall
+ # stage2 wake up
+ dodir /etc/s6/services/s6-fdholderd/supervise
+ fperms 0700 /etc/s6/services/s6-fdholderd/supervise
+
+ # fix misc permissions
+ fperms 0755 /init
+ fperms 0755 /etc/s6/init/init-stage1 \
+ /etc/s6/init/init-stage2 \
+ /etc/s6/init/init-stage2-redirfd \
+ /etc/s6/init/init-stage3
+ fperms 0755 /etc/s6/init-catchall/init-stage1 \
+ /etc/s6/init-catchall/init-stage2
+ fperms 0755 /etc/s6/init-no-catchall/init-stage1 \
+ /etc/s6/init-no-catchall/init-stage2
+ fperms 0755 /etc/s6/services/.s6-svscan/crash
+ fperms 0755 /etc/s6/services/.s6-svscan/finish
+ fperms 0755 /etc/s6/services/s6-fdholderd/run
+ fperms 0755 /etc/s6/services/s6-svscan-log/run
+}