Gentoo Archives: gentoo-commits

From: "Manuel Rüger" <mrueg@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-process/tini/
Date: Mon, 25 Sep 2017 14:07:51
Message-Id: 1506348448.58ef4c84963dc24fdd2db1e8ab2ecef85ed501fb.mrueg@gentoo
1 commit: 58ef4c84963dc24fdd2db1e8ab2ecef85ed501fb
2 Author: Manuel Rüger <mrueg <AT> gentoo <DOT> org>
3 AuthorDate: Mon Sep 25 14:07:28 2017 +0000
4 Commit: Manuel Rüger <mrueg <AT> gentoo <DOT> org>
5 CommitDate: Mon Sep 25 14:07:28 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=58ef4c84
7
8 sys-process/tini: Version bump to 0.16.1
9
10 Package-Manager: Portage-2.3.10, Repoman-2.3.3
11
12 sys-process/tini/Manifest | 1 +
13 sys-process/tini/tini-0.16.1.ebuild | 42 +++++++++++++++++++++++++++++++++++++
14 2 files changed, 43 insertions(+)
15
16 diff --git a/sys-process/tini/Manifest b/sys-process/tini/Manifest
17 index 43028d409ed..b30859297d2 100644
18 --- a/sys-process/tini/Manifest
19 +++ b/sys-process/tini/Manifest
20 @@ -1,2 +1,3 @@
21 DIST tini-0.13.2.tar.gz 27828 SHA256 85e18a4e4089612821321d1d67c16337797c3c78e81117dea56ad75ece20d05f SHA512 117822bf2e45b7cf732bfcd2aa5ea268a189c395f189c03d0e5dcd982872cff29d50adbb1a4d1b85859db4736e932900cfb64a1c487ba271a305146e9677a1d4 WHIRLPOOL f271b592e5524a2297b5a6b8fb88371a9068f01122e7ea95c4d797d2f5da91847b65675a7b5043398b8c9553746a00e4b5fe5ecfd8a1171d3bba87ee78de9a55
22 DIST tini-0.15.0.tar.gz 29473 SHA256 3c0e0373c67006ac7e59ef6213e13729b53de5f414435c80133fa484174fda70 SHA512 774addddeb2bcefd1db2e4bff7c55bba6c3f4adc41e0b2a647059eef8cc5cc9d4a47b68cb4b89aa4e9e52b85916fe2680dad2a414c82b3c276beea89e3689481 WHIRLPOOL 94e39f36463344ae6587a407437c325138130bb83f38fa6e83a9d9d2b15dca4ff754fd862ec0e65eef1f6d3d11c3e75c37229da9bcca645221d6fc3c194c4fb1
23 +DIST tini-0.16.1.tar.gz 29641 SHA256 c2b7fe2fb92e71911d06b7571b53d4e7e8985b34efe2a599670b070b000c8dbe SHA512 aa0a802c403a07771a2b28a07b97fa2c93d40b5d5be2cba6556c8e7a92e608453010625d0236d26c27bdd2820aed3ad9ca676b70f7fcd5986d7f91eb928d053c WHIRLPOOL 98697f24e3c4ace3067943fd35f28b6243651478c407f3999e4152d58433a3c303a42ccc587717a76eec2aac10300176c2b1f360faf3a616180e2637cff661e7
24
25 diff --git a/sys-process/tini/tini-0.16.1.ebuild b/sys-process/tini/tini-0.16.1.ebuild
26 new file mode 100644
27 index 00000000000..bae9cb2b33c
28 --- /dev/null
29 +++ b/sys-process/tini/tini-0.16.1.ebuild
30 @@ -0,0 +1,42 @@
31 +# Copyright 1999-2017 Gentoo Foundation
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=6
35 +
36 +inherit cmake-utils flag-o-matic
37 +
38 +DESCRIPTION="A tiny but valid init for containers"
39 +HOMEPAGE="https://github.com/krallin/tini"
40 +SRC_URI="https://github.com/krallin/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
41 +
42 +LICENSE="MIT"
43 +SLOT="0"
44 +KEYWORDS="~amd64 ~arm ~x86"
45 +IUSE="+args +static"
46 +
47 +src_prepare() {
48 + default
49 + # Do not strip binary
50 + sed -i -e 's/-Wl,-s")$/")/' CMakeLists.txt || die
51 +}
52 +
53 +src_configure() {
54 + local mycmakeargs=()
55 + use args || mycmakeargs+=(-DMINIMAL=ON)
56 +
57 + cmake-utils_src_configure
58 +}
59 +
60 +src_compile() {
61 + append-cflags -DPR_SET_CHILD_SUBREAPER=36 -DPR_GET_CHILD_SUBREAPER=37
62 + cmake-utils_src_compile
63 +}
64 +
65 +src_install() {
66 + cmake-utils_src_install
67 + if use static; then
68 + mv "${ED%/}"/usr/bin/{${PN}-static,${PN}} || die
69 + else
70 + rm "${ED%/}"/usr/bin/${PN}-static || die
71 + fi
72 +}