diff options
author | Georgy Yakovlev <gyakovlev@gentoo.org> | 2021-12-19 23:40:20 -0800 |
---|---|---|
committer | Georgy Yakovlev <gyakovlev@gentoo.org> | 2021-12-20 00:51:45 -0800 |
commit | afecbd5085904be5c543691a08bd55c54774caa5 (patch) | |
tree | 08ded09a36e01d1251ad8d021bfd627e3bee308d /app-containers/s6-overlay/s6-overlay-1.18.1.3.ebuild | |
parent | Move {app-emulation -> app-containers}/runc (diff) | |
download | gentoo-afecbd5085904be5c543691a08bd55c54774caa5.tar.gz gentoo-afecbd5085904be5c543691a08bd55c54774caa5.tar.bz2 gentoo-afecbd5085904be5c543691a08bd55c54774caa5.zip |
Move {app-emulation -> app-containers}/s6-overlay
Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
Diffstat (limited to 'app-containers/s6-overlay/s6-overlay-1.18.1.3.ebuild')
-rw-r--r-- | app-containers/s6-overlay/s6-overlay-1.18.1.3.ebuild | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/app-containers/s6-overlay/s6-overlay-1.18.1.3.ebuild b/app-containers/s6-overlay/s6-overlay-1.18.1.3.ebuild new file mode 100644 index 000000000000..c9dd1445da21 --- /dev/null +++ b/app-containers/s6-overlay/s6-overlay-1.18.1.3.ebuild @@ -0,0 +1,58 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +if [[ ${PV} = 9999 ]]; then + EGIT_REPO_URI="https://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 +} |