commit:     f00010d947ef04f5ec09701feaaeb17dc1cce799
Author:     Petr Vaněk <arkamar <AT> gentoo <DOT> org>
AuthorDate: Fri Jun 14 13:02:28 2024 +0000
Commit:     Petr Vaněk <arkamar <AT> gentoo <DOT> org>
CommitDate: Fri Jun 14 13:29:58 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f00010d9

sys-apps/s6-rc: add 0.5.4.3

Signed-off-by: Petr Vaněk <arkamar <AT> gentoo.org>

 sys-apps/s6-rc/Manifest             |  1 +
 sys-apps/s6-rc/s6-rc-0.5.4.3.ebuild | 67 +++++++++++++++++++++++++++++++++++++
 2 files changed, 68 insertions(+)

diff --git a/sys-apps/s6-rc/Manifest b/sys-apps/s6-rc/Manifest
index b8157b68c6fa..a4059c272e87 100644
--- a/sys-apps/s6-rc/Manifest
+++ b/sys-apps/s6-rc/Manifest
@@ -1 +1,2 @@
 DIST s6-rc-0.5.4.2.tar.gz 100896 BLAKE2B 
d9e6f580a32d27950c7c525a5b657b429616d1c937c71cee302939b847a58bae1d5e209f53113dc82b953b5aa14c6078b206566e4809902a8f06b17c5621205f
 SHA512 
f04e94db957e6d0033e328cc63530f64c9db101815bcafdb00a23205f4e75039dd3e593f93d48e4d9877b0696ea734ca62f672d92ff31e4e07aa19d26d809443
+DIST s6-rc-0.5.4.3.tar.gz 101738 BLAKE2B 
fbf69bff42c999af063810fd92467de5357d9405dbb3767064ab1aa12bda1262f5622884a1d547ca4d2c03cb9714f0f53acc4389949c65f606780837dcd0ccf7
 SHA512 
7a54a32ea1261de79b9494adde74b50dbefce831f5a00f9d3772c9b64fd71918ce54a16dff828de0fb762633255226ca935357f9f31c4264716b7041a5f5f8bb

diff --git a/sys-apps/s6-rc/s6-rc-0.5.4.3.ebuild 
b/sys-apps/s6-rc/s6-rc-0.5.4.3.ebuild
new file mode 100644
index 000000000000..0a8af8cd7296
--- /dev/null
+++ b/sys-apps/s6-rc/s6-rc-0.5.4.3.ebuild
@@ -0,0 +1,67 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit optfeature toolchain-funcs
+
+DESCRIPTION="Service manager for the s6 supervision suite"
+HOMEPAGE="https://www.skarnet.org/software/s6-rc/";
+SRC_URI="https://www.skarnet.org/software/${PN}/${P}.tar.gz";
+
+LICENSE="ISC"
+SLOT="0/$(ver_cut 1-2)"
+KEYWORDS="~amd64 ~arm ~x86"
+
+RDEPEND="
+       dev-lang/execline:=
+       >=dev-libs/skalibs-2.14.0.0:=
+       >=sys-apps/s6-2.11.3.0:=[execline]
+"
+DEPEND="${RDEPEND}"
+
+HTML_DOCS=( doc/. )
+
+src_prepare() {
+       default
+
+       # Avoid QA warning for LDFLAGS addition
+       sed -i -e 's/.*-Wl,--hash-style=both$/:/' configure || die
+
+       sed -i -e '/AR := /d' -e '/RANLIB := /d' Makefile || die
+}
+
+src_configure() {
+       tc-export AR CC RANLIB
+
+       local myconf=(
+               --bindir=/bin
+               --dynlibdir="/$(get_libdir)"
+               --libdir="/usr/$(get_libdir)/${PN}"
+               --libexecdir=/lib/s6
+               --with-dynlib="/$(get_libdir)"
+               --with-lib="/usr/$(get_libdir)/execline"
+               --with-lib="/usr/$(get_libdir)/s6"
+               --with-lib="/usr/$(get_libdir)/skalibs"
+               --with-sysdeps="/usr/$(get_libdir)/skalibs"
+               --enable-shared
+               --disable-allstatic
+               --disable-static
+               --disable-static-libc
+       )
+
+       econf "${myconf[@]}"
+}
+
+pkg_postinst() {
+       for ver in ${REPLACING_VERSIONS}; do
+               if ver_test "${ver}" -lt "0.5.4.0"; then
+                       elog "Location of helper utilities was changed from 
/usr/libexec to /lib/s6 in"
+                       elog "version 0.5.4.0. It is necessary to recompile and 
update s6-rc database and"
+                       elog "restart s6rc-oneshot-runner service because you 
are upgrading from older"
+                       elog "version."
+               fi
+       done
+
+       optfeature "man pages" app-doc/s6-rc-man-pages
+}

Reply via email to