diff --git a/sdk_container/src/third_party/coreos-overlay/sys-process/tini/Manifest b/sdk_container/src/third_party/coreos-overlay/sys-process/tini/Manifest new file mode 100644 index 0000000000..c8dcb65fad --- /dev/null +++ b/sdk_container/src/third_party/coreos-overlay/sys-process/tini/Manifest @@ -0,0 +1 @@ +DIST tini-0.13.2.tar.gz 27828 SHA256 85e18a4e4089612821321d1d67c16337797c3c78e81117dea56ad75ece20d05f SHA512 117822bf2e45b7cf732bfcd2aa5ea268a189c395f189c03d0e5dcd982872cff29d50adbb1a4d1b85859db4736e932900cfb64a1c487ba271a305146e9677a1d4 WHIRLPOOL f271b592e5524a2297b5a6b8fb88371a9068f01122e7ea95c4d797d2f5da91847b65675a7b5043398b8c9553746a00e4b5fe5ecfd8a1171d3bba87ee78de9a55 diff --git a/sdk_container/src/third_party/coreos-overlay/sys-process/tini/files/automake/Makefile.am b/sdk_container/src/third_party/coreos-overlay/sys-process/tini/files/automake/Makefile.am new file mode 100644 index 0000000000..af437a64d6 --- /dev/null +++ b/sdk_container/src/third_party/coreos-overlay/sys-process/tini/files/automake/Makefile.am @@ -0,0 +1 @@ +SUBDIRS = src diff --git a/sdk_container/src/third_party/coreos-overlay/sys-process/tini/files/automake/configure.ac b/sdk_container/src/third_party/coreos-overlay/sys-process/tini/files/automake/configure.ac new file mode 100644 index 0000000000..b4d32b3278 --- /dev/null +++ b/sdk_container/src/third_party/coreos-overlay/sys-process/tini/files/automake/configure.ac @@ -0,0 +1,12 @@ +AC_INIT([tini], [0.1]) +AC_PROG_CC + +AM_INIT_AUTOMAKE([]) + +AC_SUBST(tini_VERSION_MAJOR) +AC_SUBST(tini_VERSION_MINOR) +AC_SUBST(tini_VERSION_PATCH) +AC_SUBST(tini_VERSION_GIT) + +AC_CONFIG_FILES([Makefile src/Makefile src/tiniConfig.h tpl/VERSION]) +AC_OUTPUT diff --git a/sdk_container/src/third_party/coreos-overlay/sys-process/tini/files/automake/src/Makefile.am b/sdk_container/src/third_party/coreos-overlay/sys-process/tini/files/automake/src/Makefile.am new file mode 100644 index 0000000000..115d247d5d --- /dev/null +++ b/sdk_container/src/third_party/coreos-overlay/sys-process/tini/files/automake/src/Makefile.am @@ -0,0 +1,4 @@ +bin_PROGRAMS = tini +tini_SOURCES = tini.c + +tini_CFLAGS = -static diff --git a/sdk_container/src/third_party/coreos-overlay/sys-process/tini/tini-0.13.2.ebuild b/sdk_container/src/third_party/coreos-overlay/sys-process/tini/tini-0.13.2.ebuild new file mode 100644 index 0000000000..185df270c4 --- /dev/null +++ b/sdk_container/src/third_party/coreos-overlay/sys-process/tini/tini-0.13.2.ebuild @@ -0,0 +1,27 @@ +# Copyright 2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit autotools versionator + +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 arm64" + + +src_prepare() { + for file in configure.ac Makefile.am src/Makefile.am; do + cp "${FILESDIR}/automake/${file}" "${S}/${file}" + done + eapply_user + + export tini_VERSION_MAJOR=$(get_version_component_range 1) + export tini_VERSION_MINOR=$(get_version_component_range 2) + export tini_VERSION_PATCH=$(get_version_component_range 3) + eautoreconf +}