diff options
Diffstat (limited to 'sys-process/tini')
-rw-r--r-- | sys-process/tini/Manifest | 2 | ||||
-rw-r--r-- | sys-process/tini/tini-0.19.0.ebuild | 59 |
2 files changed, 61 insertions, 0 deletions
diff --git a/sys-process/tini/Manifest b/sys-process/tini/Manifest index d18744a0c0af..71bc517f5e0a 100644 --- a/sys-process/tini/Manifest +++ b/sys-process/tini/Manifest @@ -1,3 +1,5 @@ DIST tini-0.18.0.tar.gz 32152 BLAKE2B d676f0f1b4d9f6dca98cdb626aa7c525ec55e090cfeb1cf0e9ab167f1ef4285123223873e92e81d5d62ceb631e26e9012f16b28b1d35813ac801f8e4594be70b SHA512 83279180b6a875aaff9b6b7446ee7e71fd05357279744afcb4db67c76572dc871acfba86c035857009b5dd88ca75d9f2e815d6a925563cdb3e6e771eb83be9b1 +DIST tini-0.19.0.tar.gz 32369 BLAKE2B 5d86f6299b92152063974e6ecd347e1a2ba90f0188f2a702ddb6c814fc1c9723062481fe560caa89e9f74883017ee833566adf1eb1f11fe625671eced47f3296 SHA512 1fa85b56e2c6085ea474f251928e7a40510d92aeef60b3c145b0496969c1b5df86835d143cb91ef5b4bf4da63fa8a56947cc39a4276e4b72faa57276d432b292 EBUILD tini-0.18.0.ebuild 1426 BLAKE2B 016e2475b6297cf6bf1cc2d6ff24f4a27fe456d41c6bdb8f76eda0e976ecb556e0b598d5c39225aa1f54e6e3533b3ebd182e9914ad9ca0164cbc2debd3e63472 SHA512 2bba6d17d43b7276d2372f20d2a975e6cb8749d572a4dc22f69975bb2930557fac35cf7d218377d638b1a63a3d8b7f89bdbe5123f0a13537b91a52b9a38cefbf +EBUILD tini-0.19.0.ebuild 1399 BLAKE2B 3d3355ad6a5d6ca456e79415d94cb633d74504fbc60882c81e844ce92ad0d3f7c653cae86f364aaa3c25105ac30856fc4cb751050cf9d2269a1b3473de3816a8 SHA512 9ec866c568e96be698c3f247db0d76007e7476ea611003f9bc7d115e539dedcc89c85486edc3b3d5862fd126b5a6d1738123a723897121dd5acf04c55659cb8e MISC metadata.xml 558 BLAKE2B 7fd719d731c968125776805299e964567907ca7cae8a94c717218fdf8caa73d6f333a8bb22c36e0bec273f48504a55f91081e09474abc90440b50bcd760f53aa SHA512 dfbadc5994b3c7b4d8a27fd207c9f1836a21633218dee0252f938448f3c14f3c41d1f35c0604aecbc9f14117b27cd995451800c61dd41875be3becffb53d33f3 diff --git a/sys-process/tini/tini-0.19.0.ebuild b/sys-process/tini/tini-0.19.0.ebuild new file mode 100644 index 000000000000..4e04e46695c9 --- /dev/null +++ b/sys-process/tini/tini-0.19.0.ebuild @@ -0,0 +1,59 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit cmake flag-o-matic + +GIT_COMMIT=fec3683b971d9c3ef73f284f176672c44b448662 +DESCRIPTION="A tiny but valid init for containers" +HOMEPAGE="https://github.com/krallin/tini" +SRC_URI="https://github.com/krallin/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86" +IUSE="+args +static" + +src_prepare() { + cmake_src_prepare + + local sed_args=( + # Do not strip binary + -e 's/-Wl,-s")$/")/' + + # Remove -Werror and -pedantic-errors in order to allow macro + # redefinition, so that CFLAGS="-U_FORTIFY_SOURCE" does not + # trigger an error due to add_definitions(-D_FORTIFY_SOURCE=2) + # in CMakeLists.txt (bug 626438). + -e "s/ -Werror / /" + -e "s/ -pedantic-errors / /" + ) + + sed -i "${sed_args[@]}" \ + -e "s/git.*status --porcelain.*/true/" \ + -e "s/git.*log -n 1.*/true/" \ + -e "s/git.\${tini_VERSION_GIT}/git.${GIT_COMMIT}/" \ + CMakeLists.txt || die +} + +src_configure() { + local mycmakeargs=() + use args || mycmakeargs+=(-DMINIMAL=ON) + + cmake_src_configure +} + +src_compile() { + append-cflags -DPR_SET_CHILD_SUBREAPER=36 -DPR_GET_CHILD_SUBREAPER=37 + cmake_src_compile +} + +src_install() { + cmake_src_install + if use static; then + mv "${ED}"/usr/bin/{${PN}-static,${PN}} || die + else + rm "${ED}"/usr/bin/${PN}-static || die + fi +} |