diff options
author | Zac Medico <zmedico@gentoo.org> | 2016-11-03 12:41:27 -0700 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2016-11-03 12:43:01 -0700 |
commit | 22d5e75e8fdcf517d77dd3c86073dd249298b94a (patch) | |
tree | 32d768d94cb0a543ce910a885bff88978e9527a4 /sys-process/tini/tini-0.11.0.ebuild | |
parent | 9f755166990850a2f869b1da92c76283e1708b5d (diff) | |
download | gentoo-22d5e75e8fdcf517d77dd3c86073dd249298b94a.tar.gz gentoo-22d5e75e8fdcf517d77dd3c86073dd249298b94a.tar.xz |
sys-process/tini: version bump to 0.11.0
Package-Manager: portage-2.3.2
Diffstat (limited to 'sys-process/tini/tini-0.11.0.ebuild')
-rw-r--r-- | sys-process/tini/tini-0.11.0.ebuild | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/sys-process/tini/tini-0.11.0.ebuild b/sys-process/tini/tini-0.11.0.ebuild new file mode 100644 index 00000000000..715aed3fc00 --- /dev/null +++ b/sys-process/tini/tini-0.11.0.ebuild @@ -0,0 +1,40 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 + +inherit cmake-utils flag-o-matic + +DESCRIPTION="A tiny but valid init for containers" +HOMEPAGE="https://github.com/krallin/${PN}" +SRC_URI="https://github.com/krallin/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="+args static" + +# vim-core is needed just for the xxd program +DEPEND="app-editors/vim-core" + +src_configure() { + local mycmakeargs=() + use args || mycmakeargs+=(-DNO_ARGS=ON) + + cmake-utils_src_configure +} + +src_compile() { + append-cflags -DPR_SET_CHILD_SUBREAPER=36 -DPR_GET_CHILD_SUBREAPER=37 + cmake-utils_src_compile +} + +src_install() { + cmake-utils_src_install + if use static; then + mv "${ED%/}"/usr/bin/{${PN}-static,${PN}} || die + else + rm "${ED%/}"/usr/bin/${PN}-static || die + fi +} |